主题 : mini6410的QT系统如何开机注册wlan0 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 85651
精华: 0
发帖: 51
金钱: 255 两
威望: 51 点
综合积分: 102 分
注册时间: 2013-01-07
最后登录: 2015-09-04
楼主  发表于: 2014-06-06 10:51

 mini6410的QT系统如何开机注册wlan0

开发板:mini6410
WIFI模块:SDIO-wifi
问题:
LINUX QT系统启动后,使用ifconfig -a命令,出现eth0设备,并没有出现wlan0设备:
[root@FriendlyARM /]# ifconfig
eth0      Link encap:Ethernet  HWaddr 08:90:00:A0:90:90  
          inet addr:192.168.1.230  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1376 (1.3 KiB)  TX bytes:0 (0.0 B)
          Interrupt:108 Base address:0xe000

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
但是在内核中已经完整的包含了wifi模块的驱动,随后,使用友善自带的命令:scan-wifi,串口一些信息后,再使用ifconfig -a命令,这才有了wlan0设备,说明scan-wifi向系统注册了wlan0设备:
[root@FriendlyARM /]# scan-wifi
cfg80211: Calling CRDA to update world regulatory domain
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
libertas_sdio mmc1:0001:1: (unregistered net_device): fc:4d:d4:6d:d5:8b, fw 9.70.3p36, cap 0x00000303
libertas_sdio mmc1:0001:1: wlan0: Marvell WLAN 802.11 adapter
usbcore: registered new interface driver ath9k_htc
usbcore: registered new interface driver rt73usb
usbcore: registered new interface driver rt2800usb

rtw driver version=v3.3.2_3192.20120103
usbcore: registered new interface driver rtl8192cu
usbcore: registered new interface driver zd1211rw
         61% CSU
         60% IOT@CSU (Security)
         50% CSU
         51% IOT@CSU (Security)
         73% cisco-3 (Security)
        100% alex (Security)
         89% CEWR-Lab (Security)
         76% Private (Security)
         51% 206 (Security)
         77% cisco-2 (Security)
         80% ChinaNet
         67% ChinaNet
         79% ChinaNet-CSU
         67% ChinaNet-CSU
14 Access Point Found
[root@FriendlyARM /]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 08:90:00:A0:90:90  
          inet addr:192.168.1.111  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:782 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:58582 (57.2 KiB)  TX bytes:897 (897.0 B)
          Interrupt:108 Base address:0xe000

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr FC:4D:D4:6D:D5:8B  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
求问大神,我如何不使用scan-wifi命令,达到开发板开机就出现wlan0设备的效果?
级别: 侠客
UID: 85651
精华: 0
发帖: 51
金钱: 255 两
威望: 51 点
综合积分: 102 分
注册时间: 2013-01-07
最后登录: 2015-09-04
1楼  发表于: 2014-06-06 10:54
也就是如何向系统注册wlan0?
我进入/dev,里面并没有wlan0设备
使用scan-wifi命令前:
[root@FriendlyARM /etc]# cd /dev/
[root@FriendlyARM /dev]# ls
adc                 rtc0                tty50
audio               s3c-g2d             tty51
backlight           s3c-g3d             tty52
backlight-1wire     s3c-jpg             tty53
buttons             s3c-mfc             tty54
console             s3c-pp              tty55
cpu_dma_latency     s3c-rotator         tty56
device              sdcard              tty57
dsp                 shm                 tty58
fb0                 snd                 tty59
fb1                 sound               tty6
fb2                 touchscreen-1wire   tty60
fb3                 tty                 tty61
full                tty0                tty62
i2c                 tty1                tty63
input               tty10               tty7
kmsg                tty11               tty8
leds                tty12               tty9
log                 tty13               ttySAC0
loop                tty14               ttySAC1
mem                 tty15               ttySAC2
mixer               tty16               ttySAC3
mmcblk0             tty17               ttyp0
mtd0                tty18               ttyp1
mtd0ro              tty19               ttyp2
mtd1                tty2                ttyp3
mtd1ro              tty20               ttyp4
mtd2                tty21               ttyp5
mtd2ro              tty22               ttyp6
mtdblock0           tty23               ttyp7
mtdblock1           tty24               ttyp8
mtdblock2           tty25               ttyp9
network_latency     tty26               ttypa
network_throughput  tty27               ttypb
null                tty28               ttypc
ppp                 tty29               ttypd
psaux               tty3                ttype
ptmx                tty30               ttypf
pts                 tty31               ubi_ctrl
ptyp0               tty32               urandom
ptyp1               tty33               usbdev1.1
ptyp2               tty34               usbdev1.2
ptyp3               tty35               vcs
ptyp4               tty36               vcs1
ptyp5               tty37               vcs2
ptyp6               tty38               vcs3
ptyp7               tty39               vcs4
ptyp8               tty4                vcsa
ptyp9               tty40               vcsa1
ptypa               tty41               vcsa2
ptypb               tty42               vcsa3
ptypc               tty43               vcsa4
ptypd               tty44               video0
ptype               tty45               video1
ptypf               tty46               video14
pwm                 tty47               watchdog
random              tty48               zero
root                tty49
rtc                 tty5

使用scan-wifi命令后:
[root@FriendlyARM /]# cd /dev/
[root@FriendlyARM /dev]# ls
adc                 rtc0                tty50
audio               s3c-g2d             tty51
backlight           s3c-g3d             tty52
backlight-1wire     s3c-jpg             tty53
buttons             s3c-mfc             tty54
console             s3c-pp              tty55
cpu_dma_latency     s3c-rotator         tty56
device              sdcard              tty57
dsp                 shm                 tty58
fb0                 snd                 tty59
fb1                 sound               tty6
fb2                 touchscreen-1wire   tty60
fb3                 tty                 tty61
full                tty0                tty62
i2c                 tty1                tty63
input               tty10               tty7
kmsg                tty11               tty8
leds                tty12               tty9
log                 tty13               ttySAC0
loop                tty14               ttySAC1
mem                 tty15               ttySAC2
mixer               tty16               ttySAC3
mmcblk0             tty17               ttyp0
mtd0                tty18               ttyp1
mtd0ro              tty19               ttyp2
mtd1                tty2                ttyp3
mtd1ro              tty20               ttyp4
mtd2                tty21               ttyp5
mtd2ro              tty22               ttyp6
mtdblock0           tty23               ttyp7
mtdblock1           tty24               ttyp8
mtdblock2           tty25               ttyp9
network_latency     tty26               ttypa
network_throughput  tty27               ttypb
null                tty28               ttypc
ppp                 tty29               ttypd
psaux               tty3                ttype
ptmx                tty30               ttypf
pts                 tty31               ubi_ctrl
ptyp0               tty32               urandom
ptyp1               tty33               usbdev1.1
ptyp2               tty34               usbdev1.2
ptyp3               tty35               vcs
ptyp4               tty36               vcs1
ptyp5               tty37               vcs2
ptyp6               tty38               vcs3
ptyp7               tty39               vcs4
ptyp8               tty4                vcsa
ptyp9               tty40               vcsa1
ptypa               tty41               vcsa2
ptypb               tty42               vcsa3
ptypc               tty43               vcsa4
ptypd               tty44               video0
ptype               tty45               video1
ptypf               tty46               video14
pwm                 tty47               watchdog
random              tty48               zero
root                tty49
rtc                 tty5
级别: 侠客
UID: 85651
精华: 0
发帖: 51
金钱: 255 两
威望: 51 点
综合积分: 102 分
注册时间: 2013-01-07
最后登录: 2015-09-04
2楼  发表于: 2014-06-06 11:40
好吧 还是自问自答,在命令行中输入:
insmod /lib/modules/2.6.38-FriendlyARM/netcfg80211.ko
insmod /lib/modules/2.6.38-FriendlyARM/drivers/net/wireless/libertaslibertas.ko
insmod /lib/modules/2.6.38-FriendlyARM/drivers/net/wireless/libertas_sdio.ko
然后ifconfig -a可以看到wlan0了!