mirror of
https://github.com/open-sdr/openwifi.git
synced 2025-01-24 13:28:13 +00:00
Add system_top.bit.bin generation to setup_once.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:
parent
2bde151a31
commit
c288129e5d
@ -25,6 +25,33 @@ else
|
||||
# cp ./kernel_modules32/* /lib/modules/$(uname -r)/
|
||||
fi
|
||||
|
||||
# Decide board name
|
||||
DEVICE_TREE_MODEL_STRING=$(cat /proc/device-tree/model)
|
||||
if [[ $DEVICE_TREE_MODEL_STRING == *"ADRV9361-Z7035"* ]]; then
|
||||
BOARD_NAME=adrv9361z7035
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"ADRV9364-Z7020"* ]]; then
|
||||
BOARD_NAME=adrv9364z7020
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"ANTSDR-E310"* ]]; then
|
||||
BOARD_NAME=antsdr
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"ANTSDR-E200"* ]]; then
|
||||
BOARD_NAME=antsdr_e200
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"neptunesdr"* ]]; then
|
||||
BOARD_NAME=neptunesdr
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"sdrpi"* ]]; then
|
||||
BOARD_NAME=sdrpi
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"ZC702"* ]]; then
|
||||
BOARD_NAME=zc702_fmcs2
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"ZC706"* ]]; then
|
||||
BOARD_NAME=zc706_fmcs2
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"ZCU102"* ]]; then
|
||||
BOARD_NAME=zcu102_fmcs2
|
||||
elif [[ $DEVICE_TREE_MODEL_STRING == *"ZED"* ]]; then
|
||||
BOARD_NAME=zed_fmcs2
|
||||
else
|
||||
echo $DEVICE_TREE_MODEL_STRING " NOT recognized!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mv /root/kernel_modules/ad9361_drv.ko /root/openwifi/ -f || true
|
||||
mv /root/kernel_modules/adi_axi_hdmi.ko /root/openwifi/ -f || true
|
||||
mv /root/kernel_modules/axidmatest.ko /root/openwifi/ -f || true
|
||||
@ -36,6 +63,9 @@ ln -s /root/kernel_modules /lib/modules/$(uname -r)
|
||||
sync
|
||||
depmod
|
||||
|
||||
echo $BOARD_NAME
|
||||
cp /root/openwifi_BOOT/$BOARD_NAME/system_top.bit.bin /root/openwifi/ -f || true
|
||||
|
||||
cd /root/openwifi/sdrctl_src
|
||||
make clean
|
||||
make
|
||||
|
Loading…
Reference in New Issue
Block a user