I am trying to boot the OpenBSD installer on an Orangepi 5 board.  I know the 
board is yet not in the upstream u-boot and Linux, but I thought I would try to 
build the u-boot following the Orangepi user manual.  I did test the u-boot by 
installing it on to a new SD using the nand-data-install script outlined in the 
Orangepi user manual.  

To build the OpenBSD installation media I took the following steps

Copy the minroot image from the 2023.10.27 snaphot
        dd if=arm64_20231027_miniroot74.img of=/dev/rsd2c bs=1m  

After mounting the SD card to /mnt, I copied the device tree blob to the SD card
        cp rk3588s-orangepi-5.dtb /mnt/rockchip/.

Copy the u-boot bits using dd as described in the OpenBSD INSTALL.arm64 file.
        dd if=idbloader.img of=/dev/sd2c seek=64
        dd if=u-boot.itb of=/dev/sd2c seek=16384

The Orangepi5 board attempts to book from the SD card but reports a GPT errors. 
I also tried installing the u-boot bits using the nand-sata-install script 
outlined in the Orangepi user manual with the same result.  Console output is 
listed below.   

I am sure I am missing something obvious.  Thanks in advance for any 
suggestions.

-------------------------------------------------
Results when copying u-boot with dd
-------------------------------------------------

LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
Manufacturer ID:0x6
CH0 RX Vref:30.7%, TX Vref:20.8%,20.8%
CH1 RX Vref:33.7%, TX Vref:19.8%,19.8%
CH2 RX Vref:29.7%, TX Vref:20.8%,19.8%
CH3 RX Vref:30.7%, TX Vref:19.8%,19.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL board init
U-Boot SPL 2017.09-orangepi (Apr 23 2023 - 11:47:44)
Trying to boot from MMC1
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
Trying fit image at 0x4000 sector
Not fit magic
Trying fit image at 0x5000 sector
Not fit magic
Trying to boot from MMC2
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MTD2
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(806278dba1...) + OK
## Checking uboot 0x00200000 ... sha256(3a6ad96352...) + OK
## Checking fdt 0x00349798 ... sha256(e7f3a1e8b7...) + OK
## Checking atf-2 0x000f0000 ... sha256(c00c7fd75b...) + OK
## Checking atf-3 0xff100000 ... sha256(71c3a5841b...) + OK
## Checking atf-4 0xff001000 ... sha256(2301cf73be...) + OK


-------------------------------------------------
Results when copying u-boot with nand-sata-install script
-------------------------------------------------

LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=4096MB
Manufacturer ID:0x6
CH0 RX Vref:30.7%, TX Vref:20.8%,20.8%
CH1 RX Vref:33.7%, TX Vref:19.8%,19.8%
CH2 RX Vref:29.7%, TX Vref:20.8%,19.8%
CH3 RX Vref:30.7%, TX Vref:19.8%,19.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out
U-Boot SPL board init
U-Boot SPL 2017.09-orangepi (Apr 23 2023 - 11:47:44)
Trying to boot from MMC1
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
Trying fit image at 0x4000 sector
Not fit magic
Trying fit image at 0x5000 sector
Not fit magic
Trying to boot from MMC2
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MTD2
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(806278dba1...) + OK
## Checking uboot 0x00200000 ... sha256(3a6ad96352...) + OK
## Checking fdt 0x00349798 ... sha256(e7f3a1e8b7...) + OK
## Checking atf-2 0x000f0000 ... sha256(c00c7fd75b...) + OK
## Checking atf-3 0xff100000 ... sha256(71c3a5841b...) + OK
## Checking atf-4 0xff001000 ... sha256(2301cf73be...) + OK

Reply via email to