The feed
I'd like to announce that since recently we have mbwe-bluering-specific feed on nslu2-linux: http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/unstable/
The toolchain was built from WD GPL sourcecode using WD .defconfig with additionally enabled LDSO_RUNPATH support in uclibc and should be fully compatible with MBWE bluering.
Why do we need this? Well, did you ever get 'Segmentation fault' errors or had 'ENOTTY (Inappropriate ioctl for device)' for no apparent reason while using optware packages?..
Ok, before updating the wiki howto this feed should be tested. This is one way to do so:
1. Stop any running optware processes
2. Backup your /opt dir
# tar -czf opt.bak.tar.gz /opt
3. Change ipkg settings to use mbwe-bluering feed:
# sed -i -e s/gumstix1151/mbwe-bluering/ /opt/etc/ipkg.conf
4. Reinstall all currently installed packages:
# ipkg update
# ipkg remove libstdc++ -force-depends
# ipkg install libstdc++
# ipkg -force-reinstall install `ipkg list_installed | awk '{print $1}'`
5. Install some package (like amule) and try it out
That's it for testing. You can always restore your backup if anything goes wrong:
# rm -rf /opt
# tar -C / -xzvf opt.bak.tar.gz
The firmware
For optware, the big obstacle on MBWE is the lack of LDSO_RUNPATH in stock /lib/libuClibc-0.9.28.so
This is becoming more and more annoying as you often need to adjust /etc/ld.so.conf
Here's the custom firmware I made for best optware experience on mbwe-bluering:
ldso-runpath-enabled-firmware
An alternative way to enable LDSO_RUNPATH support:
(This is not recommended for unexpirienced/unskilled people as you can easily brick your MBWE if you mess anything up. And don't forget to make backups! It's been tested to work perfectly on my box, but no guarantee of any kind, though)
1. Shot down your mbwe
2. Remove the HDD(s) from MyBook World Edition (PDF Link) and connect to your linux machine
3. Mount first partition (e.g. /mnt/mbwe1)
4. If you haven't made backups - make them now
# tar -czf /backups/mbwe.lib.bak.tar.gz /mnt/mbwe1/lib
5. Install libs from optware uclibc-opt package to mbwe /lib and unmount
# cd /tmp
# wget http://ipkg.nslu2-linux.org/feeds/optware/mbwe-bluering/cross/unstable/uclibc-opt_0.9.28-1_arm.ipk
# tar -xvf uclibc-opt_0.9.28-1_arm.ipk ./data.tar.gz
# rm -rf opt
# tar -xvzf data.tar.gz
# cp -f opt/lib/* /mnt/mbwe1/lib
# umount /mnt/mbwe1
6. Unplug drive(s) from your machine and plug back to MyBook.