Advertisement
Guest User

Untitled

a guest
May 24th, 2022
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. Build Instructions:
  2. ====================
  3.  
  4. 1> $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz
  5. go to "./DPB_RT2870_Linux_STA_x.x.x.x" directory.
  6.  
  7. 2> In Makefile
  8. set the "MODE = STA" in Makefile and chose the TARGET to Linux by set "TARGET = LINUX"
  9. define the linux kernel source include file path LINUX_SRC
  10. modify to meet your need.
  11.  
  12. 3> In os/linux/config.mk
  13. define the GCC and LD of the target machine
  14. define the compiler flags CFLAGS
  15. modify to meet your need.
  16. ** Build for being controlled by NetworkManager or wpa_supplicant wext functions
  17. Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'.
  18. => #>cd wpa_supplicant-x.x
  19. => #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d
  20. ** Build for being controlled by WpaSupplicant with Ralink Driver
  21. Please set 'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'.
  22. => #>cd wpa_supplicant-0.5.7
  23. => #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
  24.  
  25. 4> $make
  26. # compile driver source code
  27. # To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
  28. => $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c
  29.  
  30. 5> $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
  31.  
  32. 6> load driver, go to "os/linux/" directory.
  33. #[kernel 2.4]
  34. # $/sbin/insmod rt2870sta.o
  35. # $/sbin/ifconfig ra0 inet YOUR_IP up
  36.  
  37. #[kernel 2.6]
  38. # $/sbin/insmod rt2870sta.ko
  39. # $/sbin/ifconfig ra0 inet YOUR_IP up
  40.  
  41. 7> unload driver
  42. $/sbin/ifconfig ra0 down
  43. $/sbin/rmmod rt2870sta
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement