Page 1 of 8

2BIG2 firmware

PostPosted: Tue Apr 01, 2014 11:08 am
by ded_kiev
Hello all
How to upgrade firmware (in EPROM) on the 2big2?
Booting only the standalone kernel mode
Kernel is running and connect with the telnet client.
11.jpg

In this state, NAS I got from the previous owner.
Thanks

Re: 2BIG2 firmware

PostPosted: Tue Apr 01, 2014 12:53 pm
by fvdw
flashing u-boot to flash is risky, if it goes wrong then your nas becomes a brick and you need special tools to get it running again.

You also posted in your pm's this screen shot
2big2-ded.JPG

seems that this boot loader loads an kernel with name uImage in the folder with name /boot from partition 1 on the disk in slot 0 that is formatted in ext2 or ext3, or it loads a kernel from USB from partition 1 formatted in FAT again in folder with name /boot

It seems to pass some boot arguments

You could do three things. Prepare a disk with the kernel in partiton 1 in the folder /boot or use usb stick
You could also try if we can change the environmental variables to use the right boot parameters. We need to check if these changes are not overwritten again at boot.
So you could try if the the command setenv works
For instance change the the boot arguments (in u-boot console)

edited 2 apr 14 because of mistake in the code, this is the correct one to be used
Code: Select all
setenv bootargs console=ttyS0,115200 root=/dev/sda7
saveenv

You can check if the change is made by using the command: printenv
Now reboot with the standalone kernel and do again a "printenv" to see if the change is still there

If this is the case then we can adjust the bootcmd and arguments correctly for our firmware.

Re: 2BIG2 firmware

PostPosted: Wed Apr 02, 2014 7:57 pm
by ded_kiev
I prepared a usb stick.
File "UIMAGE-395-NWSP2CL-179-standalone" renamed in "uImage",
in root folder "/boot"
The kernel is loaded and starts automatically.
Screenshot 2014-04-02 22.52.43.jpg

But, I can not change boot arguments ...

Re: 2BIG2 firmware

PostPosted: Wed Apr 02, 2014 9:21 pm
by fvdw
at least we can boot a kernel from usb that is already something.
What exactly happens if you use the setenv and savenv commands ?

--edit
ps I made a error
you should use "saveenv" instead of "savenv" (without the quotes) to save the changed environment variables

Re: 2BIG2 firmware

PostPosted: Wed Apr 02, 2014 9:29 pm
by fvdw
also to set enev variable I gave wrong instruction (it has been a long time ago I used it), sorry for this

it should be like this

Code: Select all
setenv bootargs console=ttyS0,115200 root=/dev/sda7
saveenv


sorry for this confusion

Re: 2BIG2 firmware

PostPosted: Wed Apr 02, 2014 10:24 pm
by ded_kiev
Ok, no problem..)
Screenshot 2014-04-03 01.21.13.jpg

Re: 2BIG2 firmware

PostPosted: Wed Apr 02, 2014 10:37 pm
by fvdw
ok this seems to work :thumbup so we can set the right boot command and environment variables to load the firmware.
But not tonight it is too late for me , time to go to bed..to be continued

You could already prepare already one disk by using the fvdw-sl console and the fvdw-sl installer script as explained on the forum for 2big2
If that is done we first will load a run-time kernel from usb to see if the firmware comes up.

Re: 2BIG2 firmware

PostPosted: Thu Apr 03, 2014 6:38 am
by ded_kiev
fvdw wrote:You could already prepare already one disk by using the fvdw-sl console and the fvdw-sl installer script as explained on the forum for 2big2


Via "Install fvdw-sl-firmware" or via "Write fvdw-sl-firmware to disk" ?

Re: 2BIG2 firmware

PostPosted: Thu Apr 03, 2014 7:16 am
by fvdw
via instal fvdw-sl firmware
Answer no on the question if you want to make a backup and use a disk with no partitions on it

see also here viewtopic.php?f=7&t=1750#p13412

Re: 2BIG2 firmware

PostPosted: Thu Apr 03, 2014 5:30 pm
by ded_kiev
I prepared a HDD (in slot 1).
1.jpg

But, without the standalone kernel (on usb stick), is still no booting...
3.jpg