Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######################################################### rflib and wave300 download and compilation
- ## Linux 4.15.0-130-generic #134-Ubuntu SMP Tue Jan 5 20:46:26 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
- MAIN_DIR=/home/ahmar/dev-system
- cd $MAIN_DIR
- if ! [ -d wave300_rflib ]
- then
- git clone https://repo.or.cz/wave300_rflib.git
- else
- echo 'wave300_rflib directory found, skipping download'
- fi
- if ! [ -d wave300 ]
- then
- git clone https://github.com/garlett/wave300.git
- else
- echo 'wave300 directory found, skipping download and some config'
- make distclean
- fi
- cd wave300
- if ! [ -d wireless/driver/rflib ]
- then
- sed -i "s|cross/openwrt5|$(echo $MAIN_DIR)/" support/ugw.env.common
- ln -s $MAIN_DIR/wave300_rflib/wireless/driver/rflib/ wireless/driver/rflib
- fi
- export STAGING_DIR=$MAIN_DIR/openwrt/staging_dir/
- #suleiman
- echo 'CONFIG_LINDRV_HW_PCIE=y' >> .config
- echo 'CONFIG_USE_INTERRUPT_POLLING=y' >> .config
- make menuconfig
- make
- speaker-test -t sine -f 250 -l 1 > /dev/null
- echo " ***** after placing firmware files at /lib/firmware"
- echo " ***** copy and insmod in your router the following files:"
- ls -phlrs $MAIN_DIR/wave300/builds/ugw5.4-vrx288/binaries/wls/driver/*.ko
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement