mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-02-07 11:50:19 +00:00
Add devicetree to PC-board transfer scripts
This commit is contained in:
parent
d684d4e9ec
commit
ce4469b31b
@ -14,8 +14,10 @@ tar -zxvf kernel_modules.tar.gz
|
|||||||
|
|
||||||
if [ ${MACHINE_TYPE} == 'aarch64' ]; then
|
if [ ${MACHINE_TYPE} == 'aarch64' ]; then
|
||||||
IMAGE_FILENAME=Image
|
IMAGE_FILENAME=Image
|
||||||
|
DTB_FILENAME="system.dtb"
|
||||||
else
|
else
|
||||||
IMAGE_FILENAME=uImage
|
IMAGE_FILENAME=uImage
|
||||||
|
DTB_FILENAME="devicetree.dtb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv ./kernel_modules/ad9361_drv.ko ./openwifi/ -f || true
|
mv ./kernel_modules/ad9361_drv.ko ./openwifi/ -f || true
|
||||||
@ -37,6 +39,9 @@ fi
|
|||||||
if test -f "./kernel_modules/BOOT.BIN"; then
|
if test -f "./kernel_modules/BOOT.BIN"; then
|
||||||
cp ./kernel_modules/BOOT.BIN /mnt/
|
cp ./kernel_modules/BOOT.BIN /mnt/
|
||||||
fi
|
fi
|
||||||
|
if test -f "./kernel_modules/$DTB_FILENAME"; then
|
||||||
|
cp ./kernel_modules/$DTB_FILENAME /mnt/
|
||||||
|
fi
|
||||||
cd /mnt/
|
cd /mnt/
|
||||||
sync
|
sync
|
||||||
cd ~
|
cd ~
|
||||||
|
@ -31,8 +31,10 @@ fi
|
|||||||
|
|
||||||
if [ "$BOARD_NAME" == "zcu102_fmcs2" ] || [ "$BOARD_NAME" == "zcu102_9371" ]; then
|
if [ "$BOARD_NAME" == "zcu102_fmcs2" ] || [ "$BOARD_NAME" == "zcu102_9371" ]; then
|
||||||
LINUX_KERNEL_IMAGE=$DIR_TO_ADI_LINUX_KERNEL/arch/arm64/boot/Image
|
LINUX_KERNEL_IMAGE=$DIR_TO_ADI_LINUX_KERNEL/arch/arm64/boot/Image
|
||||||
|
DTB_FILENAME="system.dtb"
|
||||||
else
|
else
|
||||||
LINUX_KERNEL_IMAGE=$DIR_TO_ADI_LINUX_KERNEL/arch/arm/boot/uImage
|
LINUX_KERNEL_IMAGE=$DIR_TO_ADI_LINUX_KERNEL/arch/arm/boot/uImage
|
||||||
|
DTB_FILENAME="devicetree.dtb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p kernel_modules
|
mkdir -p kernel_modules
|
||||||
@ -51,6 +53,9 @@ fi
|
|||||||
if test -f "../kernel_boot/boards/$BOARD_NAME/output_boot_bin/BOOT.BIN"; then
|
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/
|
cp ../kernel_boot/boards/$BOARD_NAME/output_boot_bin/BOOT.BIN ./kernel_modules/
|
||||||
fi
|
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
|
tar -zcvf kernel_modules.tar.gz kernel_modules
|
||||||
|
|
||||||
scp kernel_modules.tar.gz root@192.168.10.122:
|
scp kernel_modules.tar.gz root@192.168.10.122:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user