Is there currently a way to install Debian on WD MyBook "White Light"?
take a look there is tons of guides http://mybookworld.wikidot.com/forum/t-161592/cheap-trick-to-get-debian-lenny-working
But at all there is always problems, sometimes it works sometimes not.
So does anyone had a success with it? I'm just trying to follow the instructions described here:
but it doesn't work for me (Im using mbwe 1Tb "white light") Also I've tryed to install an image, that works fine under the qemu emulation, using "dd if=image.raw of=/dev/sdb", I even disassembled mbwe and connected drive to the SATA II port om my desktop(Debian squeeze), but that didn't work too. So does anyone have any suggestions how to install Debian arm on a mbwe "white light"?
P.S. sorry for my bad english.
Currently I think that it's not possible. The images we have are done for the blue ring and are not compatible with the white light. Until someone with enough linux knowledge comes forward and prepares new images we're stuck.
I have a 2-disks White Light. I didn't want to risk my data so I connected a spare usb disk which has been prepared with debootstrap to the MyBook for experimenting. I formatted an ext3 partition of the usb disk from my Ubuntu PC , mounted it under /mnt and ran:
debootstrap --arch=armel --verbose --foreign lenny /mnt http://ftp.jp.debian.org/debian
When usb disk was reconnected to Mybook, I was able to chroot into it and run
After that, I fixed /etc/apt/sources.list and /etc/resolv.conf and was able to do a apt-get update. Thus I had a basic install of Debian Lenny on the Mybook. I also installed gcc and other packages via apt. The rootfs isn't sufficient to boot independently at this point, /etc/fstab and /lib/modules probably needs to be fixed.
Next I looked at http://iomega.nas-central.org/wiki/Category:Home_Media. The hardware was very similar to Mybook in some aspects. Comparing http://iomega.nas-central.org/wiki/Home_Media_Stock_Configuration and http://mybookworld.wikidot.com/install-clean-hdd-in-white-light-my-book-world-edition, I worked out the uboot settings were stored on sda at sector 239. I did a
apt-get install uboot-envtools
This installed fw_printenv and fw_setenv. Based on the uboot settings location I created the corresponding /etc/fw_env.config in the chrooted Lenny install.
# Configuration file for fw_(printenv/saveenv) utility. # Up to two entries are valid, in this case the redundand # environment sector is assumed present. # MTD device name Device offset Env. size Flash sector size /dev/sda 0x1DE00 0x2000 0x2000 #/dev/mtd2 0x5E00 0x2000 0x2000
The output of fw_printenv from MyBook matched the description of the Home Media stock configuration.
bootcmd=run select0 load boot || run select0 load2 boot || run lightled select1 load extinguishled boot || run lightled select1 load2 extinguishled boot || lightled bootdelay=2 baudrate=115200 ethaddr=00:30:e0:00:00:01 ipaddr=172.31.0.128 serverip=172.31.0.100 autoload=n netmask=255.255.0.0 bootfile="uImage" select0=ide dev 0 select1=ide dev 1 load=ide read 0x48500000 12c 1644 load2=ide read 0x48500000 2a6e 1644 lightled=ledfail 1 extinguishled=ledfail 0 boot=bootm 48500000 stdin=serial stdout=serial stderr=serial bootargs=root=/dev/md0 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x00,0x00,0x00,0x00,0x00
Edited out the mac address for bootargs.
I will look at the WDC GPL source for uboot to figure out how to boot from usb and hence boot the debootstrap prepared partition - my experiences with uboot from another project showed that later versions of uboot supported booting from usb. The Home Media wiki also described how to compile a custom kernel which is stored at sda sector 300 onwards.
On a sidenote, /etc/inittab revealed the loading of the gmac kernel module and this is similar to the Home Media as well.
We need more detailed description of your actions.
When usb disk was reconnected to Mybook, I was able to chroot into it and run…
Thus I had a basic install of Debian Lenny on the Mybook.
It means that you're installed Lenny on MyBook's HDD or just on connected USB device?
How did you made "chrooting" - just by "chroot" command or with additional mounting proc, sysfs etc.?
/etc/fstab and /lib/modules probably needs to be fixed.
What kind of fixing did you mean?
He chrooted to a USB device, no Lenny on the HDD til now.
It SHOULD be possible… if I had a spare SATA drive I would try the following:
-copy the base of the /etc directory, rename mtab to fstab,
-setup /etc/modules according to a lsmod on the original firmware
-copy all custom binaries from the original firmware. i guess all are called wix*
sure, /etc will be full of custom crap, but i guess this is the easiest way - if we get it running this way, we still can see, which files in there are really needed.
of course… a new hdd would first need the right layout… just read this, this should help getting this thing running with a new hdd…
Well, this Debian system starts somehow (I can only guess about it) with WDC kernel, but I can't recognize it in local network. It don't works neither as static nor as DHCP client.
The original firmware uses a patched gmac driver. Have you tried to copy this from the original root filesystem? And, do you have serial access to the WhiteLight? If, please give us a bootlog and a dmesg…
Where this driver is located?
Unfortunately, Whitelight has no serial port. This is the main problem of this system - we cannot communicate with it.