ahmar16

build_wave300.sh

May 7th, 2021
756
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #########################################################  rflib and wave300  download and compilation
  2. ## 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
  3.  
  4. MAIN_DIR=/home/ahmar/dev-system
  5.  
  6. cd $MAIN_DIR
  7.  
  8. if ! [ -d wave300_rflib ]
  9. then
  10.     git clone https://repo.or.cz/wave300_rflib.git
  11. else    
  12.     echo 'wave300_rflib directory found, skipping download'
  13. fi
  14.  
  15. if ! [ -d wave300 ]
  16. then
  17.     git clone https://github.com/garlett/wave300.git
  18. else    
  19.     echo 'wave300 directory found, skipping download and some config'
  20.     make distclean
  21. fi
  22. cd wave300
  23.  
  24. if ! [ -d wireless/driver/rflib ]
  25. then
  26.     sed -i "s|cross/openwrt5|$(echo $MAIN_DIR)/" support/ugw.env.common
  27.     ln -s $MAIN_DIR/wave300_rflib/wireless/driver/rflib/ wireless/driver/rflib
  28. fi
  29.  
  30.  
  31. export STAGING_DIR=$MAIN_DIR/openwrt/staging_dir/
  32.  
  33. #suleiman
  34. echo 'CONFIG_LINDRV_HW_PCIE=y' >> .config
  35. echo 'CONFIG_USE_INTERRUPT_POLLING=y' >> .config
  36.  
  37. make menuconfig
  38.  
  39. make
  40. speaker-test -t sine -f 250 -l 1 > /dev/null
  41. echo " ***** after placing firmware files at /lib/firmware"
  42. echo " ***** copy and insmod in your router the following files:"
  43. ls -phlrs $MAIN_DIR/wave300/builds/ugw5.4-vrx288/binaries/wls/driver/*.ko
  44.  
  45.  
  46.  
  47.  
RAW Paste Data