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 thespecialist » Fri May 21, 2010 11:07 am

@player_sct:

don't forget to execute that last command, eh: resize2fs bigger.opt.bin

Perfectly works here:

# df -h /
df: Warning: cannot read table of mounted file systems
Filesystem Size Used Avail Use% Mounted on
- 2.3G 483M 1.8G 22% /
thespecialist
Developer
 
Posts: 410
Joined: Sat Apr 24, 2010 6:59 am

Re: Compiling on the WDTV ?   

Postby thespecialist » Fri May 21, 2010 11:24 am

trying to compile the latest version of samba, that seems to get me somewhere now ...
*EDIT*, yup, can perfectly compile samba-3.5.3.tar.gz now ! Going to see now if I can find a way to compile the WDTV's version ...
thespecialist
Developer
 
Posts: 410
Joined: Sat Apr 24, 2010 6:59 am

Re: Compiling on the WDTV ?   

Postby thespecialist » Fri May 21, 2010 11:38 am

And BTW, thanks again, b-rad, without your input there's no way I would have been able to compile on the WDTV ;)
thespecialist
Developer
 
Posts: 410
Joined: Sat Apr 24, 2010 6:59 am

Re: Compiling on the WDTV ?   

Postby thespecialist » Fri May 21, 2010 7:08 pm

thespecialist wrote:Going to see now if I can find a way to compile the WDTV's version ...

And ... success ! :D Managed to recompile WD's version of smbtree, have replaced the original version with mine and it works ! This is going to be of huge help to get to the bottom of the samba problems I was experiencing. Awesome, thanks for all your work and help again b-rad :)
thespecialist
Developer
 
Posts: 410
Joined: Sat Apr 24, 2010 6:59 am

Re: Compiling on the WDTV ?   

Postby sailort » Tue May 25, 2010 3:18 am

Hi b-rad,

do you plan of update wdtv libs to version in squeeze? for example libc in wdtv fw is 2.8 (seems to be), but in squeeze it is 2.9, thus compiles against 2.9 won't work on wdtv.
As I haven't luck yet to compile libc version (2.8.) from Villa package, this is a "compile stopper" at least for me. I'm fighting with this for days already.

Or can anyone help me with building libc delivered with WDTV GPL package and then compile something against it, not against squeeze version?

Thanks a lot
Regards
T.
If you like my work and want to buy me a bottle of wine, you can do it this way. Thanks for your support.
sailort
Developer
 
Posts: 363
Joined: Sat Apr 24, 2010 6:42 am

Re: Compiling on the WDTV ?   

Postby b-rad.cc » Tue May 25, 2010 5:32 am

Only static compiles won't work, so don't staticly compile against libc-2.10. I compile everything in squeeze.
PM's are for private matters only, please post public matters on the forum to help others who might have the same issue.
:mrgreen:
User avatar
b-rad.cc
WDLXTV Team
 
Posts: 3002
Joined: Sat Apr 03, 2010 9:35 am
Location: New York

Re: Compiling on the WDTV ?   

Postby thespecialist » Tue May 25, 2010 6:21 am

b-rad.cc wrote:Only static compiles won't work, so don't staticly compile against libc-2.10. I compile everything in squeeze.

Yup, I've moved several binaries to the original filesystem, everything worked, key is indeed not to static compile.
thespecialist
Developer
 
Posts: 410
Joined: Sat Apr 24, 2010 6:59 am

Re: Compiling on the WDTV ?   

Postby sailort » Tue May 25, 2010 6:31 am

b-rad.cc wrote:Only static compiles won't work, so don't staticly compile against libc-2.10. I compile everything in squeeze.

b-rad,
I've recompiled libev as this is needed by dvbstreamer, and when I try to run it, it state about not using libc version as it was compiled against (it asks for 2.9, but wdtvl has only 2.8).
I don't think this is just about static/dynamic compiling/linking, but I'm no expert on linux dev tools anyway, so maybe I just haven't found that "right trick" in that Linux build enviroment jungle :D .
I suspect this has something to do with those #ifdef something > something lines of code.
T.

@thespecialist: Yes, it worked also few times for me, but right now this problem occured. As more programs will be written against newer version of libc (and/or other libraries), this can be a problem, IMHO.
If you like my work and want to buy me a bottle of wine, you can do it this way. Thanks for your support.
sailort
Developer
 
Posts: 363
Joined: Sat Apr 24, 2010 6:42 am

Re: Compiling on the WDTV ?   

Postby PaulF » Wed May 26, 2010 11:40 am

b-rad.cc wrote:actually works for me after makeDevs as well

Code: Select all
sh-4.0# df -h /
Filesystem            Size  Used Avail Use% Mounted on
-                     788M  642M  139M  83% /
If you don't have the slash, it looks for /etc/mtab. Maybe it doesn't find it for the same reason you have
Code: Select all
         cp /etc/resolv.conf "$2/etc"
         cp /etc/hosts "$2/etc"
In your script.

I haven't got that far, yet to see why. Maybe a symbolic link to /etc/matab would be needed in the script since the mounts change change after the script.

EDIT: The img extract finally finished so I could try the old mtab and the old mtab doesn't work. I cp'd /etc/mtab in another ssh window and got:
Code: Select all
# df 
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                  806288    201488    596608  26% /
/dev/sda1               806288    201488    596608  26% /boot
/dev/loop0              806288    201488    596608  26% /
mdev                     99520         0     99520   0% /dev
none                     99520         0     99520   0% /tmp
df: `/etc/mdev.conf': No such file or directory
df: `/tmp/static_config': No such file or directory
df: `/apps': No such file or directory
df: `/tmp/mnt/0409-1227': No such file or directory
df: `/apps/WDTVExt': No such file or directory
df: `/var/www': No such file or directory
df: `/msheets': No such file or directory
df: `/tmp/.root/osd': No such file or directory
df: `/osd': No such file or directory
df: `/tmp/media/usb/USB2/0409-1227': No such file or directory


I am off and running. How do I restore the debian setup after restarting an ssh(my router needed rebooting)?
User avatar
PaulF
Developer
 
Posts: 422
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: Compiling on the WDTV ?   

Postby PaulF » Wed May 26, 2010 1:57 pm

I got it working. :D Just the chroot command got me back on the air. I compiled ccextract and made a subtitle file. This is soooooooo cool. Thanks.
User avatar
PaulF
Developer
 
Posts: 422
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

PreviousNext

Return to WDTV Live

Who is online

Users browsing this forum: No registered users and 1 guest