在根文件夹下,执行
./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 3月 6 11:25 ./
drwxrwxr-x 17 rk rk 4096 2月 17 15:09 ../
lrwxrwxrwx 1 rk rk 18 2月 23 12:55 boot.img -> ../kernel/boot.img
lrwxrwxrwx 1 rk rk 41 2月 23 12:55 MiniLoaderAll.bin -> ../u-boot/rk3588_spl_loader_v1.07.111.bin
lrwxrwxrwx 1 rk rk 44 2月 23 12:55 misc.img -> ../device/rockchip/rockimg/wipe_all-misc.img*
-rw-rw-r-- 1 rk rk 17457152 2月 23 12:55 oem.img
lrwxrwxrwx 1 rk rk 50 2月 23 12:55 parameter.txt -> ../device/rockchip/rk3588/parameter-ubuntu-fit.txt*
lrwxrwxrwx 1 rk rk 64 2月 23 12:55 recovery.img -> ../buildroot/output/rockchip_rk3588_recovery/images/recovery.img
lrwxrwxrwx 1 rk rk 27 2月 23 12:55 rootfs.img -> ../ubuntu_rootfs/rootfs.img
lrwxrwxrwx 1 rk rk 19 2月 23 12:55 uboot.img -> ../u-boot/uboot.img
-rw-rw-r-- 1 rk rk 10845536842 3月 3 14:51 update.img
-rw-rw-r-- 1 rk rk 4472832 2月 23 12:55 userdata.img
-rw-rw-r-- 1 rk rk 10845536842 2月 28 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'.