[u-boot] mkimage for u-boot, rockpi 5B

Trying to build u-boot for RK3588, using rkbin repo But rk3588 is not supported.

tools/mkimage -n rk3588 -T rksd -d spl/u-boot-spl.bin idbspl.img

Results

ERROR: imagename (rk3588) is not supported!
Available imagename:        rk3036        rk3066   
     rk3128        rk3188        rk322x        rk3288        rk3308     
   rk3328        rk3368        rk3399        px30        rv1108        
rv1126        rk1808
Error: Bad parameters for image type
Usage: tools/mkimage -l image
          -l ==> list image header information
       tools/mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
          -A ==> set architecture to 'arch'
          -O ==> set operating system to 'os'
          -T ==> set image type to 'type'
          -C ==> set compression type 'comp'
          -a ==> set load address to 'addr' (hex)
          -e ==> set entry point to 'ep' (hex)
          -n ==> set image name to 'name'
          -d ==> use image data from 'datafile'
          -x ==> set XIP (execute in place)
       tools/mkimage [-D dtc_options] [-f 
fit-image.its|-f auto|-F] [-b <dtb> [-b <dtb>]] [-i 
<ramdisk.cpio.gz>] fit-image
           <dtb> file is used with -f auto, it may occur multiple times.
          -D => set all options for device tree compiler
          -f => input filename for FIT source
          -i => input filename for ramdisk file
          -v => set FIT image version in decimal
Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined)
       tools/mkimage -V ==> print version information and exit
Use '-T list' to see a list of available image types

You can try radxa’s folk: https://github.com/radxa/rkbin

More specifically, I personally don’t use rkbin to make image.

I’m using mk-uboot.sh script in https://github.com/radxa/build to make the u-boot image for Rock 5B

You have to clone both radxa’s rkbin and the build repo in the same directory to use mk-uboot.sh.

If you want to use this script to build kernel, the kernel repo in radxa’s repo need to be cloned in the same dir as well.

This means when you ls the directory, you will see three folders: build, kernel and `rkbin.

1 Like

Use the “mkimage” that’s built from source as part of the u-boot build process, not the one in rkbin.