GitHub Actions workflows to build u-boot for a few Rockchip boards.
idbloader.img
for use with SD card or eMMC moduleu-boot.itb
for use with SD card or eMMC moduleu-boot-rockchip.bin
combinedidbloader.img
andu-boot.itb
for use with SD card or eMMC moduleu-boot-rockchip-spi.bin
combinedidbloader.img
andu-boot.itb
for use with SPI flash
Write the u-boot-rockchip.bin
image to sector 64 of an SD card or eMMC module (assumed to be /dev/mmcblk0):
dd if=u-boot-rockchip.bin of=/dev/mmcblk0 bs=32k seek=1 conv=fsync
- Copy
u-boot-rockchip.bin
to first partition of an SD card. - Run from U-Boot cmdline:
# Read u-boot-rockchip.bin from first partition of an SD card
load mmc 1:1 10000000 u-boot-rockchip.bin
# Change to eMMC
mmc dev 0
# Write 10 MiB (0x5000 blocks) at sector 64 (0x40)
mmc write $fileaddr 40 5000
Write the u-boot-rockchip-spi.bin
image to begining of SPI flash (assumed to be /dev/mtd0) using flashcp
:
flashcp -v -p u-boot-rockchip-spi.bin /dev/mtd0
Or using U-Boot cmdline:
- Put
u-boot-rockchip-spi.bin
on first partition of an SD card. - Run from U-Boot cmdline:
# Initialize SPI flash
sf probe
# Read u-boot-rockchip-spi.bin from first partition of an SD card
load mmc 1:1 10000000 u-boot-rockchip-spi.bin
# Write to begining of SPI flash
sf update $fileaddr 0 $filesize
Erase U-Boot from SPI flash (assumed to be /dev/mtd0) using flash_erase
:
flash_erase /dev/mtd0 0 16
Or erase using U-Boot cmdline:
# Initialize SPI flash
sf probe
# Erase first 64 KiB (0x10000 bytes) of SPI flash
sf erase 0 +10000