New IT forum
20 July 2019, 04:36:01 pm *
Welcome, %1$s. Please login or register.

: CubieBoard 2 and Cubietruck both now in stock.
 
Pages: [1]

Author Topic: another dreamplug wifi client failure  (Read 9692 times)

planetlarg

  • Newbie
  • *
  • Posts: 4
another dreamplug wifi client failure
« on: 16 February 2012, 01:43:28 am »


I know this is broken record kind of stuff, but here are the details of how I failed to configure a libertas-based wifi client.

My serial number: DS2-1131-000542

Are the modules in /lib/modules/3.0.4/kernel/drivers/net/wireless/libertas good to go?

Did I break something with that "apt-get install libertas-firmware"?


procedure

Put a Debian Wheezy image on a new microSD card

plug in, boot up
  • put microSD in standard SD adapter and into external slot
  • attach JTAG board
  • plug an ethernet cable into dreamplug eth0 and my home router
  • boot, interrupt u-boot, configure for multi-boot
  • boot OS from external SD
  • log in as root

change IP address to stop interfering with my home router
  • backup - cp init-setup.sh init-setup-old.sh
  • vi init-setup.sh, change third octet from 1 to 2.
  • backup - cp /etc/udhcpd.conf /root/
  • vi /etc/udhcpd.conf, change third octet from 1 to 2.
  • /etc/init.d/udhcpd stop and start
  • adduser nick (that's me)
  • associate my laptop with dream-uAP-1234
  • test - ssh nick@192.168.2.1

So it's a fresh install of a NewIT image, with little tinkering.

Then I have a go at swapping from wireless AP to wireless client, using the open source libertas tools.

First I installed some missing bits and pieces.
  • apt-get install libertas-firmware
  • apt-get install wireless-tools wpasupplicant

  • echo 2 > /proc/uap/uap0/hwstatus
  • ifconfig uap0 down
  • rmmod uap8xxx
  • echo 0 >  /sys/class/leds/guruplug\:green\:wmode/brightness   
  • test - lsmod

It's all good to this point. Then I try bringing up the client.
  • modprobe libertas_sdio

I see this error.
Code: [Select]
libertas_sdio: failed to find firmware (-2)
I had a go before the apt-get install libertas-firmware and saw this.
Code: [Select]
libertas_sdio mmc0:0001:1: (unregistered net_device): 00:24:23:45:06:ac, fw 11.52.24p0, cap 0x00000301
libertas_sdio mmc0:0001:1: (unregistered net_device): PREP_CMD: command 0x001e failed: 2
libertas_sdio mmc0:0001:1: wlan0: PREP_CMD: command 0x001d failed: 2
libertas_sdio mmc0:0001:1: wlan0: Marvell WLAN 802.11 adapter

Many thanks,
Nick

Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: another dreamplug wifi client failure
« Reply #1 on: 16 February 2012, 09:57:09 am »

Logged
NewITJames

planetlarg

  • Newbie
  • *
  • Posts: 4
Re: another dreamplug wifi client failure
« Reply #2 on: 16 February 2012, 12:58:57 pm »

Many thanks for the swift reply. I will follow your suggestion.

Can you tell me if this is correct?

the problem is software-related.
  • The hardware is OK. No need to swap the dreamplug for another product like sheevaplug.
  • The firmware is OK. No need to plug in a USB wifi client.
  • The 3.0.4 kernel does not match the libertas modules I copied from elsewhere.

The solution is to replace the kernel and modules. Use the matched kernel and modules at http://www.downloadsnewit.co.uk/kernel-v3.0.7/.

Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: another dreamplug wifi client failure
« Reply #3 on: 16 February 2012, 01:18:16 pm »

The client mode wifi only works with the patched marvell modules. If you use the unpatched Marvell or Libertas drivers then you can expect Kernel crashes.

I have supplied the patched drivers with the Squeeze and Guiplug images but not with the Wheezy image but the Source is there so you can compile your own if you wish.



Logged
NewITJames

planetlarg

  • Newbie
  • *
  • Posts: 4
Re: another dreamplug wifi client failure
« Reply #4 on: 16 February 2012, 05:39:51 pm »

Wow - lots of files in the "NewIT-kernel-v3.0.7.tar" and "SD_WLAN.tar" files.

I'm not a developer, so sorry if this sounds a little idiotic. Is this what I do?
 
* overwrite the original uImage I got from "NewIT-Dreamplug-Debian-Wheezy-2Gb-31Aug11.img" with the new  "Dream-NewIT-v3.0.7-uImage"
* overwrite the original mcypt.ko and sd8xxx.ko files with the ones in "NewIT-guiplug/SD_WLAN/SD-WLAN-BT-8688-LINUX2625-SAAR-10.49.3.p70-26609.P64_B1/wlan_src/"

Will that work?

I appreciate your help. Many thanks. I was ready to give up last night.
Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: another dreamplug wifi client failure
« Reply #5 on: 17 February 2012, 10:33:12 am »


Quote
* overwrite the original uImage I got from "NewIT-Dreamplug-Debian-Wheezy-2Gb-31Aug11.img" with the new  "Dream-NewIT-v3.0.7-uImage"

Also copy the modules from /lib/modules/3.0.7

You will also need to blacklist uap8xxx and libertas_sdio

Logged
NewITJames

planetlarg

  • Newbie
  • *
  • Posts: 4
Re: another dreamplug wifi client failure
« Reply #6 on: 20 February 2012, 09:37:52 pm »

Success!

After copying all the 3.0.7 kernel and modules from the GUIPlug distro over the 3.0.4 bits from the dream plug distro, I removed the wireless AP module

Code: [Select]
echo 2 > /proc/uap/uap0/hwstatus
ifconfig uap0 down
rmmod uap8xxx
echo 0 >  /sys/class/leds/guruplug\:green\:wmode/brightness
Added the wireless client module

Code: [Select]
modprobe sd8xxx
echo 1 > /sys/class/leds/guruplug\:red\:wmode/brightness

And got good results from

Code: [Select]
iwconfig mlan0
iwlist mlan0 scan

Weirdly, I did see plenty of complaints.  I have not yet found their source. They must be warnings, because the IF comes up.

Code: [Select]
ioctl[SIOCSIWPMKSA]: Invalid argument
ioctl[SIOCSIWESSID]: Network is unreachable
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWPMKSA]: Invalid argument

Whether the IF remains stable is yet to be seen.

Logged

gnu_bob

  • Newbie
  • *
  • Posts: 8
Re: another dreamplug wifi client failure
« Reply #7 on: 14 March 2012, 01:59:32 pm »

I am in the same boat as this guy was. I am running the 3.04 wheezy kernel.

I have downloaded and unpacked both the 3.07 source, and the SD-WLAN source as well. Can you confirm what is the best way to incorporate this new kernel and the firmware?

I am not clear what is patched but needs to be re-compiled, or what I can simply copy over as a pre-compiled module? Or indeed am I meant to be applying patches first?

Or it is simply a matter of copying files over?
Thanks




Quote
* overwrite the original uImage I got from "NewIT-Dreamplug-Debian-Wheezy-2Gb-31Aug11.img" with the new  "Dream-NewIT-v3.0.7-uImage"

Also copy the modules from /lib/modules/3.0.7

You will also need to blacklist uap8xxx and libertas_sdio


Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!