6400 and newfs command

Post Reply
henrikpa

6400 and newfs command

Post by henrikpa »

Hello!
Dont ask me why, but for some reason I thought the command "newfs" was a brilliant command to use on a switch that i wanted to remove the config on.
Fine, it worked and all config is removed. However now the switch just go into miniboot (i think it's called).
So looking at the available commands in miniboot I thought that boot from usb would be a nice option if I just could copy the files needed from another working switch to a usb stick, boot up the non-working switch and then save all files.
Would that work? and if so, how do I adress the USB stick? Both in normal boot and miniboot.
If it doesnt work, how do I recover the switch that I ran "newfs" on?
Regards,
henrikpa
benny

Re: 6400 and newfs command

Post by benny »

Hi henrikpa and welcome to the forums.

Here is the procedure to recover your device - it was already posted but I think its time for some modifications.

Power on your OS6400 connect on the console and wait for the following message to appear
Hit any key to stop autoboot: 2
Hit any key to stop the counter and you should be in the u-boot menu with a CLI prompt like that
=>
Now you set the baud-rate to a higher value to make sure it won't take the whole day to transfer the image files (obviously you need a Console application capable of zModem file transfer)
=> setenv baudrate 115200
=> setenv bootflags 0x1000
The switch should have asked you to change the baud-rate of your console connection by now and you should run at 115200. We boot to the Miniboot now (we will be stuck there any way)
=> bootm 0xff900000
From miniboot you need to create the "working" and "certified" directory
[Miniboot] ->mkdir "working"
[Miniboot] ->mkdir "certified"
[Miniboot] ->cd "certified"
We start the zModem transfer now (you should be in the "certified" directory for that.
[Miniboot]->sysStartZmodem
You need to upload the AOS 6.3.3.R01 code where the images start with Gos.img - If you don't have the AOS code you can download it from the BPWS (Business Partner WebSite).

As soon as the transfer of the image files is done, you can enter the following command to reboot your switch
[Miniboot] ->reboot
Your switch will now run at baud-rate 9600 again, so you should adapt your serial connection as well.

The switch should boot up the AOS from the "certified" directory as there is no content in the "working" directory. After logging in with admin/switch you need to do a
Switch-> copy certified working
To bring the switch back in "working" state.

Your OS6400 should be recovered now ... (post your console-log if something went wrong...)

Regards,
Benny
RUlaszek

Re: 6400 and newfs command

Post by RUlaszek »

:D Benny,

I am new to Alcatel switches and you saved me a lot of time.

Thank you.
saeba

Re: 6400 and newfs command

Post by saeba »

Hi Benny,

I'm a newbie, I would like to ask something about your explanation before, my questions are :

1. What is the meaning of :
=> bootm 0xff900000 (Is it necessary to change bootm?)

2. What is the content of AOS 6.3.3.R01 code, what files needed to uploaad to /flash.

Thanks a lot.

Regards,

Saeba
cedric1

Re: 6400 and newfs command

Post by cedric1 »

1. What is the meaning of :
=> bootm 0xff900000 (Is it necessary to change bootm?) -> no clear info about this command

2. What is the content of AOS 6.3.3.R01 code, what files needed to upload to /flash -> all instead *.bin
mikes
Member
Posts: 23
Joined: 27 Oct 2008 16:06

Re: 6400 and newfs command

Post by mikes »

Is that only me, or the "newfs" command had been decommissioned?
devnull

Re: 6400 and newfs command

Post by devnull »

According to the manuals it should be there
(its in 6.4.4 "newfs /flash" and 6.4.5) AFAIK there is a newFS in bootrom/miniboot as well.
Post Reply

Return to “OmniSwitch 6400”