Add devicetree to PC-board transfer scripts

This commit is contained in:
Xianjun Jiao 2023-02-03 16:26:09 +01:00
parent d684d4e9ec
commit ce4469b31b
2 changed files with 10 additions and 0 deletions

View File

@ -14,8 +14,10 @@ tar -zxvf kernel_modules.tar.gz
if [ ${MACHINE_TYPE} == 'aarch64' ]; then
IMAGE_FILENAME=Image
DTB_FILENAME="system.dtb"
else
IMAGE_FILENAME=uImage
DTB_FILENAME="devicetree.dtb"
fi
mv ./kernel_modules/ad9361_drv.ko ./openwifi/ -f || true
@ -37,6 +39,9 @@ fi
if test -f "./kernel_modules/BOOT.BIN"; then
cp ./kernel_modules/BOOT.BIN /mnt/
fi
if test -f "./kernel_modules/$DTB_FILENAME"; then
cp ./kernel_modules/$DTB_FILENAME /mnt/
fi
cd /mnt/
sync
cd ~

View File

@ -31,8 +31,10 @@ fi
if [ "$BOARD_NAME" == "zcu102_fmcs2" ] || [ "$BOARD_NAME" == "zcu102_9371" ]; then
LINUX_KERNEL_IMAGE=$DIR_TO_ADI_LINUX_KERNEL/arch/arm64/boot/Image
DTB_FILENAME="system.dtb"
else
LINUX_KERNEL_IMAGE=$DIR_TO_ADI_LINUX_KERNEL/arch/arm/boot/uImage
DTB_FILENAME="devicetree.dtb"
fi
mkdir -p kernel_modules
@ -51,6 +53,9 @@ fi
if test -f "../kernel_boot/boards/$BOARD_NAME/output_boot_bin/BOOT.BIN"; then
cp ../kernel_boot/boards/$BOARD_NAME/output_boot_bin/BOOT.BIN ./kernel_modules/
fi
if test -f "../kernel_boot/boards/$BOARD_NAME/$DTB_FILENAME"; then
cp ../kernel_boot/boards/$BOARD_NAME/$DTB_FILENAME ./kernel_modules/
fi
tar -zcvf kernel_modules.tar.gz kernel_modules
scp kernel_modules.tar.gz root@192.168.10.122: