Welcome! Log In Create A New Profile

Advanced

How to revert to factory uboot of Goflex Net

Posted by shv 
shv
How to revert to factory uboot of Goflex Net
May 16, 2013 12:27PM
I want to revert to the factory uboot of Goflex Net. How can can I read the factory uboot back from flash rootfs partition and write it to flash? Is it necessary to change the uboot environment variables which were changed during installation of new uboot? I don't have any mtdblock devices in /dev.

I found out how to do that after Debian was booted from a USB Stick:
mknod /dev/mtdblock2 b 31 2
mount -t jffs2 -o ro /dev/mtdblock2 /mnt
cp /mnt/uboot-original-mtd0.kwb /root
umount /dev/mtdblock2
apt-get install mtd-utils

# the next commands could brick the device if something is wrong
cd /root
flash_erase /dev/mtd0 0 4
nandwrite /dev/mtd0 uboot-original-mtd0.kwb
reboot

#after reboot ssh-login shall be possible -> activate hbmgr
mount -o remount,rw / # remount rootfs writeable
vi /etc/init.d/rcS
#uncomment the line with "/etc/init.d/hbmgr.sh start"
reboot



Edited 10 time(s). Last edit at 08/23/2014 03:35PM by shv.
Re: How to revert to factory uboot of Goflex Net
May 17, 2013 09:20PM
> # the next commands could brick the device if
> something is wrong
> cd /root
> flash_erase /dev/mtd0 0 4
> nandwrite /dev/mtd0 uboot-original-mtd0.kwb
> reboot

Yeah :) best to double check the size of this image.
Re: How to revert to factory uboot of Goflex Net
June 11, 2013 02:57AM
what if it writes:

root@debian# mknod /dev/mtdblock2 b 31 2
mknod: `/dev/mtdblock2': File exists

adn after:

root@debian# mount -t jffs2 -o ro /dev/mtdblock2 /mnt
mount: /dev/mtdblock2: can't read superblock
shv
Re: How to revert to factory uboot of Goflex Net
July 30, 2013 04:44AM
Possibly you could try to delete mtdblock2 and create a new one. I don't know why mtdblock2 already exist in your case. You could use the Debian installation skript again to create a new Debian rootfs on a USB stick.
Did you change your flash assignment in the boot environment?
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: