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 » Sat Sep 18, 2010 2:05 pm

$this->bbcode_second_pass_quote('pepedog', '
')Maybe, I just posted my rc.conf and dnsmasq as guides?
My eth0 is wired lan
You probably want
rc.conf
eth0="dhcp"
wlan0="wlan0 192.168.4.1 netmask 255.255.255.0 broadcast 192.168.4.255"
INTERFACES=(eth0 wlan0)


I connect my Dockstar via wired lan and want to share the connection over the usb-wlan-dongle. I can connect to the access-point provided by the dongle but I'm not able to surf the internet from there. I tried to ping google.com without success.

$this->bbcode_second_pass_quote('pepedog', '
')Also I forgot
/etc/rc.conf/iptables
IPTABLES_FORWARD=1 # enable IP forwarding?
which is quite important.


There is no such file. Did you mean "/etc/conf.d/iptables"? Also do I have to start iptable? Because it asks me for:

$this->bbcode_second_pass_code('', 'Cannot load iptables rules: /etc/iptables/iptables.rules is missing!
')

$this->bbcode_second_pass_quote('pepedog', '
') I gather you figured out yImage rename?


Yeah, I renamed "uImage-Dockstar" to "uImage".

$this->bbcode_second_pass_quote('pepedog', '
')what country did you pick up in dmesg?


How do I pick up a country? A "dmesg | grep -i country" will output:

$this->bbcode_second_pass_code('', 'ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x37
ath: Country alpha2 being used: GB
cfg80211: Calling CRDA for country: GB
')
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm
Top

Re: Your own wlan access point

Postby LaTristesse » Sat Sep 18, 2010 2:17 pm

It's also impossible to ping the dockstar over the wired connection.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Your own wlan access point

Postby pepedog » Sat Sep 18, 2010 2:18 pm

$this->bbcode_second_pass_quote('', 'T')here is no such file. Did you mean "/etc/conf.d/iptables"? Also do I have to start iptable? Because it asks me for:

Sorry, I meant /etc/conf.d/iptables

Don't start iptables daemon

$this->bbcode_second_pass_quote('', 'H')ow do I pick up a country? A "dmesg | grep -i country" will output:
Code: Select all
ath: EEPROM indicates we should expect a country code
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x37
ath: Country alpha2 being used: GB
cfg80211: Calling CRDA for country: GB

Do you have wpa_supplicant installed?
That might give /etc/conf.d/wireless-regdom file, or I messed about with crda.

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

Re: Your own wlan access point

Postby LaTristesse » Sat Sep 18, 2010 2:33 pm

It should be installed because Pacman shows me:

$this->bbcode_second_pass_code('', 'core/wpa_supplicant 0.6.10-2 (base) [installed]')
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Your own wlan access point

Postby pepedog » Sat Sep 18, 2010 2:34 pm

$this->bbcode_second_pass_code('', 'pacman -S wireless-regdb
pacman -U http://myplugbox.com/wireless/crda/crda-1.1.1-1-arm.pkg.tar.xz')
does it

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

Re: Your own wlan access point

Postby LaTristesse » Sat Sep 18, 2010 2:52 pm

Yeah, know the file is there. Do I have to add "wireless-regdom" to the DAEMONS?

I'm still unable to connect to the internet or ping the dockstar wired ip. Any suggestions? Do I have to add someting /etc/hostapd/hostapd.conf file in order to get access.
LaTristesse
 
Posts: 35
Joined: Mon Jul 26, 2010 8:57 pm

Re: Your own wlan access point

Postby pepedog » Sat Sep 18, 2010 5:46 pm

$this->bbcode_second_pass_quote('LaTristesse', 'Y')eah, know the file is there. Do I have to add "wireless-regdom" to the DAEMONS?

I'm still unable to connect to the internet or ping the dockstar wired ip. Any suggestions? Do I have to add someting /etc/hostapd/hostapd.conf file in order to get access.

I don't have wireless-regdom running, but I will come back to that.
I would stop hostapd daemon running, and start it in another terminal so you can see whats happening
hostapd /etc/hostapd/hostapd.conf
Stop with ctrl C, you can make changes and start again.

Yes, you have to have /etc/hostapd/hostapd.conf configured, I gave an example of mine, it took a while getting the working settings.

As for country, if editing regdom, and crda service don't help, I can't remember.
I think maybe the firmware dsc file had something to do with it, but at the moment I can't find the source code for carl9170usb in kernel.org. Something is wierd there?

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

Re: Your own wlan access point

Postby pepedog » Sat Sep 18, 2010 5:58 pm

iw reg set GB
That aparently sets country.
regdom daemon apparently picks up country from conf.d file and does that.

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

Re: Your own wlan access point

Postby pepedog » Sun Sep 19, 2010 5:16 pm

I think I spotted a few errors in my sample conf files

interfaces
net eth1 detect routefilter,blacklist,tcpflags,nosmurfs
loc eth0 detect dhcp
This really should be
net eth0 detect routefilter,blacklist,tcpflags,nosmurfs
loc wlan0 detect dhcp
This would explain ping problem

masq
eth1 192.168.4.0/24
should be
eth0 192.168.4.0/24
This would stop you seeing the internet

If you dockstar is behind a firewall and you want to access samba etc via eth0, in policy change
all all DROP info
to
all all ACCEPT

Do shorewall check, then shorewall restart

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

Re: Your own wlan access point

Postby pepedog » Mon Sep 20, 2010 11:21 pm

Out of interest, I just git 2.6.36-rc4-wl-47529-g4697e4e-dirty wireless testing, noticed change on led.
Now led blinks when traffic present.
EDIT: this driver crapped out after a few hours, original stable for days

Got it working yet?
Dave
Last edited by pepedog on Tue Sep 21, 2010 10:20 am, edited 1 time in total.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

PreviousNext

Return to Hardware

Who is online

Users browsing this forum: No registered users and 15 guests