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

November 04, 2009, 02:05:41 PM
Reply #30

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
Wow configure 1st gen WDTV to work wireless require more info than I thought.  Is there a plug and play wireless for 1st gen WDTV?

November 05, 2009, 12:09:35 AM
Reply #31

suburbancore

  • Newbie

  • Offline
  • *

  • 10
Wow configure 1st gen WDTV to work wireless require more info than I thought.  Is there a plug and play wireless for 1st gen WDTV?

It is actually very simple if you have a supported USB wi-fi stick. The steps above are for adding a driver that is not included already.

Ofcourse , some minimal configuration for your personal home network setup is always needed but overall it's not too hard.

November 05, 2009, 09:21:33 AM
Reply #32

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
Wow configure 1st gen WDTV to work wireless require more info than I thought.  Is there a plug and play wireless for 1st gen WDTV?

It is actually very simple if you have a supported USB wi-fi stick. The steps above are for adding a driver that is not included already.

Ofcourse , some minimal configuration for your personal home network setup is always needed but overall it's not too hard.

I wanted to try but I have never edit these file before.

What do you guys use to edit the file? I used notepad and it doesn't work for me cuz the Text is jumbo up.
I am using Vista

November 05, 2009, 02:33:21 PM
Reply #33

Josch71

  • Newbie

  • Offline
  • *

  • 5
Hello,

I have some problems while compiling at the end of step 3) compile wireless module

If I start with command make I get this:

Code: [Select]
wdtv@wdtv-devel:~/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0$ make
make -C tools
make[1]: Entering directory `/home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/tools'
/home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/tools/bin2h
cp -f os/linux/Makefile.6 /home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/os/linux/Makefile
make  -C  /lib/modules/2.6.26-2-686/build SUBDIRS=/home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/os/linux modules
make: *** /lib/modules/2.6.26-2-686/build: No such file or directory.  Stop.
make: *** [LINUX] Error 2

..missing folder /lib/modules/2.6.26-2-686/build

I created this folder:

Code: [Select]
wdtv@wdtv-devel:~/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0$ sudo mkdir /lib/modules/2.6.26-2-686/build
And after the next make command I get this:
Code: [Select]
wdtv@wdtv-devel:~/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0$ make
make -C tools
make[1]: Entering directory `/home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/tools'
/home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/tools/bin2h
cp -f os/linux/Makefile.6 /home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/os/linux/Makefile
make  -C  /lib/modules/2.6.26-2-686/build SUBDIRS=/home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/os/linux modules
make[1]: Entering directory `/lib/modules/2.6.26-2-686/build'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/lib/modules/2.6.26-2-686/build'
make: *** [LINUX] Error 2
wdtv@wdtv-devel:~/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0$

..no rule to make target 'module'

What's wrong..?

Regards
Josch

November 06, 2009, 02:27:20 AM
Reply #34

suburbancore

  • Newbie

  • Offline
  • *

  • 10
Hello,

I have some problems while compiling at the end of step 3) compile wireless module

If I start with command make I get this:

Code: [Select]
wdtv@wdtv-devel:~/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0$ make
make -C tools
make[1]: Entering directory `/home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/tools'
/home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/tools/bin2h
cp -f os/linux/Makefile.6 /home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/os/linux/Makefile
make  -C  /lib/modules/2.6.26-2-686/build SUBDIRS=/home/wdtv/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0/os/linux modules
make: *** /lib/modules/2.6.26-2-686/build: No such file or directory.  Stop.
make: *** [LINUX] Error 2

..missing folder /lib/modules/2.6.26-2-686/build

I created this folder:

Code: [Select]
wdtv@wdtv-devel:~/wdtv/2008_1225_RT3070_Linux_STA_v2.0.1.0$ sudo mkdir /lib/modules/2.6.26-2-686/build
And after the next make command I get this:
Code: [Select]
wdtv@wdtv-devel:~/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0$ make
make -C tools
make[1]: Entering directory `/home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/tools'
/home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/tools/bin2h
cp -f os/linux/Makefile.6 /home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/os/linux/Makefile
make  -C  /lib/modules/2.6.26-2-686/build SUBDIRS=/home/wdtv/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0/os/linux modules
make[1]: Entering directory `/lib/modules/2.6.26-2-686/build'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/lib/modules/2.6.26-2-686/build'
make: *** [LINUX] Error 2
wdtv@wdtv-devel:~/wdtv/2009_0820_RT2870_Linux_STA_V2.2.0.0$

..no rule to make target 'module'

What's wrong..?

Regards
Josch

In step 3 you havent edited the Makefile/config.mk etc files correctly since it seems to be looking for the kernel in the wrong place.

The variables in the makefile should be pointing to the folder where you saved and compiled the kernel 2.6.15 sources in step 2.

As long as you follow the instructions in the first post STEP BY STEP (except for changing folder names where appropriate) and running the missing: "make" at the END of step 3,

it will work fine

November 09, 2009, 12:23:28 AM
Reply #35

Josch71

  • Newbie

  • Offline
  • *

  • 5
Yeah - this was the error!

Compiling the package works fine now!  ;D
But I have other problems now. I used the Ralink sources for the RT2870 for compiling but it wouldn't work with my WLAN stick Edimax 7711UTN. Connecting this stick on a windows machine shows me this chipset!
On the CD coming with the stick there are Linux sources for a RT3070 chipset and onthe Edimax homepage I also get the linux sources for this stick. So I compiled the wireless package with this source.
After booting with this I was able to connect my NFS shares but the bandwith was very bad - my Fritz-Box shows me only 1MBit!

The WLAN connection was set to OPEN and I configured a static IP adress. Using WPA doesn't change anything. It's quite bad!

Any idea..?

November 09, 2009, 10:14:51 PM
Reply #36

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
I wanted to try but I have never edit these file before.

What do you guys use to edit the file? I used notepad and it doesn't work for me cuz the Text is jumbo up.
I am using Vista

November 10, 2009, 10:03:38 AM
Reply #37

Josch71

  • Newbie

  • Offline
  • *

  • 5
I wanted to try but I have never edit these file before.

What do you guys use to edit the file? I used notepad and it doesn't work for me cuz the Text is jumbo up.
I am using Vista

You have to use a "linux-like" editor like vi, midnigt commander, nano on a linux machine. Notepad adds some special control character like "carrage return / line feed". For a Windows machine there are also free editors available, e.g Proton.

November 11, 2009, 08:54:26 AM
Reply #38

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
I wanted to try but I have never edit these file before.

What do you guys use to edit the file? I used notepad and it doesn't work for me cuz the Text is jumbo up.
I am using Vista

You have to use a "linux-like" editor like vi, midnigt commander, nano on a linux machine. Notepad adds some special control character like "carrage return / line feed". For a Windows machine there are also free editors available, e.g Proton.

I'm sorry for being so newbie, but too many language that I read and not able to understand.

I read that you have to be on a Linus base computer to be able to edit these file, am I correct?
if not, I have download TotalEdit_install_4_30 to use it to edit the code on my Vista.  Will that work?

November 11, 2009, 10:51:25 AM
Reply #39

mike2k8

  • Full Member

  • Offline
  • ***

  • 100
I wanted to try but I have never edit these file before.

What do you guys use to edit the file? I used notepad and it doesn't work for me cuz the Text is jumbo up.
I am using Vista

You have to use a "linux-like" editor like vi, midnigt commander, nano on a linux machine. Notepad adds some special control character like "carrage return / line feed". For a Windows machine there are also free editors available, e.g Proton.

I think that you can use "wordpad" on windows. The unofficial firmwares use an unix comand named dos2linux that should convert the configuration file to the linux text format before reading it.

Personally, for this I use cygwin, so I have and unix-like system in windows, where I can use linux programs like "nano" to edit the text.

December 12, 2009, 02:07:28 AM
Reply #40

pacorob

  • Jr. Member

  • Offline
  • **

  • 69
  • Personal Text
    WDLXTV user
I wanted to try but I have never edit these file before.

What do you guys use to edit the file? I used notepad and it doesn't work for me cuz the Text is jumbo up.
I am using Vista

Use Notepad++ that is freeware and works great http://notepad-plus.sourceforge.net

It is easier to have a wireless usb stick that is already supported such as (Wireless USB Linksys wusb600n v1 (ralink rt2870 which has WPA2 support). That saves you a lot of time. You can buy them for 25 dollar/euro.
Firmw: WDLXTV 0.5.6.1
Apps: Webserver addons 0.2 (weather,rss), Upnp 0.2.2, Apple Trailers 0.3.3.1b, EventOSD r170, XBMC via Upnp 720p plays ok
Wireless USB Linksys wusb600n w. WPA2 (ralink rt2870)
USB Stick 16GB Sony FAT32 | W. Router: Linksys (Cisco) WRT160N

December 29, 2009, 05:18:08 PM
Reply #41

canipeal

  • Newbie

  • Offline
  • *

  • 2
these are steps to compile rtl8192su module.
extract driver source. assumed kernel source is located at  "/home/wdtv/wdtv/TVDOCK_GPL_code_package.2008.9.25/linux_kernel_2.6.15" (in my example)
Code: [Select]
sed -i "s|KSRC =.*|KSRC = /home/wdtv/wdtv/TVDOCK_GPL_code_package.2008.9.25/linux_kernel_2.6.15|g;" rtl8192su_linux_2.6.0002.0708.2009/Makefile
sed -i "s|CC =.*|CC = mipsel-linux-gcc|g;" rtl8192su_linux_2.6.0002.0708.2009/HAL/rtl8192u/Makefile
cd rtl8192su_linux_2.6.0002.0708.2009 && make
get Zorander's wireless app.bin; mount it; copy content over to your app.bin directory; modify S20wireless; copy firmware; create cramfs app.bin; umount wireless-mod.app.bin
Code: [Select]
sudo mount sudo mount -o loop wireless-mod.app.bin /path/to/mount/point
mkdir mywireless.app.bin
cp -r /path/to/mount/point/* mywireless.app.bin/
echo "insmod \$APATH/modules/r8192s_usb.ko" >> mywireless.app.bin/etc/init.d/S20wireless
cp firmware/RTL8192SU/rtl8192sfw.bin mywireless.app.bin/firmware/
sudo umount /path/to/mount/point/
/sbin/mkcramfs mywireless.app.bin wireless-rtl8192su.app.bin

I've managed to compile my own driver for the RTL8191S chip. Unfortunately I was unsuccessful as well, I believe that the linux drivers posted for the RTL8192SU chipset posted on various forums is not compatible with the RTL8191S chipset. Have you made any progress on this?

February 18, 2010, 05:04:59 PM
Reply #42

TechN9Ne1730

  • Newbie

  • Offline
  • *

  • 33
I wanted to try but I have never edit these file before.

What do you guys use to edit the file? I used notepad and it doesn't work for me cuz the Text is jumbo up.
I am using Vista

Use Notepad++ that is freeware and works great http://notepad-plus.sourceforge.net
I prefer Notepad 2, but to each there own. ;)

Quote
wget http://www.ralinktech.com.tw/data/drivers/2009_0521_RT2870_Linux_STA_V2.1.2.0.tgz
Link seems to be dead. I am looking through the US version of the site for a linux driver. If I find it I will post here.

March 17, 2010, 03:48:13 AM
Reply #43

demesmaeker

  • Jr. Member

  • Offline
  • **

  • 62
Here you go! (see attachment).
But eh there are newer versions to download, so I would not use this older one (unless you are sure that it is OK of course)

@sweetvn: What usbcard do you have?

April 07, 2010, 09:05:45 AM
Reply #44

mortings

  • Newbie

  • Offline
  • *

  • 1
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 :-)