Page 1 of 1

6850 in Mini Boot

Posted: 17 Jul 2008 01:34
by Yanesh
Hi guys i am in big trouble.... while upgrading I have deleted the the image files in the working directory as well in the certified directory. Now i am in the miniboot and i dont know what to do.

can someone please help.

REGARDS

Yanesh

Re: 6850 in Mini Boot

Posted: 17 Jul 2008 05:04
by benny
No need to worry, it is time consuming to fix it but not a disaster ...

Let me introduce you to Mr. zModem ... ;)

1.) Power off your OS6850
2.) When you switched it back on, stop it before the Miniboot (there is some counter counting down from 4)
3.) You will have the following prompt "=>"
4.) Enter "setenv baudrate 115200"
5.) Enter "saveenv"
6.) Enter "boot"
7.) The switch should run now in baud rate 115200 (so you have to change your clients terminal connection as well)
8.) If the speed in Miniboot is still 9600 you have to delete the "boot.params" file and reboot the switch again (the next time when the boot.params file gets created it has 115200 as baud rate in their automatically)
9.) Assuming that your connection speed is at 115200 now and you are at the "[Miniboot]->" prompt
10.) Change into the working directory with command
[Miniboot]->cd "working"
11.) Enter the following command to start your zModem session
[Miniboot]->sysStartZmodem
12.) Select all image files you want to upload (upload all .img files except Kdiag.img, Kos.img and K2otg.img - the first two are for OS6800 but you have a OS6850 and the last one is not necessary)
13.) I recommend you to upload one image file at the time as you can track better if the transfer failed
14.) Upload all the .img files as described
15.) All *.img files need to be in the working directory by now
16.) Before you reboot you have to tell the switch to run from the working directory (as it would try to load from certified as the directories are different - but in certified are no image files therefore it would fail)
[Miniboot]-> setNextRunningVersion 2
17.) Enter "reboot" to reboot your switch - it should come up with your new AOS now

Do a "copy working certified" from the CLI now to ensure that you have the images in both directories.

You only have to "fix" your serial connection speed now.

To do this enter the following from the AOS CLI:
Switch-> modify boot params
Do the necessary editing there - a help is available and I assume that you will manage it ... ;) Now you need to reboot the switch and change the same in the u-boot back to 9600 (just follow step 4 and 5 in the u-boot again)

Let me know if you encounter any issues.

Thanks

Re: 6850 in Mini Boot

Posted: 18 Jul 2008 03:24
by Yanesh
Hi Benny

Thanks for the quick reply

I was able to lad all the images ie:

K2os.img
kadvrout.img
kbase.img
keni.img
krelease.img
ksecu.img

i got it from the latest version of ios for 6850

Now the proble is that when i type setNextRunningversion 2 it gives me this error

Missing parameter, syntax error
Error on line 2: 'boot empgatewayipaddr
'.value = 0 = 0x0

Can you please advise.

Thanks
Yanesh

Re: 6850 in Mini Boot

Posted: 18 Jul 2008 03:35
by benny
Delete the boot.params file again.

Create the following file using an editor:
boot empipaddr 192.168.1.1:ffffff00
boot empgatewayipaddr 192.168.1.254
boot serialbaudrate 9600
boot serialparity none
boot serialwordsize 8
boot serialstopbits 1
boot serialmode modemControlOff
boot reboottimer 0
boot runningversion working
boot nextrunningversion working
boot autoactivate no
boot numtakeovers 0
Save this document on your desktop and transfer it using zModem - it is the easiest way to recover that. There is a [Miniboot] function call to restore the boot.params from the [Miniboot] but I have no access to a switch right now to verify it. In case that the switch tries again to load from certified please issue the "setNextRunningVersion 2" again and reboot again.

EDIT: The file needs to be named "boot.params" of course before uploading it...

Re: 6850 in Mini Boot

Posted: 21 Jul 2008 02:39
by Yanesh
Hi Benny

Thanks again for your quick reply.

Well it worked out finally. I created the boot.params and upload it to the switch and reboot.
Everything went fine.

Thanks

Yanesh

Re: 6850 in Mini Boot

Posted: 22 Apr 2009 05:42
by akagi
benny wrote:No need to worry, it is time consuming to fix it but not a disaster ...

Let me introduce you to Mr. zModem ... ;)

1.) Power off your OS6850
2.) When you switched it back on, stop it before the Miniboot (there is some counter counting down from 4)
3.) You will have the following prompt "=>"
4.) Enter "setenv baudrate 115200"
5.) Enter "saveenv"
6.) Enter "boot"
7.) The switch should run now in baud rate 115200 (so you have to change your clients terminal connection as well)
8.) If the speed in Miniboot is still 9600 you have to delete the "boot.params" file and reboot the switch again (the next time when the boot.params file gets created it has 115200 as baud rate in their automatically)
9.) Assuming that your connection speed is at 115200 now and you are at the "[Miniboot]->" prompt
10.) Change into the working directory with command
[Miniboot]->cd "working"
11.) Enter the following command to start your zModem session
[Miniboot]->sysStartZmodem
12.) Select all image files you want to upload (upload all .img files except Kdiag.img, Kos.img and K2otg.img - the first two are for OS6800 but you have a OS6850 and the last one is not necessary)
13.) I recommend you to upload one image file at the time as you can track better if the transfer failed
14.) Upload all the .img files as described
15.) All *.img files need to be in the working directory by now
16.) Before you reboot you have to tell the switch to run from the working directory (as it would try to load from certified as the directories are different - but in certified are no image files therefore it would fail)
[Miniboot]-> setNextRunningVersion 2
17.) Enter "reboot" to reboot your switch - it should come up with your new AOS now

Do a "copy working certified" from the CLI now to ensure that you have the images in both directories.

You only have to "fix" your serial connection speed now.

To do this enter the following from the AOS CLI:
Switch-> modify boot params
Do the necessary editing there - a help is available and I assume that you will manage it ... ;) Now you need to reboot the switch and change the same in the u-boot back to 9600 (just follow step 4 and 5 in the u-boot again)

Let me know if you encounter any issues.

Thanks
Hye..
I'm not clear for point no 11. How way to upload all .img? Because after i type this command : [Miniboot]->sysStartZmodem

this result show :

Upload directory: /flash/working
rz ready to receive file, please start upload ( or send 5 CTRL-X's to abort).
**B000000023be50
ZMODEM file transfer aborted
Hit <RETURN> to exit...

Long time i'm waiting. Give me how to upload all .img.
Thanks.