support board using env.cfg
This commit is contained in:
parent
983b716b24
commit
24678346e1
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
15
buildroot/board/awol/nezha-d1s-v2/bin/env.cfg
Normal file
15
buildroot/board/awol/nezha-d1s-v2/bin/env.cfg
Normal file
@ -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
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user