编译网卡驱动,需要内核代码1
2
3
4
5
6
7
8
9
10sudo rpi-update
git clone --depth 1 https://github.com/raspberrypi/linux.git
sudo ln -s linux /lib/modules/3.6.11+/build
make mrproper
gzip -dc /proc/config.gz > .config
make oldconfig
make prepare
<!-- more -->
make modules_prepare
wget https://github.com/raspberrypi/firmware/raw/master/extra/Module.symvers
去驱动代码路径执行1
2
3
4
5
6
7
8
9
10
11
12
13make
sudo make install
You can stop this by editing the os/linux/rt_linux.c
Change the line
ULONG RTDebugLevel = RT_DEBUG_TRACE;
to
ULONG RTDebugLevel = RT_DEBUG_ERROR;
allow-hotplug ra0
iface ra0 inet dhcp
wpa-ssid meow
wpa-psk "miaolegemide"
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf