Your own wlan access point

Plugging in devices such as LAN adapters, Wi-Fi cards, printers, etc. to Arch Linux ARM.

Re: Your own wlan access point

Postby LaTristesse » Mon Sep 13, 2010 11:10 am

Is there anything else I've to do except putting the firmare into "lib/firmware" in order to get the dockstar recognize the dongle because a "ifconfig" don't list the device and after compiling iw a "iw list" show nothing too.

A "lstusb" show me the following:

$this->bbcode_second_pass_code('', 'Bus 001 Device 004: ID 0bc2:2101 Seagate RSS LLC
Bus 001 Device 003: ID 0cf3:1002 Atheros Communications, Inc.
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
')

$this->bbcode_second_pass_quote('pepedog', 'P')rogress
I compiled a module, then when that didn't work patched in the module to kernel source, had to edit kbuilds, patch stuff and knew it would compile. Got firmware files in right place, rebuilt kernel and installed modules, and rebooted.
modprobe carl9170usb


Could you decribe your process in more detail.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Your own wlan access point

Postby pepedog » Mon Sep 13, 2010 1:16 pm

Which fw did you pick to go in /lib/firmware?
Anyway, plug in stick, type dmesg, I get this
usb 1-1.2: reset high speed USB device using orion-ehci and address 6
usbcore: registered new interface driver ar9170usb
ath: EEPROM regdomain: 0x809c
ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x52
ath: Country alpha2 being used: CN
ath: Regpair used: 0x52
phy2: Selected rate control algorithm 'minstrel'
cfg80211: Calling CRDA for country: CN
Registered led device: ar9170-phy2::tx
Registered led device: ar9170-phy2::assoc
usb 1-1.2: Atheros AR9170 is registered as 'phy2'
cfg80211: Current regulatory domain intersected:
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)

Type modprobe ar9170usb
Now lsmod should show
Module Size Used by
ar9170usb 48004 0
ath 7186 1 ar9170usb

and iw list should show plenty
iw phy4 info
Wiphy phy4
Band 1:
Frequencies:
* 2412 MHz [1] (20.0 dBm)
* 2417 MHz [2] (20.0 dBm)
* 2422 MHz [3] (20.0 dBm)
* 2427 MHz [4] (20.0 dBm)
* 2432 MHz [5] (20.0 dBm)
* 2437 MHz [6] (20.0 dBm)
* 2442 MHz [7] (20.0 dBm)
* 2447 MHz [8] (20.0 dBm)
* 2452 MHz [9] (20.0 dBm)
* 2457 MHz [10] (20.0 dBm)
* 2462 MHz [11] (20.0 dBm)
* 2467 MHz [12] (20.0 dBm)
* 2472 MHz [13] (20.0 dBm)
* 2484 MHz [14] (disabled)
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps (short preamble supported)
* 5.5 Mbps (short preamble supported)
* 11.0 Mbps (short preamble supported)
* 6.0 Mbps
* 9.0 Mbps
* 12.0 Mbps
* 18.0 Mbps
* 24.0 Mbps
* 36.0 Mbps
* 48.0 Mbps
* 54.0 Mbps
max # scan SSIDs: 4
max scan IEs length: 2288 bytes
Coverage class: 0 (up to 0m)
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor
Supported commands:
* new_interface
* set_interface
* new_key
* new_beacon
* new_station
* new_mpath
* set_mesh_params
* set_bss
* authenticate
* associate
* deauthenticate
* disassociate
* join_ibss
* remain_on_channel
* set_tx_bitrate_mask
* action
* set_wiphy_netns
* set_channel
* connect
* disconnect

and ifconfig -a
wlan0 Link encap:Ethernet HWaddr 00:23:CD:B8:96:D1
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Just realised I have carl9170usb module loaded, and shows it does AP.

Again, I don't think your module will do it, even with the carl module I had module issues (you have to compile kernel, and a lot more to get the carl9170usb module)

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby LaTristesse » Mon Sep 13, 2010 8:41 pm

Thanks for your response Dave.

$this->bbcode_second_pass_quote('pepedog', 'W')hich fw did you pick to go in /lib/firmware?


I picked the "one stage" firmware at http://www.kernel.org/pub/linux/kernel/ ... /ar9170.fw and rebooted. Than I plugged in the wlan stick and did a "dmesg". But this is all I got:

$this->bbcode_second_pass_code('', 'mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: hardware counters not available
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
Gating clock of unused units
before: 0x00dfc3fd
after: 0x00c701d9
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Waiting 10sec before mounting root device...
scsi 0:0:0:0: Direct-Access Seagate FreeAgent Go 0142 PQ: 0 ANSI: 4
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 625142446 512-byte logical blocks: (320 GB/298 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 1c 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing init memory: 140K
udev: starting version 157
fuse init (API version 7.14)
EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
eth0: link up, 100 Mb/s, full duplex, flow control disabled
usb 1-1.2: new high speed USB device using orion-ehci and address 4
')

modeprobe isnt working since there is no device which is recognized.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Your own wlan access point

Postby pepedog » Tue Sep 14, 2010 6:47 am

It appears that the module isn't compiled, will send you instructions on how to compile kernel and include the module, if you don't know how. I remember now I had to do that, and it isn't really that hard.
Including carl9170 is a lot more hard to do though.

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby LaTristesse » Tue Sep 14, 2010 3:30 pm

$this->bbcode_second_pass_quote('pepedog', 'I')t appears that the module isn't compiled, will send you instructions on how to compile kernel and include the module, if you don't know how.


Thanks again Dave. Sadly I dont know. Maybe you know also a good beginners tutorial for compiling a kernel?
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm
Top

Re: Your own wlan access point

Postby ygator » Tue Sep 14, 2010 4:18 pm

I just followed the wiki to compile a kernel. http://Arch Linux ARM.com/index.php5?title=Developers:_Building_a_Kernel

However, instead of using the version mentioned in the wiki I got the latest one instead. It took 2.5 hours to build everything. I then added some of the dockstar patches like the one to control the LEDs.
ygator
 
Posts: 97
Joined: Tue Aug 10, 2010 9:37 pm

Re: Your own wlan access point

Postby pepedog » Wed Sep 15, 2010 12:10 am

My ISP is down
Did you make menu config to add the modules?
As far as I remember
Drivers
Network
Wireless
USB

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby pepedog » Wed Sep 15, 2010 10:10 am

Further to this, I did iw list for drivers 9170usb and carl9170usb
9170usb
Supported interface modes:
* IBSS
* managed
* WDS
* monitor

carl9170usb
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* WDS
* monitor

So I guess ar9170usb is no good.
I will run a diff against kernel I compiled (2.6.35.2 with sheever and all patches inc led) against stock with stock sheeva config.
But I think some other drivers require activating (like hostap and prism)

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby pepedog » Thu Sep 16, 2010 5:28 pm

I got the ap running, but couldn't get wpa/wpa2 working, but connected with mac filtering.
Cannot get an ip address at the moment.
Soon as I figure this out will post soloution.

Dave
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Your own wlan access point

Postby LaTristesse » Thu Sep 16, 2010 6:13 pm

That sounds great. Keep on working, I would appreciate a how-to for this.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

PreviousNext

Return to Hardware

Who is online

Users browsing this forum: No registered users and 5 guests