Date: Mon, 12 Nov 2018 19:27:04 -0500 From: Steve P <sta01@mathistry.net> To: freebsd-arm@freebsd.org Subject: Booting BBGW from SD card Message-ID: <37971F04-CC6F-4BFA-96B4-15E804DBA311@mathistry.net> References: <93F27553-6A83-45B6-B90E-1AD18C13A995@mathistry.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, I have a Beaglebone Green Wireless on which I'd like to run FreeBSD. Upon writing the 12.0-BETA3-arm-armv7-BEAGLEBONE image to an SDHC card, inserting it, and doing the boot button dance during power-up, I see the following from the serial port (some editing to remove spinny-wheel characters and such): =3D=3D=3D=3D=3D=3D U-Boot SPL 2018.09 (Nov 02 2018 - 01:52:44 +0000) Trying to boot from MMC1 Loading Environment from FAT... *** Warning - bad CRC, using default environ= ment Loading Environment from MMC... *** Warning - bad CRC, using default environ= ment U-Boot 2018.09 (Nov 02 2018 - 01:52:44 +0000) CPU : AM335X-GP rev 2.1 I2C: ready DRAM: 512 MiB No match for driver 'omap_hsmmc' No match for driver 'omap_hsmmc' Some drivers were not found MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from FAT... *** Warning - bad CRC, using default environ= ment Loading Environment from MMC... *** Warning - bad CRC, using default environ= ment <ethaddr> not set. Validating first E-fuse MAC Net: Could not get PHY for cpsw: addr 0 cpsw, usb_ether Press SPACE to abort autoboot in 2 seconds switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... 51249 bytes read in 5 ms (9.8 MiB/s) Found EFI removable media binary efi/boot/bootarm.efi 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 2 not found MMC Device 3 not found Found 5 disks 587736 bytes read in 39 ms (14.4 MiB/s) ## Starting EFI application at 82000000 ... Consoles: EFI console FreeBSD/arm EFI loader, Revision 1.1 Command line arguments: l EFI version: 2.70 EFI Firmware: Das U-Boot (rev 8216.2304) Console: efi (0) Load Path: \efi\boot\bootarm.efi Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(= 1,0x01,0,0x42f,0x18fa8) Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(1,0= x01,0,0x42f,0x18fa8) Setting currdev to disk0p1: Trying: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/USB(0x6,0x0)/HD(2,0x01,= 0,0x193d7,0x5e6c11) Setting currdev to disk0p2: Loading /boot/defaults/loader.conf Loading /boot/device.hints Loading /boot/loader.conf Loading /boot/loader.conf.local Loading kernel... /boot/kernel/kernel text=3D0x8605bc...data=3D0xb5660+0x24d3e0 ...syms=3D[0x4= +0xa8c30+0x4+0x10c7c0] Loading configured modules... can't find '/boot/entropy' /boot/kernel/umodem.ko text=3D0x1bf4 text=3D0x1320 data=3D0x1080+0xf88 |syms= =3D[0x4+0x1070+0x4+0xbcd] loading required module 'ucom' /boot/kernel/ucom.ko text=3D0x1f8c text=3D0x2e90 data=3D0x1080+0x17bc |syms=3D= [0x4+0x14f0+0x4+0xc5d] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x87ff1000. Kernel entry at 0x95000180... Kernel args: (null) modulep: 0xc0d3a000 relocation_offset 0 ---<<BOOT>>--- ARM Debug Architecture not supported 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-BETA3 r340039 GENERIC arm FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6= .0.1) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. module_register: cannot register ofwbus/pcib from kernel; already loaded fro= m kernel Module ofwbus/pcib failed to register: 17 module_register: cannot register simplebus/pcib from kernel; already loaded f= rom kernel Module simplebus/pcib failed to register: 17 CPU: ARM Cortex-A8 r3p2 (ECO: 0x00000000) CPU Features: Thumb2, Security, VMSAv7 Optional instructions: UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:1 Cache level 1: 32KB/64B 4-way data cache WT WB Read-Alloc 32KB/64B 4-way instruction cache Read-Alloc Cache level 2: 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc real memory =3D 0 (0 MB) avail memory =3D 505856000 (482 MB) No PSCI/SMCCC call function found Texas Instruments AM335x Processor, Revision ES2.1 arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: <Open Firmware Device Tree> simplebus0: <Flattened device tree simple bus> on ofwbus0 simplebus1: <Flattened device tree simple bus> on simplebus0 am335x_prcm0: <AM335x Power and Clock Management> mem 0x200000-0x203fff on s= implebus1 simplebus2: <Flattened device tree simple bus> mem 0x210000-0x211fff on simp= lebus1 ti_scm0: <TI Control Module> mem 0-0x7ff on simplebus2 regfix0: <Fixed Regulator> on ofwbus0 regfix1: <Fixed Regulator> on ofwbus0 ti_aintc0: <TI AINTC Interrupt Controller> mem 0x48200000-0x48200fff on simp= lebus0 ti_aintc0: Revision 5.0 am335x_prcm0: Clocks: System 24.0 MHz, CPU 1000 MHz cpulist0: <Open Firmware CPU Group> on ofwbus0 cpu0: <Open Firmware CPU> on cpulist0 pmu0: <Performance Monitoring Unit> mem 0x4b000000-0x4bffffff irq 0 on ofwbu= s0 ti_pinmux0: <TI Pinmux Module> mem 0x800-0xa37 on simplebus2 am335x_scm0: <AM335x Control Module Extension> on ti_scm0 gpio0: <TI AM335x General Purpose I/O (GPIO)> mem 0x44e07000-0x44e07fff irq 7= on simplebus0 gpiobus0: <OFW GPIO bus> on gpio0 gpioc0: <GPIO controller> on gpio0 gpio1: <TI AM335x General Purpose I/O (GPIO)> mem 0x4804c000-0x4804cfff irq 8= on simplebus0 gpiobus1: <OFW GPIO bus> on gpio1 gpioc1: <GPIO controller> on gpio1 gpio2: <TI AM335x General Purpose I/O (GPIO)> mem 0x481ac000-0x481acfff irq 9= on simplebus0 gpiobus2: <OFW GPIO bus> on gpio2 gpioc2: <GPIO controller> on gpio2 gpio3: <TI AM335x General Purpose I/O (GPIO)> mem 0x481ae000-0x481aefff irq 1= 0 on simplebus0 gpiobus3: <OFW GPIO bus> on gpio3 gpioc3: <GPIO controller> on gpio3 uart0: <TI UART (16550 compatible)> mem 0x44e09000-0x44e0afff irq 11 on simp= lebus0 uart0: console (115384,n,8,1) uart1: <TI UART (16550 compatible)> mem 0x48024000-0x48025fff irq 13 on simp= lebus0 uart2: <TI UART (16550 compatible)> mem 0x481a6000-0x481a7fff irq 14 on simp= lebus0 iichb0: <TI I2C Controller> mem 0x44e0b000-0x44e0bfff irq 17 on simplebus0 iichb0: I2C revision 4.0 FIFO size: 32 bytes iichb1: <TI I2C Controller> mem 0x4819c000-0x4819cfff irq 19 on simplebus0 iichb1: I2C revision 4.0 FIFO size: 32 bytes sdhci_ti0: <TI MMCHS (SDHCI 2.0)> mem 0x48060000-0x48060fff irq 20 on simple= bus0 mmc0: <MMC/SD bus> on sdhci_ti0 sdhci_ti1: <TI MMCHS (SDHCI 2.0)> mem 0x481d8000-0x481d8fff irq 21 on simple= bus0 mmc1: <MMC/SD bus> on sdhci_ti1 sdhci_ti2: <TI MMCHS (SDHCI 2.0)> mem 0x47810000-0x47810fff irq 22 on simple= bus0 Fatal kernel mode data abort: 'External Abort' on read trapframe: 0xc0e13c88 FSR=3D00001008, FAR=3Dff910114, spsr=3D60000093 r0 =3Dc08c52c0, r1 =3Dff910000, r2 =3D00000114, r3 =3D00000000 r4 =3Dd1e83400, r5 =3Dd1e83418, r6 =3Dfffffc19, r7 =3D00000000 r8 =3Dd1e83400, r9 =3D00005930, r10=3Dc25abb00, r11=3Dc0e13d58 r12=3D0000006e, ssp=3Dc0e13d18, slr=3Dc0682e78, pc =3Dc0683010 [ thread pid 0 tid 100000 ] Stopped at ti_sdhci_attach+0x45c: ldr r0, [r2, r1] db> =3D=3D=3D=3D I get the same results with the 12.0-ALPHA10 image as well and also with two= different SD cards. The board boots the stock Debian from the onboard flash just fine b= ut if I write a Debian image to the SD card, it too hangs during boot. Am I doing something dumb, or does my hardware likely have problems? Thanks for any clues. -Steve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37971F04-CC6F-4BFA-96B4-15E804DBA311>