大多数情况下我们让Linux嵌入式开发板通过LAN口连接笔记本来达到两者之间的通信,这里更进一步,介绍在此基础上,让开发板能共享笔记本的无线网来达到直接上互联网的目的。我使用的开发板是飞凌公司的OK335xD,笔记本操作系统是Ubuntu 12.04。
Configure the LAN and WLAN (general description)
Configure the LAN in terminal
$ sudo nano /etc/network/interfaces
Configure the WLAN to dhcp and automatic and LAN with a static ip address
auto lo
iface lo inet loopback
# The primary network interface
auto wlan0
iface wlan0 inet dhcp
# The second eth0
auto eth0
iface eth0 inet static
address 192.168.1.73
restart the network interface
$ sudo /etc/init.d/networking restart
Here if this cannot restart successfully, then try stop/start seperately, and the problem might be:
stop: Unknown instance:
networking stop/waiting
and even in the network application in ubuntu, the Wireless configuration is also disabled, it means that at the moment, the /etc/network/interfaces cannot correctly configure the network, here the solution is to use network manager service to configure the network:
sudo nano /etc/NetworkManager/NetworkManager.conf
change the line managed=false to managed=true (normally Ne