Manual Firmware upgrade?
Forum » Forum / Modifying the MyBook World » Manual Firmware upgrade?
started by: FingAZFingAZ
on: 1210075414|%e %b %Y, %H:%M %Z|agohover
number of posts: 9
rss icon RSS: new posts
summary:
Unable to use standard upgrade method; any ideas?
Manual Firmware upgrade?
FingAZFingAZ 1210075414|%e %b %Y, %H:%M %Z|agohover

Looking to upgrade the firmware on my MyBook 500GB

Basically; my web interface continually says the following regardless of what i press or enter (even if i direct link to the firmware page);
"System reconfiguring…

Please wait while the system is reconfigured.
Please reboot your computer to make sure settings are updated"

So using the web interface is a no-no for the firmware upgrade.
wget is also not working, continuously states "Unknown host www.domain.com"
It would appear the the value $NAS_BIN in the scripts is failing, which is maintained by lighttpd apparently?
I also don't have samba functioning.
You can see the reason for a fw refresh or upgrade :)

Any ideas? Ive got the .wdg firmware file from WD on the mybook using FTP, but just cannot work out how to use it, if its usable directly at all?

Come on guys and gals i'm sure someone knows better than me! :) I've been busting my b*lls on it all morning and still nothing :(

unfold Manual Firmware upgrade? by FingAZFingAZ, 1210075414|%e %b %Y, %H:%M %Z|agohover
Re: Manual Firmware upgrade?
kevkukevku 1210075931|%e %b %Y, %H:%M %Z|agohover

cd /usr/www/nbin
./getandapplyfw.sh

you will see
./somescript.sh: line 0: /blabla: No such file or directory

edit the scripts in /usr/www/nbin
replace $NAS_NBIN with /usr/www/nbin
and URL=$1 to URL=http://www.whereeveryourstuffis.com

last edited on 1210076231|%e %b %Y, %H:%M %Z|agohover by kevku + show more
unfold Re: Manual Firmware upgrade? by kevkukevku, 1210075931|%e %b %Y, %H:%M %Z|agohover
Re: Manual Firmware upgrade?
FingAZFingAZ 1210076176|%e %b %Y, %H:%M %Z|agohover

I did try this already but the script utilises wget to obtain the file which isn't functioning. Anyway to bypass the 'obtaining' part of the script? Or link to the file locally, excluding the need to use the wget command?

unfold Re: Manual Firmware upgrade? by FingAZFingAZ, 1210076176|%e %b %Y, %H:%M %Z|agohover
Re: Manual Firmware upgrade?
kevkukevku 1210076534|%e %b %Y, %H:%M %Z|agohover
#!/bin/bash
#
#       Downloads the latest firmware and then applies it.
#
#       Indicates progress by creating 'status' files.
#

. $NAS_NBIN/commonfuncs

URL=$1

        { { touch /tmp/active_upgrade; \
        $NAS_NBIN/wget.sh '/var/upgrade/latestfw.sh' "$URL" && \
        touch /var/upgrade/fwdownloaded && \
        chmod +x /var/upgrade/latestfw.sh && \
        /var/upgrade/latestfw.sh && \
        /var/upgrade/upgrade1.sh && \
        touch /var/upgrade/fwinstalled ; } || \
        { rm -f /var/upgrade/* ; \
          rm -f /tmp/active_upgrade ; }  } &

see that?

put the wdg to your /var/upgrade/
name it to latestfw.sh and chmod +x
then

sh /var/upgrade/latestfw.sh && sh /var/upgrade/upgrade1.sh && touch /var/upgrade/fwinstalled && rm -f /var/upgrade/*

good luck bricking.

options are plenty
or
remove
$NAS_NBIN/wget.sh '/var/upgrade/latestfw.sh' "$URL" &&
mv the fw file to /var/upgrade/latestfw.sh
and then ./getandapplyfw.sh

last edited on 1210077001|%e %b %Y, %H:%M %Z|agohover by kevku + show more
unfold Re: Manual Firmware upgrade? by kevkukevku, 1210076534|%e %b %Y, %H:%M %Z|agohover
Re: Manual Firmware upgrade?
FingAZFingAZ 1210082701|%e %b %Y, %H:%M %Z|agohover

OK, that made sense, seems ok - but the upgrade directory is empty (other than the .wdg) - so it pulls up the message;
"cannot access '/var/upgrade/latestfw.sh': No such file or directory.

Am wondering if the wdg is some sort of compiled package that needs unpacking for these scripts to be there? or maybe a script that is run before the getandapplyfw.sh that obtains these?

*shrugs*

Any ideas? Thanks for the help so far!!

unfold Re: Manual Firmware upgrade? by FingAZFingAZ, 1210082701|%e %b %Y, %H:%M %Z|agohover
Re: Manual Firmware upgrade?
FingAZFingAZ 1210083002|%e %b %Y, %H:%M %Z|agohover

scrap that; forgot to rename the .wdg to the correct thing :)

unfold Re: Manual Firmware upgrade? by FingAZFingAZ, 1210083002|%e %b %Y, %H:%M %Z|agohover
Re: Manual Firmware upgrade?
FingAZFingAZ 1210083626|%e %b %Y, %H:%M %Z|agohover

It worked!!! Hoooray!

Now my heart can beat again!

Thanks so much for your help; hope this benefits others too :)

unfold Re: Manual Firmware upgrade? by FingAZFingAZ, 1210083626|%e %b %Y, %H:%M %Z|agohover
Re: Manual Firmware upgrade?
JosefKJosefK 1213374690|%e %b %Y, %H:%M %Z|agohover

I must admit I'm a bit confused about this procedure (and too afraid bricking everything)

cd /usr/www/nbin
./getandapplyfw.sh

then edit the scripts in /usr/www/nbin but which one? and www.whereyourstuffis.com should be? :?
so assuming I've alredy downloaded an updated wdg what should I exactly do?

unfold Re: Manual Firmware upgrade? by JosefKJosefK, 1213374690|%e %b %Y, %H:%M %Z|agohover
Re: Manual Firmware upgrade?
jschwartz73jschwartz73 1214062410|%e %b %Y, %H:%M %Z|agohover

if you don't want to modify any of the files, you can do the following. This will download the 2.00.18 firmware and install it.

ssh into the MBWE
su -
export NAS_NBIN=/usr/www/nbin/
cd /usr/www/nbin
./getandapplyfw.sh http://cache.websupport.wdc.com/wdgxnc-02.00.18.wdg

unfold Re: Manual Firmware upgrade? by jschwartz73jschwartz73, 1214062410|%e %b %Y, %H:%M %Z|agohover
new post
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License