root@debian:~# tar jxvf DPO_RT3070_LinuxSTA_V2.3.0.2_20100412.bz2 ./._DPO_RT3070_LinuxSTA_V2.3.0.2_20100412 DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/ DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/._chips DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/chips/ DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/._common DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/common/ : :
root@debian:~# cd DPO_RT3070_LinuxSTA_V2.3.0.2_20100412
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# cp RT2870STA.dat RT3070STA.dat
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# cd common/
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/common# mv rtusb_dev_id.c{,.orig}
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/common# cp rtusb_dev_id.c{.orig,}
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/common# vi rtusb_dev_id.c
:
:
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/common# !cp:s/cp/diff -c/
diff -c rtusb_dev_id.c{.orig,}
*** rtusb_dev_id.c.orig Mon Dec 28 21:53:49 2009
--- rtusb_dev_id.c Sun Apr 18 09:20:21 2010
***************
*** 104,109 ****
--- 104,110 ----
{USB_DEVICE(0x13D3,0x3321)}, /* Azurewave */
{USB_DEVICE(0x07FA,0x7712)}, /* Edimax */
{USB_DEVICE(0x0789,0x0166)}, /* Edimax */
+ {USB_DEVICE(0x0411,0x019e)}, /* BUFFALO WLI-UC-GNP */
#endif // RT3070 //
{ }/* Terminating entry */
};
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/common# cd ..
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# cd os/linux/
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux# ls
Makefile.4 cfg80211.c modules.order rt_linux.c rt_profile.c rt_usb_util.c usb_main_dev.c
Makefile.6 config.mk rt_ate.c rt_main_dev.c rt_usb.c sta_ioctl.c vr_ikans.c
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux# mv usb_main_dev.c{,.orig}
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux# cp usb_main_dev.c{.orig,}
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux# vi usb_main_dev.c
:
:
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux# !cp:s/cp/diff -c/
diff -c usb_main_dev.c{.orig,}
*** usb_main_dev.c.orig Mon Apr 12 17:02:20 2010
--- usb_main_dev.c Sun Apr 18 09:23:05 2010
***************
*** 32,37 ****
--- 32,38 ----
// Otherwise post to forum in ralinktech's web site(www.ralinktech.com) and let all users help you. ***
MODULE_AUTHOR("Paul Lin ");
MODULE_DESCRIPTION("RT2870 Wireless Lan Linux Driver");
+ MODULE_LICENSE("GPL");
#ifdef CONFIG_STA_SUPPORT
#ifdef MODULE_VERSION
MODULE_VERSION(STA_DRIVER_VERSION);
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux#
ドライバのコンパイル
ほぼそのまま真似させていただいた。
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux# cd ../.. root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# make make -C tools make[1]: Entering directory `/root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/tools' gcc -g bin2h.c -o bin2h make[1]: Leaving directory `/root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/tools' /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/tools/bin2h cp -f os/linux/Makefile.6 /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/Makefile make -C /lib/modules/2.6.32.11/build SUBDIRS=/root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux modules make: *** /lib/modules/2.6.32.11/build: No such file or directory. Stop. make: *** [LINUX] Error 2 root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412#/lib/modules/2.6.32.11/build がないと言われている。
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# ls /lib/modules/2.6.32.11/build /lib/modules/2.6.32.11/build root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# ls -l !$ ls -l /lib/modules/2.6.32.11/build lrwxrwxrwx 1 root root 68 Apr 16 21:42 /lib/modules/2.6.32.11/build -> /home/kelly/src/Sheeva/SheevaPlug_LSP/Sources/linux-2.6.32.11-sheeva root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412#カーネルソースが必要か。。。。
|
←(前のページ) カーネル 2.6.32.11 のインストール |
当月のハックの記録 SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ |
(次のページ)→ カーネル 2.6.33.2 のインストール |