OpenWrt Forum Archive

Topic: help: /etc/config/wireless for x86 based system?

The content of this topic has been archived on 8 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,
I was testing out a x86 based system last night, after managing to get ext2_image dd onto hda and installing the additional *.ipk to get a usable system.

[Hint: after using a live-CD to dd the image to /dev/hda, create a 3rd partition make it ext2 and copy all of the *.ipk there. Once the router comes up you can mount the /dev/hda3 partition and install all the packages you need.]

I was able to configure the network IP/Netmask etc., however the format of the /etc/config/wireless file is a little elusive (by default it is empty).

The documentation page (http://wiki.openwrt.org/OpenWrtDocs/Kam … figuration) contains some info but doesn't cover x86 based systems. I can hand configure the wireless, but obviously I want it to boot to the correct settings.

Q). What 'option type' should I use?

I am attempting to build up a node with only a wireless card (prism2 based) to act as OLSRD repeater/node. If that is sucessfull I shall include an ethernet card and enable WAN/LAN functionality.

Cheers,
Munge.

PS. Such a small distro really flies on x86 hardware. yikes)

PPS. As the standard repositry doesn't include OLSRD (why?) I used the one from http://ipkg.k1k2.de/x86/packages/ which seems to work fine.

According to the wiki page (which could be out of date), option type can be set to either broadcom or atheros.  There are MANY pci, pcmcia, and mini pci Atheros devices, so that's an option.

If the prism type hasn't been implemented yet, you need to go through the regular prism driver installation http://islsm.org/wiki/doku.php?id=driver:linux_driver

You need probably need to use the cross compiler so any required libraries are linked correctly.

Beyond that, I'd set up an init script to run the few commands you need to get the wireless going.

The goal is for a small distro.  OLSRD isn't needed, so it isn't included.

exobyte wrote:

According to the wiki page (which could be out of date), option type can be set to either broadcom or atheros.  There are MANY pci, pcmcia, and mini pci Atheros devices, so that's an option.

except that I'm a 'cheap sod' who already has a prism card ;-).

exobyte wrote:

If the prism type hasn't been implemented yet, you need to go through the regular prism driver installation http://islsm.org/wiki/doku.php?id=driver:linux_driver

You need probably need to use the cross compiler so any required libraries are linked correctly.

Actually all I needed to do to get the hardware (Prism2 based PCI) working was install the following packages, and then I could hand configure the interface.
   kmod-net-hermes-pci_2.6.19.2-x86-1_i386.ipk
   kmod-net-hermes_2.6.19.2-x86-1_i386.ipk
   wireless-tools_28-1_i386.ipk   


I'll have a look to see how easy scripting something up is, but prehaps it's easiest to make an 'option simple' (or something) for /etc/config/wireless that does little other than run 'iwconfig <dev-name> mode managed', etc. for a single interface with a simplistic configuration.


exobyte wrote:

OLSRD isn't needed, so it isn't included.

Fair enough, I know I'm a bit out on the edge as I'm playing with meshed adhoc networks....

Munge.

They might have gotten around to implementing the prism type by now.  It's probably easiest to just make an init script, though.  Tracing what gets called can get to be a pain when editing scripts.

The discussion might have continued from here.