On Tue, Jan 28, 2020 at 04:01:49PM +0100, Jan Stary wrote:
> > On Jan 28 15:03:33, [email protected] wrote:
> > > After a failed sysupgrade that reboots midway
> > > https://marc.info/?l=openbsd-misc&m=157856684125898&w=2
> > > my BBB will not boot into anything:
> > >
> > >
> > > U-Boot SPL 2017.03 (Mar 26 2017 - 16:58:08)
> > > Trying to boot from MMC2
> > > MMC partition switch failed
> > > *** Warning - MMC partition switch failed, using default environment
> > >
> > > reading u-boot.img
> > > reading u-boot.img
> > >
> > >
> > > U-Boot 2017.03 (Mar 26 2017 - 16:58:08 -0600)
> > >
> > > CPU : AM335X-GP rev 2.0
> > > I2C: ready
> > > DRAM: 512 MiB
> > > MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
> > > *** Warning - bad CRC, using default environment
> > >
> > > <ethaddr> not set. Validating first E-fuse MAC
> > > Net: 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
> > > 34886 bytes read in 9 ms (3.7 MiB/s)
> > > Found EFI removable media binary efi/boot/bootarm.efi
> > > reading efi/boot/bootarm.efi
> > > 100876 bytes read in 17 ms (5.7 MiB/s)
> > > ## Starting EFI application at 82000000 ...
> > > Scanning disks on usb...
> > > Scanning disks on mmc...
> > > MMC Device 2 not found
> > > MMC Device 3 not found
> > > Found 6 disks
> > > data abort
> > > pc : [<9cf19854>] lr : [<9cf1984c>]
> > > reloc pc : [<7d7c8854>] lr : [<7d7c884c>]
> > > sp : 9df2f908 ip : 9df2fdf0 fp : 9df2fe10
> > > r10: 00000000 r9 : 00000000 r8 : 9ce16018
> > > r7 : 9df2fbf0 r6 : 9ff7c6c1 r5 : ffffff00 r4 : 9ce14000
> > > r3 : 000000aa r2 : 00000000 r1 : 9ce14200 r0 : 9df2fbf0
> > > Flags: nZCv IRQs off FIQs on Mode SVC_32
> > > Resetting CPU ...
> > >
> > > resetting ...
> > >
> > >
> > > The very same happens with a brand new SD card
> > > and the current miniroot-am335x-66.fs
>
> Hm, the 6.6 miniroot boots fine (as opposed to the current miniroot),
> installs fine (I installed on the internal SD), and boots (dmesg below).
>
> So there might be a regression in miniroot-am335x-66.fs
> introduced between the release of 6.6 and now.
>
> How can I help debug this?
>
> Jan
Why are you using such an old version of U-Boot?
The latest armv7 snapshot at the time of writing
OpenBSD 6.6-current (GENERIC) #255: Mon Jan 27 21:28:37 MST 2020
[email protected]:/usr/src/sys/arch/armv7/compile/GENERIC
works on BBB with both U-Boot 2019.01 and U-Boot 2020.01 here, with
>> OpenBSD/armv7 BOOTARM 1.9