加载
root@raspberrypi:~# lsusb Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB Bus 001 Device 005: ID 0bda:8179 Realtek Semiconductor Corp. root@raspberrypi:~#
网卡8179 型号的需要加载8188eu.ko
下载的源码一直编译成armV5,不知道咋设置
下载已经
8188eu.ko.jpg 附件中
去掉jpg
在3.6.11+的内核中直接
insmod 8188eu.ko
lsmod可以看到已经加载8188eu了
ifconfig也可以看到wlan0了就成功了
wlan0设置密码:
root@raspberrypi:~# cat /etc/network/interfaces auto lo iface lo inet loopback iface eth0 inet dhcp #allow-hotplug wlan0 #iface wlan0 inet manual #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf #iface default inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "neu" wpa-psk "lucifer_chn"
或
root@raspberrypi:~# cat /etc/network/interfaces auto lo iface lo inet loopback auto wlan0 allow-hotplug wlan0 iface wlan0 inet static #wpa-ssid "awcloud" wpa-ssid "awcloud_1" #wpa-psk "Awcl0ud_wh" wpa-psk "1983love" address 192.168.137.19 netmask 255.255.255.0 gateway 192.168.137.1
如果不知道什么网络,可以用
iwlist wlan0 scan看看当前有什么网络
参考http://www.2cto.com/os/201209/153081.html
route add default gw 192.168.1.1
为了开机启动
在/etc/init.d/rc.local的最后编辑
注释:在ubuntu下/etc/profile 下设置的必须是用户登陆了才能起作用
/etc/rc.local不起作用
alias ls='ls --color' /sbin/insmod /root/8188/8188eu.ko /sbin/route add default gw 192.168.1.1 /etc/init.d/networking start
如果想把树莓派编程无线路由器
http://zhainan.org/?p=1661
勇哥的博客
http://guoyong.me
以上参考
http://www.buxiaoyang.com/raspberrypi_wifi_setting/
树莓派编译内核,下面暂时没测试
http://www.raspicn.com/thread-62-1-1.html
http://mitchtech.net/raspberry-pi-kernel-compile/
http://ukonline2000.com/?p=33
建立目录,执行 mkdir rpi 进入目录,执行 cd rpi 下载内核文件,并解压为linux(https://github.com/raspberrypi/linux) 或者使用git git clone https://github.com/raspberrypi/linux.git 4.下载内核工具,并解压为tools(https://github.com/raspberrypi/tools.git) 或者使用git git clone https://github.com/raspberrypi/tools.git 5.配置内核,执行(make ARCH=arm menuconfig) 6.编译内核,执行 make ARCH=arm CROSS_COMPILE=~/rpi/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/bin/arm-bcm2708-linux-gnueabi- 7.生成内核镜像 cd ~/rpi/tools/mkimage python imagetool-uncompressed.py ~/rpi/linux/arch/arm/boot/Image 8.找到kernel.img文件,替换SD卡中的同文件
http://www.codelast.com/?p=4945
Raspberry Pi(树莓派)配置记录/Configure the Arch Linux ARM on Raspberry Pi
--------------------------------
[size=1em]Asia
[size=1em]South Korea
[size=1em]dnetwork
[size=1em]http://mirror.devunt.kr/raspbian/raspbian/
[size=1em]Asia
[size=1em]South Korea
[size=1em]NeowizGames corp
[size=1em]http://ftp.neowiz.com/raspbian/raspbian
http://ftp.neowiz.com/raspbian/raspbian
rsync://ftp.neowiz.com/raspbian/raspbian
[size=1em]Asia
[size=1em]South Korea
[size=1em]KAIST
[size=1em](http|ftp|rsync)://ftp.kaist.ac.kr/raspbian/
更改方法 sudo vi /etc/apt/sources.list
把网址替换成上面的 我测试了一下 可以达到400 500kb/s 呵呵比原来的快多了
sudo apt-get update
sudo apt-get upgrade
参考http://www.eeboard.com/bbs/thread-5463-1-1.html