Here's a simple way to install Debian Lenny
http://mybookworld.wikidot.com/mylenny-firmware
I tested it on my 2TB two-disk box with both stock firmware and Debian Lenny installed.
Cheers,
Here's a simple way to install Debian Lenny
http://mybookworld.wikidot.com/mylenny-firmware
I tested it on my 2TB two-disk box with both stock firmware and Debian Lenny installed.
Cheers,
Great, I think I'll wait until that power button problem is solved :)
Can you tell us a little more about lenny on the WBE - does it comes with samba, what packages are available and how fast is the boot and transfers?
Thanks
It doesn't come with Samba but you can install it easily with command
apt-get install samba
This is a full Debian operating system so if you want something just apt-get install it. There are thousands of packages for you to get. Google Debian and apt-get to find out more.
Boot time is a bit slower than the stock firmware boot time. Since it doesn't come with all the garbage Western Digital put in the stock firmware, you can maximise memory and CPU resources so transfer time is excellent. I can ftp at a maximum of 5MB/s with my mbwe. If you have one with a faster CPU you should get a higher maximum speed.
But the best part is its stability. It manages to stay alive even if I saturate it with more than 100 rtorrent connections. It has an easier time handling transmission though.
It's just like playdude said for the most part.
Additionally, I added some more kernel modules (like tun to use with openvpn, up-to-date fuse that you can use with ntfs-3g for full ntfs-write support, ipv6, cifs and more)
Here's the kernel config:
http://mybookworld.wdfiles.com/local--files/mylenny-firmware/deb.v.1.1_kenel.config
Awesome I spotted Leon support there. Yea I know all about the apt system I didn't know they had pre-compiled binaries for ARM though o_o
Come on people, lets help him fix the power button problem and we have a winner firmware here!
btw, I'm using blue rings, does leon support actually do anything, I've heard its a network co-processor thing
Well, leon support is actually responsible for the power button on mbwe. The power-button issue in firmware.v3.mykernel.sh was due to poorly configured leon support, which was fixed in firmware.v3.sh.
To tell you the truth, I don't know how this power_button module works, but it loads without any issue, so my best guess is that the rootfs is just missing something.
Hi,
after reading a lot for the last days, i tried…… and followed exactly the install procedure…..
Few minutes after launching the upgrade (/var/upgrade/upgrade1.sh) my putty lost connection, and from that moment, i can't connect mybook.
I have DCHP running in the router, but no IP appears…
I've also tried rebooting the device….. after some seconds, i can see the blue rings, but no connection at all….
Do you have any idea what can i do? Maybe reset button? Or open the box?
Thanks…
If you see the blue lights, it should be fine.
If there's something like Status&Log/DHCP Leases in your router's WebIf, look for the IP there.
If not, go to IP Config/DHCP Server and manually assign an IP to your box's mac-address.
In case non of these is supported, use AngryIP to scan your whole subnet:
http://www.angryziber.com/w/Download
I've already tried both things….
That's why I ask about another different solution……
The fact is that seems the interface doesn't go up, but the rest is running (hard-drive 'sounds', blue rings light, …)
Have you try pushing reset button?
Thanks for everything!
Hm, it's pretty similar to what I experienced with the v1 firmware, my mbwe was hanging on /etc/init.d/checkfs.sh cause of insufficient memory (http://mybookworld.wikidot.com/forum/t-161592/cheap-trick-to-get-debian-lenny-working#post-508348). Say, you didn't install it instead of the fixed v1.1 by any chance?
Oh, yes, I suppose the reset button won't work on "MyLenny"
Well, i finally opened the box, and connected the hard-drive to a PC…… and found what i think could be the problem:
In the /etc/udev/rules.d/ there is a file with a mac-address assigned to eth0 (I suppose yours).
Then, when i boot my disk, detects a new mac-address (mine), and creates a new eth1, which is my real interface.
But, /etc/network/interfaces doesn't have any DHCP configuration for eth1, just eth0.
That's why boots up, but doesn't have IP address.
I've modified these files, and will try as soon as posible….. I'll let you know….
Thanks again!
CONFIRMED!!!!
After changes, the WD boots up without any problem….
Thanks a lot for this firmware…… i'll keep on working on it…..
Great, thanks for keeping us updated Luigi
Yea, thanks for that,
I'll fix it right now :)
Thanks to Luigi, I released v1.1.fixed, where I removed the rules.d file causing mbwe to hang on startup, just now.
Cheers,
It's getting more and more annoying to upload 50+ mb on the free filehost, so if someone can host my firmwares somewhere, I'd appreciate it much.
Thanks,
Hi alllexx.
Send it to me, or tell me how to download from you, and i'll upload the file..
Hi, Luigi
I upload all "MyLenny" firmware files here
http://www.mediafire.com/?sharekey=5caef65db4676113d5a101cf914073b47a802e7f33fdbd0d
If you can host them somewhere with a direct link, it would be great.
P.S. Naturally, I remove firmwares that are buggy, so now there's only one file in that folder.
We need all hands on deck now to fix that power button, might be worth dropping Martin an email
We have the ldso-runpath-enabled firmware and mylenny firmware with the same oxsemi system kernel configs. For some reason, power_button works fine only on the first one. In my PoV, the best possible explanation is that there's some support on the rootfs missing.
To fix this, we have to find out how this module actually works, how it reacts on the button being pressed.
I don't know how to do this and I'm a bit short on time (exams and stuff) to do much of "digging" now.
My MBWE (2-disk) has 64MB RAM onboard, does MyLenny support 64MB ?
Do I need to modify u-boot.bin by myself ?
You have to set u-boot environmental variables to have 64MB support. See my how-to for the instructions:
http://mybookworld.wikidot.com/how-to-change-your-mbwe-bluering-mac-address
root@mybook:~# apt-get update
apt-get: /lib/libgcc_s.so.1: version `GLIBC_2.0' not found (required by /usr/lib/libstdc++.so.6)
root@mybook:~#
:(
wget http://ftp.at.debian.org/debian/pool/main/g/gcc-4.3/libgcc1_4.3.2-1.1_arm.deb
dpkg -i libgcc1_4.3.2-1.1_arm.deb
fixed it
Sorry about this, will be fixed in v1.2
I found a way to use optware with MyLenny: you just need uclibc-opt package installed for binaries to run properly. I'll have it preinstalled in v1.2, and for those who have MyLenny installed already, here's a way to install it:
# wget http://mybookworld.wikidot.com/local--files/mylenny-firmware/opt-lenny.v1.tar.gz
# tar -xzvf opt-lenny.v1.tar.gz -C /
Cheers,
Alex
i had optware already installed and i ran the command for uclibc-opt (with mylenny)
when i try to install webserversetup.sh after installing via optware lighttpd it gives this error
/shares/internal/PUBLIC/webserversetup.sh: line 96: /etc/init.d/lighttpd.sh: No such file or directory
seems he use lighttpd in lenny (that doesn't exist) instead of /opt/bin/init.d one…
then i cannot access the website after all
webserversetup.sh script is designed for stock firmware and makes use of it's lighttpd, so it's no surprise it doesn't work "out of the box" for MyLenny. Try this:
# export PATH=/opt/bin:$PATH
# ipkg remove lighttpd
# export PATH=/usr/sbin:$PATH
# apt-get update
# apt-get install lighttpd
# ln -s lighttpd /etc/init.d/lighttpd.sh
# sh webserversetup.sh
I haven't tried this, but it should be fine
it works! but when i enter in the https on port 443 or 3210 it doesn't ask for password giving immediately "403 forbidden"
it seems that files copied in website root with pl extension don't have permissions to be read from browser…403 forbidden. i keep trying modify my general configuration
My best guess is that there's something wrong with ssl keys, since http server works fine. Have you tried restarting lighttpd?
# /etc/init.d/lighttpd restart
hi everyone!
a little question: i just installed MyLenny on my "new" 500GB MyBook World (well, bought used from ebay, indeed). well, everything is working fine, at least for now, except for the poweroff.
i know that the power button doesn't work correctly without a proper module, but if i launch a halt/poweroff/shutdown from ssh it should go down, right? in my case it seems that the system is shutted down, but the hard disk keep spinning and if i press the power button it restart debian normally.
is it normal? any clue?
thank you in advance :)
P.S.: sorry for any grammal engrish errors.
i found a solution by myself :)
maybe it's not that great, but i'll post it here just in case someone will will need it:
i was looking into /etc/rc0.d/S90halt (symlink to /etc/init.d/halt) and i found those lines:
# Don't shut down drives if we're using RAID.
hddown="-h"
if grep -qs '^md.*active' /proc/mdstat
then
hddown=""
fi
so i modified
# Don't shut down drives if we're using RAID.
hddown="-h"
# if grep -qs '^md.*active' /proc/mdstat
# then
# hddown=""
# fi
but it will work even just putting a -h on the second "hddown=".
now let's hope in a future working power button :)
bye.
how can we update kernel?
hi,
does anyone test it with the 1TB "white light" edition?
and sesond question: i suppose this firmware overwrites the wd-orginal completly?! is there any possibility to restore the original after lenny was installed?!
thx
Chris
Hi,
I want to install your firmware, but the mybook does not connect to the network now. So I cannot use this now.
- I installed the firmware.
- Change root password and reconfigure sshd.
- I upgrade my system with —fix-missing options.
- I installed "locales" and I reconfigure this, too. (I change the locale to hu_HU.UTF8).
- Reboot mybook and it does not connect to the network.
Can you help me? What's wrong?
Thanks!
Well, I was actually just coming by to drop off a hint on this very problem. In fact I was just deciding on where I should post my message, but I guess here is as good a place as any. :)
Anyways, I had the same problem and it turns out that in my case it's spinning someplace in /etc/rcS.d/S30checkfs.sh . In fact on my device I see it spawning two instances of 'sleep 1' at a time over and over again. Must be sourcing some other file, cause I don't see that behavior in the actual checkfs.sh script. I'll keep looking but in the meantime, in order to access your device you need to add yourself a backdoor of some type. I plugged one of the two drives from my MBWE II (blue lights) into my laptop, started up the RAID in degraded mode (mdadm —auto-detect), mounted the lenny part of the drive (mount /dev/md1 /mnt/md1), and created a new file:
#---CUT HERE-——
#!/bin/sh
/sbin/ifconfig eth0 192.168.1.2
/usr/sbin/sshd &
exit 0
#-END HERE--
Made that executable (chmod +x /mnt/md1/etc/rcS.d/S11hack), plugged the drive back into the device, fired it up and I'm back in and diagnosing it at least. I'd be curious to know if someone found a real cure for this, rather than an ugly hacl. ;)
Also, thanks to everyone for all on the great work on this so far! Always nice to see Debian running on more devices. It's really starting to earn that "universal operating system" name. :D
Before doing this installation I have a couple of things to ask of those who have already installed Lenny on their units.
Does the hard drive spin down and stay down after a time of no use? (I have modded my current standard 2.00.18 firmware with scripts for this).
Does the usb port on the unit still function?
Do the blue leds operate as before - i.e spinning effect when disc is being accessed?
After installation does the data partition get mounted automatically?
I will also have to learn how to configure samba from the terminal….Not too hard I imagine.
That's it for now.
:o))
Ok - went ahead.
All good. SAMBA in and up :o)
Only 2 things remain……
The hard disc never ever spins down.
Has anyone done any work on this with Debian on a Mybook?
Also, apt-get says that the latest udev conflicts with this particular kernel. Any thoughts on how to proceed anyone?
Ta
Dan
I have a couple of questions:
- Can I backup my /dev/root and /dev/md3 while running using dd?
- The power button which doesn't work, is it just the lights or can't I shut it down with the power button/restart it? Do I have to reboot via SSH or can i use the button?
- Can I install the firmware.sh through SSH?
Hi,
I have problem with "su" or "sudo" commands.
If I try use them, i got "libc.so.6: aborted attempt to load sudo!".
Can anyone help me fix it?
Thanks