Sign up here and you can log into the forum!

Compiling on the WDTV ?

Have a question about devices internals, memory layout, reverse engineering, etc---This is the place for anything so technical that it would cause a n00b's head to 'splode

Re: Compiling on the WDTV ?   

Postby DJArty » Fri Jun 03, 2011 6:14 am

May be need renew link to debian-squeeze.img.tgz ?
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Compiling on the WDTV ?   

Postby DJArty » Sun Jun 05, 2011 10:43 pm

Anybody upload debian-squeeze.img.tgz to another place please. "The file of the above link no longer exists"
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Compiling on the WDTV ?   

Postby mad_ady » Sun Jun 05, 2011 11:39 pm

If anybody has the image and lacks the web storage, PM me and I will give them access to a server of mine for free storage...
User avatar
mad_ady
Developer
 
Posts: 4525
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Compiling on the WDTV ?   

Postby Boy1979 » Sun Jun 05, 2011 11:40 pm

DJArty wrote:Anybody upload debian-squeeze.img.tgz to another place please. "The file of the above link no longer exists"


File is online. No problem for me.

regards Stefan
Boy1979
Developer
 
Posts: 147
Joined: Tue May 11, 2010 11:52 am
Location: Austria

Re: Compiling on the WDTV ?   

Postby mad_ady » Sun Jun 05, 2011 11:44 pm

You're right.
I will upload it to my server and provide the link to reduce the unnecessary wait time

Edit:
Here's a direct link http://195.82.149.103/files/debian-squeeze.img.tgz
User avatar
mad_ady
Developer
 
Posts: 4525
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Compiling on the WDTV ?   

Postby DJArty » Mon Jun 06, 2011 11:40 am

Thank you.
May be just "The server is busy and can not process the request." from rapid for me.
WD TV Live (1.02.21-WDLXTV-0.4.7.3);
Please Donate PayPal to email: djartyua ( a t ) gmail (d o t) com
WebMoney: WMZ114867333413; WMU219453404899; WMR161810775332
User avatar
DJArty
Developer
 
Posts: 540
Joined: Wed Jul 21, 2010 2:30 am
Location: Ukraine

Re: Compiling on the WDTV ?   

Postby jchrisos1 » Fri Nov 04, 2011 7:35 pm

@b-rad.cc (or anyone else who can answer),

I have the squeeze image up, running and I've chrooted into it. I'm trying to compile the asix driver for a gigabit ethernet USB adapter but when I go to download the linux headers using apt-get, all that is available are the 2.6.32 headers, not 2.6.22 headers. I've installed them just for the heck of it but no surprise, wdlxtv doesn't seem to like the compiled asix.ko module.

Any ideas? Would it be possible for somebody to compile the module if I provided them?

Thanks!

Code: Select all
# ls /lib/modules/
2.6.32-5-4kc-malta  2.6.32-5-5kc-malta   2.6.32-5-r5k-cobalt  2.6.32-5-sb1-bcm91250a  2.6.32-5-sb1a-bcm91480b
# uname -a
Linux WDTVLIVEPLUS 2.6.22.19-19-4 #13 PREEMPT Mon May 10 17:11:28 CST 2010 mips GNU/Linux
jchrisos1
n00b
 
Posts: 1
Joined: Fri Nov 04, 2011 7:15 pm

Re: Compiling on the WDTV ?   

Postby mad_ady » Sat Nov 05, 2011 12:41 am

@jchrisos1: You can get the correct kernel sources directly form WD. They have a GPL package with the open source software they used for the firmware, which includes the kernel. The problem is, your module will be compiled from the older source, and if there were bugfixes in the meantime, you will not benefit from them...
I guess you can compile from that source directly on the WDTV, or by using a cross-compiler...
User avatar
mad_ady
Developer
 
Posts: 4525
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: Compiling on the WDTV ?   

Postby recliq » Sat Nov 05, 2011 3:43 am

For compiling kernel modules for the WDTV I'd strongly suggest to use the GPL archive and toolchain provided by WD and setup a cross-compile environment.
That's how I compiled all my kernel modules. :geek:
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5513
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

Re: Compiling on the WDTV ?   

Postby sparky42 » Tue Nov 08, 2011 5:17 am

OK, I am a total noobie, so these are probably dumb questions.

Background, I have an old WDTV box bought on sale from Frys. I believe it is probably Gen 1. I loaded B-RAD's WDLXTV firmware to get the a USB to Ethernet connection working. That all seems to work fine. Everyone involved seems to have done an awesome job supporting and expanding this device.

I wanted to compile some code for the WDTV. I loaded the squeeze image from the first post of this page and the script file onto a USB stick. I telneted into the WDTV and searched around until I found a directory with the files on the USB stick. (I think I was down a directory path under "media".) I chmodded the script file and executed it. It started to run by they printed "FATAL: kernel too old" and stopped. Checked the kernel version with uname and got back 2.6.15-TVDock. Having no real knowledge of Linux, I do not know if this is an old kernel or a newer one?

Questions:

1. Can I even compile on WDTV using the squeeze image on a Gen 1 box? (Many post refer to WDTVLive, but I do not know what the differences are.)
2. Is the kernel too old on my WDTV or did I somehow get a squeeze image with an older kernel?
3. I making the assumption that B-RAD's WDLXTV firmware included the kernel, but perhaps I am just too naive. Do I have to upgrade the kernel separately?
4. If the kernel on my WDTV is too old, how do I upgrade it?
5. What directory should I be using to run stuff from the USB stick? Am, I in the wrong or inappropriate directory?

Thank you.

P.S. With regard to the script file that does the chroot, I stumbled into a problem copying and pasting the script. The text pasted into my text editor with a bunch of leading white space. I saved the file with Unix line endings and it still would not run after the chmod. It gave some weird error message about not finding the applet. After removing all the leading white space, the script then ran. I am sure the pros would have spotted this much earlier. For greenies like me, be aware that Linux wants certain stuff on the script files to start at the first character on a line.
sparky42
n00b
 
Posts: 4
Joined: Tue Nov 08, 2011 4:56 am

PreviousNext

Return to WDTV Live

Who is online

Users browsing this forum: No registered users and 1 guest