> Date: Sat, 11 Dec 2021 13:22:09 +0100 > From: Jan Stary <h...@stare.cz> > > On Dec 10 15:19:32, mark.kette...@xs4all.nl wrote: > > > Date: Fri, 10 Dec 2021 13:37:25 +0000 > > > From: Stuart Henderson <s...@spacehopper.org> > > > > > > On 2021/12/10 13:11, Jan Stary wrote: > > > > This is current/arm64 on a Raspberry Pi 4. > > > > The current bsd.rd fails to do a sysupgrade: > > > > the ramdisk kernel stops at "xhci0: host system error". > > > > Full log below. > > > > > > > > It works fine on RPI3. > > > > > > It should work if you use the https://github.com/pftf/RPi4 firmware, or > > > an older version of U-Boot (the one that was in 6.9 probably works). > > > > Well, the current snapshots should also work. At least my 2G rpi4 now > > works with the U-Boot shipped in snaps. > > With the U-Boot from snaps (that is, the one in miniroot70.img) > I see the same error as in the original post (see below). > > Jan > > > syncing disks... done > rebooting... > > U-Boot 2021.10 (Nov 02 2021 - 22:01:26 -0600) > > DRAM: 7.9 GiB > RPI 4 Model B (0xd03114) > MMC: mmcnr@7e300000: 1, emmc2@7e340000: 0 > Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... In: > serial > Out: serial > Err: serial > Net: eth0: ethernet@7d580000 > PCIe BRCM: link up, 5.0 Gbps x1 (SSC) > starting USB... > Bus xhci_pci: Register 5000420 NbrPorts 5 > Starting the controller > USB XHCI 1.00 > scanning bus xhci_pci for devices... 2 USB Device(s) found > scanning usb for storage devices... 0 Storage Device(s) found > Hit any key to stop autoboot: 0 > switch to partitions #0, OK > mmc0 is current device > Scanning mmc 0:1... > r999;999H6nCardkdidanot(respondEto_voltageCselect! : -110 > Scanning disk mm...@7e300000.blk... > Disk mm...@7e300000.blk not ready > Scanning disk em...@7e340000.blk... > Found 3 disks > No EFI system partition > BootOrder not defined > EFI boot manager: Cannot load any image > Found EFI removable media binary efi/boot/bootaa64.efi > 170790 bytes read in 37 ms (4.4 MiB/s) > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > Booting /efi\boot\bootaa64.efi > disks: sd0* > >> OpenBSD/arm64 BOOTAA64 1.6 > switching console to com0 > >> OpenBSD/arm64 BOOTAA64 1.6 > boot> > booting sd0a:/bsd: > 9089384+1916616+571924+1515700/[661166+109+1109952+648989]=0x104cc88 > type 0x0 pa 0x0 va 0x0 pages 0x1 attr 0x8 > type 0x7 pa 0x1000 va 0x1000 pages 0x1ff attr 0x8 > type 0x2 pa 0x200000 va 0x200000 pages 0x4000 attr 0x8 > type 0x7 pa 0x4200000 va 0x4200000 pages 0x3cf0 attr 0x8 > type 0x9 pa 0x7ef0000 va 0x7ef0000 pages 0x20 attr 0x8 > type 0x7 pa 0x7f10000 va 0x7f10000 pages 0x31ee2 attr 0x8 > type 0x2 pa 0x39df2000 va 0x39df2000 pages 0xe attr 0x8 > type 0x4 pa 0x39e00000 va 0x39e00000 pages 0x1 attr 0x8 > type 0x7 pa 0x39e01000 va 0x39e01000 pages 0x1 attr 0x8 > type 0x2 pa 0x39e02000 va 0x39e02000 pages 0x100 attr 0x8 > type 0x1 pa 0x39f02000 va 0x39f02000 pages 0x2a attr 0x8 > type 0x4 pa 0x39f2c000 va 0x39f2c000 pages 0x8 attr 0x8 > type 0x6 pa 0x39f34000 va 0x3d75fdc000 pages 0x1 attr 0x8000000000000008 > type 0x4 pa 0x39f35000 va 0x39f35000 pages 0x3 attr 0x8 > type 0x6 pa 0x39f38000 va 0x3d75fe0000 pages 0x3 attr 0x8000000000000008 > type 0x4 pa 0x39f3b000 va 0x39f3b000 pages 0x1 attr 0x8 > type 0x6 pa 0x39f3c000 va 0x3d75fe4000 pages 0x4 attr 0x8000000000000008 > type 0x4 pa 0x39f40000 va 0x39f40000 pages 0x8 attr 0x8 > type 0x2 pa 0x39f48000 va 0x39f48000 pages 0x1408 attr 0x8 > type 0x5 pa 0x3b350000 va 0x3d773f8000 pages 0x10 attr 0x8000000000000008 > type 0x2 pa 0x3b360000 va 0x3b360000 pages 0xa0 attr 0x8 > type 0x0 pa 0x3ef5c000 va 0x3ef5c000 pages 0x1 attr 0x8 > type 0x4 pa 0x40000000 va 0x40000000 pages 0xbc000 attr 0x8 > type 0xb pa 0xfe100000 va 0x3d77408000 pages 0x1 attr 0x8000000000000000 > type 0x4 pa 0x100000000 va 0x100000000 pages 0x100000 attr 0x8 > [ using 2421184 bytes of bsd ELF symbol table ] > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > Copyright (c) 1995-2021 OpenBSD. All rights reserved. https://www.OpenBSD.org > > witness: lock_object uninitialized: 0xffffff8000e8e4a8 > Starting stack trace... > 0 at 0xffffff80005c3018 > address 0x37cc69184a5a92a6 is invalid > address 0x37cc69184a5a92ae is invalid > End of stack trace. > witness: lock_object uninitialized: 0xffffff8000ec1fe8 > Starting stack trace... > 0 at 0xffffff80005c3018 > address 0x37cc69184a5a92a6 is invalid > address 0x37cc69184a5a92ae is invalid > End of stack trace. > OpenBSD 7.0-current (GENERIC.MP) #0: Wed Dec 1 09:35:02 CET 2021 > h...@pi.stare.cz:/usr/src/sys/arch/arm64/compile/GENERIC.MP > real mem = 8419872768 (8029MB) > avail mem = 8059879424 (7686MB) > random: good seed from bootblocks > mainbus0 at root: Raspberry Pi 4 Model B Rev 1.4 > cpu0 at mainbus0 mpidr 0: ARM Cortex-A72 r0p3 > cpu0: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache > cpu0: 1024KB 64b/line 16-way L2 cache > cpu0: CRC32,ASID16 > cpu1 at mainbus0 mpidr 1: ARM Cortex-A72 r0p3 > cpu1: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache > cpu1: 1024KB 64b/line 16-way L2 cache > cpu1: CRC32,ASID16 > cpu2 at mainbus0 mpidr 2: ARM Cortex-A72 r0p3 > cpu2: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache > cpu2: 1024KB 64b/line 16-way L2 cache > cpu2: CRC32,ASID16 > cpu3 at mainbus0 mpidr 3: ARM Cortex-A72 r0p3 > cpu3: 48KB 64b/line 3-way L1 PIPT I-cache, 32KB 64b/line 2-way L1 D-cache > cpu3: 1024KB 64b/line 16-way L2 cache > cpu3: CRC32,ASID16 > efi0 at mainbus0: UEFI 2.8 > efi0: Das U-Boot rev 0x20211000 > apm0 at mainbus0 > "system" at mainbus0 not configured > "axi" at mainbus0 not configured > simplebus0 at mainbus0: "soc" > bcmclock0 at simplebus0 > bcmmbox0 at simplebus0 > bcmgpio0 at simplebus0 > bcmaux0 at simplebus0 > ampintc0 at simplebus0 nirq 256, ncpu 4 ipi: 0, 1: "interrupt-controller" > bcmtmon0 at simplebus0 > bcmdmac0 at simplebus0: DMA0 DMA2 DMA4 DMA5 DMA6 DMA7 DMA8 DMA9 > "timer" at simplebus0 not configured > pluart0 at simplebus0: console > "local_intc" at simplebus0 not configured > bcmdog0 at simplebus0 > bcmirng0 at simplebus0 > "firmware" at simplebus0 not configured > "power" at simplebus0 not configured > "mailbox" at simplebus0 not configured > sdhc0 at simplebus0 > sdhc0: SDHC 3.0, 250 MHz base clock > sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed > "gpiomem" at simplebus0 not configured > "fb" at simplebus0 not configured > "vcsm" at simplebus0 not configured > "clocks" at mainbus0 not configured > "phy" at mainbus0 not configured > "clk-27M" at mainbus0 not configured > "clk-108M" at mainbus0 not configured > simplebus1 at mainbus0: "emmc2bus" > sdhc1 at simplebus1 > sdhc1: SDHC 3.0, 100 MHz base clock > sdmmc1 at sdhc1: 8-bit, sd high-speed, mmc high-speed, ddr52, dma > "arm-pmu" at mainbus0 not configured > agtimer0 at mainbus0: 54000 kHz > simplebus2 at mainbus0: "scb" > bcmpcie0 at simplebus2 > pci0 at bcmpcie0 > ppb0 at pci0 dev 0 function 0 "Broadcom BCM2711" rev 0x10 > pci1 at ppb0 bus 1 > xhci0 at pci1 dev 0 function 0 "VIA VL805 xHCI" rev 0x01: intx, xHCI 1.0 > usb0 at xhci0: USB revision 3.0 > uhub0 at usb0 configuration 1 interface 0 "VIA xHCI root hub" rev 3.00/1.00 > addr 1 > bse0 at simplebus2: address dc:a6:32:e0:50:d3 > brgphy0 at bse0 phy 1: BCM54210E 10/100/1000baseT PHY, rev. 2 > "dma" at simplebus2 not configured > "hevc-decoder" at simplebus2 not configured > "rpivid-local-intc" at simplebus2 not configured > "h264-decoder" at simplebus2 not configured > "vp9-decoder" at simplebus2 not configured > gpioleds0 at mainbus0: "led0", "led1" > "sd_io_1v8_reg" at mainbus0 not configured > "sd_vcc_reg" at mainbus0 not configured > "fixedregulator_3v3" at mainbus0 not configured > "fixedregulator_5v0" at mainbus0 not configured > simplebus3 at mainbus0: "v3dbus" > "bootloader" at mainbus0 not configured > xhci0: host system error
Well, yes. There is a chicken-and-egg problem here. As soon as you update U-Boot you won't be able to boot the old kernel. But unless you update U-Boot, you won't be able to boot the new kernel. My advice would be to upgrade using bsd.rd. Copy the snapshot bsd.rd into your root directory. Then update U-Boot, reboot, and type bsd.rd at the boot> prompt. Cheers, Mark