From 4d38d21c01bb23c3276af88d1753f9fa56718fae Mon Sep 17 00:00:00 2001 From: hejiawencc Date: Sat, 25 Feb 2023 11:27:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E8=AE=BE=E5=A4=87=E6=A0=91?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=EF=BC=8C=E5=A2=9E=E5=8A=A0extlinux=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/build.sh | 12 +++++++++--- rk356x/BoardConfig-LubanCat-Backup.mk | 2 +- .../BoardConfig-LubanCat-RK_series-debian-desktop.mk | 4 +++- rk356x/BoardConfig-LubanCat-RK_series-debian-lite.mk | 4 +++- .../BoardConfig-LubanCat-RK_series-ubuntu-desktop.mk | 4 +++- rk356x/BoardConfig-LubanCat-RK_series-ubuntu-lite.mk | 4 +++- rk356x/BoardConfig-LubanCat-Zero-buildroot.mk | 2 +- rk356x/BoardConfig-LubanCat-Zero-debian.mk | 2 +- rk356x/BoardConfig-LubanCat-Zero-ubuntu.mk | 2 +- rk356x/BoardConfig-LubanCat1-buildroot.mk | 2 +- rk356x/BoardConfig-LubanCat1-debian.mk | 2 +- rk356x/BoardConfig-LubanCat1-ubuntu.mk | 2 +- rk356x/BoardConfig-LubanCat1N-buildroot.mk | 2 +- rk356x/BoardConfig-LubanCat1N-debian.mk | 2 +- rk356x/BoardConfig-LubanCat1N-ubuntu.mk | 2 +- rk356x/BoardConfig-LubanCat2-buildroot.mk | 2 +- rk356x/BoardConfig-LubanCat2-debian.mk | 2 +- rk356x/BoardConfig-LubanCat2-ubuntu.mk | 2 +- rk356x/BoardConfig-LubanCat2IO-buildroot.mk | 2 +- rk356x/BoardConfig-LubanCat2IO-debian.mk | 2 +- rk356x/BoardConfig-LubanCat2IO-ububtu.mk | 2 +- rk356x/BoardConfig-LubanCat2N-buildroot.mk | 2 +- rk356x/BoardConfig-LubanCat2N-debian.mk | 2 +- rk356x/BoardConfig-LubanCat2N-openwrt.mk | 2 +- rk356x/BoardConfig-LubanCat2N-ubuntu.mk | 4 ++-- 25 files changed, 42 insertions(+), 28 deletions(-) diff --git a/common/build.sh b/common/build.sh index 2ad71c5..a2f7c0a 100755 --- a/common/build.sh +++ b/common/build.sh @@ -736,6 +736,12 @@ function build_extboot(){ cp ${TOP_DIR}/$RK_KERNEL_IMG $EXTBOOT_DIR/Image-$KERNEL_VERSION + mkdir -p $EXTBOOT_DIR/extlinux + echo -e "label kernel-$KERNEL_VERSION" >> $EXTBOOT_DIR/extlinux/extlinux.conf + echo -e "\tkernel /Image-$KERNEL_VERSION" >> $EXTBOOT_DIR/extlinux/extlinux.conf + echo -e "\tdevicetreedir /" >> $EXTBOOT_DIR/extlinux/extlinux.conf + echo -e "\tappend root=/dev/mmcblk0p3 earlyprintk console=ttyFIQ0 console=tty1 consoleblank=0 loglevel=7 rootwait rw rootfstype=ext4 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1 switolb=1 coherent_pool=1m" >> $EXTBOOT_DIR/extlinux/extlinux.conf + if [ "$RK_ARCH" == "arm64" ];then cp ${TOP_DIR}/kernel/arch/${RK_ARCH}/boot/dts/rockchip/*.dtb $EXTBOOT_DTB cp ${TOP_DIR}/kernel/arch/${RK_ARCH}/boot/dts/rockchip/overlay/*.dtbo $EXTBOOT_DTB/overlay @@ -764,7 +770,7 @@ function build_extboot(){ # rm $EXTBOOT_DIR/lib/modules/$KERNEL_VERSION/source rm -rf $EXTBOOT_IMG && truncate -s 128M $EXTBOOT_IMG - fakeroot mkfs.ext4 -F -L "boot" -d $EXTBOOT_DIR $EXTBOOT_IMG + fakeroot mkfs.ext2 -F -L "boot" -d $EXTBOOT_DIR $EXTBOOT_IMG # fakeroot mkfs.fat -F 16 -n "boot" $EXTBOOT_IMG # mkdir -p $EXTBOOT_DIR.tmp @@ -901,7 +907,7 @@ function build_ubuntu(){ ARCH=arm64 ./mk-base-$RK_ROOTFS_TARGET-ubuntu.sh fi - VERSION=$RK_ROOTFS_DEBUG ARCH=$ARCH SOC=$RK_UBOOT_DEFCONFIG ./mk-$RK_ROOTFS_TARGET-rootfs.sh + VERSION=$RK_ROOTFS_DEBUG ARCH=$ARCH SOC=$RK_SOC ./mk-$RK_ROOTFS_TARGET-rootfs.sh ./mk-image.sh else @@ -942,7 +948,7 @@ function build_debian(){ RELEASE=$RELEASE TARGET=$RK_ROOTFS_TARGET ARCH=$ARCH ./mk-base-debian.sh fi - RELEASE=$RELEASE TARGET=$RK_ROOTFS_TARGET VERSION=$RK_ROOTFS_DEBUG SOC=$RK_UBOOT_DEFCONFIG ARCH=$ARCH ./mk-rootfs.sh + RELEASE=$RELEASE TARGET=$RK_ROOTFS_TARGET VERSION=$RK_ROOTFS_DEBUG SOC=$RK_SOC ARCH=$ARCH ./mk-rootfs.sh ./mk-image.sh else echo "[ Already Exists IMG, Skip Make Debian Scripts ]" diff --git a/rk356x/BoardConfig-LubanCat-Backup.mk b/rk356x/BoardConfig-LubanCat-Backup.mk index 73ab14a..e4eac64 100644 --- a/rk356x/BoardConfig-LubanCat-Backup.mk +++ b/rk356x/BoardConfig-LubanCat-Backup.mk @@ -3,7 +3,7 @@ # Target arch export RK_ARCH=arm64 # Uboot defconfig -export RK_UBOOT_DEFCONFIG=rk3566 +export RK_UBOOT_DEFCONFIG=lubancat-rk356x # Uboot image format type: fit(flattened image tree) export RK_UBOOT_FORMAT_TYPE=fit # Kernel defconfig diff --git a/rk356x/BoardConfig-LubanCat-RK_series-debian-desktop.mk b/rk356x/BoardConfig-LubanCat-RK_series-debian-desktop.mk index d729ce4..ee223bf 100644 --- a/rk356x/BoardConfig-LubanCat-RK_series-debian-desktop.mk +++ b/rk356x/BoardConfig-LubanCat-RK_series-debian-desktop.mk @@ -1,9 +1,11 @@ #!/bin/bash +# SOC +export RK_SOC=rk356x # Target arch export RK_ARCH=arm64 # Uboot defconfig -export RK_UBOOT_DEFCONFIG=rk3566 +export RK_UBOOT_DEFCONFIG=lubancat-rk356x # Uboot image format type: fit(flattened image tree) export RK_UBOOT_FORMAT_TYPE=fit # Kernel defconfig diff --git a/rk356x/BoardConfig-LubanCat-RK_series-debian-lite.mk b/rk356x/BoardConfig-LubanCat-RK_series-debian-lite.mk index 59c6122..226c96f 100644 --- a/rk356x/BoardConfig-LubanCat-RK_series-debian-lite.mk +++ b/rk356x/BoardConfig-LubanCat-RK_series-debian-lite.mk @@ -1,9 +1,11 @@ #!/bin/bash +# SOC +export RK_SOC=rk356x # Target arch export RK_ARCH=arm64 # Uboot defconfig -export RK_UBOOT_DEFCONFIG=rk3566 +export RK_UBOOT_DEFCONFIG=lubancat-rk356x # Uboot image format type: fit(flattened image tree) export RK_UBOOT_FORMAT_TYPE=fit # Kernel defconfig diff --git a/rk356x/BoardConfig-LubanCat-RK_series-ubuntu-desktop.mk b/rk356x/BoardConfig-LubanCat-RK_series-ubuntu-desktop.mk index 23d19f2..232048d 100644 --- a/rk356x/BoardConfig-LubanCat-RK_series-ubuntu-desktop.mk +++ b/rk356x/BoardConfig-LubanCat-RK_series-ubuntu-desktop.mk @@ -1,9 +1,11 @@ #!/bin/bash +# SOC +export RK_SOC=rk356x # Target arch export RK_ARCH=arm64 # Uboot defconfig -export RK_UBOOT_DEFCONFIG=rk3566 +export RK_UBOOT_DEFCONFIG=lubancat-rk356x # Uboot image format type: fit(flattened image tree) export RK_UBOOT_FORMAT_TYPE=fit # Kernel defconfig diff --git a/rk356x/BoardConfig-LubanCat-RK_series-ubuntu-lite.mk b/rk356x/BoardConfig-LubanCat-RK_series-ubuntu-lite.mk index 6ffdc21..debaca2 100644 --- a/rk356x/BoardConfig-LubanCat-RK_series-ubuntu-lite.mk +++ b/rk356x/BoardConfig-LubanCat-RK_series-ubuntu-lite.mk @@ -1,9 +1,11 @@ #!/bin/bash +# SOC +export RK_SOC=rk356x # Target arch export RK_ARCH=arm64 # Uboot defconfig -export RK_UBOOT_DEFCONFIG=rk3566 +export RK_UBOOT_DEFCONFIG=lubancat-rk356x # Uboot image format type: fit(flattened image tree) export RK_UBOOT_FORMAT_TYPE=fit # Kernel defconfig diff --git a/rk356x/BoardConfig-LubanCat-Zero-buildroot.mk b/rk356x/BoardConfig-LubanCat-Zero-buildroot.mk index 442ed33..eb46c63 100644 --- a/rk356x/BoardConfig-LubanCat-Zero-buildroot.mk +++ b/rk356x/BoardConfig-LubanCat-Zero-buildroot.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat-zero +export RK_KERNEL_DTS=rk3566-lubancat-0 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat-Zero-debian.mk b/rk356x/BoardConfig-LubanCat-Zero-debian.mk index 40544e2..adcd862 100644 --- a/rk356x/BoardConfig-LubanCat-Zero-debian.mk +++ b/rk356x/BoardConfig-LubanCat-Zero-debian.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat-zero +export RK_KERNEL_DTS=rk3566-lubancat-0 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat-Zero-ubuntu.mk b/rk356x/BoardConfig-LubanCat-Zero-ubuntu.mk index 68a7909..0d3dd26 100644 --- a/rk356x/BoardConfig-LubanCat-Zero-ubuntu.mk +++ b/rk356x/BoardConfig-LubanCat-Zero-ubuntu.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat-zero +export RK_KERNEL_DTS=rk3566-lubancat-0 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat1-buildroot.mk b/rk356x/BoardConfig-LubanCat1-buildroot.mk index 35ba4d7..c584d5e 100644 --- a/rk356x/BoardConfig-LubanCat1-buildroot.mk +++ b/rk356x/BoardConfig-LubanCat1-buildroot.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat1 +export RK_KERNEL_DTS=rk3566-lubancat-1 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat1-debian.mk b/rk356x/BoardConfig-LubanCat1-debian.mk index 9ba8449..4b3ade7 100644 --- a/rk356x/BoardConfig-LubanCat1-debian.mk +++ b/rk356x/BoardConfig-LubanCat1-debian.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat1 +export RK_KERNEL_DTS=rk3566-lubancat-1 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat1-ubuntu.mk b/rk356x/BoardConfig-LubanCat1-ubuntu.mk index 8328761..cbdeabf 100644 --- a/rk356x/BoardConfig-LubanCat1-ubuntu.mk +++ b/rk356x/BoardConfig-LubanCat1-ubuntu.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat1 +export RK_KERNEL_DTS=rk3566-lubancat-1 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat1N-buildroot.mk b/rk356x/BoardConfig-LubanCat1N-buildroot.mk index fc6957d..627372b 100644 --- a/rk356x/BoardConfig-LubanCat1N-buildroot.mk +++ b/rk356x/BoardConfig-LubanCat1N-buildroot.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat1-n +export RK_KERNEL_DTS=rk3566-lubancat-1n # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat1N-debian.mk b/rk356x/BoardConfig-LubanCat1N-debian.mk index 31dfec4..f4db9db 100644 --- a/rk356x/BoardConfig-LubanCat1N-debian.mk +++ b/rk356x/BoardConfig-LubanCat1N-debian.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat1-n +export RK_KERNEL_DTS=rk3566-lubancat-1n # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat1N-ubuntu.mk b/rk356x/BoardConfig-LubanCat1N-ubuntu.mk index e6dabed..b854cfb 100644 --- a/rk356x/BoardConfig-LubanCat1N-ubuntu.mk +++ b/rk356x/BoardConfig-LubanCat1N-ubuntu.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3566-lubancat1-n +export RK_KERNEL_DTS=rk3566-lubancat-1n # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2-buildroot.mk b/rk356x/BoardConfig-LubanCat2-buildroot.mk index 7a7fbdf..d2e8b9c 100644 --- a/rk356x/BoardConfig-LubanCat2-buildroot.mk +++ b/rk356x/BoardConfig-LubanCat2-buildroot.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_buildroot_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2 +export RK_KERNEL_DTS=rk3568-lubancat-2 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2-debian.mk b/rk356x/BoardConfig-LubanCat2-debian.mk index 98453bb..e8120c1 100644 --- a/rk356x/BoardConfig-LubanCat2-debian.mk +++ b/rk356x/BoardConfig-LubanCat2-debian.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2 +export RK_KERNEL_DTS=rk3568-lubancat-2 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2-ubuntu.mk b/rk356x/BoardConfig-LubanCat2-ubuntu.mk index 3e82ec3..44be170 100644 --- a/rk356x/BoardConfig-LubanCat2-ubuntu.mk +++ b/rk356x/BoardConfig-LubanCat2-ubuntu.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2 +export RK_KERNEL_DTS=rk3568-lubancat-2 # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2IO-buildroot.mk b/rk356x/BoardConfig-LubanCat2IO-buildroot.mk index 39751ac..87836a3 100644 --- a/rk356x/BoardConfig-LubanCat2IO-buildroot.mk +++ b/rk356x/BoardConfig-LubanCat2IO-buildroot.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_buildroot_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2-io +export RK_KERNEL_DTS=rk3568-lubancat-2io # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2IO-debian.mk b/rk356x/BoardConfig-LubanCat2IO-debian.mk index 1f09f58..d850cf5 100644 --- a/rk356x/BoardConfig-LubanCat2IO-debian.mk +++ b/rk356x/BoardConfig-LubanCat2IO-debian.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2-io +export RK_KERNEL_DTS=rk3568-lubancat-2io # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2IO-ububtu.mk b/rk356x/BoardConfig-LubanCat2IO-ububtu.mk index 1c62a26..734545e 100644 --- a/rk356x/BoardConfig-LubanCat2IO-ububtu.mk +++ b/rk356x/BoardConfig-LubanCat2IO-ububtu.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2-io +export RK_KERNEL_DTS=rk3568-lubancat-2io # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2N-buildroot.mk b/rk356x/BoardConfig-LubanCat2N-buildroot.mk index 09d39cb..d0dc097 100644 --- a/rk356x/BoardConfig-LubanCat2N-buildroot.mk +++ b/rk356x/BoardConfig-LubanCat2N-buildroot.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_buildroot_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2-n +export RK_KERNEL_DTS=rk3568-lubancat-2n # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2N-debian.mk b/rk356x/BoardConfig-LubanCat2N-debian.mk index 908a57a..b347c74 100644 --- a/rk356x/BoardConfig-LubanCat2N-debian.mk +++ b/rk356x/BoardConfig-LubanCat2N-debian.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2-n +export RK_KERNEL_DTS=rk3568-lubancat-2n # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2N-openwrt.mk b/rk356x/BoardConfig-LubanCat2N-openwrt.mk index 310c75e..7bc112b 100644 --- a/rk356x/BoardConfig-LubanCat2N-openwrt.mk +++ b/rk356x/BoardConfig-LubanCat2N-openwrt.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_openwrt_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2-n +export RK_KERNEL_DTS=rk3568-lubancat-2n # boot image type export RK_BOOT_IMG=boot.img # kernel image path diff --git a/rk356x/BoardConfig-LubanCat2N-ubuntu.mk b/rk356x/BoardConfig-LubanCat2N-ubuntu.mk index b327386..6abcebc 100644 --- a/rk356x/BoardConfig-LubanCat2N-ubuntu.mk +++ b/rk356x/BoardConfig-LubanCat2N-ubuntu.mk @@ -11,7 +11,7 @@ export RK_KERNEL_DEFCONFIG=lubancat2_defconfig # Kernel defconfig fragment export RK_KERNEL_DEFCONFIG_FRAGMENT= # Kernel dts -export RK_KERNEL_DTS=rk3568-lubancat2-n +export RK_KERNEL_DTS=rk3568-lubancat-2n # boot image type export RK_BOOT_IMG=boot.img # kernel image path @@ -53,7 +53,7 @@ export RK_OEM_DIR=oem_normal #userdata config export RK_USERDATA_DIR=userdata_normal #misc image -export RK_MISC=parameter-buildroot-fit.txt +export RK_MISC=wipe_all-misc.img #choose enable distro module export RK_DISTRO_MODULE= # Define pre-build script for this board