-> Is anyone working on porting NetBSD to the Pinephone? It would be great to -> run NetBSD on it. I downloaded the Pinebook A64 9.0RC1 image from Jared -> McNeil's site and it almost boots (see dmesg below). For some reason, 9.0 -> RELEASE prints out garbage and -current throws an error "RESET BASEBOARD" -> almost immediately. -> Update - I got the Pinephone to boot but the filesystem becomes corrupted after resizing. I had to comment out those sections in rc.conf. With the resize_ffs commented out, I can get to a login prompt and log in as root. I also had to disable the sunxitwi device in GENERIC64. I took a quick look at the Linux driver and the NetBSD driver seems to be close. Will look some more when I get a chance. The microsd is a Samsung Pro+ 128GB. Output from dmesg with the corrupt filesystem. >> NetBSD/evbarm EFI Boot (aarch64), Revision 1.11 (Sun Mar 8 00:59:17 UTC 2020) (from NetBSD 9.0_RC1) Press return to boot now, any other key for boot prompt booting netbsd - starting in 0 seconds. 5372600+2472128+2213876+1925652 [698976+489569]=0xf15650 EHCI failed to shut down host controller. EHCI failed to shut down host controller. [ 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 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.0_RC1 (GENERIC64) #74: Mon Mar 30 05:09:36 PDT 2020 [ 1.0000000] allen@abishai:/home/allen/work/nbsd_obj/sys/arch/evbarm/compile/GENERIC64 [ 1.0000000] total memory = 2033 MB [ 1.0000000] avail memory = 1960 MB [ 1.0000000] armfdt0 (root) [ 1.0000000] simplebus0 at armfdt0: Pinebook [ 1.0000000] simplebus1 at simplebus0 [ 1.0000000] cpus0 at simplebus0 [ 1.0000000] simplebus2 at simplebus0 [ 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] cpu2 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core) [ 1.0000000] cpu2: package 0, core 2, smt 0 [ 1.0000000] cpu3 at cpus0: Cortex-A53 r0p4 (Cortex V8-A core) [ 1.0000000] cpu3: package 0, core 3, smt 0 [ 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.0000090] sun50ia64ccu0 at simplebus1: A64 CCU [ 1.0000090] sun50ia64rccu0 at simplebus1: A64 PRCM CCU [ 1.0000090] sunxinmi0 at simplebus1: R_INTC [ 1.0000090] sunxigpio0 at simplebus1: PIO [ 1.0000090] gpio0 at sunxigpio0: 103 pins [ 1.0000090] sunxigpio0: interrupting on GIC irq 43 [ 1.0000090] sunxigpio1 at simplebus1: PIO [ 1.0000090] gpio1 at sunxigpio1: 13 pins [ 1.0000090] sunxigpio1: interrupting on GIC irq 77 [ 1.0000090] sunxipwm0 at simplebus1: PWM [ 1.0000090] sunxide2bus0 at simplebus1: DE2 Bus [ 1.0000090] sunxirsb0 at simplebus1: RSB [ 1.0000090] sunxirsb0: interrupting on GIC irq 71 [ 1.0000090] iic0 at sunxirsb0: I2C bus [ 1.0000090] axppmic0 at iic0 addr 0x3a3: AXP803 [ 1.0000090] axpreg0 at axppmic0: vcc-hdmi [ 1.0000090] axpreg1 at axppmic0: vcc-edp [ 1.0000090] axpreg2 at axppmic0: avdd-csi [ 1.0000090] axpreg3 at axppmic0: vcc-wifi [ 1.0000090] axpreg4 at axppmic0: cpvdd [ 1.0000090] axpreg5 at axppmic0: eldo2 [ 1.0000090] axpreg6 at axppmic0: vdd-1v8-csi [ 1.0000090] axpreg7 at axppmic0: vcc-1v2-hsic [ 1.0000090] axpreg8 at axppmic0: vdd-cpus [ 1.0000090] axpreg9 at axppmic0: vcc-3v3 [ 1.0000090] axpreg10 at axppmic0: vdd-cpux [ 1.0000090] axpreg11 at axppmic0: dcdc3 [ 1.0000090] axpreg12 at axppmic0: dcdc4 [ 1.0000090] axpreg13 at axppmic0: vcc-dram [ 1.0000090] axpreg14 at axppmic0: vdd-sys [ 1.0000090] axpreg15 at axppmic0: vcc-csi [ 1.0000090] axpreg16 at axppmic0: vcc-pl [ 1.0000090] axpreg17 at axppmic0: vcc-pll-avcc [ 1.0000090] sun6idma0 at simplebus1: DMA controller (8 channels) [ 1.0000090] sun6idma0: interrupting on GIC irq 82 [ 1.0000090] fregulator0 at simplebus0: bl-3v3 [ 1.0000090] sunxisid0 at simplebus1: Security ID EFUSE [ 1.0000090] com0 at simplebus1: ns16550a, working fifo [ 1.0000090] com0: console [ 1.0000090] com0: interrupting on GIC irq 32 [ 1.0000090] com1 at simplebus1: ns16550a, working fifo [ 1.0000090] com1: interrupting on GIC irq 33 [ 1.0000090] fregulator1 at simplebus0: vcc3v3 [ 1.0000090] sunxide2ccu0 at sunxide2bus0: DE2 CCU [ 1.0000090] sunxidrm0 at simplebus0: Display Engine Pipeline [ 1.0000090] sunxiusbphy0 at simplebus1: USB PHY [ 1.0000090] sunxihdmiphy0 at simplebus1: HDMI PHY [ 1.0000090] sunximixer0 at sunxide2bus0: Display Engine Mixer [ 1.0000090] sunximixer1 at sunxide2bus0: Display Engine Mixer [ 1.0000090] ausoc0 at simplebus0: sun50i-a64-audio [ 1.0000090] a64acodec0 at simplebus1: A64 Audio Codec (analog part) [ 1.0000090] /audio-amplifier at simplebus0 not configured [ 1.0000090] sunxii2s0 at simplebus1: Audio Codec (digital part) [ 1.0000090] sun8icodec0 at simplebus1: Audio Codec [ 1.0000090] sun8icodec0: interrupting on GIC irq 60 [ 1.0000090] sunxilcdc0 at simplebus1: TCON0 [ 1.0000090] sunxilcdc0: interrupting on GIC irq 118 [ 1.0000090] sunxilcdc1 at simplebus1: TCON1 [ 1.0000090] sunxilcdc1: interrupting on GIC irq 119 [ 1.0000090] /soc/i2c@1f02400 at simplebus1 not configured [ 1.0000090] dwhdmi0 at simplebus1: HDMI TX [ 1.0000090] dwhdmi0: version 1.32a, phytype 0xfe [ 1.0000090] mmcpwrseq0 at simplebus0: Simple MMC power sequence provider [ 1.0000090] sunxirtc0 at simplebus1: RTC [ 1.0000090] dispcon0 at simplebus0: HDMI connector [ 1.0000090] sunxii2s1 at simplebus0: I2S/PCM controller [ 1.0000090] sunximmc0 at simplebus1: SD/MMC controller [ 1.0000090] sunximmc0: interrupting on GIC irq 92 [ 1.0000090] sunximmc1 at simplebus1: SD/MMC controller [ 1.0000090] sunximmc1: interrupting on GIC irq 93 [ 1.0000090] sunximmc2 at simplebus1: SD/MMC controller [ 1.0000090] sunximmc2: interrupting on GIC irq 94 [ 1.0000090] ehci0 at simplebus1: EHCI [ 1.0000090] ehci0: interrupting on GIC irq 104 [ 1.0000090] ehci0: 1 companion controller, 1 port [ 1.0000090] usb0 at ehci0: USB revision 2.0 [ 1.0000090] ohci0 at simplebus1: OHCI [ 1.0000090] ohci0: interrupting on GIC irq 105 [ 1.0000090] ohci0: OHCI version 1.0 [ 1.0000090] usb1 at ohci0: USB revision 1.0 [ 1.0000090] ehci1 at simplebus1: EHCI [ 1.0000090] ehci1: interrupting on GIC irq 106 [ 1.0000090] ehci1: 1 companion controller, 1 port [ 1.0000090] usb2 at ehci1: USB revision 2.0 [ 1.0000090] ohci1 at simplebus1: OHCI [ 1.0000090] ohci1: interrupting on GIC irq 107 [ 1.0000090] ohci1: OHCI version 1.0 [ 1.0000090] usb3 at ohci1: USB revision 1.0 [ 1.0000090] /soc/gpu@1c40000 at simplebus1 not configured [ 1.0000090] sunxiwdt0 at simplebus1: Watchdog [ 1.0000090] sunxiwdt0: default watchdog period is 16 seconds [ 1.0000090] sunxithermal0 at simplebus1: Thermal sensor controller [ 1.0000090] sunxithermal0: interrupting on GIC irq 63 [ 1.0000090] sunxithermal0: cpu: alarm 85C hyst 58C shut 106C [ 1.0000090] sunxithermal0: gpu1: alarm 85C hyst 58C shut 106C [ 1.0000090] sunxithermal0: gpu2: alarm 85C hyst 58C shut 106C [ 1.0000090] pwmbacklight0 at simplebus0: PWM Backlight [ 1.0000090] ausoc1 at simplebus0: hdmi-audio [ 1.0000090] armpmu0 at simplebus0: Performance Monitor Unit [ 1.0000090] psci0 at simplebus0: PSCI 1.1 [ 1.0000090] gpiokeys0 at simplebus0: Lid Switch [ 1.0000090] /soc/video-codec@1c0e000 at simplebus1 not configured [ 1.0000090] sunximixer0: activating port 1 endpoint 0 (direct) [ 1.0000090] sunxilcdc0: activating port 0 endpoint 0 [ 1.0000090] sunxidrm0: failed to activate endpoint: 19 [ 1.0000090] sunximixer1: activating port 1 endpoint 0 (direct) [ 1.0000090] sunxilcdc1: activating port 0 endpoint 0 [ 1.0000090] dwhdmi0: activating port 0 endpoint 0 [ 1.0000090] sunxidrm0: info: No connectors reported connected with modes [ 1.0000090] kern info: [drm] Cannot find any crtc or sizes - going 1024x768 [ 1.0000090] sunxidrm0: reserved 35 MB DRAM for CMA [ 1.0000090] sunxifb0 at sunxidrm0 [ 1.0000090] wsdisplay0 at sunxifb0 kbdmux 1: console (default, vt100 emulation) [ 1.0000090] kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 1.0000090] kern info: [drm] No driver support for vblank timestamp query. [ 1.0000090] sunxidrm0: initialized sunxi 1.0.0 20190123 on minor 0 [ 1.0000090] ausoc0: codec: sun8icodec0, cpu: sunxii2s0, aux: a64acodec0 [ 1.0000090] audio0 at ausoc0: playback, capture, full duplex [ 1.0000090] audio0: slinear_le:16 2ch 48000Hz, blk 40ms for playback [ 1.0000090] audio0: slinear_le:16 2ch 48000Hz, blk 40ms for recording [ 1.0000090] spkr0 at audio0: PC Speaker (synthesized) [ 1.0000090] wsbell at spkr0 not configured [ 1.0000090] ausoc1: codec: dwhdmi0, cpu: sunxii2s1 [ 1.0000090] audio1 at ausoc1: playback [ 1.0000090] audio1: slinear_le:16 -> slinear_le:16 2ch 48000Hz, blk 40ms for playback [ 1.0000090] spkr1 at audio1: PC Speaker (synthesized) [ 1.0000090] wsbell at spkr1 not configured [ 1.0000090] cpu2: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled [ 1.0000090] cpu2: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B [ 1.2858924] cpu2: Dcache line 64, Icache line 64 [ 1.2958799] cpu2: L1 32KB/64B 2-way read-allocate VIPT Instruction cache [ 1.3058804] cpu2: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache [ 1.3158803] cpu2: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache [ 1.3258810] cpu2: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID [ 1.3358807] cpu2: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add [ 1.3558816] cpu1: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled [ 1.3658818] cpu1: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B [ 1.3758815] cpu1: Dcache line 64, Icache line 64 [ 1.3758815] cpu1: L1 32KB/64B 2-way read-allocate VIPT Instruction cache [ 1.3858822] cpu1: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache [ 1.3958819] cpu1: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache [ 1.4058826] cpu1: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID [ 1.4158826] cpu1: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add [ 1.4358831] cpu3: IC enabled, DC enabled, EL0/EL1 stack Alignment check enabled [ 1.4458835] cpu3: Cache Writeback Granule 16B, Exclusives Reservation Granule 16B [ 1.4558835] cpu3: Dcache line 64, Icache line 64 [ 1.4658843] cpu3: L1 32KB/64B 2-way read-allocate VIPT Instruction cache [ 1.4758841] cpu3: L1 32KB/64B 4-way write-back read-allocate write-allocate PIPT Data cache [ 1.4858845] cpu3: L2 512KB/64B 16-way write-back read-allocate write-allocate PIPT Unified cache [ 1.4958847] cpu3: revID=0x80, PMCv3, 4k table, 64k table, 16bit ASID [ 1.5058847] cpu3: auxID=0x11120, FP, CRC32, SHA1, SHA256, AES+PMULL, NEON, rounding, NaN propagation, denormals, 32x64bitRegs, Fused Multiply-Add [ 1.5374611] sdmmc0 at sunximmc0 [ 1.5374611] sdmmc1 at sunximmc1 [ 1.5474805] sdmmc2 at sunximmc2 [ 1.6574824] uhub0 at usb1: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1 [ 1.7674848] uhub1 at usb0: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1 [ 1.8982021] sdmmc1: sdmmc_mem_enable failed with error 60 [ 1.8982021] sdmmc1: couldn't enable card: 60 [ 1.9282023] uhub2 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1 [ 1.9382026] uhub3 at usb3: NetBSD (0000) OHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1 [ 1.9482039] sdmmc0: SD card status: 4-bit, C4 [ 1.9482039] ld0 at sdmmc0: <0x00:0x3000:APPSD:0x00:0x12800000:0x125> [ 1.9710013] sdmmc2: can't re-read EXT_CSD [ 1.9710013] sdmmc2: mem init failed [ 1.9710013] sdmmc2: init failed [ 2.0674484] Lid Switch: lid closed. [ 2.0674484] armpmu0: interrupting on GIC irq 148 [ 2.0774512] armpmu0: interrupting on GIC irq 149 [ 2.0874489] armpmu0: interrupting on GIC irq 150 [ 2.0874489] armpmu0: interrupting on GIC irq 151 [ 2.0974491] ld0: 125 GB, 16317 cyl, 255 head, 63 sec, 512 bytes/sect x 262146048 sectors [ 2.1074492] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz [ 2.6574597] WARNING: 5 errors while detecting hardware; check system log. [ 2.6574597] boot device: ld0 [ 2.6674615] root on ld0a dumps on ld0b [ 2.6774602] root file system type: ffs [ 2.6874612] kern.module.path=/stand/evbarm/9.0/modules [ 2.6874612] WARNING: clock lost 7394 days [ 2.6874612] WARNING: using filesystem time [ 2.7013586] WARNING: CHECK AND RESET THE DATE! Mon Mar 30 12:10:08 UTC 2020 Starting root file system check: /dev/rld0a: BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE /dev/rld0a: UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY. Automatic file system check failed; help! ERROR: ABORTING BOOT (sending SIGTERM to parent)! [1] Terminated rc_real_work "${@}" 2>&1 | Done(1) rc_postprocess Enter pathname of shell or RETURN for /bin/sh: Allen -- Will install Slackware for food. 3:20PM up 6 days, 23:48, 3 users, load averages: 0.40, 0.13, 0.04
Attachment:
pgpmepClmj8Ix.pgp
Description: PGP signature