Showing results for 
Search instead for 
Did you mean: 



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 # 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="" ><img src="" width="90" height="90" border="0" /></a><a href="" >[GW-US54Pro]</a> 2.4 GHz IEEE802.11g 54Mbps Wireless LAN USB dongle with 5dBi Antenna

<a href="" ><img src="" width="83" height="90" border="0" /></a><a href="" >[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.


LinuxDriverEnglish & Chinese07,Sep,2006<a href="" ><img src="" 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


mkdir ~/zd1211

cd ~/zd1211

tar zxf GW-US54GZL_Linux_v.

zcat GW-US54GZL_Linux_v. | 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

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


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 # static IP

/> route add default gw # my wireless AP

/> ping # another node on my LAN 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


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