Date: Mon, 6 Aug 2018 02:48:57 -0700 From: Mark Millard <marklmi@yahoo.com> To: freebsd-arm <freebsd-arm@freebsd.org> Subject: Attempted large jump to head -r337347 for pine64+ 2GB did not finish the boot: eventual MMC handling problems before root file system is mounted Message-ID: <0918383D-5A5A-40A0-ADCB-08C500153BE1@yahoo.com>
next in thread | raw e-mail | index | archive | help
I amd64 -> aarch64 cross built -r337347 and installed it (and 2018.07 u-boot-sunxi-with-spl.bin and loader.efi as bootaa64.efi) as an update. My attempted synchronization of loader.conf and ttys and devd.conf may be incorrect. (Previous to this the Pine64+ 2GB seemed to be working okay but it was at a very old build.) The kernel config has GENERIC included but the various debug features disabled. (My typical operating environment.) For all I know what the below shows might be expected at this point. The kernel seems to have problems with the MMC (that the kernel was loaded from). No other media are attached. mmcsd0 is really an 128 GiByte emmc on an adapter. (This historically worked for me.) Still, the below may give other general hints about the status of things for Pine64+ 2GB's. The serial console shows . . . U-Boot SPL 2018.07 (Aug 02 2018 - 18:42:28 +0000) DRAM: 2048 MiB Trying to boot from MMC1 U-Boot 2018.07 (Aug 02 2018 - 18:42:28 +0000) Allwinner Technology CPU: Allwinner A64 (SUN50I) Model: Pine64+ DRAM: 2 GiB MMC: SUNXI SD/MMC: 0 Loading Environment from FAT... *** Warning - bad CRC, using default = environment Failed (-5) In: serial Out: serial Err: serial Net: phy interface7 eth0: ethernet@1c30000 starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0=20 switch to partitions #0, OK mmc0(part 0) is current device Scanning mmc 0:1... Found EFI removable media binary efi/boot/bootaa64.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disks on usb... Disk usb0 not ready Disk usb1 not ready Disk usb2 not ready Disk usb3 not ready Scanning disks on mmc... MMC Device 1 not found MMC Device 2 not found MMC Device 3 not found Found 3 disks 477384 bytes read in 25 ms (18.2 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC ## Starting EFI application at 40080000 ... Consoles: EFI console =20 FreeBSD/arm64 EFI loader, Revision 1.1 Command line arguments: loader.efi EFI version: 2.70 EFI Firmware: Das U-Boot (rev 0.00) Console: efi (0) Load Path: /\efi\boot\bootaa64.efi Load Device: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x40= 3b,0x1ffe0) Trying ESP: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0x01,0,0x40= 3b,0x1ffe0) Setting currdev to disk0p1: Trying: = /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(2,0x01,0,0x24= 400,0xe600000) Setting currdev to disk0p2: Loading /boot/defaults/loader.conf /boot/kernel/kernel text=3D0x8ce84a data=3D0x148020+0x72caac = syms=3D[0x8+0x11d000+0x8+0x1108a8] /boot/entropy size=3D0x1000 /boot/kernel/umodem.ko text=3D0x2168 text=3D0x1410 data=3D0x102d0+0xfd40 = syms=3D[0x8+0xf30+0x8+0xb73] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 Using DTB provided by EFI at 0x47ffc000. EHCI failed to shut down host controller. KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT r337347M arm64 FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on = LLVM 6.0.1) VT: init without driver. KLD file umodem.ko is missing dependencies Starting CPU 1 (1) Starting CPU 2 (2) Starting CPU 3 (3) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface MAP 47fff000 mode 2 pages 1 MAP 48003000 mode 2 pages 1 MAP b8f20000 mode 2 pages 1 MAP bdfb9000 mode 2 pages 2 kbd0 at kbdmux0 ofwbus0: <Open Firmware Device Tree> clk_fixed0: <Fixed clock> on ofwbus0 clk_fixed1: <Fixed clock> on ofwbus0 clk_fixed2: <Fixed clock> on ofwbus0 simplebus0: <Flattened device tree simple bus> on ofwbus0 ccu_a64ng0: <Allwinner A64 Clock Control Unit NG> mem = 0x1c20000-0x1c203ff on simplebus0 iichb0: <Allwinner Integrated I2C Bus Controller> mem = 0x1c2b000-0x1c2b3ff irq 21 on simplebus0 iicbus0: <OFW I2C bus> on iichb0 regfix0: <Fixed Regulator> on ofwbus0 ccu_sun8i_r0: <Allwinner SUN8I_R Clock Control Unit NG> mem = 0x1f01400-0x1f014ff on simplebus0 psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0 gic0: <ARM Generic Interrupt Controller> mem = 0x1c81000-0x1c81fff,0x1c82000-0x1c83fff,0x1c84000-0x1c85fff,0x1c86000-0x1c= 87fff irq 23 on simplebus0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 224 gpio0: <Allwinner GPIO/Pinmux controller> mem 0x1c20800-0x1c20bff irq = 12,13,14 on simplebus0 gpiobus0: <OFW GPIO bus> on gpio0 gpio1: <Allwinner GPIO/Pinmux controller> mem 0x1f02c00-0x1f02fff irq 26 = on simplebus0 gpiobus1: <OFW GPIO bus> on gpio1 generic_timer0: <ARMv8 Generic Timer> irq 0,1,2,3 on ofwbus0 Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000 rtc0: <Allwinner RTC> mem 0x1f00000-0x1f00053 irq 24,25 on simplebus0 rtc0: registered as a time-of-day clock, resolution 1.000000s awusbphy0: <Allwinner USB PHY> mem = 0x1c19400-0x1c19413,0x1c1a800-0x1c1a803,0x1c1b800-0x1c1b803 on = simplebus0 cpulist0: <Open Firmware CPU Group> on ofwbus0 cpu0: <Open Firmware CPU> on cpulist0 cpu1: <Open Firmware CPU> on cpulist0 cpu2: <Open Firmware CPU> on cpulist0 cpu3: <Open Firmware CPU> on cpulist0 aw_mmc0: <Allwinner Integrated MMC/SD controller> mem = 0x1c0f000-0x1c0ffff irq 4 on simplebus0 mmc0: <MMC/SD bus> on aw_mmc0 ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c1b000-0x1c1b0ff = irq 10 on simplebus0 usbus0: EHCI version 1.0 usbus0 on ehci0 ohci0: <Generic OHCI Controller> mem 0x1c1b400-0x1c1b4ff irq 11 on = simplebus0 usbus1 on ohci0 gpioc0: <GPIO controller> on gpio0 uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 15 on = simplebus0 uart0: console (115384,n,8,1) iic0: <I2C generic I/O> on iicbus0 gpioc1: <GPIO controller> on gpio1 syscon_generic0: <syscon> mem 0x1c00000-0x1c00fff on simplebus0 awg0: <Allwinner Gigabit Ethernet> mem 0x1c30000-0x1c3ffff irq 27 on = simplebus0 miibus0: <MII bus> on awg0 rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 0 on = miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, = 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, = 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, = 1000baseT-FDX-flow-master, auto, auto-flow rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on = miibus0 rgephy1: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, = 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, = 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, = 1000baseT-FDX-flow-master, auto, auto-flow awg0: Ethernet address: 02:ba:b1:c5:93:b7 cryptosoft0: <software crypto> Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 AW_MMC_INT_RESP_TIMEOUT=20 ugen0.1: <Allwinner EHCI root HUB> at usbus0 AW_MMC_INT_RESP_TIMEOUT=20 uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on = usbus0 ugen1.1: <Generic OHCI root HUB> at usbus1 uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on = usbus1 AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_DATA_END_BIT_ERR AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_RESP_TIMEOUT=20 AW_MMC_INT_RESP_TIMEOUT=20 mmc0: Failed to set VCCQ for card at relative address 2 uhub1: 1 port with 1 removable, self powered uhub0: 1 port with 1 removable, self powered aw_mmc0: controller timeout aw_mmc0: timeout updating clock aw_mmc0: controller timeout aw_mmc0: timeout updating clock aw_mmc0: controller timeout aw_mmc0: timeout updating clock aw_mmc0: controller timeout aw_mmc0: Spurious interrupt - no active request, rint: 0x00000000 mmcsd0: Error reading EXT_CSD Timeout device_attach: mmcsd0 attach returned 6 Release APs...done Trying to mount root from ufs:/dev/ufs/PINE64P2Grootfs [rw,noatime]... CPU 0: ARM Cortex-A53 r0p4mountroot: waiting for device = /dev/ufs/PINE64P2Grootfs... affinity: 0 Instruction Set Attributes 0 =3D <AES+PMULL,SHA1,SHA2,CRC32> Instruction Set Attributes 1 =3D <> Processor Features 0 =3D <AdvSIMD,Float,EL3 32,EL2 32,EL1 = 32,EL0 32> Processor Features 1 =3D <0> Memory Model Features 0 =3D <4k Granule,64k = Granule,MixedEndian,S/NS Mem,16bit ASID,1TB PA> Memory Model Features 1 =3D <> Memory Model Features 2 =3D <32b CCIDX,48b VA> Debug Features 0 =3D <2 CTX Breakpoints,4 Watchpoints,6 = Breakpoints,PMUv3,Debug v8> Debug Features 1 =3D <0> Auxiliary Features 0 =3D <0> Auxiliary Features 1 =3D <0> CPU 1: ARM Cortex-A53 r0p4 affinity: 1 CPU 2: ARM Cortex-A53 r0p4 affinity: 2 CPU 3: ARM Cortex-A53 r0p4 affinity: 3 Mounting from ufs:/dev/ufs/PINE64P2Grootfs failed with error 19. Loader variables: vfs.root.mountfrom=3Dufs:/dev/ufs/PINE64P2Grootfs vfs.root.mountfrom.options=3Drw,noatime Manual root filesystem specification: <fstype>:<device> [options] Mount <device> using filesystem <fstype> and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:tank cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) <empty line> Abort manual input mountroot> ? List of GEOM managed disk devices: =20 mountroot>=20 The "M" in -r337347M is mostly for code tied to powerpc family experiments. (I try to have a single /usr/src/ code base.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0918383D-5A5A-40A0-ADCB-08C500153BE1>