Skip to contentSkip to conversation

wireless lan PCMCIA card advice

DISCUSSION curt brune 2 participants 4 messages Jan 6, 2003 – Jan 7, 2003

lore
Share & tools
lore

curt brune

author
#0 lore raw

Hello,

I have a RPXLite 823e based board from EmbeddedPlanet that has an open PCMCIA slot in it. Currently I am booting a 2.4.4 kernel from ELDK which works just fine.

I would like to buy a wireless 802.11b PCMCIA card for this board and am wondering about any past experiences. I have researched the general linux+WiFi webistes a bit, but I wanted the embedded society's opinion also.

Any success stories out there? If so could you include the following info?

embedded board:
PCMCIA hardware:
PCMCIA vendor:
driver used:
kernel version:

I appreciate your help. Please CC: me on the replies.

Cheers,
Curt

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

Dear Curt,

Quoted 4 lines · in message <[email protected]> you wrote:

I have a RPXLite 823e based board from EmbeddedPlanet that has an open PCMCIA slot in it. Currently I am booting a 2.4.4 kernel from ELDK which works just fine.

The current version of our ELDK provides pretty complete support for PCMCIA cards, and has been tested with WLAN, CompactFlash and other IDE, network and modem cards.

Quoted 7 lines

I would like to buy a wireless 802.11b PCMCIA card for this board and am wondering about any past experiences. I have researched the general linux+WiFi webistes a bit, but I wanted the embedded society's opinion also.

Any success stories out there? If so could you include the following info?

Here is a step-by-step description of what we did - both on custom hardware and on standard TQM8xxL systems:

1. Building and installing the CardServices package.

QUICKSTART:

- Unpack pcmcia-cs-3.2.0.tar.gz tarball, apply patch.

- The CIS replacement data file ARGOSY.dat have to be copied to "pcmcia-cs-3.2.0/etc/cis" directory of the source tree.

- set up cross-development environment (ppc_8xx-gcc should be in PATH)
- configure, build and boot the kernel, making sure that the latest patch is applied.
The CONFIG_PCMCIA kernel option must be off.
For particular card types see notes below.
To avoid warnings during "depmod" at the system start-up, enable the standard 16550 serial driver.

While in the pcmcia-cs-3.2.0 directory, execute the following commands:
- make config
It is safe to leave the default answers to all the configuration questions, except for the Cardbus support, which must be disabled, and for the Linux kernel source directory, which must match the directory you used in the previous step

- make all
- touch etc/cis/ARGOSY.dat
- make install
The resulting tree will be in pcmcia-cs-3.2.0/../pcmcia directory.
- Copy the resulting tree to the root (/) of the target file system being logged as 'root':

   # cp -r ../pcmcia/* /opt/eldk/ppc_8xx/

2. Starting CardServices:

on the target:
/etc/rc.d/rc.pcmcia start

3. To be able to use wireless PCMCIA cards the 'wireless-tools' package must be installed on the target filesystem.

To bring up the WLAN card for network operations, the following actions should be performed (the example output shows card configuration for the WLAN network controlled by the Access Point ("managed" mode)):

1. Assign the ip address of the WLAN network segment to the WLAN interface:

bash# ifconfig eth1 192.168.2.3

2. Assign the Network (or Domain) Name to the WLAN interface:
bash# iwconfig eth1 essid "DENX"

At this point the Acess Point station MAC address should appear on the iwconfig output:
bash# iwconfig eth1
eth1 IEEE 802.11-DS ESSID:"DENX" Nickname:"Prism I"
Mode:Managed Frequency:2.462GHz Access Point: 00:02:2D:03:A5:15
Bit Rate:2Mb/s Tx-Power=15 dBm Sensitivity:1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:28/92 Signal level:151/153 Noise level:107/153 Rx invalid nwid:0 invalid crypt:0 invalid misc:0

The card now is ready for normal network operations.

Special considerations about kernel configuration on certain card types:

- PCMCIA IDE cards (CF and true-IDE)
To support the ide CardService Client, the kernel have to be configured with general ATA IDE support. The MPC8XX IDE support (CONFIG_BLK_DEV_MPC8XX_IDE flag) have to be turned off.

- PCMCIA modem cards
The kernel have to be configured with standard serial port support (CONFIG_SERIAL flag).
After the kernel bootup the following preparation is needed:

mknod /dev/ttySp0 c 240 64
(/dev/ttyS0-4 and TTY_MAJOR 4 are already used by the standard 8xx uart driver).

After the CardServices detects and initializes the PCMCIA card, the /dev/ttySp0 becomes available for use.

- PCMCIA Wireless LAN cards
Enable "Network device support" --> "Wireless LAN (non-hamradio)" --> "Wireless LAN (non-hamradio)" option in the kernel configuration (CONFIG_NET_RADIO flag).

Note that the current version of the ELDK includes all required packages in the "pcmcia-cs-ppc_8xx-3.2.1-1.ppc.rpm" and "wireless-tools-ppc_8xx-21-3.ppc.rpm" RPMs

Hope this helps.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] The most difficult thing in the world is to know how to do a thing and to watch someone else doing it wrong, without commenting.

                                                        -- T.H. White

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

author
#2 lore raw

Wolfgang,

Excellent response once again thanks.

I am running ELDK 2.0.2 which does have RPMs for pcmcia-cs and wireless-tools. I also see my target installation has the "iwconfig" program installed in /sbin. The target also has /etc/pcmcia/* and /etc/rc.d/init.d/pcmcia.

Quoted 1 line

From your email I gather all I need to do is recompile my kernel to

include support for the wireless LAN (CONFIG_NET_RADIO) . Is that correct ?

Cheers,
Curt

Quoted 10 lines · Wolfgang Denk

Note that the current version of the ELDK includes all required packages in the "pcmcia-cs-ppc_8xx-3.2.1-1.ppc.rpm" and "wireless-tools-ppc_8xx-21-3.ppc.rpm" RPMs

Hope this helps.

Best regards,

Quoted 8 lines

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] The most difficult thing in the world is to know how to do a thing and to watch someone else doing it wrong, without commenting.

                                                        -- T.H. White

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw

Dear Curt,

Quoted 5 lines · in message <[email protected]> you wrote:

I am running ELDK 2.0.2 which does have RPMs for pcmcia-cs and wireless-tools. I also see my target installation has the "iwconfig" program installed in /sbin. The target also has /etc/pcmcia/* and /etc/rc.d/init.d/pcmcia.

OK.

Quoted 3 lines
Quoted 1 line

From your email I gather all I need to do is recompile my kernel to

include support for the wireless LAN (CONFIG_NET_RADIO) . Is that correct ?

Right, but you need a recent kernel (from our CVS). The kernel specific parts (stuff like drivers/pcmcia/m8xx_pcmcia.c) were added after the release of ELDK 2.0.2 [and some more extensions like simultaneous support for both PCMCIA slots on MPC860 systems was added even later].

Don't forget to run

bash$ make modules
bash$ make modules_install INSTALL_MOD_PATH=/opt/eldk/ppc_8xx

when building your kernel.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Of course there's no reason for it, it's just our policy.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/