WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to install atheros wireless in Micro Core?  (Read 6233 times)

Offline lemming

  • Newbie
  • *
  • Posts: 37
How to install atheros wireless in Micro Core?
« on: July 15, 2010, 01:00:59 AM »
I have a board with an Atheros AR2413 wireless card in it.
I am told by the supplier that it uses the ath9k driver.
I am using MicroCore 2.11.6.

How do I install and configure this driver for this card.
All the how-tos refer to TinyCore and talk about installing GUI modules to set up and configure the card. (MicroCore does not have a GUI).

I am running from the CD at present with no flash or HDD storage and have installed wireless-2.6.29.1-tinycore.tcz.

lsmod shows ath5k has loaded but ifconfig only shows loopback and wired networks. I really need ath9k loaded and configured.

Has anyone out there done this or know how to using the command line?




Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: How to install atheros wireless in Micro Core?
« Reply #1 on: July 15, 2010, 01:08:45 AM »
Is the wireless_tools extension loaded (and see info file for command line instructions)?

What do the last few lines of dmesg show?

Offline lemming

  • Newbie
  • *
  • Posts: 37
Re: How to install atheros wireless in Micro Core?
« Reply #2 on: July 15, 2010, 02:11:25 AM »
I did not install wireless_tools because I thought that it was GUI.

dmesg should be under /var/log/ ? I only have "wlogin" and "wtmp" in /var/log/

 

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: How to install atheros wireless in Micro Core?
« Reply #3 on: July 15, 2010, 02:14:01 AM »
No, wireless_tools is command line, but most probably used by some gui as well.

dmesg is also command line, for example:
Code: [Select]
$ dmesg | tail -20
$ dmesg | grep something

Offline lemming

  • Newbie
  • *
  • Posts: 37
Re: How to install atheros wireless in Micro Core?
« Reply #4 on: July 15, 2010, 02:21:09 AM »
last lines of dmesg:
wlan0 (ath5k): not using net_device_ops yet
ath5k phy0:Atheros 2413 chip found (MAC: 0x78,  PHY: 0x45)

Is that enough or should I be looking for some other lines?

(Looks like the ath2413 uses ath5k driver)

Offline lemming

  • Newbie
  • *
  • Posts: 37
Re: How to install atheros wireless in Micro Core?
« Reply #5 on: July 15, 2010, 02:28:01 AM »
Surely there is a 'set procedure' that I can follow to install the card and configure it from the command line?

I am just running from CD at the moment so I don't mind starting from scratch.

The 'set procedure' would also serve as a 'How to guide' for newbies who come along later.  I'm surprised that there is not one already as this would be quite a common procedure. Maybe I'm just a bit slow but there seems to be  quite a few posts under Tiny Core (but based on GUI).

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: How to install atheros wireless in Micro Core?
« Reply #6 on: July 15, 2010, 02:44:26 AM »
As per the info file for wireless_tools:
Quote
$ sudo iwconfig wlan0 essid "essid"
$ sudo iwconfig wlan0 key restricted 12:34:56:78:9A:BC:DE:F0:12:34:56:78:9A
$ sudo udhcpc -b -i wlan0

This example assumes you are using wep encryption - do you know which encryption scheme you need?

Edit:

See here for a wpa encryption example:

http://forum.tinycorelinux.net/index.php?topic=4394.0
« Last Edit: July 15, 2010, 02:48:02 AM by Juanito »

Offline lemming

  • Newbie
  • *
  • Posts: 37
Re: How to install atheros wireless in Micro Core?
« Reply #7 on: July 15, 2010, 02:52:43 AM »
Thanks Juanito

I'm using WEP so I will give it a try.

Even though it is not configured I would have thought that the interface would show up in ifconfig if the drivers were loaded. It doesn't.

By the way, what is the difference between madwifi-hal.tcz and wireless-2.6.29.1-tinycore.tcz when it comes to Atheros cards?

I will try configuring as you said and get back.

Offline lemming

  • Newbie
  • *
  • Posts: 37
Re: How to install atheros wireless in Micro Core?
« Reply #8 on: July 15, 2010, 03:04:22 AM »
Thanks Juanito,

Its works a treat!

Do I just use ifconfig to set a static address for wlan0?


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: How to install atheros wireless in Micro Core?
« Reply #9 on: July 15, 2010, 03:24:03 AM »
Madwifi is a partial binary blob for the older Atheros cards. All new support is going to ath5/9k, but on supported cards madwifi might be faster, more reliable, more featureful.
The only barriers that can stop you are the ones you create yourself.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14546
Re: How to install atheros wireless in Micro Core?
« Reply #10 on: July 15, 2010, 04:01:45 AM »
Do I just use ifconfig to set a static address for wlan0?

I never tried - I go about it from the other direction and have the router supply a static address based on the mac address of the device in question.