Hello, 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. 9.0RC1 appears to stuck looping gttwsi_wait(). I notice Jason Thorpe recently updated gttwsi_core.c to poll. Will this fix the problem? Thanks! Allen Output from the serial console - U-Boot SPL 2018.11-rc3 (Jun 22 2019 - 09:33:43 -0300) DRAM: 2048 MiB Trying to boot from MMC1 NOTICE: BL31: v2.0(debug):ab3d22473df279c61ed4d4873d26b072dcf887e8 NOTICE: BL31: Built : 09:11:41, Jun 22 2019 NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689) NOTICE: BL31: Found U-Boot DTB at 0x4081160, model: Pinebook INFO: ARM GICv2 driver initialized INFO: Configuring SPC Controller NOTICE: BL31: PMIC: Detected AXP803 on RSB. INFO: PMIC: AXP803: dcdc1 voltage: 3.300V INFO: PMIC: AXP803: dcdc5 voltage: 1.200V INFO: PMIC: AXP803: dcdc6 voltage: 1.100V INFO: PMIC: AXP803: dldo1 voltage: 3.300V INFO: PMIC: AXP803: dldo2 voltage: 2.500V INFO: PMIC: AXP803: fldo1 voltage: 1.200V INFO: PMIC: AXP803: Enabling DC1SW INFO: BL31: Platform setup done INFO: BL31: Initializing runtime services INFO: BL31: cortex_a53: CPU workaround for 843419 was applied INFO: BL31: cortex_a53: CPU workaround for 855873 was applied INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x4a000000 INFO: SPSR = 0x3c9 U-Boot 2018.11-rc3 (Jun 22 2019 - 09:33:43 -0300) Allwinner Technology CPU: Allwinner A64 (SUN50I) Model: Pinebook DRAM: 2 GiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 Loading Environment from FAT... Unable to use mmc 1:1... In: serial Out: serial Err: serial Net: No ethernet found. starting USB... USB0: USB EHCI 1.00 - >> NetBSD/evbarm EFI Boot (aarch64), Revision 1.12 (Wed Dec 18 20:21:11 UTC 2019) (from NetBSD 9.0_RC1) Press return to boot now, any other key for boot prompt booting netbsd - starting in 0 seconds. 5376888+2472992+2741620+1926676 [524958+700008+490373]=0x1017220 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) #0: Wed Dec 18 20:21:11 UTC 2019 [ 1.0000000] mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/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] sunxitwi0 at simplebus1: Marvell TWSI controller [ 1.0000090] sunxitwi0: interrupting on GIC irq 76 [ 1.0000090] iic1 at sunxitwi0: I2C bus [ 1.0000090] anxedp0 at iic1 addr 0x38: eDP TX [ 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] anxedp0: activating port 0 endpoint 0 [ 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] sunxitwi0: gttwsi_wait(): timeout, control=0x60 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 [ 1.0000090] sunxitwi0: gttwsi_wait(): timeout, control=0x70 -- Suffering from the Amiga Persecution Complex since 1988. http://www.faqs.org/docs/jargon/A/Amiga-Persecution-Complex.html 6:40PM up 9 days, 13:56, 3 users, load averages: 0.08, 0.05, 0.04
Attachment:
pgpcLeFImNtlN.pgp
Description: PGP signature