"MyLenny" firmware
Started by: alllexxalllexx
On: 1245152901|%e %b %Y, %H:%M %Z|agohover
Number of posts: 44
rss icon RSS: New posts
Summary:
Install Debian Lenny on your MBWE-BlueRing without unplugging the drive(s)
"MyLenny" firmware
alllexxalllexx 1245152901|%e %b %Y, %H:%M %Z|agohover

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,

unfold "MyLenny" firmware by alllexxalllexx, 1245152901|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
freeman551freeman551 1245165837|%e %b %Y, %H:%M %Z|agohover

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

unfold Re: "MyLenny" firmware by freeman551freeman551, 1245165837|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
playdudeplaydude 1245183251|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: "MyLenny" firmware by playdudeplaydude, 1245183251|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245185999|%e %b %Y, %H:%M %Z|agohover

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

last edited on 1245186045|%e %b %Y, %H:%M %Z|agohover by alllexx + show more
unfold Re: "MyLenny" firmware by alllexxalllexx, 1245185999|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
freeman551freeman551 1245229890|%e %b %Y, %H:%M %Z|agohover

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

last edited on 1245230090|%e %b %Y, %H:%M %Z|agohover by freeman551 + show more
unfold Re: "MyLenny" firmware by freeman551freeman551, 1245229890|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245244247|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: "MyLenny" firmware by alllexxalllexx, 1245244247|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
luigi5luigi5 1245188326|%e %b %Y, %H:%M %Z|agohover

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…

unfold Re: "MyLenny" firmware by luigi5luigi5, 1245188326|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245189718|%e %b %Y, %H:%M %Z|agohover

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

last edited on 1245189807|%e %b %Y, %H:%M %Z|agohover by alllexx + show more
unfold Re: "MyLenny" firmware by alllexxalllexx, 1245189718|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
luigi5luigi5 1245222184|%e %b %Y, %H:%M %Z|agohover

I've already tried both things….

  • My router supports "show attached devices", and the WD doesn't appear.
  • I assign a fixed IP address to the WD mac-address, and the WD doesn't appear either.

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!

unfold Re: "MyLenny" firmware by luigi5luigi5, 1245222184|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245243231|%e %b %Y, %H:%M %Z|agohover

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?

unfold Re: "MyLenny" firmware by alllexxalllexx, 1245243231|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245249381|%e %b %Y, %H:%M %Z|agohover

Oh, yes, I suppose the reset button won't work on "MyLenny"

unfold Re: "MyLenny" firmware by alllexxalllexx, 1245249381|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
luigi5luigi5 1245250932|%e %b %Y, %H:%M %Z|agohover

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!

unfold Re: "MyLenny" firmware by luigi5luigi5, 1245250932|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
luigi5luigi5 1245257769|%e %b %Y, %H:%M %Z|agohover

CONFIRMED!!!!
After changes, the WD boots up without any problem….

Thanks a lot for this firmware…… i'll keep on working on it…..

unfold Re: "MyLenny" firmware by luigi5luigi5, 1245257769|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
freeman551freeman551 1245261573|%e %b %Y, %H:%M %Z|agohover

Great, thanks for keeping us updated Luigi

unfold Re: "MyLenny" firmware by freeman551freeman551, 1245261573|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245287796|%e %b %Y, %H:%M %Z|agohover

Yea, thanks for that,
I'll fix it right now :)

unfold Re: "MyLenny" firmware by alllexxalllexx, 1245287796|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
luigi5luigi5 1247576583|%e %b %Y, %H:%M %Z|agohover

ushare for MyLenny:

http://mybookworld.wikidot.com/forum/t-169036/howto-install-ushare-for-mylenny-firmware

unfold Re: "MyLenny" firmware by luigi5luigi5, 1247576583|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245293715|%e %b %Y, %H:%M %Z|agohover

Thanks to Luigi, I released v1.1.fixed, where I removed the rules.d file causing mbwe to hang on startup, just now.

Cheers,

unfold Re: "MyLenny" firmware by alllexxalllexx, 1245293715|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245294286|%e %b %Y, %H:%M %Z|agohover

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,

last edited on 1245294310|%e %b %Y, %H:%M %Z|agohover by alllexx + show more
unfold Re: "MyLenny" firmware by alllexxalllexx, 1245294286|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
luigi5luigi5 1245312575|%e %b %Y, %H:%M %Z|agohover

Hi alllexx.

Send it to me, or tell me how to download from you, and i'll upload the file..

unfold Re: "MyLenny" firmware by luigi5luigi5, 1245312575|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245313731|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: "MyLenny" firmware by alllexxalllexx, 1245313731|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
freeman551freeman551 1245314900|%e %b %Y, %H:%M %Z|agohover

We need all hands on deck now to fix that power button, might be worth dropping Martin an email

unfold Re: "MyLenny" firmware by freeman551freeman551, 1245314900|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1245316305|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: "MyLenny" firmware by alllexxalllexx, 1245316305|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
luigi5luigi5 1245338678|%e %b %Y, %H:%M %Z|agohover

Backup in:

http://rapidshare.com/files/245951224/debfirmware.v1.1.fixed.sh

unfold Re: "MyLenny" firmware by luigi5luigi5, 1245338678|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
aibo99aibo99 1245901425|%e %b %Y, %H:%M %Z|agohover

My MBWE (2-disk) has 64MB RAM onboard, does MyLenny support 64MB ?

Do I need to modify u-boot.bin by myself ?

unfold Re: "MyLenny" firmware by aibo99aibo99, 1245901425|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1246617923|%e %b %Y, %H:%M %Z|agohover

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

unfold Re: "MyLenny" firmware by alllexxalllexx, 1246617923|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
freeman551freeman551 1246376326|%e %b %Y, %H:%M %Z|agohover
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:~#

:(

unfold Re: "MyLenny" firmware by freeman551freeman551, 1246376326|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
freeman551freeman551 1246377714|%e %b %Y, %H:%M %Z|agohover

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

unfold Re: "MyLenny" firmware by freeman551freeman551, 1246377714|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1246506968|%e %b %Y, %H:%M %Z|agohover

Sorry about this, will be fixed in v1.2

unfold Re: "MyLenny" firmware by alllexxalllexx, 1246506968|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1246507530|%e %b %Y, %H:%M %Z|agohover

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 /

Just remember to run `export PATH=/opt/bin:$PATH` before running ipkg to avoid conflict with apt-get, since both ipkg and apt-get use update-alternatives executable (in /opt/bin and /usr/sbin, respectively)

Cheers,
Alex

last edited on 1246524969|%e %b %Y, %H:%M %Z|agohover by alllexx + show more
unfold Re: "MyLenny" firmware by alllexxalllexx, 1246507530|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
aringaaringa 1246530222|%e %b %Y, %H:%M %Z|agohover

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

last edited on 1246539377|%e %b %Y, %H:%M %Z|agohover by aringa + show more
unfold Re: "MyLenny" firmware by aringaaringa, 1246530222|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1246578490|%e %b %Y, %H:%M %Z|agohover

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

unfold Re: "MyLenny" firmware by alllexxalllexx, 1246578490|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
aringaaringa 1246887053|%e %b %Y, %H:%M %Z|agohover

it works! but when i enter in the https on port 443 or 3210 it doesn't ask for password giving immediately "403 forbidden"

unfold Re: "MyLenny" firmware by aringaaringa, 1246887053|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
aringaaringa 1246887103|%e %b %Y, %H:%M %Z|agohover

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

last edited on 1246974399|%e %b %Y, %H:%M %Z|agohover by aringa + show more
unfold Re: "MyLenny" firmware by aringaaringa, 1246887103|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
alllexxalllexx 1247022442|%e %b %Y, %H:%M %Z|agohover

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

Does it give any error messages?
unfold Re: "MyLenny" firmware by alllexxalllexx, 1247022442|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
Da_n00bDa_n00b 1247476109|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: "MyLenny" firmware by Da_n00bDa_n00b, 1247476109|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
Da_n00bDa_n00b 1247782010|%e %b %Y, %H:%M %Z|agohover

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.

unfold Re: "MyLenny" firmware by Da_n00bDa_n00b, 1247782010|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
limonlimon 1248096986|%e %b %Y, %H:%M %Z|agohover

how can we update kernel?

unfold Re: "MyLenny" firmware by limonlimon, 1248096986|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
ChrisCrossChrisCross 1248208180|%e %b %Y, %H:%M %Z|agohover

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

last edited on 1248208321|%e %b %Y, %H:%M %Z|agohover by ChrisCross + show more
unfold Re: "MyLenny" firmware by ChrisCrossChrisCross, 1248208180|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
CyBCyB 1248895920|%e %b %Y, %H:%M %Z|agohover

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!

unfold Re: "MyLenny" firmware by CyBCyB, 1248895920|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
johnxxjohnxx 1248930269|%e %b %Y, %H:%M %Z|agohover

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:

  1. vi /mnt/md1/etc/rcS.d/S11hack

#---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

unfold Re: "MyLenny" firmware by johnxxjohnxx, 1248930269|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
bordeauxbordeaux 1249204330|%e %b %Y, %H:%M %Z|agohover

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))

last edited on 1249204974|%e %b %Y, %H:%M %Z|agohover by bordeaux + show more
unfold Re: "MyLenny" firmware by bordeauxbordeaux, 1249204330|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
bordeauxbordeaux 1249434979|%e %b %Y, %H:%M %Z|agohover

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

last edited on 1250058681|%e %b %Y, %H:%M %Z|agohover by bordeaux + show more
unfold Re: "MyLenny" firmware by bordeauxbordeaux, 1249434979|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
paultje3181paultje3181 1251463843|%e %b %Y, %H:%M %Z|agohover

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?

unfold Re: "MyLenny" firmware by paultje3181paultje3181, 1251463843|%e %b %Y, %H:%M %Z|agohover
Re: "MyLenny" firmware
bvjbvj 1256318759|%e %b %Y, %H:%M %Z|agohover

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

unfold Re: "MyLenny" firmware by bvjbvj, 1256318759|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License