From owner-freebsd-arm@freebsd.org Tue Nov 13 00:27:14 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E6F271128218 for ; Tue, 13 Nov 2018 00:27:13 +0000 (UTC) (envelope-from sta01@mathistry.net) Received: from mail1.g3.pair.com (mail1.g3.pair.com [IPv6:2607:f440::4227:372]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 453A08BE35 for ; Tue, 13 Nov 2018 00:27:13 +0000 (UTC) (envelope-from sta01@mathistry.net) Received: from mail1.g3.pair.com (localhost [127.0.0.1]) by mail1.g3.pair.com (Postfix) with ESMTP id 506F83FB2D3 for ; Mon, 12 Nov 2018 19:27:05 -0500 (EST) Received: from [172.24.42.112] (unknown [166.66.162.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail1.g3.pair.com (Postfix) with ESMTPSA id 41178582C79 for ; Mon, 12 Nov 2018 19:27:05 -0500 (EST) From: Steve P Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Mon, 12 Nov 2018 19:27:04 -0500 Subject: Booting BBGW from SD card Message-Id: <37971F04-CC6F-4BFA-96B4-15E804DBA311@mathistry.net> References: <93F27553-6A83-45B6-B90E-1AD18C13A995@mathistry.net> To: freebsd-arm@freebsd.org X-Mailer: iPhone Mail (15G77) X-Rspamd-Queue-Id: 453A08BE35 X-Spamd-Result: default: False [-0.26 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.83)[-0.830,0]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.71)[-0.712,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[mathistry.net]; MX_GOOD(-0.01)[mail1.g3.pair.com]; NEURAL_HAM_SHORT(-0.09)[-0.092,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:7859, ipnet:2607:f440::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-0.02)[country: US(-0.09)] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2018 00:27:14 -0000 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 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 ---<>--- 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: simplebus0: on ofwbus0 simplebus1: on simplebus0 am335x_prcm0: mem 0x200000-0x203fff on s= implebus1 simplebus2: mem 0x210000-0x211fff on simp= lebus1 ti_scm0: mem 0-0x7ff on simplebus2 regfix0: on ofwbus0 regfix1: on ofwbus0 ti_aintc0: mem 0x48200000-0x48200fff on simp= lebus0 ti_aintc0: Revision 5.0 am335x_prcm0: Clocks: System 24.0 MHz, CPU 1000 MHz cpulist0: on ofwbus0 cpu0: on cpulist0 pmu0: mem 0x4b000000-0x4bffffff irq 0 on ofwbu= s0 ti_pinmux0: mem 0x800-0xa37 on simplebus2 am335x_scm0: on ti_scm0 gpio0: mem 0x44e07000-0x44e07fff irq 7= on simplebus0 gpiobus0: on gpio0 gpioc0: on gpio0 gpio1: mem 0x4804c000-0x4804cfff irq 8= on simplebus0 gpiobus1: on gpio1 gpioc1: on gpio1 gpio2: mem 0x481ac000-0x481acfff irq 9= on simplebus0 gpiobus2: on gpio2 gpioc2: on gpio2 gpio3: mem 0x481ae000-0x481aefff irq 1= 0 on simplebus0 gpiobus3: on gpio3 gpioc3: on gpio3 uart0: mem 0x44e09000-0x44e0afff irq 11 on simp= lebus0 uart0: console (115384,n,8,1) uart1: mem 0x48024000-0x48025fff irq 13 on simp= lebus0 uart2: mem 0x481a6000-0x481a7fff irq 14 on simp= lebus0 iichb0: mem 0x44e0b000-0x44e0bfff irq 17 on simplebus0 iichb0: I2C revision 4.0 FIFO size: 32 bytes iichb1: mem 0x4819c000-0x4819cfff irq 19 on simplebus0 iichb1: I2C revision 4.0 FIFO size: 32 bytes sdhci_ti0: mem 0x48060000-0x48060fff irq 20 on simple= bus0 mmc0: on sdhci_ti0 sdhci_ti1: mem 0x481d8000-0x481d8fff irq 21 on simple= bus0 mmc1: on sdhci_ti1 sdhci_ti2: 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