Toybrick

标题: mkimage for u-boot, board rk3588 [打印本页]

作者: yateya    时间: 2023-1-10 16:41
标题: mkimage for u-boot, board rk3588
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
  1. ERROR: imagename (rk3588) is not supported!
  2. Available imagename:        rk3036        rk3066        rk3128        rk3188        rk322x        rk3288        rk3308        rk3328        rk3368        rk3399        px30        rv1108        rv1126        rk1808
  3. Error: Bad parameters for image type
  4. Usage: tools/mkimage -l image
  5.           -l ==> list image header information
  6.        tools/mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
  7.           -A ==> set architecture to 'arch'
  8.           -O ==> set operating system to 'os'
  9.           -T ==> set image type to 'type'
  10.           -C ==> set compression type 'comp'
  11.           -a ==> set load address to 'addr' (hex)
  12.           -e ==> set entry point to 'ep' (hex)
  13.           -n ==> set image name to 'name'
  14.           -d ==> use image data from 'datafile'
  15.           -x ==> set XIP (execute in place)
  16.        tools/mkimage [-D dtc_options] [-f fit-image.its|-f auto|-F] [-b <dtb> [-b <dtb>]] [-i <ramdisk.cpio.gz>] fit-image
  17.            <dtb> file is used with -f auto, it may occur multiple times.
  18.           -D => set all options for device tree compiler
  19.           -f => input filename for FIT source
  20.           -i => input filename for ramdisk file
  21.           -v => set FIT image version in decimal
  22. Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined)
  23.        tools/mkimage -V ==> print version information and exit
  24. Use '-T list' to see a list of available image types
复制代码













作者: 395876134    时间: 2023-1-11 10:14
Hi
How did you get the code?
作者: jefferyzhang    时间: 2023-1-11 10:36
[attach]2553[/attach]

Try it, it is the latest one.

作者: yateya    时间: 2023-1-12 21:01
Thanks for the reply. I am trying to build modified u-boot by following rockchip steps.

I tried the attached mkimage.zip file, still give the same error. It is the same one I use from rkbin repo.
作者: jefferyzhang    时间: 2023-1-13 09:32
I read make.sh in u-boot, and found it use the mkimage which is under uboot/tools/mkimage, not under rkbin folder.
作者: yateya    时间: 2023-1-13 12:00
jefferyzhang 发表于 2023-1-13 09:32
I read make.sh in u-boot, and found it use the mkimage which is under uboot/tools/mkimage, not under ...

Thanks!
I compiled u-boot and got the working mkimage.
Steps to build the tools:

  1. git clone https://github.com/rockchip-linux/u-boot
  2. make rk3588_defconfig
  3. make tools-only
  4. #use tools/mkimage
复制代码





欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3