【 Rockchip】制作镜像-记录

在根文件夹下,执行

./build.sh kernel 编译内核
./build.sh updateimg 编译完整的update镜像


在rockdev下,相关内核,BootLoader,rootfs等配置好,然后在根文件夹下执行./build.sh updateimg 会在rockdev下生产一个update.img。该文件是完整的升级镜像,使用瑞星微提供的烧录工具即可烧录,相关的资料可以查看docs文件夹下。

rk@rk:~/01_zq/source/rockdev$ ll
总用量 21195240
drwxrwxr-x  2 rk rk        4096 36 11:25 ./
drwxrwxr-x 17 rk rk        4096 217 15:09 ../
lrwxrwxrwx  1 rk rk          18 223 12:55 boot.img -> ../kernel/boot.img
lrwxrwxrwx  1 rk rk          41 223 12:55 MiniLoaderAll.bin -> ../u-boot/rk3588_spl_loader_v1.07.111.bin
lrwxrwxrwx  1 rk rk          44 223 12:55 misc.img -> ../device/rockchip/rockimg/wipe_all-misc.img*
-rw-rw-r--  1 rk rk    17457152 223 12:55 oem.img
lrwxrwxrwx  1 rk rk          50 223 12:55 parameter.txt -> ../device/rockchip/rk3588/parameter-ubuntu-fit.txt*
lrwxrwxrwx  1 rk rk          64 223 12:55 recovery.img -> ../buildroot/output/rockchip_rk3588_recovery/images/recovery.img
lrwxrwxrwx  1 rk rk          27 223 12:55 rootfs.img -> ../ubuntu_rootfs/rootfs.img
lrwxrwxrwx  1 rk rk          19 223 12:55 uboot.img -> ../u-boot/uboot.img
-rw-rw-r--  1 rk rk 10845536842 33 14:51 update.img
-rw-rw-r--  1 rk rk     4472832 223 12:55 userdata.img
-rw-rw-r--  1 rk rk 10845536842 228 11:32 ZQ_KylinV10sp1_2209_20230228_beta11_update.img
rk@rk:~/01_zq/source/rockdev$
rk@rk:~/01_zq/rk3588_sdk/rk3588_linux$ ./build.sh help
Usage: build.sh [OPTIONS]
Available options:
BoardConfig*.mk    -switch to specified board config
lunch              -list current SDK boards and switch to specified board config
uboot              -build uboot
uefi             -build uefi
spl                -build spl
loader             -build loader
kernel             -build kernel
modules            -build kernel modules
toolchain          -build toolchain
rootfs             -build default rootfs, currently build buildroot as default
buildroot          -build buildroot rootfs
ramboot            -build ramboot image
multi-npu_boot     -build boot image for multi-npu board
yocto              -build yocto rootfs
debian             -build debian rootfs
pcba               -build pcba
recovery           -build recovery
all                -build uboot, kernel, rootfs, recovery image
cleanall           -clean uboot, kernel, rootfs, recovery
firmware           -pack all the image we need to boot up system
updateimg          -pack update image
otapackage         -pack ab update otapackage image (update_ota.img)
sdpackage          -pack update sdcard package image (update_sdcard.img)
save               -save images, patches, commands used to debug
allsave            -build all & firmware & updateimg & save
check              -check the environment of building
info               -see the current board building information
app/<pkg>          -build packages in the dir of app/*
external/<pkg>     -build packages in the dir of external/*

createkeys         -create secureboot root keys
security_rootfs    -build rootfs and some relevant images with security paramter (just for dm-v)
security_boot      -build boot with security paramter
security_uboot     -build uboot with security paramter
security_recovery  -build recovery with security paramter
security_check     -check security paramter if it's good

Default option is 'allsave'.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值