OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Another Wlan-card (twinmos This Time), How-To Compile a provided driver?
kybKenny
post Jul 3 2005, 12:48 PM
Post #1





Group: Members
Posts: 7
Joined: 22-June 05
Member No.: 7,417



Hi,

I recently bought a SL5500 plus a TwinMos B220 Wlan card, which is also referred to as a Senao SL-2511 CF.

My problem now is, that Twinmos provide a custom Linux driver for their card (it's a slightly modified wlan_ng ver.0.20, as i found out), which is good of course, but i cannot compile it for the Z.

I set up (more or less successfully) a Scratchbox cross-compiling environment (Link to Scratchbox-Homepage) but i can't build the module.

I managed to get the Source of the 2.4.18-rmk7-pxa3-embedix kernel using the links for the cl780 provided on the bottom of here, but 'make oldconfig' using the default .config for the sl5500 runs into some loop at


CODE
* USB Device Bus Interface Support
......*
 Intel StrongArm SA-1110 (Assabet, Ipaq) support (CONFIG_USBD_SA1100_BUS) [M/n/?]
   USB traffic keeps device awake (CONFIG_USBD_TRAFFIC_KEEPAWAKE) [N/y/?]
   USBD Stall watchdog timeout (seconds, 0 for none) (CONFIG_USBD_STALL_TIMEOUT) [0]

 Sorry, no help available for this option yet.

   USBD Stall watchdog timeout (seconds, 0 for none) (CONFIG_USBD_STALL_TIMEOUT) [0]

 Sorry, no help available for this option yet.

   USBD Stall watchdog timeout (seconds, 0 for none) (CONFIG_USBD_STALL_TIMEOUT) [0].... etcetera


anyway, i'm running a bit headless through the yard here, anyone got some how-to (step-by-step in chronological order would be nice :-)) ) ?

Sadly waiting

Kenny
Go to the top of the page
 
+Quote Post
kybKenny
post Jul 4 2005, 07:17 AM
Post #2





Group: Members
Posts: 7
Joined: 22-June 05
Member No.: 7,417



more details from my crosscompiling adventures...

1st. I reckon i need to compile a image of my Z-kernel
so, i got linux-c750-20030620-rom1_10.tar.bz2 from above mentioned site and copied the sl5500 config to .config.

make oldconfig doesn't work, as stated above, but the .config should be ready nevertheless.

now: 'make dep' runs fine, as does 'make clean', but 'make zImage' keeps whining about a missing autoconf.h (understandable, because there is none [is it created by a completed make config ??])

now what am i to do?

unfortunately, i seem to have to build a kernel to build a module for it (the driver i'm talking about is to be found
here), am i right with this?

do i want to compile on the Z? (there's no gcc on it, and the kernelsource problem still applies)

Cya
K
Go to the top of the page
 
+Quote Post
kybKenny
post Jul 4 2005, 07:24 AM
Post #3





Group: Members
Posts: 7
Joined: 22-June 05
Member No.: 7,417



this is the output of dmesg on the Z with the wlan-ng-modules from the feed

CODE
prism2cs_init: prism2_cs.o: 0.2.1-pre22 Loaded
prism2cs_init: dev_info is: prism2_cs
prism2_cs: index 0x01: Vcc 3.3, irq 35, io 0xc4860000-0xc486003f
hfa384x_docmd_wait: hfa384x_cmd timeout(2), reg=0x0.
prism2mgmt_readpda: hfa384x_drvr_readpda() failed, result=-110
hfa384x_docmd_wait: hfa384x_cmd timeout(1), reg=0x8000.
hfa384x_cmd_access: Call to hfa384x_docmd_wait failed (-110 0)
hfa384x_drvr_ramdl_enable: Genesis mode failed
hfa384x_docmd_wait: hfa384x_cmd timeout(1), reg=0x8000.
hfa384x_cmd_access: Call to hfa384x_docmd_wait failed (-110 49339)
hfa384x_drvr_ramdl_enable: Genesis mode failed
prism2mgmt_readpda: hfa384x_drvr_readpda() failed, result=-61
prism2mgmt_scan: HostScan not supported with current firmware (<1.3.2).
prism2_cs.o: 0.2.1-pre22 Unloaded


prism2dl -s -g wlan0 gives:
CODE
dl: No such device
load_cardpda failed, exiting.


and when i try to use the networkapplet in Preferences and hit "rescan neighborhood", the applet crashes with a SIGSEGV and dmesg shows:

CODE
sa1100_pcmcia_init(0)
prism2cs_init: prism2_cs.o: 0.2.1-pre22 Loaded
prism2cs_init: dev_info is: prism2_cs
prism2_cs: index 0x01: Vcc 3.3, irq 35, io 0xc4860000-0xc486003f
hfa384x_docmd_wait: hfa384x_cmd timeout(2), reg=0x0.
prism2mgmt_readpda: hfa384x_drvr_readpda() failed, result=-110
hfa384x_docmd_wait: hfa384x_cmd timeout(1), reg=0x8000.
hfa384x_cmd_access: Call to hfa384x_docmd_wait failed (-110 0)
hfa384x_drvr_ramdl_enable: Genesis mode failed
hfa384x_docmd_wait: hfa384x_cmd timeout(1), reg=0x8000.
hfa384x_cmd_access: Call to hfa384x_docmd_wait failed (-110 49404)
hfa384x_drvr_ramdl_enable: Genesis mode failed
prism2mgmt_readpda: hfa384x_drvr_readpda() failed, result=-61
prism2mgmt_scan: HostScan not supported with current firmware (<1.3.2).
hfa384x_docmd_wait: hfa384x_cmd timeout(1), reg=0x8000.
hfa384x_cmd_access: Call to hfa384x_docmd_wait failed (-110 49180)
-------------- i think this is where i push "rescan neighborhood" ----
device wlan0 entered promiscuous mode
Alignment trap: quicklauncher (2072) PC=0x405ad968 Instr=0x15b63008 Address=0x0005e87f Code 0x00
Alignment trap: quicklauncher (2072) PC=0x40309b58 Instr=0xe590c010 Address=0x0005e88f Code 0x00
Alignment trap: quicklauncher (2072) PC=0x40309b5c Instr=0xe5804004 Address=0x0005e883 Code 0xffffffff
Alignment trap: quicklauncher (2072) PC=0x40309b6c Instr=0xe580c010 Address=0x0005e88f Code 0xffffffff
Alignment trap: quicklauncher (2072) PC=0x40309b78 Instr=0xe5803000 Address=0x0005e87f Code 0xffffffff
Alignment trap: quicklauncher (2072) PC=0x40309b88 Instr=0xe5803008 Address=0x0005e887 Code 0xffffffff
Alignment trap: quicklauncher (2072) PC=0x40309b90 Instr=0xe580100c Address=0x0005e88b Code 0xffffffff


that was the reason for trying to compile the driver anyway,

if someone could explain this to me, i'd be making jumps in the air :-))

Greets
K
Go to the top of the page
 
+Quote Post
kybKenny
post Jul 6 2005, 05:57 AM
Post #4





Group: Members
Posts: 7
Joined: 22-June 05
Member No.: 7,417



I just entered contact with the support department of TwinMos, we'll see, if that works... smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd September 2014 - 04:25 PM