• «
  • 1
  • 2
  • 3
  • »
  • Pages: 2/3     Go
主题 : mini6410 linux2.6.36 SDIO wifi marvell 8686 模块驱动如何编译? 复制链接 | 浏览器收藏 | 打印
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
10楼  发表于: 2011-03-01 12:40
没必要留着原来的,为何不删除整个/lib/modules/2.6.36* ?
lgs
级别: 新手上路
UID: 38690
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
综合积分: 42 分
注册时间: 2011-02-28
最后登录: 2011-03-30
11楼  发表于: 2011-03-01 12:56
哦,呵呵,之前我不知道会不会有其他的程序要用其他的module

不过至少我还不知道怎么自己编compat.ko,指点一下?
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
12楼  发表于: 2011-03-01 13:39
忽略compat.ko即可
kernel编译出来的wifi的ko是不需要compat.ko的
lgs
级别: 新手上路
UID: 38690
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
综合积分: 42 分
注册时间: 2011-02-28
最后登录: 2011-03-30
13楼  发表于: 2011-03-01 13:52
really? 我尽快试一试,谢谢^_^
lgs
级别: 新手上路
UID: 38690
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
综合积分: 42 分
注册时间: 2011-02-28
最后登录: 2011-03-30
14楼  发表于: 2011-03-02 02:24
还是一样的问题...

首先,kernel编出来wifi的ko确实不需要compat.ko
其次,我用make INSTALL_MOD_PATH=X modules_install的方法得到了ko,将原来的删除,用新的替换,一样是最终不工作的问题,即加载正常,scan不到任何东西,iwconfig没有无线接口

过程打印如下,请参考:
复制代码
  1. [root@FriendlyARM lgs]# rm -rf /lib/modules/2.6.36-FriendlyARM/
  2. [root@FriendlyARM lgs]# cp -r /mnt/2.6.36-FriendlyARM/ /lib/modules/
  3. [root@FriendlyARM lgs]# ls -l /lib/modules/2.6.36-FriendlyARM/
  4. lrwxrwxrwx    1 root     root            55 Mar  1 10:19 build -> /home/lgs/Work/Linux/linux-2.6.36-20101229/linux-2.6.36
  5. drwxr-xr-x    1 root     root          2048 Mar  1 10:19 kernel
  6. -rw-r--r--    1 root     root         10099 Mar  1 10:19 modules.builtin
  7. -rw-r--r--    1 root     root           896 Mar  1 10:19 modules.order
  8. lrwxrwxrwx    1 root     root            55 Mar  1 10:19 source -> /home/lgs/Work/Linux/linux-2.6.36-20101229/linux-2.6.36
  9. [root@FriendlyARM lgs]# cfg80211: Calling CRDA to update world regulatory domain
  10. libertas_sdio: Libertas SDIO driver
  11. libertas_sdio: Copyright Pierre Ossman
  12. libertas: 70:f3:95:ec:44:cc, fw 9.70.3p36, cap 0x00000303
  13. cfg80211: Calling CRDA for country: JP
  14. libertas: wlan0: Marvell WLAN 802.11 adapter
  15. led_class: exports duplicate symbol led_classdev_unregister (owned by kernel)
  16. usbcore: registered new interface driver ath9k_hif_usb
  17. led_class: exports duplicate symbol led_classdev_unregister (owned by kernel)
  18. usbcore: registered new interface driver rt73usb
  19. usbcore: registered new interface driver rt2800usb
  20. usbcore: registered new interface driver zd1211rw
  21. [root@FriendlyARM lgs]# ifconfig -a
  22. eth0      Link encap:Ethernet  HWaddr 08:90:90:90:90:90  
  23.           inet addr:10.168.220.59  Bcast:10.168.220.255  Mask:255.255.255.0
  24.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  25.           RX packets:14621 errors:0 dropped:0 overruns:0 frame:0
  26.           TX packets:8074 errors:0 dropped:0 overruns:0 carrier:0
  27.           collisions:0 txqueuelen:1000
  28.           RX bytes:21689884 (20.6 MiB)  TX bytes:596104 (582.1 KiB)
  29.           Interrupt:108 Base address:0xe000
  30. lo        Link encap:Local Loopback  
  31.           inet addr:127.0.0.1  Mask:255.0.0.0
  32.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  33.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  34.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  35.           collisions:0 txqueuelen:0
  36.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  37. wlan0     Link encap:Ethernet  HWaddr 70:F3:95:EC:44:CC  
  38.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  39.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  40.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  41.           collisions:0 txqueuelen:1000
  42.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  43. [root@FriendlyARM lgs]# iwconfig
  44. lo        no wireless extensions.
  45. eth0      no wireless extensions.
  46. wlan0     no wireless extensions.
[ 此帖被lgs在2011-03-02 02:53重新编辑 ]
lgs
级别: 新手上路
UID: 38690
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
综合积分: 42 分
注册时间: 2011-02-28
最后登录: 2011-03-30
15楼  发表于: 2011-03-02 02:27
若将/lib/modules/2.6.36*替换为rootfs中的ko,则可以正常工作

详细打印如下,请参考:
复制代码
  1. Compat-wireless backport release: compat-wireless-2011-01-06
  2.   Backport based on linux-next.git next-20110111
  3.   cfg80211: Calling CRDA to update world regulatory domain
  4.   libertas_sdio: Libertas SDIO driver
  5.   libertas_sdio: Copyright Pierre Ossman
  6.   libertas: 70:f3:95:ec:44:cc, fw 9.70.3p36, cap 0x00000303
  7.   libertas: wlan0: Marvell WLAN 802.11 adapter
  8.   usbcore: registered new interface driver ath9k_hif_usb
  9.   usbcore: registered new interface driver rt73usb
  10.   usbcore: registered new interface driver rt2800usb
  11. usbcore: registered new interface driver zd1211rw
  12. [root@FriendlyARM lgs]# ifconfig
  13. eth0      Link encap:Ethernet  HWaddr 08:90:90:90:90:90
  14.            inet addr:10.168.220.59  Bcast:10.168.220.255  Mask:255.255.255.0
  15.            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  16.            RX packets:17165 errors:0 dropped:0 overruns:0 frame:0
  17.            TX packets:9478 errors:0 dropped:0 overruns:0 carrier:0
  18.            collisions:0 txqueuelen:1000
  19.            RX bytes:25314089 (24.1 MiB)  TX bytes:707068 (690.4 KiB)
  20.            Interrupt:108 Base address:0xe000
  21.   
  22. lo        Link encap:Local Loopback
  23.            inet addr:127.0.0.1  Mask:255.0.0.0
  24.            UP LOOPBACK RUNNING  MTU:16436  Metric:1
  25.            RX packets:2 errors:0 dropped:0 overruns:0 frame:0
  26.            TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
  27.            collisions:0 txqueuelen:0
  28.            RX bytes:176 (176.0 B)  TX bytes:176 (176.0 B)
  29. wlan0     Link encap:Ethernet  HWaddr 70:F3:95:EC:44:CC
  30.            UP BROADCAST MULTICAST  MTU:1500  Metric:1
  31.            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  32.            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  33.            collisions:0 txqueuelen:1000
  34.            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  35. [root@FriendlyARM lgs]# iwconfig
  36. lo        no wireless extensions.
  37. eth0      no wireless extensions.
  38. wlan0     IEEE 802.11bg  ESSID:off/any
  39.            Mode:Managed  Access Point: Not-Associated
  40.            Retry  long limit:7   RTS thr:off   Fragment thr:off
  41.            Encryption key:off
  42.           Power Management:on
[ 此帖被lgs在2011-03-02 02:53重新编辑 ]
lgs
级别: 新手上路
UID: 38690
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
综合积分: 42 分
注册时间: 2011-02-28
最后登录: 2011-03-30
16楼  发表于: 2011-03-02 02:49
再附上一份打开libertas_debug的打印,使用的modules是20110112编译所得,问题现象和20101229的kernel编译所得是一样的,所以过程应该也是一样,即在结束前start_card的时候没有得到正确的结果,请参见最后一次DNLD_CMD和CMD_RESP(001D和801D)

详细打印如下,请参考:
复制代码
  1. [root@FriendlyARM lgs]# modprobe libertas_sdio
  2. libertas_sdio: Libertas SDIO driver
  3. libertas_sdio: Copyright Pierre Ossman
  4. libertas DNLD_CMD: 03 00 2e 00 01 00 00 00 00 00 00 00 00 00 00 00
  5. libertas DNLD_CMD: ff ff ff ff ff ff 00 00 00 00 00 00 00 00 00 00
  6. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  7. libertas CMD_RESP: 03 80 2e 00 01 00 00 00 02 00 12 00 08 00 40 00
  8. libertas CMD_RESP: 70 f3 95 ec 44 cc 40 00 01 00 03 46 09 24 00 00
  9. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 03 03 00 00
  10. libertas: 70:f3:95:ec:44:cc, fw 9.70.3p36, cap 0x00000303
  11. libertas DNLD_CMD: 1e 00 0e 00 02 00 00 00 one_wire_status: 4
  12. 00 00 00 00 00 00
  13. libertas CMD_RESP: 1e 80 0e 00 02 00 00 00 00 00 0e 00 0e 09
  14. libertas DNLD_CMD: 16 00 8e 00 03 00 00 00 01 00 09 00 02 00 01 00
  15. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  16. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  17. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  18. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  19. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  20. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  21. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  22. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  23. libertas CMD_RESP: 16 80 8e 00 03 00 00 00 01 00 09 00 02 00 01 00
  24. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  25. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  26. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  27. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  28. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  29. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  30. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  31. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  32. libertas DNLD_CMD: 28 00 0c 00 04 00 00 00 03 00 one_wire_status: 4
  33. libertas 802.11D domain param set: 30 30 20 01 0e 14
  34. 00 00
  35. libertas CMD_RESP: 28 80 0c 00 04 00 00 00 03 00 00 00
  36. libertas DNLD_CMD: 5b 00 14 00 05 00 00 00 01 00 07 00 06 00 30 30
  37. libertas DNLD_CMD: 20 01 0e 14
  38. libertas CMD_RESP: 5b 80 14 00 05 00 00 00 01 00 07 00 06 00 30 30
  39. libertas CMD_RESP: 20 01 0e 14
  40. cfg80211: Calling CRDA for country: JP
  41. libertas DNLD_CMD: 1d 00 30 00 06 00 00 00 00 00 00 00 00 00 00 00
  42. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  43. libertas DNLD_CMD: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  44. libertas CMD_RESP: 1d 80 30 00 06 00 00 00 00 00 01 00 00 00 00 00
  45. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  46. libertas CMD_RESP: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  47. libertas: wlan0: Marvell WLAN 802.11 adapter
  48. one_wire_status: 4
  49. [root@FriendlyARM lgs]# ifconfig
  50. eth0 Link encap:Ethernet HWaddr 08:90:90:90:90:90
  51. inet addr:10.168.220.59 Bcast:10.168.220.255 Mask:255.255.255.0
  52. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  53. RX packets:7572 errors:0 dropped:0 overruns:0 frame:0
  54. TX packets:4107 errors:0 dropped:0 overruns:0 carrier:0
  55. collisions:0 txqueuelen:1000
  56. RX bytes:10885675 (10.3 MiB) TX bytes:309314 (302.0 KiB)
  57. Interrupt:108 Base address:0xe000
  58. lo Link encap:Local Loopback
  59. inet addr:127.0.0.1 Mask:255.0.0.0
  60. UP LOOPBACK RUNNING MTU:16436 Metric:1
  61. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  62. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  63. collisions:0 txqueuelen:0
  64. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  65. [root@FriendlyARM lgs]# ifconfig -a
  66. eth0 Link encap:Ethernet HWaddr 08:90:90:90:90:90
  67. inet addr:10.168.220.59 Bcast:10.168.220.255 Mask:255.255.255.0
  68. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  69. RX packets:7575 errors:0 dropped:0 overruns:0 frame:0
  70. TX packets:4107 errors:0 dropped:0 overruns:0 carrier:0
  71. collisions:0 txqueuelen:1000
  72. RX bytes:10886274 (10.3 MiB) TX bytes:309314 (302.0 KiB)
  73. Interrupt:108 Base address:0xe000
  74. lo Link encap:Local Loopback
  75. inet addr:127.0.0.1 Mask:255.0.0.0
  76. UP LOOPBACK RUNNING MTU:16436 Metric:1
  77. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  78. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  79. collisions:0 txqueuelen:0
  80. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  81. wlan0 Link encap:Ethernet HWaddr 70:F3:95:EC:44:CC
  82. BROADCAST MULTICAST MTU:1500 Metric:1
  83. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  84. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  85. collisions:0 txqueuelen:1000
  86. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
  87. [root@FriendlyARM lgs]# iwconfig
  88. lo no wireless extensions.
  89. eth0 no wireless extensions.
  90. wlan0 no wireless extensions.
lgs
级别: 新手上路
UID: 38690
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
综合积分: 42 分
注册时间: 2011-02-28
最后登录: 2011-03-30
17楼  发表于: 2011-03-02 02:55
十分感谢帮忙,如果需要进一步信息请说明,我在第一时间提供
lgs
级别: 新手上路
UID: 38690
精华: 0
发帖: 21
金钱: 105 两
威望: 21 点
综合积分: 42 分
注册时间: 2011-02-28
最后登录: 2011-03-30
18楼  发表于: 2011-03-02 10:54
顶一下 怎么还没回复
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
19楼  发表于: 2011-03-02 10:59
试试 cat /proc/net/wireless
看看是不是有WE及其版本号,如果看不到WE则说明WEXT没有编译进去
[ 此帖被911gt3在2011-03-02 11:34重新编辑 ]
  • «
  • 1
  • 2
  • 3
  • »
  • Pages: 2/3     Go