Toybrick

mkimage for u-boot, board rk3588

yateya

新手上路

积分
27
发表于 2023-1-10 16:41:53    查看: 1751|回复: 5 | [复制链接]    打印 | 显示全部楼层
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

版主

积分
1043
发表于 2023-1-11 10:14:42 | 显示全部楼层
Hi
How did you get the code?
回复

使用道具 举报

jefferyzhang

版主

积分
12844
发表于 2023-1-11 10:36:29 | 显示全部楼层


Try it, it is the latest one.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

yateya

新手上路

积分
27
 楼主| 发表于 2023-1-12 21:01:41 | 显示全部楼层
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

版主

积分
12844
发表于 2023-1-13 09:32:27 | 显示全部楼层
I read make.sh in u-boot, and found it use the mkimage which is under uboot/tools/mkimage, not under rkbin folder.
回复

使用道具 举报

yateya

新手上路

积分
27
 楼主| 发表于 2023-1-13 12:00:25 | 显示全部楼层
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
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表