maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle (https://talk.maemo.org/showthread.php?t=67554)

werepacman 2011-05-23 14:41

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Thanks for the reply, cct.
Reinstalled driver and removed osslo-wlan as described here http://talk.maemo.org/showpost.php?p...3&postcount=52.

Now everything works. Try to connect to my adhoc network doesn't reboot device, but reports only an network error.
Thanks for the helping.

J4ZZ 2011-05-24 12:57

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Quote:

Originally Posted by werepacman (Post 1010406)
Hi.
I installed drivers, it was OK for some time, but something went wrong.

Now after I load driver (load.sh) wlan0 disappears. Connecting to AP makes device to reboot.

What can I do to fix the problem? I tried to reinstall packages.
I suppose I'm not first with such a question, but I can`t read all 40 pages.
Any help hill be appreciated.

Last time I rebooted with consol "reboot". Can this cause a problem?

Are you using power47 kernel? Or any other power kernel? You should try that ;)

Greetz,

..::J4ZZ::..

cct 2011-05-24 13:51

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
hmm... I have refrained from installing the 47 due to having read somewhere about it not being comfortable side by side with b-e-drivers, but I might have been confused. Did you try it out yet successfully? That being the reason for my post (#400). Again, noobie stands to be corrected. :)

J4ZZ 2011-05-25 13:34

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Power47 is working excelllent with bleeding edge driver and there's no need to reinstall anything. Just run load.sh as you normally would and the driver gets injected.
No patched kernel or anything needed, only your "compat-wireless" folder with load.sh and stuff...

Greetz,

..::J4ZZ::..

F2thaK 2011-06-02 13:29

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
so this is compatible with kernel power v47?

is there a way to permanently install this without having to manually load it on each boot?

or make it auto run load.sh on boot?

thanks

Mentalist Traceur 2011-06-02 16:00

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
OMFG
KERNEL
POWER
v47
IS
COMPATIBLE
WITH
BLEEDING
EDGE
DRIVERS

Can we, like, autoredirect everyone to this post when they type "bleeding edge drivers" into the forum? (Edit: The above isn't directly at you F2thak, or anyone specific, I'm just getting annoyed of seeing the same question cropping up for over a month)

And on a technical note - "install" and "load" are different things. The drivers are always permanently "installed", unless you went and erased them. They aren't permanently loaded, but that's another matter.

As for how to do it - you can set up a script (based on load.sh, or which executes load.sh), and stick it into /etc/event.d/ <-- no I don't personally do it, but it shouldn't be too hard to figure out if you look through some of the other scripts in there. Then just play around with seeing how late in the boot process you need to run it to end up with the bleeding edge drivers loaded.

davidxfoo 2011-06-03 01:47

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
FYI: if you are using monitor mode for sniffing, the WiFi driver under Kernel Power http://wiki.maemo.org/Kernel_Power is much more stable. It does not drop like bleeding-edge wl1251 wifi driver for Maemo Fremantle. I guess it is the kernel problem, not the driver problem, as reported by previous few posts.

Of course, credit to David for this and he patched the driver in Kernel Power.

Mentalist Traceur 2011-06-03 03:27

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
By the way, while I have been a VERY pro-bleeding-edge-driver individual all this time, I have to say that I have to take back my statements to the effect of it being flawless (well, I never said it was flawless per se, just that I hadn't run into any issues, which has so far been true).

For me, using "MobileHotSpot" with the bleeding edge driver causes a crash/shut-down of the entire N900 (this is a bug at least one other person reported, and I have been meaning to test it for around a month now - I finally got around to it tonight; so I know I'm not the only one having this issue), AND, trying to connect to an ad-hoc network causes an immediate shutdown as well (I typically can't get data through-put on ad-hoc wifi networks anyway, BUT, with the stock driver, I can at least connect to the network after a longer-than-normal wait).

So... yeah. This is with the patched osso-wlan, and Advanced Interface Switcher installed (might have something to do with it, but I doubt it). I have yet to do detailed testing, but I just thought I'd mention it.

J4ZZ 2011-06-03 14:40

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Quote:

Originally Posted by F2thaK (Post 1020944)
so this is compatible with kernel power v47?

is there a way to permanently install this without having to manually load it on each boot?

or make it auto run load.sh on boot?

thanks

My QBW widget (page 40) will load the drivers on boot if selcted in the widget options respectively it's already set.

greetz,

J4ZZ

LTman 2011-06-05 13:34

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
hey could just put a script in /etc/event.d that runs every boot
there is a wiki about that

eL.ectron1k 2011-06-06 11:49

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
guys
if i install bleeding-edge wl1251 driver 0.1 (with step-by-step manual in README file) at my 47kernel will it work?

laasonen 2011-06-06 11:54

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Quote:

Originally Posted by eL.ectron1k (Post 1023217)
guys
if i install bleeding-edge wl1251 driver 0.1 (with step-by-step manual in README file) at my 47kernel will it work?

Yes.

If you already have the kernel-power v47, you only need to install the osso-wlan_3.0.20+0m5-1_armel.deb and put the binary/compat-wireless folder to MyDocs for example. Then you just cd to that folder and run the unload.sh and load.sh files. I have made applet which makes the enabling and disabling quicker and easier.

eL.ectron1k 2011-06-06 11:59

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
laasonen, ups
i've just installerd all and downgraded to 46 kernel...
and cant boot into these kernel, no item file..


*WHHHHAAAAXXXX*

U posted additional information so late :D

Dont worry, i'll upgrade kernel power back to 47 and install only osso, ur Plugin i had more time ago ^_^

eL.ectron1k 2011-06-07 08:04

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Strange..ive created Ad-hoc @ ubuntu 11, and if select these nw in Connection Manager, - it's shutted down ><

Mentalist Traceur 2011-06-07 16:43

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
If you look just a few posts back, I mentioned that I have the same issue - connecting to an ad-hoc network with this driver causes spontaneous shutdowns for me too.

tarek 2011-07-30 02:38

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
I am having trouble getting the drivers to autostart.

I've made a file called power-kernel in /etc/event.d . For good measure, I did a chmod +x on it as well.

The contents are:

Code:

description "bleeding-drivers"

start on started hildon-desktop
stop on starting shutdown

console none

script
cd /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/
sh load.sh
end script

Any ideas on what could be going wrong? Needless to say, the command executes fine from sudo gainroot.

tarek : )

F2thaK 2011-07-30 02:40

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Does it need a root/sudo gainroot command at the start of the script.?

Id love to know how to get it to autostart too! tried one way and it broke my wifi...

tarek 2011-07-30 03:07

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Finally got the solution.

1. Modify load.sh
Code:

#!/bin/sh
# Save mac address
MACADDR="`ifconfig wlan0 | sed -n 's/.*HWaddr \([0-9A-Fa-f:]\+\).*/\1/p'`"
# Unload wifi modules
rmmod wl1251_spi 2>/dev/null
rmmod wl1251 2>/dev/null
rmmod wl12xx 2>/dev/null
rmmod mac80211 2>/dev/null
rmmod cfg80211 2>/dev/null
rmmod rfkill_backport 2>/dev/null
rmmod compat_firmware_class 2>/dev/null
rmmod compat 2>/dev/null
# Load bleeding-edge wl1251
insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/compat.ko
insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/rfkill_backport.ko
insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/cfg80211.ko
insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/mac80211.ko
insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/wl1251.ko
insmod /home/user/MyDocs/wl1251-maemo/binary/compat-wireless/wl1251_spi.ko
# Restore mac address
ifconfig wlan0 down hw ether "$MACADDR"

2. Copy load.sh to /usr/sbin
Code:

cp load.sh /usr/sbin

3. Change permissions to +x
Code:

chmod +x /usr/sbin/load.sh

4. Create proper event.d script

Code:

vi /etc/event.d/power-network
Code:

description "bleeding-drivers"

start on started hildon-desktop
stop on starting shutdown

console none

script
sleep 15
exec /usr/sbin/load.sh
end script


5. Reboot

F2thaK 2011-07-30 05:18

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
testing now.. thanks

edit: awesome, wifi still works! !!

Estel 2011-08-01 01:10

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Just have in mind that it use *much* more battery than stock ones - when connected to some AP and idle (battery usage on wifi load or disconnected is same).

Mentalist Traceur 2011-08-01 02:43

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Quote:

Originally Posted by Estel (Post 1061971)
Just have in mind that it use *much* more battery than stock ones - when connected to some AP and idle (battery usage on wifi load or disconnected is same).

Just for the record, I never noticed increased battery consumption when connected. Just leaving monitor mode on eats battery more, but I never noticed increased battery consumption during normal wifi operation.

Estel 2011-08-01 19:22

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Interesting. It's only perceived value, or did You measured current_now? Everytime I tried it - both with stock pr1.3, and with all latest kp's, I always got ~100 mA higher current, when connected to WLAN via bleeding edge drivers.

don_falcone 2011-08-04 19:10

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
...how do i compile the kernel objects for kp48 in the shortest possible /least intrusive way? Scratchbox of course is only available for Linux... all i currently have is a corporate Win7 x64 laptop. Precompiled wl1251 driver is not playing nice with kp48 anymore...

tuxsavvy 2011-08-07 04:15

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Quote:

Originally Posted by don_falcone (Post 1064230)
...how do i compile the kernel objects for kp48 in the shortest possible /least intrusive way? Scratchbox of course is only available for Linux... all i currently have is a corporate Win7 x64 laptop. Precompiled wl1251 driver is not playing nice with kp48 anymore...

You can still obtain ubuntu as either a dualboot, wubi, live setup or even virtualised setup. Using windows is purely not the solution as windows lacks any necessary required tools to compile linux binaries let alone in a cross compile environment.

There is however another solution, which is turning your N900 into a device capable of compiling stuff without the need to use any other computer/device to compile/cross-compile anything for your N900. Though it highly depends on your linux skills in order to turn your N900 into the said development environment.

don_falcone 2011-08-10 02:14

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Thanks, i have downloaded the ready-made Ubuntu Maemo 5 SDK image for VMWare. I do not want to compile directly on the N900, particularly for messing up environment settings and for rootfs space reasons.

Now, i have kp48 headers + sources + wl1251 sources in sbox-FREMANTLE_ARMEL /usr/src/ and am kinda lost.

http://talk.maemo.org/showthread.php?t=67995
http://wiki.maemo.org/Documentation/...Kernel_Modules
http://psfreedom.com/wiki/Nokia_N900...9_maemo_kernel

are not helping much right now. For example, in wl1251-maemo/sources/ I see 4 source tarballs:

Code:

[sbox-FREMANTLE_ARMEL: /usr/src/wl1251-maemo/source] > ls
compat-wireless-2.6.tar.gz              osso-wlan-3.0.20+0m5.tar.gz
compat.tar.gz                            wireless-testing.tar.bz2
kernel-power_2.6.28-maemo46-wl1.tar.bz2

Which one should i untar, 'compat-wireless-2.6.tar.gz'? Btw, pali is a funny guy:

Code:

[sbox-FREMANTLE_ARMEL: /usr/src/kernel-power-source] > less Makefile
shows:

Code:

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 28
EXTRAVERSION = .10
NAME = Erotic Pickled Herring

Also, do i have to switch the toolchain from madde to gcc?

Code:

export PATH := /usr/bin:$(HOME)/.madde/0.7.48/toolchains/arm-2007q3-51sb6-gdb71-
arm-none-linux-gnueabi_linux_x86_64/bin:$(PATH)

My LInux compile experiences were never greater than unpacking source tarballs, and using make / qmake with adapted defines/includes. And all that on x64 desktop machines...

hawaii 2011-08-10 02:24

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
FWIW, that's not pali being funny, that is a legitimate Linux kernel version name.

don_falcone 2011-08-10 02:53

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Quote:

Originally Posted by hawaii (Post 1066979)
FWIW, that's not pali being funny, that is a legitimate Linux kernel version name.

And _I_ thought Canonical were the guys with "funny" version names...

disappear 2011-08-10 21:15

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Sorry for the stupid question but how to install wl1251-monitor-mode-2.This is the DIFF File and I do not know what command to use

Estel 2011-08-10 23:23

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
DIFF file contain, well... Differences. You path certain sources with it, and it attach code changes to make "old" source "upgraded" (patched) source. You know, source codes, compiling, and this kind of stuff, that almost no one want to start doing if she/he haven't tried before, but after, life is becoming much better ;)

disappear 2011-08-11 12:17

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Thanks for the reply but this is exactly the problem I do not know how to do this process.There is a package(dpkg-dev),but do not know if I would benefit from something.To make this change, the files must have linux on my pc.

Quote:

no one want to start doing if she/he haven't tried before, but after, life is becoming much better
For this right does not dispute,

Estel 2011-08-24 02:38

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Any news on compiling bleeding edge drivers for kp48? Really, no one of knowledgeable ones use bleeding-edge with kp48? ;)

hawaii 2011-08-24 03:22

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Er, kp48 has the mac80211 patches included and export modules. You can simply load the modules that shipped with -wl1 and it works just fine.

Estel 2011-08-24 15:46

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Oh, so I've just contributed to spreading FUD? Sorry - as little defense as it is, I was referring to:

http://talk.maemo.org/showpost.php?p...&postcount=423

Anyway, thanks for info and again, excuse me for fact that I've not checked it myself :(

Saturn 2011-08-24 17:44

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Well, pali said in his thread that it is recomended to re-compile for each kernel for better chances in compatibility..

now, if people report it to be working as is then that's great and we gain some time.

hawaii 2011-08-24 18:11

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
I have personally been using kp48 for the past 4 weeks, at least - with no issues when used with the -wl1 drivers dynamically loaded.

There are no issues with it. pali has included the required bleeding-edge patches against his kernel. Forced load and symbol stripping on the modules means they work once the patches aren't completely mangled when being applied.

Nothing from v46->47>48 has changed in a way that would stop it from working. Thank both pali and lxp for their work on it.

don_falcone 2011-08-24 18:20

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
Really? Whenever i load the modules w/48, they load. But as soon as i want to connect to an AP, bummer - instant reboot. This is w/ stock wlandcond. Worked before w/ kp47.

Estel 2011-08-24 19:43

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
So, basically, 2 people, 2 different report. Will need to check that myself, I suppose, so stay tuned for 3th report ;)

sada11 2011-08-24 19:57

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
works for me

RDK 2011-10-28 22:15

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
This is so noob. But I can't untar them.. Tis really bugging me.

Xterm:
Code:

~ $ cd MyDocs
~/MyDocs $ ~/MyDocs$ tar -xzvf wl1251-maemo-0.1.tar.gz
-sh: /home/user/MyDocs$: not found
~/MyDocs $

What's going on? I downloaded the file to the 'Documents' folder.. Is there something I have missed or and I just being a R****D? I've checked the filename etc. Still no luck. Unsure how to proceed.

Ryan.

Megaltariak 2011-10-28 22:30

Re: [Announce] bleeding-edge wl1251 wifi driver for Maemo Fremantle
 
I think that you downloaded it in ~/MyDocs/.documents/
~/MyDocs/ is the root of the device in usb drive mode
~/MyDocs/.documents/ is the Documents folder in the file manager


All times are GMT. The time now is 13:52.

vBulletin® Version 3.8.8