Add system_top.bit.bin generation to update_sdcard.sh:

For onboard auto loading FPGA by wgd.sh wo directory/.tar.gz, because some boards (like adrv9364z7020) need this to avoid no rx interrupt
This commit is contained in:
Xianjun Jiao 2023-03-14 16:30:12 +01:00
parent 914bc0b9ba
commit 2bde151a31

View File

@ -119,6 +119,7 @@ if [ "$SKIP_BOOT" == "0" ]; then
sudo mkdir -p $SDCARD_DIR/BOOT/openwifi/$BOARD_NAME_TMP sudo mkdir -p $SDCARD_DIR/BOOT/openwifi/$BOARD_NAME_TMP
sudo cp $OPENWIFI_DIR/kernel_boot/boards/$BOARD_NAME_TMP/$dtb_filename_tmp $SDCARD_DIR/BOOT/openwifi/$BOARD_NAME_TMP/ sudo cp $OPENWIFI_DIR/kernel_boot/boards/$BOARD_NAME_TMP/$dtb_filename_tmp $SDCARD_DIR/BOOT/openwifi/$BOARD_NAME_TMP/
sudo cp $OPENWIFI_DIR/kernel_boot/boards/$BOARD_NAME_TMP/output_boot_bin/BOOT.BIN $SDCARD_DIR/BOOT/openwifi/$BOARD_NAME_TMP/ sudo cp $OPENWIFI_DIR/kernel_boot/boards/$BOARD_NAME_TMP/output_boot_bin/BOOT.BIN $SDCARD_DIR/BOOT/openwifi/$BOARD_NAME_TMP/
sudo cp ./system_top.bit.bin $SDCARD_DIR/BOOT/openwifi/$BOARD_NAME_TMP/
sudo true sudo true
done done
@ -140,6 +141,10 @@ if [ "$SKIP_rootfs" == "0" ]; then
sudo mv $SDCARD_DIR/rootfs/root/openwifi/system_top.bit.bin $SDCARD_DIR/rootfs/root/openwifi/system_top.bit.bin.bak sudo mv $SDCARD_DIR/rootfs/root/openwifi/system_top.bit.bin $SDCARD_DIR/rootfs/root/openwifi/system_top.bit.bin.bak
sudo wget -P $SDCARD_DIR/rootfs/root/openwifi/webserver/ https://github.com/open-sdr/openwifi-hw-img/raw/master/openwifi-low-aac.mp4 sudo wget -P $SDCARD_DIR/rootfs/root/openwifi/webserver/ https://github.com/open-sdr/openwifi-hw-img/raw/master/openwifi-low-aac.mp4
sudo rm -rf $SDCARD_DIR/rootfs/root/openwifi_BOOT/
sudo mkdir -p $SDCARD_DIR/rootfs/root/openwifi_BOOT
sudo cp $SDCARD_DIR/BOOT/openwifi/* $SDCARD_DIR/rootfs/root/openwifi_BOOT/ -rf
ARCH_OPTION_ALL="32 64" ARCH_OPTION_ALL="32 64"
for ARCH_OPTION_TMP in $ARCH_OPTION_ALL for ARCH_OPTION_TMP in $ARCH_OPTION_ALL
do do