Author Topic: [howto] compile your own wireless  (Read 83245 times)

July 27, 2010, 11:29:00 AM
Reply #45

101000

  • Newbie

  • Offline
  • *

  • 2
Hi this is my first post :)

I've compiled those driver http://code.google.com/p/open1211/  for zydas 1211 and 1211b chipsets. I'm posting it if someone will find those usefull. It loads correctly with wdlxtv 5.8.1 but my dongle doesn't work (I had a sitecome wl 117 now I switch to a sitecom wl172 with rt73 chipset). Files are here http://rapidshare.com/files/409449886/open1211.zip
I think there are no differences between those and http://wdtvforum.com/main/index.php?topic=1379.msg10477#msg10477 but I could be wrong. 

« Last Edit: August 05, 2010, 12:28:55 PM by 101000 »

August 08, 2010, 04:23:54 AM
Reply #46

101000

  • Newbie

  • Offline
  • *

  • 2
I have already tried to build this driver. I do not remember any significant changes to the sources to be required. Update the makefie to set your paths to kernel sources and then just try running make right away and look at the output. I was not able to find the location it loads the firmware from. I tried both /etc/firmware and /lib/firmware. Probably you should place the firmware together with the driver.

No luck. It seems that it's correctly built, but the firmware is not loaded.
I have tried every place. I have read in the README that in some linux versions it could be needed to put in /lib/firmware/2.6.15/
It doesn't work either.
Here is what I get in messages.txt
Code: [Select]
Jan  1 00:00:49 wdtv user.info kernel: rt73: init
Jan  1 00:00:49 wdtv user.info kernel: rt73: idVendor = 0x13b1, idProduct = 0x20
Jan  1 00:00:59 wdtv user.err kernel: rt73: Failed to request_firmware. Check your firmware file location
Jan  1 00:00:59 wdtv user.crit kernel: rt73: Failed to load Firmware.
Jan  1 00:00:59 wdtv user.warn kernel: rt73: probe of 1-2:1.0 failed with error -2
Jan  1 00:01:00 wdtv user.info kernel: usbcore: registered new driver rt73
Jan  1 00:01:04 wdtv user.warn kernel: Unhandled kernel unaligned access[#1]:
Jan  1 00:01:04 wdtv user.warn kernel: Cpu 0
Jan  1 00:01:04 wdtv user.warn kernel: $ 0   : 00000000 00000000 90296654 00000000
Jan  1 00:01:04 wdtv user.warn kernel: $ 4   : 75646f6d 7ff7aa98 00001fe0 7ff7aa98
Jan  1 00:01:04 wdtv user.warn kernel: $ 8   : 00000001 00000000 00000000 00000000
Jan  1 00:01:04 wdtv user.warn kernel: $12   : 00000002 9497bdf4 00000000 0100007f
Jan  1 00:01:04 wdtv user.warn kernel: $16   : 9036b220 75646f6d 7ff7aa78 00000020
Jan  1 00:01:04 wdtv user.warn kernel: $20   : 00002000 9036b298 90310000 7ff7aa70
Jan  1 00:01:04 wdtv user.warn kernel: $24   : 00000000 90298768                 
Jan  1 00:01:04 wdtv user.warn kernel: $28   : 9497a000 9497bd98 7ff7aa78 90246098
Jan  1 00:01:04 wdtv user.warn kernel: Hi    : 00000000
Jan  1 00:01:04 wdtv user.warn kernel: Lo    : 431bde83
Jan  1 00:01:04 wdtv user.warn kernel: epc   : 90296670     Tainted: PF   
Jan  1 00:01:04 wdtv user.warn kernel: ra    : 90246098 Status: 10001c03    KERNEL EXL IE
Jan  1 00:01:04 wdtv user.warn kernel: Cause : 50808010
Jan  1 00:01:04 wdtv user.warn kernel: BadVA : 75647015
Jan  1 00:01:04 wdtv user.warn kernel: PrId  : 00019069
Jan  1 00:01:04 wdtv user.warn kernel: Modules linked in: nls_koi8_u nls_koi8_r nls_iso8859_9 nls_iso8859_7 nls_iso8859_6 nls_iso8859_5 nls_iso8859_4 nls_iso8859_3 nls_iso8859_2 nls_iso8859_15 nls_iso8859_14 nls_iso8859_13 nls_euc_jp nls_cp950 nls_cp949 nls_cp936 nl
Jan  1 00:01:04 wdtv user.warn kernel: Process nmbd (pid: 847, threadinfo=9497a000, task=96e0f030)
Jan  1 00:01:04 wdtv user.warn kernel: Stack : 0000002a 00000101 00000000 00000000 00006f6c 00000000 00000000 00000000
Jan  1 00:01:04 wdtv user.warn kernel:         00000002 0100007f 00000000 00000000 9036b220 75646f6d 7ff7aa78 00000020
Jan  1 00:01:04 wdtv user.warn kernel:         00002000 90246098 00000001 96b5c934 900b3898 9497bf18 00002000 7ff7aa78
Jan  1 00:01:04 wdtv user.warn kernel:         00006f6c 00000000 00000000 00001000 55733330 00000000 9497be50 55733330
Jan  1 00:01:04 wdtv user.warn kernel:         00001000 9497bf18 00000194 00000194 2acb042c 2acb0290 00008912 7ff7aa70
Jan  1 00:01:04 wdtv user.warn kernel:         ...
Jan  1 00:01:04 wdtv user.warn kernel: Call Trace: [<90246098>]  [<900b3898>]  [<c4036044>]  [<900be3f0>]  [<9019da8c>]  [<9009a5d0>]  [<900b7bf0>]  [<90237334>]  [<90235ed4>]  [<90235d40>]  [<900b7cf8>]  [<900b80d4>]  [<900b80b0>]  [<902376d4>]  [<9002f8a0>]  [<900
Jan  1 00:01:04 wdtv user.warn kernel:
Jan  1 00:01:04 wdtv user.warn kernel: Code: afb40040  afb3003c  afb10034 <8c8300a8> 00a08021  10600032  00c09021  8c71000c  1220002f

I know it's been one year since your post and maybe it's not important but .. I've compile serialmonkey driver too and I'm able to load firmware correctly. If you want I will upload an app.bin with a correct configuration.
This is what I get from messages.txt :
Code: [Select]
Jan  1 00:00:48 WDTV-8165f user.info kernel: rt73: init
Jan  1 00:00:48 WDTV-8165f user.info kernel: rt73: idVendor = 0xdf6, idProduct = 0x90ac
Jan  1 00:00:49 WDTV-8165f user.err kernel: firmware_loading_store: unexpected value (0)
Jan  1 00:00:49 WDTV-8165f user.info kernel: rt73: using permanent MAC addr
Jan  1 00:00:49 WDTV-8165f user.info kernel: rt73: Active MAC addr: 00:0c:f6:33:b9:a1
Jan  1 00:00:49 WDTV-8165f user.info kernel: rt73: Local MAC = 00:0c:f6:33:b9:a1
Jan  1 00:00:49 WDTV-8165f user.info kernel: usbcore: registered new driver rt73
Jan  1 00:00:49 WDTV-8165f user.info kernel: rt73: driver version - 1.0.3.6 CVS
Jan  1 00:00:49 WDTV-8165f user.info kernel: rt73: using net dev supplied MAC addr
Jan  1 00:00:49 WDTV-8165f user.info kernel: rt73: Active MAC addr: 00:0c:f6:33:b9:a1
Jan  1 00:00:49 WDTV-8165f user.info kernel: rt73: Local MAC = 00:0c:f6:33:b9:a1

I don't know what " firmware_loading_store: unexpected value " means but driver seems to work correctly

August 22, 2010, 08:06:15 PM
Reply #47

nowhere

  • Newbie

  • Offline
  • *

  • 28
Have spent a lot of hours trying to compile a driver for my ethernet adapter KY-RS9600 to use with my WDTV Gen2 using VMware under winxp and this howto, but I'm running into all sorts of problems.

I have followed everything in step1, with the following exceptions:
- I have downloaded the gpl-code for gen2 instead of gen1 (and used the filename for that code when unzipping)
- couldn't find any GPL-folder inside the wdtv-folder, but I found smp86xx_toolchain_2.8.2.0 in the folder toolchain under wdtv, so I used that one instead
- in mips.env I have tried the path as it is in the howto, and with replacing it to match the toolchain-folder above

During "make oldconfig" in step2 I get a bunch of options, but I've just left all of them at the default value.

However when I type "make" I get the a lot of /bin/sh: mips-linux-gnu-gcc: command not found and make: mips-linux-gnu-gcc: Command not found and also make[1]: ***[arch/mips/kernel/asm-offsets.s] Error 127 and make: *** [prepare0] Error 2

Anyone have any idea to how I can fix this?


...in case anyone feel extraordinary kind I have included the driver I want to have compiled for my gen2 :-)
you need change msip.env file. The path /wdtv/wdtv should be changed to /your_user_name/wdtv.

August 22, 2010, 08:19:33 PM
Reply #48

nowhere

  • Newbie

  • Offline
  • *

  • 28
I have TP-LINK TL-WN821NV2 USB adapter, I downloaded driver(wpa_supplicant otus driver) from http://wireless.kernel.org/en/users/Drivers/otus, and downloaded firmware from http://wireless.kernel.org/en/users/Drivers/ar9170#device_driver.

However, I stucked at "diff -uNbB Makefile.orig Makefile". I only see "Makefile" and there is no "Makefile.orig" at same directory. Can someone help out?

Thanks

September 17, 2010, 09:12:45 PM
Reply #49

wandrey

  • Newbie

  • Offline
  • *

  • 5
I need help, i want a compiled driver for wdtv, for RTL8192U. Any body can help me? please? TKs

January 15, 2011, 03:53:39 AM
Reply #50

brackb01

  • Newbie

  • Offline
  • *

  • 10

I don't suppose anybody has built a driver for the RT3672sta have they? (it's for the WUSB600N v2 for a WDTV Gen 1) - I don't mind contributing something financially by way of a thankyou!!!!!!

January 30, 2011, 07:55:22 AM
Reply #51

gchaimovitz

  • Newbie

  • Offline
  • *

  • 9
I'm trying to compile a new version of asix.ko for WDLXTV .5.8.1 as my usb-ethernet adapter won't get detected with the version included in WDLXTV.  I'm using VMPLAYER with the VMWARE image and the Makefile refers to the folder /lib/modules/2.6.26-2-686/build/includes/linux/usb/* and /lib/modules/2.6.26-2-686/build/drivers/net/usb/usbnet.h and neither of those folders exist.  I can't find on the vmware image a usbnet.h file anywhere.  What am i doing wrong?

**** UPDATE
I've been able to get through and compile the new driver.  I followed the rest of the instructions however being that this is a ethernet-usb vs a wireless is the process still the same?
« Last Edit: February 04, 2011, 05:39:02 AM by gchaimovitz »

April 26, 2011, 07:31:50 AM
Reply #52

belidzs

  • Newbie

  • Offline
  • *

  • 1
Hi there,
First of all let me say thank you to everyone who made custom firmwares available to us, and OP for writing this excellent guide. For me, it wasn't easy to get my wireless card working, but after modifying the driver, recompiling it using this guide and applying it to the busybox, it finally works.

Here you can download SmartP's wireless extension pack modified by me with working drivers for 148f:2070. It is based on Ralink's official drivers for RT8070/RT3070/RT3370 USB v2.5.0.1
http://www.uni-corvinus.hu/~bkeresz/wireless-mod-rt3070.app.bin

Cheers,
belidzs

Supported devices:
Code: [Select]
{USB_DEVICE(0x148F,0x3070)}, /* Ralink 3070 */
        {USB_DEVICE(0x148F,0x2070)}, /* Ralink 2070L */
{USB_DEVICE(0x148F,0x3071)}, /* Ralink 3071 */
{USB_DEVICE(0x148F,0x3072)}, /* Ralink 3072 */
{USB_DEVICE(0x0DB0,0x3820)}, /* Ralink 3070 */
{USB_DEVICE(0x0DB0,0x871C)}, /* Ralink 3070 */
{USB_DEVICE(0x0DB0,0x822C)}, /* Ralink 3070 */
{USB_DEVICE(0x0DB0,0x871B)}, /* Ralink 3070 */
{USB_DEVICE(0x0DB0,0x822B)}, /* Ralink 3070 */
{USB_DEVICE(0x0DF6,0x003E)}, /* Sitecom 3070 */
{USB_DEVICE(0x0DF6,0x0042)}, /* Sitecom 3072 */
{USB_DEVICE(0x0DF6,0x0048)}, /* Sitecom 3070 */
{USB_DEVICE(0x0DF6,0x0047)}, /* Sitecom 3071 */
{USB_DEVICE(0x14B2,0x3C12)}, /* AL 3070 */
{USB_DEVICE(0x18C5,0x0012)}, /* Corega 3070 */
{USB_DEVICE(0x083A,0x7511)}, /* Arcadyan 3070 */
{USB_DEVICE(0x083A,0xA701)}, /* SMC 3070 */
{USB_DEVICE(0x083A,0xA702)}, /* SMC 3072 */
{USB_DEVICE(0x1740,0x9703)}, /* EnGenius 3070 */
{USB_DEVICE(0x1740,0x9705)}, /* EnGenius 3071 */
{USB_DEVICE(0x1740,0x9706)}, /* EnGenius 3072 */
{USB_DEVICE(0x1740,0x9707)}, /* EnGenius 3070 */
{USB_DEVICE(0x1740,0x9708)}, /* EnGenius 3071 */
{USB_DEVICE(0x1740,0x9709)}, /* EnGenius 3072 */
{USB_DEVICE(0x13D3,0x3273)}, /* AzureWave 3070*/
{USB_DEVICE(0x13D3,0x3305)}, /* AzureWave 3070*/
{USB_DEVICE(0x1044,0x800D)}, /* Gigabyte GN-WB32L 3070 */
{USB_DEVICE(0x2019,0xAB25)}, /* Planex Communications, Inc. RT3070 */
{USB_DEVICE(0x2019,0x5201)}, /* Planex Communications, Inc. RT8070 */
{USB_DEVICE(0x07B8,0x3070)}, /* AboCom 3070 */
{USB_DEVICE(0x07B8,0x3071)}, /* AboCom 3071 */
{USB_DEVICE(0x07B8,0x3072)}, /* Abocom 3072 */
{USB_DEVICE(0x7392,0x7711)}, /* Edimax 3070 */
{USB_DEVICE(0x7392,0x4085)}, /* 2L Central Europe BV 8070 */
{USB_DEVICE(0x1A32,0x0304)}, /* Quanta 3070 */
{USB_DEVICE(0x1EDA,0x2310)}, /* AirTies 3070 */
{USB_DEVICE(0x07D1,0x3C0A)}, /* D-Link 3072 */
{USB_DEVICE(0x07D1,0x3C0D)}, /* D-Link 3070 */
{USB_DEVICE(0x07D1,0x3C0E)}, /* D-Link 3070 */
{USB_DEVICE(0x07D1,0x3C0F)}, /* D-Link 3070 */
{USB_DEVICE(0x07D1,0x3C16)}, /* D-Link 3070 */
{USB_DEVICE(0x07D1,0x3C17)}, /* D-Link 8070 */
{USB_DEVICE(0x1D4D,0x000C)}, /* Pegatron Corporation 3070 */
{USB_DEVICE(0x1D4D,0x000E)}, /* Pegatron Corporation 3070 */
{USB_DEVICE(0x1D4D,0x0011)}, /* Pegatron Corporation 3072 */
{USB_DEVICE(0x5A57,0x5257)}, /* Zinwell 3070 */
{USB_DEVICE(0x5A57,0x0283)}, /* Zinwell 3072 */
{USB_DEVICE(0x04BB,0x0945)}, /* I-O DATA 3072 */
{USB_DEVICE(0x04BB,0x0947)}, /* I-O DATA 3070 */
{USB_DEVICE(0x04BB,0x0948)}, /* I-O DATA 3072 */
{USB_DEVICE(0x203D,0x1480)}, /* Encore 3070 */
{USB_DEVICE(0x20B8,0x8888)}, /* PARA INDUSTRIAL 3070 */
{USB_DEVICE(0x0B05,0x1784)}, /* Asus 3072 */
{USB_DEVICE(0x203D,0x14A9)}, /* Encore 3070*/
{USB_DEVICE(0x0DB0,0x899A)}, /* MSI 3070*/
{USB_DEVICE(0x0DB0,0x3870)}, /* MSI 3070*/
{USB_DEVICE(0x0DB0,0x870A)}, /* MSI 3070*/
{USB_DEVICE(0x0DB0,0x6899)}, /* MSI 3070 */
{USB_DEVICE(0x0DB0,0x3822)}, /* MSI 3070 */
{USB_DEVICE(0x0DB0,0x3871)}, /* MSI 3070 */
{USB_DEVICE(0x0DB0,0x871A)}, /* MSI 3070 */
{USB_DEVICE(0x0DB0,0x822A)}, /* MSI 3070 */
{USB_DEVICE(0x0DB0,0x3821)}, /* Ralink 3070 */
{USB_DEVICE(0x0DB0,0x821A)}, /* Ralink 3070 */
{USB_DEVICE(0x5A57,0x0282)}, /* zintech 3072 */
{USB_DEVICE(0x083A,0xA703)}, /* IO-MAGIC */
{USB_DEVICE(0x13D3,0x3307)}, /* Azurewave */
{USB_DEVICE(0x13D3,0x3321)}, /* Azurewave */
{USB_DEVICE(0x07FA,0x7712)}, /* Edimax */
{USB_DEVICE(0x0789,0x0166)}, /* Edimax */

November 12, 2013, 05:04:59 PM
Reply #53

arfgh

  • Newbie

  • Offline
  • *

  • 47
guys i am trying to learn howto compile for the gen1, and i think that i need the follow file:

Zorander's linux-kernel.config

the mediafire link on the first reply here is dead :)
can someone reshare it ?

thx in advance

November 15, 2013, 03:18:02 AM
Reply #54

arfgh

  • Newbie

  • Offline
  • *

  • 47
i need to know if using the tutorial i could compile my own wireless that is in this case a TL-WN821N wifi adapter.
I have seent hat this device that is the revision 2, works directly if i use it with the WD TV Live.

Please help