This is the latest miniroot-am335x-60.fs onstalling on a BeagleBone Black. Unlike previous attempts, it installs on the internal MMC, creating and mounting the (auto-partitioned) filesystem. Entire log is below.
While figuring out the disks and where to boot from, the EFI booting code (is it the EFI booting code) aventually concludes that there are 6 disks - that seems wrong. Or is there something in enumerating devices on the BBB that really makes it six? However, it boots from the miniroot card just fine. Jan Connected to /dev/ttyU0 (speed 115200) U-Boot SPL 2016.07 (Aug 29 2016 - 02:55:35) Trying to boot from MMC1 MMC partition switch failed *** Warning - MMC partition switch failed, using default environment reading u-boot.img reading u-boot.img U-Boot 2016.07 (Aug 29 2016 - 02:55:35 -0600) Watchdog enabled I2C: ready DRAM: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Warning - bad CRC, using default environment Net: <ethaddr> not set. Validating first E-fuse MAC cpsw, usb_ether Press SPACE to abort autoboot in 2 seconds switch to partitions #0, OK mmc0 is current device SD/MMC found on device 0 reading boot.scr ** Unable to read file boot.scr ** reading uEnv.txt ** Unable to read file uEnv.txt ** switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... reading /am335x-boneblack.dtb 32777 bytes read in 10 ms (3.1 MiB/s) Found EFI removable media binary efi/boot/bootarm.efi reading efi/boot/bootarm.efi 65192 bytes read in 16 ms (3.9 MiB/s) ## Starting EFI application at 0x82000000 ... Scanning disks on usb... Scanning disks on mmc... MMC Device 2 not found MMC Device 3 not found Found 6 disks >> OpenBSD/armv7 BOOTARM 0.1 boot> cannot open sd0a:/etc/random.seed: No such file or directory booting sd0a:/bsd: 2168220+7975752+443068 [80+310432+152029]=0xa90670 OpenBSD/armv7 booting ... arg0 0x80000000 arg1 0xe05 arg2 0x88000000 Allocating page tables freestart = 0x80d91000, free_pages = 127599 (0x0001f26f) IRQ stack: p0x80dbf000 v0xc0dbf000 ABT stack: p0x80dc0000 v0xc0dc0000 UND stack: p0x80dc1000 v0xc0dc1000 SVC stack: p0x80dc2000 v0xc0dc2000 Creating L1 page table at 0x80d94000 Mapping kernel Constructing L2 page tables undefined page pmap board type: 3589 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2016 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 6.0-current (RAMDISK) #13: Wed Sep 7 17:05:02 AEST 2016 j...@imx.jsg.id.au:/usr/src/sys/arch/armv7/compile/RAMDISK real mem = 536870912 (512MB) avail mem = 512028672 (488MB) mainbus0 at root: TI AM335x BeagleBone Black cpu0 at mainbus0: ARM Cortex A8 R3 rev 2 (ARMv7 core) cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled cpu0: 32KB(64b/l,4way) I-cache, 32KB(64b/l,4way) wr-back D-cache omap0 at mainbus0 prcm0 at omap0 rev 0.2 sitaracm0 at omap0: control module, rev 1.0 omap0: device edma unit 0 not configured dmtimer0 at omap0 rev 3.1 dmtimer1 at omap0 rev 3.1 simplebus0 at mainbus0: "ocp" simplebus1 at simplebus0: "l4_wkup" simplebus2 at simplebus1: "scm" intc0 at simplebus0 rev 5.0 omgpio0 at simplebus0: rev 0.1 gpio0 at omgpio0: 32 pins omgpio1 at simplebus0: rev 0.1 gpio1 at omgpio1: 32 pins omgpio2 at simplebus0: rev 0.1 gpio2 at omgpio2: 32 pins omgpio3 at simplebus0: rev 0.1 gpio3 at omgpio3: 32 pins com0 at simplebus0: ti16750, 64 byte fifo com0: console tiiic0 at simplebus0 rev 0.11 iic0 at tiiic0 "ti,tps65217" at iic0 addr 0x24 not configured "at,24c256" at iic0 addr 0x50 not configured "nxp,tda998x" at iic0 addr 0x70 not configured tiiic1 at simplebus0 rev 0.11 iic1 at tiiic1 "at,24c256" at iic1 addr 0x54 not configured "at,24c256" at iic1 addr 0x55 not configured "at,24c256" at iic1 addr 0x56 not configured "at,24c256" at iic1 addr 0x57 not configured ommmc0 at simplebus0 sdmmc0 at ommmc0: 1-bit, mmc high-speed ommmc1 at simplebus0 sdmmc1 at ommmc1: 1-bit, mmc high-speed omdog0 at simplebus0 rev 0.1 cpsw0 at simplebus0: version 1.12 (0), address 90:59:af:82:2e:7e ukphy0 at cpsw0 phy 0: Generic IEEE 802.3u media interface, rev. 1: OUI 0x0001f0, model 0x000f scsibus0 at sdmmc0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <SD/MMC, MS, 0000> SCSI2 0/direct fixed sd0: 15236MB, 512 bytes/sector, 31203328 sectors scsibus1 at sdmmc1: 2 targets, initiator 0 sd1 at scsibus1 targ 1 lun 0: <SD/MMC, MMC02G, 0000> SCSI2 0/direct fixed sd1: 1832MB, 512 bytes/sector, 3751936 sectors boot device: sd0 root on rd0a swap on rd0b dump on rd0b WARNING: CHECK AND RESET THE DATE! erase ^?, werase ^W, kill ^U, intr ^C, status ^T Welcome to the OpenBSD/armv7 6.0 installation program. (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? i At any prompt except password prompts you can escape to a shell by typing '!'. Default answers are shown in []'s and are selected by pressing RETURN. You can exit this program at any time by pressing Control-C, but this can leave your system in an inconsistent state. Terminal type? [vt220] System hostname? (short form, e.g. 'foo') bbb Available network interfaces are: cpsw0. Which network interface do you wish to configure? (or 'done') [cpsw0] IPv4 address for cpsw0? (or 'dhcp' or 'none') [dhcp] DHCPDISCOVER on cpsw0 - interval 1 DHCPOFFER from 192.168.44.1 (68:05:ca:33:6a:61) DHCPREQUEST on cpsw0 to 255.255.255.255 DHCPACK from 192.168.44.1 (68:05:ca:33:6a:61) bound to 192.168.44.2 -- renewal in 300 seconds. IPv6 address for cpsw0? (or 'rtsol' or 'none') [none] Available network interfaces are: cpsw0. Which network interface do you wish to configure? (or 'done') [done] Default IPv4 route? (IPv4 address or none) [192.168.44.1] add net default: gateway 192.168.44.1 Using DNS domainname stare.cz Using DNS nameservers at 192.168.44.1 147.32.232.234 Password for root account? (will not echo) Password for root account? (again) Start sshd(8) by default? [yes] Setup a user? (enter a lower-case loginname, or 'no') [no] Since no user was setup, root logins via sshd(8) might be useful. WARNING: root is targeted by password guessing attacks, pubkeys are safer. Allow root ssh login? (yes, no, prohibit-password) [no] What timezone are you in? ('?' for list) [Europe/Prague] Available disks are: sd0 sd1. Which disk is the root disk? ('?' for details) [auto] ? sd0: SD/MMC MS (14.9G) sd1: SD/MMC MMC02G (1.8G) Available disks are: sd0 sd1. Which disk is the root disk? ('?' for details) [auto] sd1 Disk: sd1 geometry: 233/255/63 [3751936 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start: size ] ------------------------------------------------------------------------------- *0: 0C 0 32 33 - 2 42 40 [ 2048: 32768 ] Win95 FAT32L 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: A6 2 42 41 - 233 139 34 [ 34816: 3717120 ] OpenBSD Use (W)hole disk$ or (E)dit the MBR? [whole] Creating a msdos partition and an OpenBSD partition for rest of sd1...done. /dev/rsd1i: 32668 sectors in 8167 FAT16 clusters (2048 bytes/cluster) bps=512 spc=4 res=1 nft=2 rde=512 sec=32768 mid=0xf8 spf=32 spt=63 hds=255 hid=2048 The auto-allocated layout for sd1 is: # size offset fstype [fsize bsize cpg] a: 1758.3M 34816 4.2BSD 2048 16384 1 # / b: 56.7M 3635744 swap c: 1832.0M 0 unused i: 16.0M 2048 MSDOS Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] a /dev/rsd1a: 1758.3MB in 3600928 sectors of 512 bytes 9 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each Available disks are: sd0. Which disk do you wish to initialize? (or 'done') [done] /dev/sd1a (85b060d8be5a7aea.a) on /mnt type ffs (rw, asynchronous, local) Let's install the sets! Location of sets? (disk http nfs or 'done') [http] HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] HTTP Server? (hostname, list#, 'done' or '?') [ftp2.eu.openbsd.org] Server directory? [pub/OpenBSD/snapshots/armv7] csad ftp: Error retrieving file: 404 Not Found Looked at http://ftp2.eu.openbsd.org/csad and found no OpenBSD/armv7 6.0 sets. The set names looked for were: bsd comp60.tgz xshare60.tgz site60-bbb.tgz bsd.rd man60.tgz xfont60.tgz bsd.mp game60.tgz xserv60.tgz base60.tgz xbase60.tgz site60.tgz Location of sets? (disk http nfs or 'done') [http] HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] HTTP Server? (hostname, list#, 'done' or '?') [ftp2.eu.openbsd.org] ftp.eu.openbsd.org Server directory? [pub/OpenBSD/snapshots/armv7] Select sets by entering a set name, a file name pattern or 'all'. De-select sets by prepending a '-' to the set name, file name pattern or 'all'. Selected sets are labelled '[X]'. [X] bsd [X] comp60.tgz [X] xbase60.tgz [X] xserv60.tgz [X] bsd.rd [X] man60.tgz [X] xshare60.tgz [X] base60.tgz [X] game60.tgz [X] xfont60.tgz Set name(s)? (or 'abort' or 'done') [done] Cannot determine prefetch area. Continue without verification? [no] yes Installing bsd 100% |**************************| 4539 KB 00:03 ETA Installing bsd.rd 100% |**************************| 10364 KB 00:07 ETA Installing base60.tgz 100% |**************************| 51347 KB - 02:31eETA Extracting etc.tgz 100% |**************************| 187 KB 00:00 ETA Installing comp60.tgz 100% |**************************| 44473 KB - 01:30eETA Installing man60.tgz 100% |**************************| 8540 KB - 00:36eETA Installing game60.tgz 100% |**************************| 2708 KB 00:11 ETA Installing xbase60.tgz 100% |**************************| 19298 KB 00:51 ETA Extracting xetc.tgz 100% |**************************| 8972 00:00 ETA Installing xshare60.tgz 100% |**************************| 4406 KB - 00:25eETA Installing xfont60.tgz 100% |**************************| 39357 KB 01:18 ETA Installing xserv60.tgz 100% |**************************| 9436 KB 00:11 ETA Location of sets? (disk http nfs or 'done') [done] Time appears wrong. Set to 'Thu Sep 8 13:03:27 CEST 2016'? [yes] Saving configuration files...done. Making all device nodes...done. CONGRATULATIONS! Your OpenBSD install has been successfully completed! To boot the new system, enter 'reboot' at the command prompt. When you login to your new system the first time, please read your mail using the 'mail' command. # halt syncing disks... done The operating system has halted. Please press any key to reboot. (remove the card so that it boots from the internal mmc where we just installed) U-Boot SPL 2016.07 (Aug 29 2016 - 02:55:35) Trying to boot from MMC2 Card did not respond to voltage select! *** Warning - MMC init failed, using default environment reading u-boot.img reading u-boot.img U-Boot 2016.07 (Aug 29 2016 - 02:55:35 -0600) Watchdog enabled I2C: ready DRAM: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 *** Warning - bad CRC, using default environment Net: <ethaddr> not set. Validating first E-fuse MAC cpsw, usb_ether Press SPACE to abort autoboot in 2 seconds Card did not respond to voltage select! Card did not respond to voltage select! Card did not respond to voltage select! Card did not respond to voltage select! Card did not respond to voltage select! switch to partitions #0, OK mmc1(part 0) is current device Scanning mmc 1:1... reading /am335x-boneblack.dtb 32777 bytes read in 15 ms (2.1 MiB/s) Found EFI removable media binary efi/boot/bootarm.efi reading efi/boot/bootarm.efi 65192 bytes read in 19 ms (3.3 MiB/s) ## Starting EFI application at 0x82000000 ... Scanning disks on usb... Scanning disks on mmc... Card did not respond to voltage select! MMC Device 2 not found MMC Device 3 not found Found 5 disks >> OpenBSD/armv7 BOOTARM 0.1 boot> booting sd0a:/bsd: 3749836+147716+494840 [80+504400+239714]=0x4eaa9c OpenBSD/armv7 booting ... arg0 0x80000000 arg1 0xe05 arg2 0x88000000 Allocating page tables freestart = 0x807eb000, free_pages = 129045 (0x0001f815) IRQ stack: p0x80819000 v0xc0819000 ABT stack: p0x8081a000 v0xc081a000 UND stack: p0x8081b000 v0xc081b000 SVC stack: p0x8081c000 v0xc081c000 Creating L1 page table at 0x807ec000 Mapping kernel Constructing L2 page tables undefined page pmap [ using 744608 bytes of bsd ELF symbol table ] board type: 3589 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2016 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 6.0-current (GENERIC) #25: Wed Sep 7 16:42:05 AEST 2016 j...@imx.jsg.id.au:/usr/src/sys/arch/armv7/compile/GENERIC real mem = 536870912 (512MB) avail mem = 517836800 (493MB) mainbus0 at root: TI AM335x BeagleBone Black cpu0 at mainbus0: ARM Cortex A8 R3 rev 2 (ARMv7 core) cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled cpu0: 32KB(64b/l,4way) I-cache, 32KB(64b/l,4way) wr-back D-cache omap0 at mainbus0 prcm0 at omap0 rev 0.2 sitaracm0 at omap0: control module, rev 1.0 omap0: device edma unit 0 not configured dmtimer0 at omap0 rev 3.1 dmtimer1 at omap0 rev 3.1 simplebus0 at mainbus0: "ocp" simplebus1 at simplebus0: "l4_wkup" simplebus2 at simplebus1: "scm" intc0 at simplebus0 rev 5.0 omgpio0 at simplebus0: rev 0.1 gpio0 at omgpio0: 32 pins omgpio1 at simplebus0: rev 0.1 gpio1 at omgpio1: 32 pins omgpio2 at simplebus0: rev 0.1 gpio2 at omgpio2: 32 pins omgpio3 at simplebus0: rev 0.1 gpio3 at omgpio3: 32 pins com0 at simplebus0: ti16750, 64 byte fifo com0: console tiiic0 at simplebus0 rev 0.11 iic0 at tiiic0 "ti,tps65217" at iic0 addr 0x24 not configured "at,24c256" at iic0 addr 0x50 not configured "nxp,tda998x" at iic0 addr 0x70 not configured tiiic1 at simplebus0 rev 0.11 iic1 at tiiic1 "at,24c256" at iic1 addr 0x54 not configured "at,24c256" at iic1 addr 0x55 not configured "at,24c256" at iic1 addr 0x56 not configured "at,24c256" at iic1 addr 0x57 not configured ommmc0 at simplebus0 sdmmc0 at ommmc0: 1-bit, mmc high-speed ommmc1 at simplebus0 sdmmc1 at ommmc1: 1-bit, mmc high-speed omdog0 at simplebus0 rev 0.1 cpsw0 at simplebus0: version 1.12 (0), address 90:59:af:82:2e:7e ukphy0 at cpsw0 phy 0: Generic IEEE 802.3u media interface, rev. 1: OUI 0x0001f0, model 0x000f sdmmc0: can't enable card scsibus0 at sdmmc1: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <SD/MMC, MMC02G, 0000> SCSI2 0/direct fixed sd0: 1832MB, 512 bytes/sector, 3751936 sectors vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets boot device: sd0 root on sd0a (85b060d8be5a7aea.a) swap on sd0b dump on sd0b WARNING: CHECK AND RESET THE DATE! Automatic boot in progress: starting file system checks. /dev/sd0a (85b060d8be5a7aea.a): file system is clean; not checking setting tty flags pf enabled starting network DHCPDISCOVER on cpsw0 - interval 1 DHCPOFFER from 192.168.44.1 (68:05:ca:33:6a:61) DHCPREQUEST on cpsw0 to 255.255.255.255 DHCPACK from 192.168.44.1 (68:05:ca:33:6a:61) bound to 192.168.44.2 -- renewal in 300 seconds. reordering libraries: done. openssl: generating isakmpd/iked RSA keys... done. ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 starting early daemons: syslogd pflogd ntpd. starting RPC daemons:. savecore: no core dump checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd smtpd sndiod. Path to firmware: http://firmware.openbsd.org/firmware/snapshots/ No devices found which need firmware files to be downloaded. starting local daemons: cron. Thu Sep 8 13:05:10 CEST 2016