diff --git a/buildroot/board/allwinner-generic/sun20i-generic/script/post-build.sh b/buildroot/board/allwinner-generic/sun20i-generic/script/post-build.sh index 491052e5..7e3090a7 100755 --- a/buildroot/board/allwinner-generic/sun20i-generic/script/post-build.sh +++ b/buildroot/board/allwinner-generic/sun20i-generic/script/post-build.sh @@ -1,15 +1,20 @@ #!/bin/sh BOARD_COMMON_DIR="$(dirname $0)/../../$4" -BOARD_DIR="$(dirname $0)/../../$4" +BOARD_DIR="$(dirname $0)/../../../$6" # For debug echo "Target binary dir $BOARD_COMMON_DIR" echo "Target Board $BOARD_DIR" -# Copy Files to BINARY +# Copy Platfrom Files to BINARY_DIR cp $BOARD_COMMON_DIR/bin/* -rfvd $BINARIES_DIR + +# Copy common file to BINARY_DIR cp $BOARD_COMMON_DIR/../sunxi-generic/bin/* -rfvd $BINARIES_DIR +# overlay bin file to BINARY_DIR +cp $BOARD_DIR/bin/* -rfvd $BINARIES_DIR + cd $BINARIES_DIR echo "item=dtb, $5" >> boot_package.cfg diff --git a/buildroot/board/allwinner-generic/sun8i-generic/scripts/post-build.sh b/buildroot/board/allwinner-generic/sun8i-generic/scripts/post-build.sh index 0ae930d6..5ebc2b1d 100755 --- a/buildroot/board/allwinner-generic/sun8i-generic/scripts/post-build.sh +++ b/buildroot/board/allwinner-generic/sun8i-generic/scripts/post-build.sh @@ -1,13 +1,20 @@ #!/bin/sh BOARD_COMMON_DIR="$(dirname $0)/../../$4" +BOARD_DIR="$(dirname $0)/../../../$6" # For debug echo "Target binary dir $BOARD_COMMON_DIR" +echo "Target Board $BOARD_DIR" -# Copy Files to BINARY +# Copy Platfrom Files to BINARY_DIR cp $BOARD_COMMON_DIR/bin/* -rfvd $BINARIES_DIR + +# Copy common file to BINARY_DIR cp $BOARD_COMMON_DIR/../sunxi-generic/bin/* -rfvd $BINARIES_DIR +# overlay bin file to BINARY_DIR +cp $BOARD_DIR/bin/* -rfvd $BINARIES_DIR + cd $BINARIES_DIR echo "item=dtb, $5" >> boot_package.cfg diff --git a/buildroot/board/awol/nezha-d1s-v2/bin/env.cfg b/buildroot/board/awol/nezha-d1s-v2/bin/env.cfg new file mode 100644 index 00000000..d37116ec --- /dev/null +++ b/buildroot/board/awol/nezha-d1s-v2/bin/env.cfg @@ -0,0 +1,15 @@ +#kernel command arguments +console=ttyS0,115200 +root_partition=rootfs +boot_partition=boot +keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3 +#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this +bootargs=earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5 init=/sbin/init partitions=ext4 cma=8M gpt=1 +#uboot system env config +bootdelay=2 +kernel=boot.img +mmc_boot_part=4 +mmc_dev=0 +boot_check=sunxi_card0_probe;mmcinfo;mmc part +boot_mmc=fatload mmc ${mmc_dev}:${mmc_boot_part} 45000000 ${kernel}; bootm 45000000 +bootcmd=run boot_check boot_mmc diff --git a/buildroot/configs/awol_nezha_d1s_defconfig b/buildroot/configs/awol_nezha_d1s_defconfig index 521e2241..12a85bc3 100644 --- a/buildroot/configs/awol_nezha_d1s_defconfig +++ b/buildroot/configs/awol_nezha_d1s_defconfig @@ -21,7 +21,7 @@ BR2_TARGET_GENERIC_GETTY_PORT="ttyS0" BR2_SYSTEM_DHCP="eth0" BR2_ROOTFS_POST_BUILD_SCRIPT="board/allwinner-generic/sun20i-generic/script/post-build.sh" BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" -BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/awol/nezha-d1s/script/genimage.cfg sun20i-d1s sun20i-d1s-nezha-linux.dtb" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/awol/nezha-d1s/script/genimage.cfg sun20i-d1s sun20i-d1s-nezha-linux.dtb awol/nezha-d1s" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/Tina-Linux/linux-5.4/archive/refs/tags/1.0.0.tar.gz"