New IT forum
13 August 2022, 01:27:49 pm *
Welcome, %1$s. Please login or register.

: GertDuino now in stock.
 
Pages: [1] 2 3

Author Topic: Debian Squeeze Dreamplug: where is wlan.sh?  (Read 29355 times)

cikub

  • Newbie
  • *
  • Posts: 18
Debian Squeeze Dreamplug: where is wlan.sh?
« on: 26 September 2011, 12:48:48 pm »

I have set up my Dreamplug as a multi-boot system using Debian Squeeze on an 8GB external SD card (t'was very easy to do!)

Now I would like to enable wifi client mode. I have looked for wlan.sh but cannot find it - I searched for instructions on the forums to enable wifi client mode and came across various links such as http://www.plugcomputer.org/plugwiki/index.php/Setting_GuruPlug_to_be_a_WiFi_Client but these refer to wlan.sh again, so I'm going around in circles here ;)

I had thought to copy wlan.sh off of the internal microSD but for the life of me I can't work out the mount command to mount the microSD when booted from the external SD card.

If anyone could answer both of the above I'll be most grateful - I'll buy you a virtual beer!
=C
« Last Edit: 26 September 2011, 12:50:28 pm by cikub »
Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #1 on: 26 September 2011, 01:09:54 pm »

cikub,

Have a look in "/lib/modules/2.6.38.8/kernel/drivers/net/wireless/"

you will find mcypt.ko & sd8xxx.ko

NewITJames
Logged
NewITJames

carbon15

  • Newbie
  • *
  • Posts: 2
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #2 on: 27 September 2011, 03:27:18 pm »

I think ckiub was after the contents of the wlan.sh file as well. I've done the same as him in regards to upgrading my dreamplug and whilst I can see that the relevant modules are included in the build I'm not sure on how to execute them correctly.

 Regards
Logged

cikub

  • Newbie
  • *
  • Posts: 18
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #3 on: 27 September 2011, 04:24:31 pm »

Thanks James,

@carbon15 - yes I am after what's in wlan.sh, ie: how to enable WiFi given that the instructions for the GUIPlug described on the plugcomputer.org Wiki require this file.
=C
Logged

AlterAnthony

  • Newbie
  • *
  • Posts: 6
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #4 on: 28 September 2011, 09:23:21 am »

You can refer to the procedure described here: http://blog.zortrium.net/archives/67
Skip the part where they explain how to compile the modules since you already have those ("/lib/modules/2.6.38.8/kernel/drivers/net/wireless/").
There's a link on the page that leads to an archive that contains the required scripts to enable the WiFi client mode.

Let me know if you need further instructions.
Logged

cikub

  • Newbie
  • *
  • Posts: 18
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #5 on: 28 September 2011, 09:53:26 pm »

@AlterAnthony many thanks. I tried running the commands from this point onwards on that URL you provided: "Now we'll grab an archive of the wifi drivers and firmware..."

After following the rest of the instructions carefully and rebooting mlan0 has not been enabled.

Executing ./wifi_pre.sh independently generates errors relating to 2.6.33.7 kernel which is what the instructions were written for. I am on 2.6.38.8 with the Debian Squeeze image:

Code: [Select]
# ./wifi_pre.sh
ERROR: Module uap8xxx does not exist in /proc/momcypt: version magic '2.6.33.7 preempt mod_unload ARMv5 ' should be '2.6.38.8 preempt mod_unload ARMv5 '
dules
insmod: error inserting '/root/wifi/mcypt.ko': -1 Invalid modulesd8xxx: version magic '2.6.33.7 preempt mod_unload ARMv5 ' should be '2.6.38.8 preempt mod_unload ARMv5 '
 format
insmod: error inserting '/root/wifi/sd8xxx.ko': -1 Invalid module format

Not really sure where to go from here to be honest..
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #6 on: 28 September 2011, 11:06:51 pm »

Hi cikub,
Are you a windows user ?
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

cikub

  • Newbie
  • *
  • Posts: 18
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #7 on: 29 September 2011, 08:24:32 am »

Mac OS X using JTAG, SSH and Webmin to connect to the Dreamplug :)
Logged

AlterAnthony

  • Newbie
  • *
  • Posts: 6
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #8 on: 29 September 2011, 08:57:41 am »

Not really sure where to go from here to be honest..

You're using the wrong version of the "sd8xxx.ko" and "mcypt.ko" files. You should use the files which are supplied with the NewIT image and not the ones from the archive.
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #9 on: 29 September 2011, 09:10:42 am »

Quote
2.6.33.7 preempt mod_unload ARMv5 ' should be '2.6.38.8

You have a kernel/module mismatch, do:
Code: [Select]
cat /proc/versionwhen you want to check which kernel version is running.

Code: [Select]
modprobe <modulename>Without the '.ko' extension on modulename, will look for the module matching the kernel in the kernel module tree under '/lib/modules'.

If you put the module anywhere else, say in '/root' (a really bad practice)
Code: [Select]
insmod <full_path_modulename.ko> will load the module providing it is the same version as your kernel.

EDIT: If modules are moving around by copying in scripts DONT!
Sooner or later something bad will happen!

NB Below is correct as for a 2.6.33 kernel, there have been significant changes since.
EDIT: 2nd attempt to get this right :)
The Marvell Access Point Wifi Module was called 'uap8xxx.ko'
The Marvell Client Wifi Module was called  'sd8xxx.ko' and depends on 'mcypt.ko'
The patched Marvell Access Point Wifi Module was called ''libertas_uap.ko'
The Vanilla Client Mode Wifi Module is called 'libertas_sdio'

I suggest you run with the current 2.6.38.8 modules:
Edit your '*.sh' scripts, changing 'insmod' style to 'modprobe' style.
« Last Edit: 10 October 2011, 08:04:19 pm by Confusticated »
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

carbon15

  • Newbie
  • *
  • Posts: 2
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #10 on: 29 September 2011, 12:55:38 pm »


I'd renamed the paths to use the right modules in the .sh's provided and once I'd apt-got the wpasupplicant package I was up and running, thanks for your help.
Logged

cikub

  • Newbie
  • *
  • Posts: 18
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #11 on: 10 October 2011, 04:40:10 pm »

Thanks all,
I decided to take one more go at this but have still fallen flat.
@Carbon15 - you mentioned you had this working, any change of posting the .sh scripts that you edited? I'm not sure where I am going wrong.

I now know I should be using modules from inside /lib/modules. In /lib/modules/2.6.38.8/kernel/drivers/net/wireless/ I can see:

ath  libertas  libertas_uap  mcypt.ko  rndis_wlan.ko  rt2x00  rtl818x  sd8xxx.ko  zd1211rw

In /lib/modules/2.6.38.8/kernel/drivers/net/wireless/libertas are:

libertas.ko  libertas_sdio.ko

Now I *think* I want to use mcypt.ko and sd8xxx.ko (those are the modules referenced in an earlier post)

However running modprobe -l | grep mcypt.ko and the same for sd8xxx.ko returns no results hence I assume they're not available - somehow...

And as you'd then guess, running my modified wifi_pre.sh script gives me:

# ./wifi_pre.sh
ERROR: Module uap8xxx does not exist in /proc/modules
FATAL: Module mcypt not found.
FATAL: Module sd8xxx not found.


As you can guess I'm really new to getting drivers and modules to work under Linux!

« Last Edit: 10 October 2011, 04:42:01 pm by cikub »
Logged

Confusticated

  • New IT customer
  • Hero Member
  • *
  • Posts: 663
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #12 on: 10 October 2011, 08:30:31 pm »

I suggest you either start again with the New IT Debian Squeeze image, or if you feel you have done too much work.

Delete these
Code: [Select]
uap8xxx.ko
sd8xxx.ko
mcypt.ko
and replace them by copying them out of the image.

(I have no idea what will happen running this on a Mac http://www.newit.co.uk/forum/index.php/topic,2648.msg7478.html#msg7478
If you have a big enough USB stick, you could put it and the Squeeze image on, it should run fine on the dreamplug).

You will then be back where you started, needing wlan.sh, but with everything working I can help from this point on.

« Last Edit: 10 October 2011, 08:45:26 pm by Confusticated »
Logged
Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #13 on: 10 October 2011, 10:33:27 pm »

Hi cikub,

give this a try,

Blacklist uap8xxx in  '/etc/modprobe.d/blacklist.conf'

reboot, then

insmod /lib/modules/2.6.38.8/kernel/drivers/net/wireless/mcypt.ko
insmod /lib/modules/2.6.38.8/kernel/drivers/net/wireless/sd8xxx.ko

then 'iwconfig' should give you

Quote
[email protected]:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

pan0      no wireless extensions.

mlan0     MRVL-SD8688  ESSID:"" 
          Mode:Managed  Access Point: Not-Associated   Bit Rate:1 Mb/s   
          Tx-Power=16 dBm   
          Retry limit:9   RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:off
          Power Management:off
          Link Quality=0/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:1
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


I am sure Confusticated will have a much more elegant way of doing this. See here http://www.newit.co.uk/forum/index.php/topic,2650.msg7470.html#msg7470

NewITJames


Logged
NewITJames

cikub

  • Newbie
  • *
  • Posts: 18
Re: Debian Squeeze Dreamplug: where is wlan.sh?
« Reply #14 on: 11 October 2011, 10:19:46 pm »

Thanks again :)
@Confuscated - oh yes far too much work!
@NewIT_James - can you tell me if this is what you get for ls -l:

Code: [Select]
# ls -l /lib/modules/2.6.38.8/kernel/drivers/net/wireless/
total 276
drwxr-xr-x 4 root root   4096 Jun 26 01:16 ath
drwxr-xr-x 2 root root   4096 Jun 26 01:16 libertas
drwxr-xr-x 2 root root   4096 Jun 26 01:16 libertas_uap
-rw-r--r-- 1 root root   9572 Aug 31 08:29 mcypt.ko
-rw-r--r-- 1 root root  35358 Jun 26 01:16 rndis_wlan.ko
drwxr-xr-x 2 root root   4096 Jun 26 01:16 rt2x00
drwxr-xr-x 3 root root   4096 Jun 26 01:16 rtl818x
-rw-r--r-- 1 root root 201427 Aug 31 08:29 sd8xxx.ko
drwxr-xr-x 2 root root   4096 Jun 26 01:16 zd1211rw

I don't recall overwriting mcypt.ko or sd8xxx.ko but they look suspicious from a cursory glance above (albeit if I had then it would have been well into Sept and not Aug as per the dates).

Try as I can I can't get Wifi Client working... hmmm... Idea!

James - are you able to make available just the mcypt.ko and sd8xxx.ko files that you know to be working? I can then try this again just in case the above are trashed. I say this as after blacklisting, rebooting and running the 2 insmod as you suggest I get:

Code: [Select]

# iwconfig
lo        no wireless extensions.
eth0      no wireless extensions.
eth1      no wireless extensions.
pan0      no wireless extensions.

ie: no sign of mlan0 :(
Logged
Pages: [1] 2 3
 
 

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