Community
cancel
Showing results for 
Search instead for 
Did you mean: 

Wi-Fi

Wi-Fi



Wireless LAN resources for Linux

Note, you can not use Ndis wrapper drivers. Because Nios II can not run x86 binary.

You can use [[media:/OperatingSystems/UClinux/AlteraPCI|AlteraPCI] (or mini-PCI adaptor) for 802.11b/g devices. In the kernel config you have to enable Drivers->Network->Wireless Lan for your driver. You can look at the Kconfig file to find out more devices supported, eg, Broadcom 43xx, Realtek etc .

Or you can use zd1211/b chipsets based wireless device with [[media:UsbHost|USBHost] ports. ZyDAS ZD1211 802.11b/g USB WLAN chipset Linux drivers (I think this one works better than the zd1211rw driver in 2.6.18) .

You need to include wireless_tool in UClinuxDistLinux Wireless Commands

modprobe "your wlan driver"

ifconfig wlan0 up # some drivers may use other dev names, such as eth0,eth1..

(Or use, ifconfig wlan0 192.168.1.10/255.255.255.0 # for static ip)


iwlist wlan0 scanning # find available APs

iwconfig wlan0 ap auto essid "Your SSID" # connect to an AP

Then you may run dhcpcd, if you didn't use static ip.

zd1211 on Nios II

Most 802.11b adaptors are getting obsolete. I found two USB adaptors built with zd1211 chipset. I bought them and tested on my Nios II.

<a href="http://www.planex.net/product/wireless/gw-us54pro.htm" ><img src="http://www.planex.net/image_s_product/gw-us54pro.gif" width="90" height="90" border="0" /></a><a href="http://www.planex.net/product/wireless/gw-us54pro.htm" >[GW-US54Pro]</a> 2.4 GHz IEEE802.11g 54Mbps Wireless LAN USB dongle with 5dBi Antenna

<a href="http://www.planex.net/product/wireless/gw-us54gzl.htm" ><img src="http://www.planex.net/image_s_product/gw-us54gzl.gif" width="83" height="90" border="0" /></a><a href="http://www.planex.net/product/wireless/gw-us54gzl.htm" >[GW-US54GZL]</a> 2.4 GHz IEEE 802.11g 54Mbps Wireless LAN USB Adapter

The included Linux driver is almost the same as the one on SourceForge.

V 2.15.0.0

LinuxDriverEnglish & Chinese07,Sep,2006<a href="http://www.planex.net/driver/wireless/GW-US54GZL/GW-US54GZL_Linux_v.2.15.0.0_CE.tar.gz" ><img src="http://www.planex.net/image/down_icon.gif" width="18" height="18" border="0" /></a>

You should try out this driver on your Linux PC first. Try out the wireless tools utility, and make sure everything works fine. Then make clean to try on Nios II. I made a ptaches for uClinux-dist-20060803. Change the kernel and module location otherwise.

cd ~/uClinux-dist

make menuconfig

drivers->network driver->

┌────────────────────── Wireless LAN (non-hamradio) ──────────────────────┐

│ ┌─────────────────────────────────────────────────────────────────────┐ │

│ │[*] Wireless LAN drivers (non-hamradio) & Wireless Extensions

│ │[ ] Wireless Extension API over RtNetlink

make

mkdir ~/zd1211

cd ~/zd1211

tar zxf GW-US54GZL_Linux_v.2.15.0.0_CE.tar.gz

zcat GW-US54GZL_Linux_v.2.15.0.0_CE.diff.gz | patch -p0

make # compile modules and copy to romfs

cd ~/uClinux-dist

make # depmod and strip the modules (ie, remove debug symbols and reduce the size)

make linux image # to update initramfs

/> modprobe zd1211 # or zd1211b depended on your chipset

_____ ____ _ ____


|__ / _| _ \\\\\\\\\\\\\\\\ / \\\\\\\\\\\\\\\\ / ___|



/ / | | | | | |/ _ \\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\___ \\\\\\\\\\\\\\\

/ /| |_| | |_| / ___ \\\\\\\\\\\\\\\\ ___) |


/____\\\\\\\\\\\\\\\\__, |____/_/ \\\\\\\\\\\\\\\\_\\\\\\\\\\\\\\\\____/



|___/


zd1211 - version 2.15.0.0

vendor_id = 2019

product_id = c008

USB 2.0 Host

Release Ver = 4330

EEPORM Ver = 4330

Finsih download Firmware. Ready to reboot

PA type: 0

AiroHa AL2230RF

AllowedChannel = 000107ff

Region:16

usbcore: registered new driver zd1211

/> ifconfig eth0 up

/> iwconfig

lo no wireless extensions.

Warning: Driver for device eth0 has been compiled with version 20

of Wireless Extension, while this program is using version 17.

Some things may be broken...

eth0 802.11b/g NIC ESSID:"bigcat"



Mode:Managed Frequency:2.452GHz Access Point: 00:11:2F:DE:36:51

Bit Rate:11Mb/s

Retry:off RTS thr=9999 B Fragment thr:off

Encryption key:off

Power Management:off


/> lsmod

Module Size Used by

zd1211 273024 0 - Live 0x03f00000

/> ifconfig eth0 192.168.1.210 # static IP

/> route add default gw 192.168.1.220 # my wireless AP

/> ping 192.168.1.254 # another node on my LAN

192.168.1.254 is alive!


Note, if you have ethernet on board, eg, smc91c111 or dm9000 enabled as eth0, then the wireless device may be next free eth device eg, eth1 . If your wireless AP is protected, you may have to give SSID and "key" .

iwlist eth0 scanning # find available APs

iwconfig eth0 ap auto essid "Your SSID" key "your key" # connect to an AP, see man page of iwconfig

Download


Version history
Revision #:
1 of 1
Last update:
‎06-26-2019 02:33 AM
Updated by:
 
Contributors