Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: coreplayer2 on June 23, 2011, 05:02:21 AM

Title: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 05:02:21 AM
I'm in desperate need of firmware/extention for a Realtek USB wireless b/g/n adapter.  So far I've really struggled for close on three weeks attempting every trick I can find before inevitably compiling from source.  

At some point I was able to create an ndiswrapper with WinXP drivers on an earlier tinycore build which did at least function reliably, although was a little high on cpu resources unfortunately.   Since then I haven't been able to duplicate the same configuration.  Anyhow the issue with the current ndiswrapper is not being able to connect or stay connected for very long, appears to be a driver/firmware issue.  

Attempted the new wifi extension over the last couple of days, also without any success.  "Fails to get an IP address." then times out.  I don't know if the script flushes the routing tables etc etc post failed connection which leaves you a reboot available to start over.

When booted to a puppy linux distro the wireless adapter functions 100% without any extra work on the same PC.   With the script available here to convert deb files to tcz extensions I grabbed the driver form this distro and attempted to convert it, without any success.


This bring me to a decision point, I think the only reliable method of connection is to compile the correct firmware/driver.  So I grabbed the driver/firmware source for the rtl8192su from
http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false (http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false)
and installed "compiletc" & "squachfs-tools-4".   The source came with a makefile but no configure file.  

The first hurdle:  running either make or ./make results in  "file not found!!"

any suggestions welcome please?


Title: Re: Realtek Wireless firmware extention help?
Post by: SamK on June 23, 2011, 05:41:01 AM
Hi coreplayer2,

The first hurdle:  running either make or ./make results in  "file not found!!"

any suggestions welcome please?
This may help: http://forum.tinycorelinux.net/index.php?topic=7219.0
Is the linux-headers extension the cause as mentioned in reply #13?
   
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 06:00:31 AM
Thanks SamK  that link was extremely informative.   Darn it I forgot about the headers!!!  what is a newbie like me to do?  Will get right on it asap

thanks again SamK



meanwhile I still get file not found!! :(
Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 23, 2011, 10:16:28 AM
Hi coreplayer2

The extension you are looking for is called compiletc.tcz. It includes all the tools and the headers.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 10:53:02 AM
Ah yes I am aware of this extension and already have it installed thanks.    In addition I used the tce-load command to confirm "make" was installed which is part of compiltc   

but still no joy,  how hard can this be?
Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 23, 2011, 11:07:39 AM
Hi coreplayer2

If you type  /usr/local/bin/make  does it find it then?
If it does then your path is not set correctly, if not, then compiletc is not installed correctly.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 11:36:58 AM
Was thinking it had only to be a path issue

brb
Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 23, 2011, 11:40:56 AM
Hi coreplayer2

Quote
Was thinking it had only to be a path issue

So did it find  make  when you gave the full path?
Title: Re: Realtek Wireless firmware extention help?
Post by: SamK on June 23, 2011, 11:43:50 AM
but still no joy,  how hard can this be?
A couple of ideas...

This wiki page is helpful:
http://wiki.tinycorelinux.net/wiki:creating_extensions

After unzipping the download there is a driver directory.  In this there is a further .tar.gz, unpack this also.  This will create yet a further directory.  Change (cd) into this directory then follow the steps in the wiki.
   
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 01:09:09 PM
Thanks guys  but still no cigar :(

given the full path i still get "not found"  Although there is a difference, instead of "file not found" the command "/usr/local/bin/make"  returns "not found"

currently uninstalling compiletc and reinstalling   I just have to rig up a wired connection
Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 23, 2011, 01:45:39 PM
Hi coreplayer2

Exactly what I was going to suggest.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 02:15:09 PM
I wish I could copy and paste the results I get from the terminal but that doesn't appear to function either.

meanwhile

the error now is something like this

make *** /lib/modules/2.6.33.3-tinycore/build: No such file or directory, stop.
make *** [ALL] Error 2

Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 02:18:10 PM
using these commands from the directory where the makefile is located the result is the same

/usr/local/bin/make
./make
 
from root or not

The good news is if I type "make -h"  at the prompt, make returns all options


We shouldn't have to specify the file right?  like "make -f makefile"    ?
Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 23, 2011, 02:32:45 PM
Hi coreplayer2

All you should have to do is  cd  into the directory containing makefile of the project you are trying
to compile and type  make
If the makefile is called something besides  makefile  or  Makefile  you need to specify the file name.

Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 02:35:29 PM
I typed the error in second post above if we open a terminal at the location of the makefile 
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 02:52:20 PM
ok  did an uninstall and reinstall of the linux headers again

here goes :-\
Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 23, 2011, 02:53:54 PM
Hi coreplayer2

I didn't see that other post. Copy/paste from a terminal is done by using the left mouse button to
highlight the text you want to copy then go to where you want to paste it to and click the middle
button, the text will wind up where the cursor is flashing.

So make is working and it's finding the makefile.

Quote
make *** /lib/modules/2.6.33.3-tinycore/build: No such file or directory, stop.

I believe that means the header files are either not installed or not mounted. Not sure how to fix that.
Maybe one of the administrators can provide a hint.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 03:01:59 PM
thanks

the copy paste function may be related to the mouse settings because I lost this capability after setting up the mouse.  I disparately need a clipboard


 I think i'll reboot on last time then install compiletc and the headers again, then try

 :o
Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 23, 2011, 03:03:54 PM
Hi coreplayer2

All you need is compiletc. The headers are included with that package.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 03:06:03 PM
really??
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 23, 2011, 03:06:35 PM
Quote
make *** /lib/modules/2.6.33.3-tinycore/build: No such file or directory, stop.

This error occurs when there is no symlink to the kernel source, eg /lib/modules/2.6.33.3-tinycore/build -> /usr/src/linux-2.6.33.3

A quick fix is to load the linux-headers-2.6.33.3-tinycore extension in addition to compiletc
Title: Re: Realtek Wireless firmware extention help?
Post by: SamK on June 23, 2011, 03:21:19 PM
make *** /lib/modules/2.6.33.3-tinycore/build: No such file or directory, stop.
make *** [ALL] Error 2
I believe that means the header files are either not installed or not mounted. Not sure how to fix that.
I can recreate these messages by deliberately not loading the header files.

@coreplayer2
In Control Panel-->System Stats is a tab "Installed". This lists what is successfully loaded.  Can you confirm that "linux-headers-2.6.33.3-tinycore" appears in the list.
If not visible can you confirm precisely each step you conduct to download and load the extension?
   
   
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 03:44:09 PM
Cool, thanks for the help :)

ok am uninstalling everything, rebooting and reinstalling compiletc and then the headers.  Am also assuming the directory with source files (and the makefile) needs to be copied to the tmp directory.

will cd to this directory and attempt the make command agin
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 03:58:45 PM
ok


compiletc & linux-headers-2.6.33.3-tinycore  & make are all listed now in the installed tab of tinycore system stats

brb
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 04:09:11 PM
Well, we're definitely getting there but still no cigar :(

he he! I found the middle mouse button restores clipboard copies :)

Code: [Select]
tc@box:/tmp/rtl8192su$ sudo -s
root@box:/tmp/rtl8192su# make
make[1]: Entering directory `/usr/local/src/linux-headers-2.6.33.3-tinycore'
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8180_93cx6.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192U_wx.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192S_phy.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192S_rtl6052.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192S_rtl8225.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r819xU_cmdpkt.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192U_dm.o
/tmp/rtl8192su/HAL/rtl8192u/r8192U_dm.c: In function 'dm_txpower_trackingcallback':
/tmp/rtl8192su/HAL/rtl8192u/r8192U_dm.c:1096: warning: unused variable 'dev'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_dm.c: In function 'dm_check_txpower_tracking':
/tmp/rtl8192su/HAL/rtl8192u/r8192U_dm.c:1737: warning: unused variable 'priv'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_dm.c: At top level:
/tmp/rtl8192su/HAL/rtl8192u/r8192U_dm.c:1114: warning: 'dm_InitializeTXPowerTracking_TSSI' defined but not used
/tmp/rtl8192su/HAL/rtl8192u/r8192U_dm.c:1652: warning: 'dm_CheckTXPowerTracking_TSSI' defined but not used
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192SU_HWImg.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192S_firmware.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192S_Efuse.o
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192U_core.o
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c: In function 'rtl819x_set_mcast_register':
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:4338: warning: unused variable 'dev'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c: In function 'rtl8192_usb_probe':
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11333: error: 'struct net_device' has no member named 'open'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11334: error: 'struct net_device' has no member named 'stop'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11335: error: 'struct net_device' has no member named 'tx_timeout'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11336: error: 'struct net_device' has no member named 'do_ioctl'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11337: error: 'struct net_device' has no member named 'set_multicast_list'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11338: error: 'struct net_device' has no member named 'set_mac_address'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11339: error: 'struct net_device' has no member named 'get_stats'
make[2]: *** [/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.o] Error 1
make[1]: *** [_module_/tmp/rtl8192su/HAL/rtl8192u] Error 2
make[1]: Leaving directory `/usr/local/src/linux-headers-2.6.33.3-tinycore'
make: *** [all] Error 2
root@box:/tmp/rtl8192su#

since the error was generated whilst in the HAL/rtl8192u/ directory I entered this location, opened a terminal and ran make to investigate

Code: [Select]
root@box:/tmp/rtl8192su/HAL/rtl8192u# make
make -C /lib/modules/2.6.33.3-tinycore/build M=/tmp/rtl8192su/HAL/rtl8192u CC=gcc modules
make[1]: Entering directory `/usr/local/src/linux-headers-2.6.33.3-tinycore'
  CC [M]  /tmp/rtl8192su/HAL/rtl8192u/r8192U_core.o
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c: In function 'rtl819x_set_mcast_register':
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:4338: warning: unused variable 'dev'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c: In function 'rtl8192_usb_probe':
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11333: error: 'struct net_device' has no member named 'open'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11334: error: 'struct net_device' has no member named 'stop'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11335: error: 'struct net_device' has no member named 'tx_timeout'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11336: error: 'struct net_device' has no member named 'do_ioctl'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11337: error: 'struct net_device' has no member named 'set_multicast_list'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11338: error: 'struct net_device' has no member named 'set_mac_address'
/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.c:11339: error: 'struct net_device' has no member named 'get_stats'
make[2]: *** [/tmp/rtl8192su/HAL/rtl8192u/r8192U_core.o] Error 1
make[1]: *** [_module_/tmp/rtl8192su/HAL/rtl8192u] Error 2
make[1]: Leaving directory `/usr/local/src/linux-headers-2.6.33.3-tinycore'
make: *** [modules] Error 2
root@box:/tmp/rtl8192su/HAL/rtl8192u#
Title: Re: Realtek Wireless firmware extention help?
Post by: curaga on June 23, 2011, 04:16:10 PM
Well, the driver is not compatible with the kernel. Not your fault.
Title: Re: Realtek Wireless firmware extention help?
Post by: SamK on June 23, 2011, 04:22:28 PM
he he! I found the middle mouse button restores clipboard copies :)
That's what Rich was trying to explain in reply #16.

Well, we're definitely getting there but still no cigar :(
Can you post the full name and size of the zip file you downloaded?

Also it would be good to see a listing of everything in the directory that holds the makefile.
  
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 04:45:45 PM
yes thx I'd been trying to paste using both l&r mouse buttons which of course didn't work after changing the mouse settings, but I got it now thanks to you both :)


Ok this took some work but here is a screen shot showing the exact contents of the zip file extracted to tmp directory.  This looks a little different from your description right?
(http://db.tt/BZHmbqQ)

and the source download link I provided in post #1 I believe
Title: Re: Realtek Wireless firmware extention help?
Post by: SamK on June 23, 2011, 05:04:29 PM
Ok this took some work but here is a screen shot showing the exact contents of the zip file extracted to tmp directory.  

and the source download link I provided in post #1 I believe
The download link you provided is to the Realtek site - what I was asking for is the name and size of the zip file you downloaded.

An alternative way to provide a listing of directory contents is to run in a terminal:
Code: [Select]
ls -1laYou can then copy and paste the output (it's handy to know about the middle mouse button).
  
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 05:27:30 PM
Thanks I was looking for some quick method as opposed to editing a screen shot :)
 
a directory listing at the terminal  =  ls -1la    as in "LS -1LA"  ?  (lower case of course)

brb with the link

I think this is the link    the Hong Kopng server (HK1) from the same link from post #1 is the closet I can get to the link to the zip file.  if you select the  download server from the "Linux driver for kernel 2.6.x you'll get the zip file I used

size = 2018K


 well I provided the wrong link in post #1 but corrected that now, however the source I've been using looks to be the correct version

Ok I have the Linux source code from the branded manufacturer (Amped Wireless) for their UA150  adapter.  As far as I can tell it is for kernel 2.6

we'll see
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 06:16:27 PM
Finally some success!  Things working as expected!  Now there's a novelty ;)

using the OEM driver specifically for the UA150 adapter we now have a 8712u.ko driver   I think it's a one size fits all these specified models only the name does not reflect the device.

Title: Re: Realtek Wireless firmware extention help?
Post by: SamK on June 23, 2011, 06:18:42 PM
...select the  download server from the "Linux driver for kernel 2.6.x you'll get the zip file I used

size = 2018K
The files downloaded from the link you provide do not correspond with the directory listing in reply #27.
   
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 06:29:13 PM
ok the link can't be fixed, phew darn java!!  I can go to the site and navigate to the specific driver but can not copy the link.  however  the current link reflects the page from where the driver was downloaded from and used earlier, which still can't be compiled.   The rtl8192su version was selected and downloaded which I'm also no longer using.  

I've had success building the OEM version (for which there is no link) except the zip contains a driver for several compatible models and the resulting build has a different name

compiled driver is named 8712u.ko

and the device is 8192u   ??
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 06:51:17 PM
just noticed i've been upgraded to a junior  ;D 

also updated last post to reflect changes and why I had so much difficulty with the link
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 07:00:13 PM
The driver in zip file I'm working with now is

RTL8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20100823.zip    (and is 2.0MB in size)

produced a file  8712u.ko    


am not sure if I can simply rename it to reflect the current hardware or not?
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 07:52:57 PM
the next hurdle  :(


mksquashfs package  etc etc
mksquashfs: not found


h'mmm    yet squashfs-tools-4.x is confirmed loaded in system stats


now what?  reinstall  lol
Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 23, 2011, 08:43:32 PM
Hi coreplayer2

Open AppBrowser and click on local, scroll down to squashfs-tools-4.x select it and click OK, see
if that makes a difference.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 23, 2011, 10:04:47 PM
Hi Rich

I had to make it  "On-Demand"   then load it up when required  thanks :)


Ok the extension is made, now if I could just get this driver to communicate with the device we'll be winning :)   wait the driver is supposed to be the tool making the communication!  

the extension has been created and it loads at boot as seen in the tce.installed directory and in the stats window.   the device however doesn't know how to use the driver.  I wonder if because the driver is a different name ??

the device i think is 8192u  and the driver is 8712u   the name of the file originally included both names
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 12:37:25 AM
Did you try "sudo modprobe 8712u"
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 01:29:57 AM
well actually I couldn't remember that command so have been looking for it, thanks :)

the return from issuing that command I get is the module is not found in "modules.dep"

 ???
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 01:58:16 AM
Try:
Code: [Select]
$ sudo depmod -a
$ sudo modprobe 8712u

or
Code: [Select]
$ sudo insmod /path-to-file/8712u.ko
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 02:39:23 AM
looks like this is the problem.

the extension is installed, it is shown in the control panel > system stats > installed.  presumably this is read from tce.installed directory. 

the driver can not be found anywhere.  conducted a thorough search and can not find it.  somehow the path is messed up!

 
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 02:41:55 AM
Look in /tmp/tcloop/extension_name - this is where all of the extensions are mounted.

By examining the directory structure of your extension in /tmp/tcloop, you should be able to see where the driver is.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 02:59:59 AM
thanks

/tmp/tcloop   was  empty   ???

rebooting now  and still empty?
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 03:05:23 AM
If /tmp/tcloop is empty then none of the extensions are loaded - unless you're using "scatter mode"?
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 03:10:40 AM
all but one extensions are loaded and appear to function except of course for the extension I created.

I still have the structure of the directories I used during extension creation complete with driver in case I needed to make another.

The install follows the guide in the wiki as best I can accomplish to a HDD  with persistence for Home and Opt


This was the destined to be location of the driver  

/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless/rtl8712u.ko.gz

this was created inside a directory called package.  I cd to tmp where package was located and ran mksquashfs package/ rtl8712u-2.6.33.3-tinycore.tcz
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 03:21:23 AM
I'd suggest trying this:
Code: [Select]
$ sudo mkdir -p /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless
$ sudo cp /path-to-file/rtl8712u.ko.gz /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless
$ sudo depmod -a
$ sudo modprobe rtl8712u

and then "lsmod" to double-check the driver  loaded
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 03:31:50 AM
thanks for the info

but at this point would it be better to remake the extension to point to a better location?

it looks to me like the extension is trying to copy the file to a location in the file system which doesn't exist yet?


Oh I got it you want to load the driver to see if it does infact work then remake the extension?
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 03:39:44 AM
it looks to me like the extension is trying to copy the file to a location in the file system which doesn't exist yet?
The extension loading routine would create the location if it did not exist.

Quote
Oh I got it you want to load the driver to see if it does infact work then remake the extension?
affirmative
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 03:52:02 AM
that procedure loaded the module as 8712u   :)

Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 03:55:23 AM
Good  :)

What does "dmesg | tail -20" say?

BTW I built a quick extension that seems to work without problems:
Code: [Select]
$ tce-load -i 8712u.tcz
$ modinfo 8712u
filename:       kernel.tclocal/drivers/net/wireless/8712u.ko.gz
description:    rtl871x wireless lan driver
author:         ...
license:        GPL
vermagic:       2.6.33.3-tinycore SMP mod_unload 486

Of course I don't have the hardware to test further
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 04:00:50 AM
That's so cool :)


anyhow there is one other issue.  the module currently does not communicate with the device.   I'm wondering if I need to instigate a connection or if the file name which is different is an issue?

brb with the other answer.  ok it say's "not found"
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 04:07:46 AM
anyhow there is one other issue.  the module currently does not communicate with the device.   I'm wondering if I need to instigate a connection or if the file name which is different is an issue?

Yes, you'll need to instigate a connection.

I'd suggest to use the wifi extension - load the extension and then "sudo wifi.sh"
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 04:09:25 AM
I wish I could build an extension that fast :(  You're my hero!!



Ok the issue I have is understanding how this works.

the file is  RTL8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20100823.zip   when compiled the output is 8712.ko  my device is the 8192su version so I'm wondering does the driver once loaded look for a compatible device?  or should the file name be changed to suit the device?


Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 04:14:51 AM
Assuming you chose the correct driver in the first place - "rtl871x wireless lan driver" suggests it will be good for any device whose name is 871x, but the driver source filename suggests it will be good for your device - then the driver will find the hardware on its own.

I'd suggest you try the wifi.tcz extension and see how things go.

pasting the contents of "dmesg | tail -20" might also give some indication of whether things might work.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 04:19:34 AM
Thanks

I tried both the above with no joy.

first the   dmesg | tail -20  command returned    not found


then the wifi.tcz was already installed and when run  displays a message that no wifi devices found :(
Title: Re: Realtek Wireless firmware extention help?
Post by: gutmensch on June 24, 2011, 04:22:57 AM
Quote
what is a newbie like me to do?
RTFM :)

Code: [Select]
$ dmesg | tail -20

can hardly yield "not found". You're obviously doing something wrong (again).
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 04:23:48 AM
first the   dmesg | tail -20  command returned    not found

eh?

You can also access dmesg from the panel icon - panel/system stats/dmesg

There will be a whole bunch of yada-yada, but you're looking for something like:
Code: [Select]
b43-phy0: Broadcom 4312 WLAN found (core revision 15)
phy0: Selected rate control algorithm 'pid'
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
lib80211_crypt: registered algorithm 'TKIP'
lib80211_crypt: registered algorithm 'WEP'
lib80211_crypt: registered algorithm 'CCMP'
b43 ssb0:0: firmware: requesting b43/ucode15.fw
b43 ssb0:0: firmware: requesting b43/lp0initvals15.fw
b43 ssb0:0: firmware: requesting b43/lp0bsinitvals15.fw
b43-phy0: Loading firmware version 478.104 (2008-07-01 00:50:23)
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 04:25:15 AM
Wait!!!    while the new wifitcz module did nothing , the wicd net manager succeeded!!!    we are now connected  to a WPA2 wireless network!!
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 04:30:15 AM
Good  :)

If you were already trying with wicd, that could quite possibly prevent wifi.sh from working.

..and hopefully this shows you connected to the Internet:
Code: [Select]
$ sudo ping -c2 www.google.com
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 04:43:42 AM
the connection is excellent,  solid and at 100% it does not flinch.   cool I can't thank you guys enough.   for me this task has been day in day out for almost three weeks.

pity the the wifi.tcz extension didn't appear to flush the tables then bring up the device which Wicd network manager accomplished without an issue.  Maybe the wifi app would function from a reboot without and previous connection.  


of course the extension still needs to be remade with the ideal path.      
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 04:54:23 AM
Try this - somewhat longwinded and assuming you have not rebooted, but it will get the job done:
Code: [Select]
$ mkdir /tmp/pkg
$ cd /tmp/pkg
$ sudo tar -czvf realtec.tce --numeric-owner /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless/8712u.ko.gz
$ sudo tar xzf realtec.tce
$ sudo rm realtec.tce
$ cd ..
$ sudo mksquashfs pkg/ 8712u.tcz
$ sudo chown tc:staff 8712u.tcz
$ cp 8712u.tcz /path-to-a-safe-place
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 05:00:20 AM
already had chromium installed in anticipation of success :)   browses the web just fine  thanks again Juanito and not forgetting maro, rich and especially SamK for heading me in the right direction.

the fat lady isn't singing yet though because I still have to learn the correct path for the module to be copied too and then recreate the extension.


Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 05:02:57 AM
..I still have to learn the correct path for the module to be copied too and then recreate the extension.

The correct path for the module is in the post above.

If you drop me a pm, I can send you the extension I made.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 05:14:41 AM
You type too fast :)    I see the path and I'm sure this is the path I used earlier,  only that I used xfe to create the directories and copy the driver with, then I fear I may have entered the directory above where I should have been located to make the extension from.

doh!!


ok am running your commands from above post now :)
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 05:21:44 AM
ok where did I go wrong with this?

Code: [Select]
tc@box:/tmp/pkg$ sudo tar -czvf realtec.tce --numeric-owner /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless
/8712u.ko.gz
tar: Removing leading `/' from member names
tar: /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless/8712u.ko.gz: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
tc@box:/tmp/pkg$



Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 05:32:01 AM
I don't know, but do this:
Code: [Select]
$ sudo mkdir -p /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless
$ sudo cp /path-to-file/8712u.ko.gz /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless

..and then go back to the start of the previous instructions - i.e. "mkdir /tmp/pkg", etc
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 05:41:22 AM
I think I got it..  the file name is rtl8712.ko.gz   currently  ::)


am here now
Code: [Select]
tc@box:/tmp/pkg$ sudo tar -czvf realtec.tce --numeric-owner /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless
/rtl8712u.ko.gz
tar: Removing leading `/' from member names
/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless/rtl8712u.ko.gz
tc@box:/tmp/pkg$ sudo tar xzf realtec.tce
tc@box:/tmp/pkg$ sudo rm realtec.tce
tc@box:/tmp/pkg$ cd ..
tc@box:/tmp$ sudo mksquashfs pkg/rtl8712u.tcz
sudo: mksquashfs: command not found
tc@box:/tmp$

I forgot, I'd put squashfs in On-Demand  so I could load it at will,   as onboot would not load when needed or would have to reboot
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 05:55:50 AM
Code: [Select]
tc@box:/tmp$ sudo mksquashfs pkg/rtl8712u.tcz
SYNTAX:mksquashfs source1 source2 ...  dest [options] [-e list of exclude
dirs/files]
etc etc long list of options

but I think I need to cd to wireless directory or provide an extension name ??


disregard,  all that was needed was a space between source and destination :)
Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 24, 2011, 06:09:48 AM
The command is:
Code: [Select]
$ sudo mksquashfs pkg/ rtl8712u.tcz
i.e. there is a space between "pkg/" and "rtl8712u.tcz"
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 06:10:43 AM
lol lol  I type too slow!!
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 06:18:06 AM
I caught the error thanks   am now ready to reboot since the extension is in the optional directory and set to load at boot
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 07:04:13 AM
Well I thank you again for all your help.  I have to get some sleep and hit this again tomorrow.    After the reboot no dice, no wifi devices yet the driver is listed as installed.  Same as before, driver can not be found anywhere..    even rebooted with the extension you sent me and that is same, can not be found. 

I saw an error message flash by quickly during boot of something not initialized.  It is clear the extensions are not installing into the correct location in the file system.

good night.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 01:50:37 PM
Ok am ready to hit this again.    

all the extensions we made yesterday load as expected, yet when we drill down to the expected location the actual driver does not exist.

 This is the expected location right?
/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless/8712u.ko.gz

The file 8712u.ko.gz does not exist at this location, and issuing the command "sudo modprobe 8712u"  produces "module 8712u not found" after booting with each of the three extensions we made yesterday.



Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 24, 2011, 03:42:37 PM
Hi coreplayer2

Try this,  sudo find / -iname 8712u.ko.gz
If it's anywhere on your system, that should tell you where it is.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 04:20:27 PM
Thanks


this morning I created a new extension since both extensions made by myself and Juanito installed but failed to copy the file 8712u.ko.gz to it's desired location.

location for the driver is:
/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless


So this morning I created another extension this time I cd to tmp (instead of /tmp/pkg  like yesterday)

 tmp/pkg/usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless/r8712u.ko.gz

cd tmp
mksquashfs pkg/ r8712u-2.6.33-tinycore.tcz

copied r8712u-2.6.33-tinycore.tcz  to optional directory and opened AppsAudit, On Boot Maintenance, then moved r8712u-2.6.33-tinycore.tcz to the onboot list, exited out of the OnBoot maintenance and rebooted.

After the reboot the extension is again loaded, it is listed in the installed list yet STILL the driver  r8712u.ko.gz can not be found anywhere on the system particularly is not listed in /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless

back to square one, ok maybe two..
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 04:38:32 PM
Hi coreplayer2
Try this,  sudo find / -iname 8712u.ko.gz
If it's anywhere on your system, that should tell you where it is.

That's a cool command thanks :)


one more reboot, extension is installed (of this there is no question)  I can find only the development and backup copies of the driver now named r8712u.ko.gz   it is definitely not listed in any other location especially not in /usr/local/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/wireless  where the extension should have copied it to.

but I can copy the driver manually to the proper location and load it up and works (or at least it did yesterday)

Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 24, 2011, 10:21:11 PM
Seems like every time I reboot there's is a different story :(

If I look back there is a familiar "file not found" when the file was present on the last boot.  eg, an earlier boot I was able to start the Wicd daemon now the command can't be found.  I uninstalled and reinstalled and loaded OnBoot wifi, now it can't be found either

When I run dmesg |tail -20  there is a WARNING maximal mount count reached

Checking all Md5 hashes turns up all OK.

I don't have any idea why the file system continuously gets corrupted, but this appears to be the root of all my issues.  and am not sure how to fix it either.



Title: Re: Realtek Wireless firmware extention help?
Post by: Rich on June 24, 2011, 11:43:13 PM
Hi coreplayer2

Considering the problems you are having I have a few questions/requests

1. How did you install TC? Did you use one of the install utilities?
2. Did you install to a hard drive or a USB memory stick?
3. When you reboot do you run a backup first or do just hit the reset or power button?
4. Could you please post the output of  showbootcodes.
5. Run the following commands:
           dmesg > dmesg.txt
           mount > mount.txt
           ps ax > ps.txt
           lsmod > lsmod.txt
6. When you go to reply, click on  Additional Options  and attach the files from step 5.

Maybe with some information about your setup someone can figure out what's going on.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 25, 2011, 02:26:58 AM
I can't believe it!!!  

I ran a file system check (which was clean) and set the max mount count to (0) I think??   and viola all my issues are resolved.   Booted with base norestore,  ran fsck &  tune2fs -i0 -c0 on /dev/hda1  & 2

tcloop is no longer empty   ;D

all my apps function now  ;D

no more "file not found" issues  ;D

And the best thing is my new wireless extension loads at boot and copies the driver to the correct location and runs

double YAY!!



Title: Re: Realtek Wireless firmware extention help?
Post by: Juanito on June 25, 2011, 02:31:31 AM
I ran a file system check and set the max mount count to (-1) I think??   and viola all my issues are resolved.

No - setting the max count to -1 did not fix your issues.

Using fsck to repair the corruption in the file system fixed your issues.

max count triggers a warning to check the file system when the file system has been mounted {max count} times.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 25, 2011, 02:36:58 AM
Oh ok  but the fsck returned "clean"



@ Juanito
Note:  tcloop is no longer empty  ;D
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 25, 2011, 03:31:22 AM
It seems highly possible my issues were caused by file corruption, but how was this possible?  The physical drive has never had issues and is relatively new.  I'm thinking back to when these issue have occured previously (within the last few weeks) and I recollect introducing a USB thumb drive partially formatted with FAT32 as per the wicki to transfer files from a windows PC.   Could this be a cause?

Title: Re: Realtek Wireless firmware extention help?
Post by: curaga on June 25, 2011, 03:55:55 AM
Unclean shutdown, power cut, etc...
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 25, 2011, 04:51:37 AM
Thanks,  but kinda obvious :)

Lately there have been several instances of similar issues, which I resolved  quickly with a wipe of the drive and a reinstall.    The more I think of this I am becoming increasingly more suspicious that each event was related to transferring files via a usb drive having a FAT32 partition  where corruption occurred shortly after the usb drives use.

Just a thought..
Title: Re: Realtek Wireless firmware extention help?
Post by: gerald_clark on June 25, 2011, 11:35:35 AM
It is extremely important to umount theUSB drives before unplugging.
This is true even for Windows ( Safely remove ).
FAT filesystem corruption may not be detected if the directory and FAT are
written, but not all of the data.
Title: Re: Realtek Wireless firmware extention help?
Post by: coreplayer2 on June 27, 2011, 03:10:20 PM
It seems that all my compiling issues are resolved now after a fix of the file system, am still interested in other possible reasons (besides the obvious) for the file system corruption I experienced.   am still perusing other ideas on this.

Meanwhile the newly compiled wireless driver works great.   Only thing is the package included an early version of wpa_supplicant.  how this is used during compilation I don't know yet.    when compiling the driver what is the meaning of compiled with, or compiled against another  app source like wpa_supplicant??

The compiled driver whilst large does not apparently contain a usable wpa_supplicant as an additional wpa_supplicant extension is needed to function.

The issue I see is one wpa_supplicant version used with the driver source during compiling and another version used by a network manager?

any thoughts please?