Author Topic: Root.bins of WDTV FW 1.02.x and WDLXTV 0.5.x  (Read 47927 times)

June 02, 2009, 07:08:41 PM
Reply #15

Gamblerspirit

  • Newbie

  • Offline
  • *

  • 15
Hi,

I managed to download the files now. Thanks.

Does it mean I just need to unzip the file and put the root.bin into the root directory of my flash drive?

Thanks.

June 03, 2009, 04:30:51 AM
Reply #16

smartP

  • Jr. Member

  • Offline
  • **

  • 91
Ummm... yes, but it should replace the root.bin you should already have on your flash drive.

If you don't have a root.bin, see this topic -> http://wdtvforum.com/main/index.php?topic=453.0

June 08, 2009, 01:02:34 PM
Reply #17

hahaha

  • Full Member

  • Offline
  • ***

  • 101
I'm using WDLXTV 0.53 (flashed into WDTV). Where should I put the root.bin? So confused.

June 08, 2009, 09:35:15 PM
Reply #18

hahaha

  • Full Member

  • Offline
  • ***

  • 101
One more question. How do I know if the root.bin has been loaded or not after rebooting the WDTV?

June 09, 2009, 01:24:59 AM
Reply #19

smartP

  • Jr. Member

  • Offline
  • **

  • 91
I'm using WDLXTV 0.53 (flashed into WDTV). Where should I put the root.bin? So confused.

If you're using WDLXTV firmware then the root.bin won't work for you. It's designed to work only with zorander's ext3-boot firmware.

When you extract the zip file from zorander, you'll see a root.bin file. These root.bins can be used in placed of that one.

June 09, 2009, 07:26:28 AM
Reply #20

hahaha

  • Full Member

  • Offline
  • ***

  • 101
I'm using WDLXTV 0.53 (flashed into WDTV). Where should I put the root.bin? So confused.

If you're using WDLXTV firmware then the root.bin won't work for you. It's designed to work only with zorander's ext3-boot firmware.

When you extract the zip file from zorander, you'll see a root.bin file. These root.bins can be used in placed of that one.

 ??? But your title says "Root.bins for WDTV FW 1.02.08 and WDLXTV 0.5.3.2". Am I missing something?  Are you saying that I can not use your root.bin for WDLXTV (based on 1.02.07) to get 1.02.08 feature?

June 10, 2009, 04:39:02 AM
Reply #21

smartP

  • Jr. Member

  • Offline
  • **

  • 91
 ??? But your title says "Root.bins for WDTV FW 1.02.08 and WDLXTV 0.5.3.2". Am I missing something?  Are you saying that I can not use your root.bin for WDLXTV (based on 1.02.07) to get 1.02.08 feature?
[/quote]

Hmm... you're right. The title should have been "Root.bins of WDTV FW 1.02.08 and WDLXTV 0.5.3.2". A root.bin can only be used with ext3-boot firmware.

June 10, 2009, 07:50:39 AM
Reply #22

hahaha

  • Full Member

  • Offline
  • ***

  • 101
Now I got it. I have to have ext3-boot firmware in WDTV and then use your root.bin to act as official 1.02.08 or WDLXTV.  What I was looking for was the WDLXTV (based of 1.02.08). The most current WDLXTV is based of 1.02.07.

Say if I want to try your root.bin of 1.02.08, would I still have the LAN support from ext3-boot?  The reason I ask is that the official firmware does not have network feature.

Basically, the most import features I'm looking for are:
- Most recent official firmware fixes
- Network support

I'm using WDLXTV, which I'm happy with. But it was based on 1.02.07.  I would like to get the same features of WDLXTV with lastest 1.02.08 fixes.




June 19, 2009, 06:16:50 PM
Reply #23

smartP

  • Jr. Member

  • Offline
  • **

  • 91
Alrighty, updated with new FW-1.02.10

Also got a chance to write down some of the steps as well. Beware there's lots of steps involved.

Instructions:
1. Follow steps 1-8 of this previous post
2. Make more required directories

Code: [Select]
cd /mnt/1
mkdir apps
mkdir sys
mkdir -p etc/hotplug
mkdir -p lib/modules/2.6.15-TvDock
mkdir -p lib/modules/nls

3. create ext3-boot's root.bin mount directory -> sudo mkdir -p /mnt/3
4. mount ext3-boot's root.bin -> sudo mount -o loop root.bin /mnt/3
5. Copy tons of files from ext3-boot to new root.bin

Code: [Select]
cd /mnt/1
cp /mnt/3/etc/samba.tgz etc/
cp /mnt/3/etc/hotplug/* etc/hotplug/
cp /mnt/3/lib/modules/2.6.15-TvDock/* lib/modules/2.6.15-TvDock
cp /mnt/3/lib/modules/nls/* lib/modules/nls
cp /mnt/3/bin/asp-sh bin/
cp /mnt/3/bin/lsusb bin/
cp /mnt/3/bin/nmbd bin/
cp /mnt/3/bin/smbd bin/
cp /mnt/3/bin/smbpasswd bin/
cp /mnt/3/bin/u_asp bin/
cp /mnt/3/bin/crazymount bin/
cp /mnt/3/bin/fsck_hfs bin/
cp /mnt/3/bin/xmount* bin/
cp /mnt/3/sbin/config_tool sbin/
cp /mnt/3/sbin/ldconfig sbin/
cp /mnt/3/sbin/reboot sbin/
cp /mnt/3/usr/bin/blkid usr/bin/
cp /mnt/3/usr/bin/cd.* usr/bin/
cp /mnt/3/usr/bin/dhcp-client usr/bin/
cp /mnt/3/usr/bin/exportfs usr/bin/
cp /mnt/3/usr/bin/findfat usr/bin/
cp /mnt/3/usr/bin/showmount usr/bin/
cp /mnt/3/usr/sbin/cd-manager usr/sbin/
cp /mnt/3/usr/sbin/djmount usr/sbin/
cp /mnt/3/usr/sbin/fusermount usr/sbin/
cp /mnt/3/usr/sbin/ifrename usr/sbin/
cp /mnt/3/usr/sbin/iw* usr/sbin/
cp /mnt/3/usr/sbin/mountd usr/sbin/
cp /mnt/3/usr/sbin/nfsd usr/sbin/
cp /mnt/3/usr/sbin/portmap usr/sbin/
cp /mnt/3/usr/sbin/pure-ftpd usr/sbin/
cp /mnt/3/usr/sbin/statd usr/sbin/
cp /mnt/3/usr/sbin/unionfs usr/sbin/
cp /mnt/3/usr/sbin/utelnetd usr/sbin/
sudo cp /mnt/3/usr/bin/dropbear* usr/bin/
sudo cp /mnt/3/usr/sbin/dropbear usr/sbin/

6. Remove wdtv's busybox program -> rm bin/busybox
7. Remove broken soft links to busybox we just deleted.

Code: [Select]
find bin -type l | while read f; do if [ ! -e "$f" ]; then rm -f "$f"; fi; done
find sbin -type l | while read f; do if [ ! -e "$f" ]; then rm -f "$f"; fi; done
find usr/bin -type l | while read f; do if [ ! -e "$f" ]; then rm -f "$f"; fi; done
find usr/sbin -type l | while read f; do if [ ! -e "$f" ]; then rm -f "$f"; fi; done

8. Copy ext3-boot's busybox program to new root.bin -> cp /mnt/3/bin/busybox bin
9. Create soft links to busybox we deleted.

Code: [Select]
cd /mnt/1/bin
find /mnt/3/bin -type l | while read f; do if [ `ls -l "$f" | grep -c busybox` != "0" ]; then ln -s busybox `basename "$f"`; fi; done
cd /mnt/1/sbin
find /mnt/3/sbin -type l | while read f; do if [ `ls -l "$f" | grep -c busybox` != "0" ]; then ln -s ../bin/busybox `basename "$f"`; fi; done
cd /mnt/1/usr/bin
find /mnt/3/usr/bin -type l | while read f; do if [ `ls -l "$f" | grep -c busybox` != "0" ]; then ln -s ../../bin/busybox `basename "$f"`; fi; done
cd /mnt/1/usr/sbin
find /mnt/3/usr/sbin -type l | while read f; do if [ `ls -l "$f" | grep -c busybox` != "0" ]; then ln -s ../../bin/busybox `basename "$f"`; fi; done

10. Copy /etc files

Code: [Select]
cp /mnt/3/etc/mdev.conf /mnt/1/etc/
rm /mnt/1/etc/init.d/*
cp /mnt/3/etc/init.d/* /mnt/1/etc/init.d/

11. Remove md5sum.txt entries for all the files we replaced

Code: [Select]
cd /mnt/1
sed -e "/.\/[s]*bin/d" md5sum.txt > md5sum.txt.2
sed -e "/.\/init/d" md5sum.txt.2 > md5sum.txt.3
sed -e "/mdev\.conf/d" md5sum.txt.3 > md5sum.txt.4
mv md5sum.txt.4 md5sum.txt
rm md5sum.txt.*

12. Run md5 check to see if everything is ok -> md5sum -c md5sum.txt

Continue next post.
« Last Edit: June 19, 2009, 06:24:49 PM by smartP »

June 19, 2009, 06:23:31 PM
Reply #24

smartP

  • Jr. Member

  • Offline
  • **

  • 91
Finally we need to update the init file. Note all the commands (except no. 13) in this post are entered within vim itself and not the command line.

13. Edit the init file -> vim/mnt/1/init
14. Goto line 21 -> :21 [ENTER]
15. Goto insert mode -> i
16. Paste the following text:

Code: [Select]
mountpoint /boot/mnt
if [ $? == 0 ]; then
 # move around some mountpoints...
 mount -o move /boot/mnt /mnt/boot
 mount -o move /boot /mnt/fwup
 umount -d /dev/loop0
 mount -o move /mnt/boot /boot
 PATH="/boot/bin:$PATH"
 # this unmounts the pivot cramfs image
 # and leaves the usb-boot drive mounted
 # in /boot (where the boot image was at)

 # if we're booting ntfs, mount again in r/w mode
 # doesn't fix r/w of /, but will fix r/w of other pkgs
 a=`cat /proc/mounts |grep /boot | tail -n 1`
 b=`echo $a|cut -d' ' -f3`
 if [ "$b" == "ntfs" ]; then
   b=`echo $a|cut -d' ' -f1`
   mount -o move /boot /mnt/boot
   mount $b /boot -t ntfs-3g -o sync,nodiratime,noatime
   mount -o remount,sync,nodiratime,noatime /mnt/boot
 fi
fi

17. Search for run_all -> [ESC] /run_all [ENTER]
18. Delete line containing run_all -> dd
19. Paste the following text:

Code: [Select]
if [ -f /conf/net.config ]; then
  . /conf/net.config
  logger Config after reading /conf/net.config:  $HOST/$TZ/$defaultHOST
fi              
if [ -f /boot/net.config ]; then
  dos2unix /boot/net.config
  . /boot/net.config
  logger Config after reading /boot/net.config:  $HOST/$TZ/$defaultHOST
fi
if [ "$TZ" != "" ]; then
  echo $TZ > /tmp/TZ
fi
if [ "$HOST" != "" ]; then
  hostname $HOST
else
  if [ "$defaultHOST" = "" ]; then
    a=`head -1 /dev/urandom|md5sum|cut -c1-5`
    defaultHOST="WDTV-$a"
    config_tool -c defaultHOST=$HOST
    logger Generated new defaultHOST=$defaultHOST
  fi
    hostname $defaultHOST
fi

if [ ! -f /conf/shadow ]; then
  cp /etc/shadow.dist /conf/shadow
fi

syslogd -O /boot/messages.txt
klogd
lsusb | logger

echo PATH=$PATH > /tmp/sys.path
/usr/sbin/utelnetd -d
/usr/sbin/pure-ftpd -D -B
touch /tmp/hosts
echo "127.0.0.1 localhost.localdomain localhost" > /tmp/hosts
touch /tmp/resolv.conf
touch /tmp/fstab

# crazymounter: mounts all app.bin files
logger ***crazymounter
sh /bin/crazymount
. /tmp/sys.path
export PATH

sh /etc/init.d/rcS &
xmounter

cd /tmp/boot/..
mkdir /tmp/media/usb/UPnP
mkdir UPnP
djmount /tmp/media/usb/UPnP
sleep 2
mount -o bind /tmp/media/usb/UPnP UPnP

20. Save and quit -> [ESC] :wq [ENTER]

Done! Unmount and copy root.bin to usb key to try.
« Last Edit: June 19, 2009, 07:11:35 PM by smartP »

June 25, 2009, 11:29:43 AM
Reply #25

phatoshwest

  • Full Member

  • Offline
  • ***

  • 105
Brad has released wdlxtv-1.02.10. Will you please make a root.bin for it?
WDTV <- USB1 <- 500GB HDD (EXT2)
WDTV <- USB2 <- Powered HUB <- Airties WUS-201 Wifi <- Internet
WDTV <- USB2 <- Powered HUB <- 2GB Boot Flash-disk

June 26, 2009, 05:52:08 AM
Reply #26

smartP

  • Jr. Member

  • Offline
  • **

  • 91
Brad has released wdlxtv-1.02.10. Will you please make a root.bin for it?

Looks like hnadov2k9 has already created one.  ;D

See here http://wdtvforum.com/main/index.php?topic=1029.msg9396#msg9396


June 26, 2009, 11:23:16 AM
Reply #27

phatoshwest

  • Full Member

  • Offline
  • ***

  • 105
WDTV <- USB1 <- 500GB HDD (EXT2)
WDTV <- USB2 <- Powered HUB <- Airties WUS-201 Wifi <- Internet
WDTV <- USB2 <- Powered HUB <- 2GB Boot Flash-disk

June 26, 2009, 11:28:03 AM
Reply #28

pibos

  • Full Member

  • Offline
  • ***

  • 235
Root password for ext3 1.2.10 is [blank] as it was before? I cannot log in
Wanna help WDTVExt for WDTVLive and RemoteView?

June 26, 2009, 12:02:14 PM
Reply #29

phatoshwest

  • Full Member

  • Offline
  • ***

  • 105
Where is the ext3 1.02.10 version?
For WDLXTV-1.02.10 it is still blank.
WDTV <- USB1 <- 500GB HDD (EXT2)
WDTV <- USB2 <- Powered HUB <- Airties WUS-201 Wifi <- Internet
WDTV <- USB2 <- Powered HUB <- 2GB Boot Flash-disk