Hi, I tested booting NetBSD 9.2 on a Pinephone handset, and thought you might be interested to see the dmesg.
Unfortunately there seems to be a problem with the driver for the serial interface. Although the serial output from the phone seems to is fine, keystrokes are often suffering from bit-flips. For example typing, 'a', will sometimes echo back 'A', or '^A'. Since this is happening for something like 25% - 50% of keystrokes, it's virtually impossible to actually use the system. It's not a hardware problem, as I have used the same handset and serial connection with OpenBSD and Linux without any issues. Still, it's interesting to see how the hardware is detected. [ 1.0000000] NetBSD/evbarm (fdt) booting ... [ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, [ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, [ 1.0000000] 2018, 2019, 2020 The NetBSD Foundation, Inc. All rights reserved. [ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993 [ 1.0000000] The Regents of the University of California. All rights reserved. [ 1.0000000] NetBSD 9.2 (GENERIC64) #0: Wed May 12 13:15:55 UTC 2021 [ 1.0000000] mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 [ 1.0000000] total memory = 3025 MB [ 1.0000000] avail memory = 2916 MB [ 1.0000000] running cgd selftest aes-xts-256 aes-xts-512 done [ 1.0000000] armfdt0 (root) [ 1.0000000] simplebus0 at armfdt0: Pine64 PinePhone (1.2) [ 1.0000000] simplebus1 at simplebus0 [ 1.0000000] cpus0 at simplebus0 [ 1.0000000] simplebus2 at simplebus0 [ 1.0000000] psci0 at simplebus0: PSCI 1.1 [ 1.0000000] cpu0 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core) [ 1.0000000] cpu0: package 0, core 0, smt 0 [ 1.0000000] cpu0: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled [ 1.0000000] cpu0: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B [ 1.0000000] cpu0: Dcache line 64, Icache line 64 [ 1.0000000] cpu0: L1 32KB/64B 2-way read-allocate VIPT Instruction cache [ 1.0000000] cpu0: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache [ 1.0000000] cpu0: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache [ 1.0000000] cpu0: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID [ 1.0000000] cpu0: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add [ 1.0000000] cpufreqdt0 at cpu0 [ 1.0000000] cpu1 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core) [ 1.0000000] cpu1: package 0, core 1, smt 0 [ 1.0000000] cpufreqdt1 at cpu1 [ 1.0000000] cpu2 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core) [ 1.0000000] cpu2: package 0, core 2, smt 0 [ 1.0000000] cpufreqdt2 at cpu2 [ 1.0000000] cpu3 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core) [ 1.0000000] cpu3: package 0, core 3, smt 0 [ 1.0000000] cpufreqdt3 at cpu3 [ 1.0000000] gic0 at simplebus1: GIC [ 1.0000000] armgic0 at gic0: Generic Interrupt Controller, 224 sources (215 valid) [ 1.0000000] armgic0: 16 Priorities, 192 SPIs, 7 PPIs, 16 SGIs [ 1.0000000] sunxisramc0 at simplebus1: SRAM Controller [ 1.0000000] fclock0 at simplebus0: 24000000 Hz fixed clock (osc24M) [ 1.0000000] fclock1 at simplebus0: 32768 Hz fixed clock (ext-osc32k) [ 1.0000000] gtmr0 at simplebus0: Generic Timer [ 1.0000000] gtmr0: interrupting on GIC irq 27 [ 1.0000000] armgtmr0 at gtmr0: Generic Timer (24000 kHz, virtual) [ 1.0000060] sun50ia64ccu0 at simplebus1: A64 CCU [ 1.0000060] sunxinmi0 at simplebus1: R_INTC [ 1.0000060] sun50ia64rccu0 at simplebus1: A64 PRCM CCU [ 1.0000060] sunxigpio0 at simplebus1: PIO [ 1.0000060] gpio0 at sunxigpio0: 103 pins [ 1.0000060] sunxigpio0: interrupting on R_INTC [ 1.0000060] sunxigpio1 at simplebus1: PIO [ 1.0000060] gpio1 at sunxigpio1: 13 pins [ 1.0000060] sunxigpio1: failed to establish interrupt on R_INTC [ 1.0000060] sunxipwm0 at simplebus1: PWM [ 1.0000060] sunxide2bus0 at simplebus1: DE2 Bus [ 1.0000060] sunxirsb0 at simplebus1: RSB [ 1.0000060] sunxirsb0: interrupting on GIC irq 71 [ 1.0000060] iic0 at sunxirsb0: I2C bus [ 1.0000060] axppmic0 at iic0 addr 0x3a3: AXP803 [ 1.0000060] sunxirsb0: transfer error, id 0x00 [ 1.0000060] sunxirsb0: SRTA failed, flags = 8, error = 5 [ 1.0000060] axppmic0: couldn't read chipid [ 1.0000060] fregulator0 at simplebus0: vbat-wifi [ 1.0000060] sun6idma0 at simplebus1: DMA controller (8 channels) [ 1.0000060] sun6idma0: interrupting on GIC irq 82 [ 1.0000060] sunxisid0 at simplebus1: Security ID EFUSE [ 1.0000060] fregulator1 at simplebus0: ps [ 1.0000060] com0 at simplebus1: ns16550a, working fifo [ 1.0000060] com0: console [ 1.0000060] com0: interrupting on GIC irq 32 [ 1.0000060] com1 at simplebus1: ns16550a, working fifo [ 1.0000060] com1: interrupting on GIC irq 33 [ 1.0000060] com2 at simplebus1: ns16550a, working fifo [ 1.0000060] com2: interrupting on GIC irq 35 [ 1.0000060] sunxide2ccu0 at sunxide2bus0: DE2 CCU [ 1.0000060] mmcpwrseq0 at simplebus0: Simple MMC power sequence provider [ 1.0000060] sunxidrm0 at simplebus0: Display Engine Pipeline [ 1.0000060] sunxiusbphy0 at simplebus1: USB PHY [ 1.0000060] sunxihdmiphy0 at simplebus1: HDMI PHY [ 1.0000060] /opp_table0 at simplebus0 not configured [ 1.0000060] sunximixer0 at sunxide2bus0: Display Engine Mixer [ 1.0000060] sunximixer1 at sunxide2bus0: Display Engine Mixer [ 1.0000060] ausoc0 at simplebus0: sun50i-a64-audio [ 1.0000060] a64acodec0 at simplebus1: A64 Audio Codec (analog part) [ 1.0000060] simpleamp0 at simplebus0: Simple Amplifier [ 1.0000060] sunxii2s0 at simplebus1: Audio Codec (digital part) [ 1.0000060] sun8icodec0 at simplebus1: Audio Codec [ 1.0000060] sun8icodec0: interrupting on GIC irq 60 [ 1.0000060] /soc/thermal-sensor@1c25000 at simplebus1 not configured [ 1.0000060] sunxilcdc0 at simplebus1: TCON0 [ 1.0000060] sunxilcdc0: interrupting on GIC irq 118 [ 1.0000060] sunxilcdc1 at simplebus1: TCON1 [ 1.0000060] sunxilcdc1: interrupting on GIC irq 119 [ 1.0000060] /soc/dsi@1ca0000 at simplebus1 not configured [ 1.0000060] sunxirtc0 at simplebus1: RTC [ 1.0000060] /soc/d-phy@1ca1000 at simplebus1 not configured [ 1.0000060] pwmbacklight0 at simplebus0: PWM Backlight, 5000-50000 (21 steps) [ 1.0000060] /soc/dram-controller@1c62000 at simplebus1 not configured [ 1.0000060] armpmu0 at simplebus0: Performance Monitor Unit [ 1.0000060] gpioleds0 at simplebus0: led-0 led-1 led-2 [ 1.0000060] /led-controller at simplebus0 not configured [ 1.0000060] /vibrator at simplebus0 not configured [ 1.0000060] /soc/video-codec@1c0e000 at simplebus1 not configured [ 1.0000060] sunximmc0 at simplebus1: SD/MMC controller [ 1.0000060] sunximmc0: interrupting on GIC irq 92 [ 1.0000060] sunximmc1 at simplebus1: SD/MMC controller [ 1.0000060] sunximmc1: interrupting on GIC irq 93 [ 1.0000060] sunximmc2 at simplebus1: SD/MMC controller [ 1.0000060] sunximmc2: interrupting on GIC irq 94 [ 1.0000060] sun8icrypto0 at simplebus1: Crypto Engine [ 1.0000060] sun8icrypto0: interrupting on GIC irq 126 [ 1.0000060] /soc/mailbox@1c17000 at simplebus1 not configured [ 1.0000060] motg0 at simplebus1: 'peripheral' mode not supported [ 1.0000060] ehci0 at simplebus1: EHCI [ 1.0000060] ehci0: interrupting on GIC irq 104 [ 1.0000060] ehci0: 1 companion controller, 1 port [ 1.0000060] usb0 at ehci0: USB revision 2.0 [ 1.0000060] ohci0 at simplebus1: OHCI [ 1.0000060] ohci0: interrupting on GIC irq 105 [ 1.0000060] ohci0: OHCI version 1.0 [ 1.0000060] usb1 at ohci0: USB revision 1.0 [ 1.0000060] ehci1 at simplebus1: EHCI [ 1.0000060] ehci1: interrupting on GIC irq 106 [ 1.0000060] ehci1: 1 companion controller, 1 port [ 1.0000060] usb2 at ehci1: USB revision 2.0 [ 1.0000060] ohci1 at simplebus1: OHCI [ 1.0000060] ohci1: interrupting on GIC irq 107 [ 1.0000060] ohci1: OHCI version 1.0 [ 1.0000060] usb3 at ohci1: USB revision 1.0 [ 1.0000060] /soc/lradc@1c21800 at simplebus1 not configured [ 1.0000060] sunxitwi0 at simplebus1: Marvell TWSI controller [ 1.0000060] sunxitwi0: interrupting on GIC irq 38 [ 1.0000060] iic1 at sunxitwi0: I2C bus [ 1.0000060] touchscreen at iic1 addr 0x5d not configured [ 1.0000060] sunxitwi1 at simplebus1: Marvell TWSI controller [ 1.0000060] sunxitwi1: interrupting on GIC irq 39 [ 1.0000060] iic2 at sunxitwi1: I2C bus [ 1.0000060] magnetometer at iic2 addr 0x1e not configured [ 1.0000060] light-sensor at iic2 addr 0x48 not configured [ 1.0000060] accelerometer at iic2 addr 0x68 not configured [ 1.0000060] sunxigpio0: function 'i2c2' not supported on PE14 [ 1.0000060] sunxigpio0: function 'i2c2' not supported on PE15 [ 1.0000060] sunxitwi2 at simplebus1: Marvell TWSI controller [ 1.0000060] sunxitwi2: interrupting on GIC irq 40 [ 1.0000060] iic3 at sunxitwi2: I2C bus [ 1.0000060] /soc/gpu@1c40000 at simplebus1 not configured [ 1.0000060] /soc/deinterlace@1e00000 at simplebus1 not configured [ 1.0000060] sunxiwdt0 at simplebus1: Watchdog [ 1.0000060] sunxiwdt0: default watchdog period is 16 seconds [ 1.0000060] /soc/bus@1000000/rotate@20000 at sunxide2bus0 not configured [ 1.0000060] sunxidrm0: failed to activate endpoint: 19 [ 1.0000060] sunxidrm0: failed to activate endpoint: 19 [ 1.0000060] sunxidrm0: info: No connectors reported connected with modes [ 1.0000060] kern info: [drm] Cannot find any crtc or sizes - going 1024x768 [ 1.0000060] sunxidrm0: reserved 35 MB DRAM for CMA [ 1.0000060] sunxifb0 at sunxidrm0 [ 1.0000060] wsdisplay0 at sunxifb0 kbdmux 1: console (default, vt100 emulation) [ 1.0000060] kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 1.0000060] kern info: [drm] No driver support for vblank timestamp query. [ 1.0000060] sunxidrm0: initialized sunxi 1.0.0 20190123 on minor 0 [ 1.0000060] ausoc0: codec: sun8icodec0, cpu: sunxii2s0, aux: a64acodec0 simpleamp0 [ 1.0000060] audio0 at ausoc0: playback, capture, full duplex [ 1.0000060] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback [ 1.0000060] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording [ 1.0000060] spkr0 at audio0: PC Speaker (synthesized) [ 1.0000060] wsbell at spkr0 not configured [ 1.0000060] cpu1: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled [ 1.0000060] cpu1: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B [ 1.9782644] cpu1: Dcache line 64, Icache line 64 [ 1.9882535] cpu1: L1 32KB/64B 2-way read-allocate VIPT Instruction cache [ 1.9982539] cpu1: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache [ 2.0082538] cpu1: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache [ 2.0182544] cpu1: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID [ 2.0282542] cpu1: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add [ 2.0482547] cpu2: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled [ 2.0482547] cpu2: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B [ 2.0582552] cpu2: Dcache line 64, Icache line 64 [ 2.0682550] cpu2: L1 32KB/64B 2-way read-allocate VIPT Instruction cache [ 2.0782555] cpu2: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache [ 2.0882556] cpu2: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache [ 2.0982561] cpu2: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID [ 2.1082561] cpu2: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add [ 2.1282565] cpu3: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled [ 2.1382569] cpu3: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B [ 2.1482569] cpu3: Dcache line 64, Icache line 64 [ 2.1482569] cpu3: L1 32KB/64B 2-way read-allocate VIPT Instruction cache [ 2.1582577] cpu3: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache [ 2.1682575] cpu3: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache [ 2.1882580] cpu3: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID [ 2.1882580] cpu3: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add [ 2.2082584] cpufreqdt0: couldn't acquire cpu-supply [ 2.2229417] cpufreqdt1: couldn't acquire cpu-supply [ 2.2298611] cpufreqdt2: couldn't acquire cpu-supply [ 2.2298611] cpufreqdt3: couldn't acquire cpu-supply [ 2.2498622] sdmmc0 at sunximmc0 [ 2.2498622] sdmmc1 at sunximmc1 [ 2.2598630] sdmmc2 at sunximmc2 [ 2.2598630] sun8icrypto0: AES-128 self-test initiated [ 2.2698626] armpmu0: interrupting on GIC irq 148 [ 2.2798638] armpmu0: interrupting on GIC irq 149 [ 2.2898627] armpmu0: interrupting on GIC irq 150 [ 2.2998632] armpmu0: interrupting on GIC irq 151 [ 2.2998632] uhub0 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1 [ 2.3098635] uhub1 at usb0: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1 [ 2.3198636] uhub2 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1 [ 2.3298636] uhub3 at usb3: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1 [ 2.3398652] sun8icrypto0: AES-128 self-test passed [ 2.4198656] sdmmc1: 4-bit width, 50.000 MHz [ 2.4298656] sdmmc2: switch error [ 2.4398672] sdmmc1: MAX_BLK_SIZE1 = 512 [ 2.4398672] (manufacturer 0x24c, product 0xb703, standard function interface code 0x7) at sdmmc1 function 1 not configured [ 2.4498671] ld2 at sdmmc2: <0x45:0x0100:DA4032:0x00:0xff342515:0x000> [ 2.4615602] ld2: 29820 MB, 7573 cyl, 128 head, 63 sec, 512 bytes/sect x 61071360 sectors [ 2.4698670] ld2: 8-bit width, 4096 KB cache, 52.000 MHz [ 3.0598784] WARNING: 9 errors while detecting hardware; check system log. [ 3.0698787] boot device: ld2 [ 3.0698787] root on ld2a dumps on ld2b [ 3.0798793] root file system type: ffs [ 3.0898790] kern.module.path=/stand/evbarm/9.2/modules [ 3.0998801] WARNING: clock lost 7802 days [ 3.0998801] WARNING: using filesystem time [ 3.1104341] WARNING: CHECK AND RESET THE DATE!