Author Topic: Wifi/WPA2/dhcp on GadgetPC Debian.  (Read 11109 times)

ehagerup1

  • Guest
Wifi/WPA2/dhcp on GadgetPC Debian.
« on: January 16, 2010, 10:27:04 pm »
For those interested.  I was able to implement this quite easily through the following steps in Debian:

1) If you don\'t already have it install wpasupplicant (apt-get install wpasupplicant) or use the debian package repository if you have no networks to connect to.

2) Plug in your USB Wifi card (WUA 1340 in my case).

3) run:
nano /etc/network/interfaces

at the bottom of the document insert the following:

auto wlan0
iface wlan0 inet dhcp
wpa-psk "YOUR PSK KEY"
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid "YOUR SSID"

save the file (cntrl - X and press yes)

either reboot or run:

"/etc/init.d/networking restart"

to restart the wireless card.

Should be it at least it was for me.

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Wifi/WPA2/dhcp on GadgetPC Debian.
« Reply #1 on: February 06, 2010, 08:26:46 am »
The latest Debian release to support WiFi ( DLink WUA1340) /WPA2/ with the fixed IP is added to Bipom FTP public server (bipomftp@www.bipom.com)

FTP Username = bipomftp
FTP Password = guest123!
http://www.bipom.com/support/gadgetpc/bipomftp.png

Linux kernel: linux2.6.30.4_06Feb2010.tar.bz2
RootFS (Debian Lenny): debian_rootfs_06Feb2010.tar.bz2
Platform: BiPOM ARM9260
Features: UVC camera, DLink WiFi interface, mc, swap support, man-db, WAP2-PSK, ssh, telnetd

To run  the system it is necessary to:
- prepare a dual-partition USB drive
Read http://www.bipom.com/documents/boards/gadgetpc/GadgetPC%20Debian%20Installation%20Guide.pdf ;
- adapt U-Boot of Gadget PC to mount USB drive as ROOTFS
Code: [Select]
setenv bootargs mem=32M console=ttyS1,115200 root=/dev/sda2 rw rootwait
setenv bootcmd \'usb start; fatload usb 0:1 0x21000000 uimage; bootm 0x21000000\'
saveenv
;
- adapt /etc/network/interfaces to your network
Code: [Select]
# The wireless network WPA2-PSK interface
auto wlan0
iface wlan0 inet static
address 192.168.1.211
netmask 255.255.255.0
gateway 192.168.1.1
wpa-psk "your_password"
wpa-driver wext
wpa-key-mgmt WPA-PSK
wpa-proto WPA2
wpa-ssid "your_ssid"
;

- assign WPA2-PSK authentication to your wireless network
« Last Edit: February 06, 2010, 09:37:36 am by vitaliy »

vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Wifi/WPA2/dhcp on GadgetPC Debian.
« Reply #2 on: February 17, 2010, 09:42:08 am »
The new DEBIAN release is added to BIPOMFTP
linux2.6.30.4_15Feb2010.tar.bz2
debian_rootfs_17Feb2010.tar.bz2

It includes BiPOM installer to detect the used board (GadgetPC or Mini-Max/ARM9) to install all the necessary drivers automatically.

Also, it configures all network interfaces automatically
if your network has DHCP server.

Note. In case of WiFi it is necessary to edit SSID/PASSWORD
of /etc/network/interfaces


vitaliy

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Wifi/WPA2/dhcp on GadgetPC Debian.
« Reply #3 on: February 22, 2010, 02:19:10 am »
To make the WiFi connection faster
it is necessary to add 1 extra line to /etc/network/interfaces

pre-up iwconfig wlan0 rate 54M