From: Richard T. S. <rs...@pa...> - 2005-07-18 14:21:57
|
Chris In my build script just after where you show rm -rf build_arm/hostap_snapshot I have (from gumstix-buildroot): make hostap make as two separate operations. I believe this is necessary (I think I got messed up builds without doing it) but I haven't tried to prove it. If you have issues later on, try this approach. This came from Dave Hylands' original suggestions. Richard _____ From: gum...@li... [mailto:gum...@li...] On Behalf Of Chris Clough Sent: Monday, July 18, 2005 7:02 AM To: gum...@li... Subject: [Gumstix-users] hostap & SanDisk ConnectPlus - Round II In the last thread we were working to get hostap to compile and function properly when transferred to the gumstix. After trying numerous changes, we found a winner. Based on my experience changing the 'Makefile.modpost' (line 39) did not work properly. I tried numerous sequences, and could not end up with success. I will try again to confirm using David Hylands latest list in the future. At the moment, the method that seems to work has been: - Fresh build (svn) - make #the build - edit gumstix-buildroot/build_arm/linux-2.6.11gum - CFLAGS = $(MODFLAGS) # existing line (around 339) CFLAGS += -D__LINUX_ARM_ARCH__=5 # add this line - rm -rf /build_arm/hostap_snapshot - make If this doesn't work, let me know. David's way actually looks to be a bit quicker; you don't have to backtrack. It's all a matter of preference. (well, sorta - it has to work) So now my problem is with hostap and the SanDisk. Below is the script I'm running to flash the card, and then the output. This is where I need some input. Thanks all. Input: #!/bin/sh TOP=/etc/pcmcia/firmware # Check if this is the right card if [ `cardctl info 0|grep "MANFID"` != "MANFID=d601,0101" ] then echo Card in slot 0 is NOT the SanDisk ConnectPlus echo Card not flashed. exit fi # Check if card needs flashing hostap_diag wlan0>/dev/null if [ $? != 0 ] then echo Flashing firmware on wireless adapter... prism2_srec -gs wlan0 $TOP/pm010101.hex prism2_srec -gp wlan0 $TOP/pm010101.hex iwpriv wlan0 reset 1 prism2_srec -rp wlan0 $TOP/rf010704.hex iwconfig wlan0 mode 2 else echo Card already flashed. fi Output: # /etc/pcmcia/sandisk_conf ioctl[PRISM2_IOCTL_HOSTAPD]: Inappropriate ioctl for device Flashing firmware on wireless adapter... srec summary for pm010101.hex Included file name: pm010101.hex Component: 0x0015 1.1.1 (primary firmware) Verifying update compatibility and combining data: Plugging PDR 0400 (NIC configuration): ram16=1 pci=0 (03 00) OK. Downloading to volatile memory (RAM). ioctl[PRISM2_IOCTL_DOWNLOAD]: Input/output error Download failed! srec summary for pm010101.hex Included file name: pm010101.hex Component: 0x0015 1.1.1 (primary firmware) ioctl[PRISM2_IOCTL_HOSTAPD]: Inappropriate ioctl for device Missing wlan component info Could not read wlan RIDs hostap_cs: wlan0: resetting card hostap_cs: first command failed - assuming card does not have primary firmware srec summary for rf010704.hex Included file name: RF010704.HEX Component: 0x001f 1.7.4 (station firmware) ioctl[PRISM2_IOCTL_HOSTAPD]: Inappropriate ioctl for device Missing wlan component info Could not read wlan RIDs -- Chris Clough |