中文讨论区

Reply
Moderator
Posts: 153
Registered: ‎05-20-2013

controller-based IAP按reset键无法恢复出厂InstantOS

[ Edited ]

正常情况下,如需恢复出厂状态,要在IAP断电状态下长按reset键,然后加电,保持长按reset键10s,松开reset键,另IAP自动完成启动过程即可。

 

当IAP被转化成控制器管理的AP后,很可能出现无法恢复到InstantOS的情况。

 

IAP存储image的flash分为partition 0和partition 1,可以在apboot下用osinfo查看。同时该命令可以看到两个partition里的image是AOS还是InstantOS,及具体版本。

 

apboot> osinfo
Partition 0:
image type: 0
machine type: 26
size: 6306396
version: 6.3.1.4-4.0.0.5
build string: ArubaOS version 6.3.1.4-4.0.0.5 for Pegasus (p4build@stan) (gcc version 4.3.3) #43022 Thu Apr 3 13:10:02 PDT 2014
flags: Instant preserve

Image is signed; verifying checksum... passed
Signer Cert OK
Policy Cert OK
RSA signature verified.

Switching to flash bank: 2
Partition 1:
image type: 0
machine type: 10
size: 4783596
version: 6.3.1.1
build string: ArubaOS version 6.3.1.1 for 10x (p4build@port-royal) (gcc version 4.3.3) #40563 Thu Oct 24 17:56:44 PDT 2013
flags:

Image is signed; verifying checksum... passed
Signer Cert OK
Policy Cert OK
RSA signature verified.
Switching to flash bank: 1
apboot>

 

默认情况下,reset键会清除当前运行的配置及partition 0。reset后,以partition 1的image启动,无论是InstantOS还是AOS。

 

可以通过printenv查看当前启动的partition,

 

apboot> print
bootargs=
bootdelay=2
baudrate=9600
autoload=n
boardname=Dalmore
servername=aruba-master
bootcmd=boot ap
ethaddr=24:de:c6:cb:78:04
ethact=eth0
filesize=603a5c
fileaddr=4000000
gatewayip=10.64.136.1
netmask=255.255.254.0
ipaddr=10.64.136.112
serverip=10.64.32.126
dnsip=10.64.96.20
autostart=yes
bootfile=?
os_partition=0
stdin=serial
stdout=serial
stderr=serial

Environment size: 362/65532 bytes
apboot>

 

IAP被控制器升级两次以后,Paritition 1的InstantOS就会被覆盖,按reset键就无法恢复到InstantOS状态。

 

如需手动在apboot下升级,需为IAP配置静态或DHCP地址,并可达TFTP server。升级相关命令如下,

 

apboot> setenv ipaddr 192.168.111.237
apboot> setenv netmask 255.255.255.0
apboot> setenv gatewayip 192.168.111.254
apboot> setenv serverip 172.30.31.25
apboot> upgrade os ArubaInstant_Orion_6.1.3.1-3.0.0.2_34479
eth0 up: 1 Gb/s full duplex
Using eth0 device
TFTP from server 172.30.31.25; our IP address is 192.168.111.237; sending through gateway 192.168.111.254
Filename 'ArubaInstant_Orion_6.1.3.1-3.0.0.2_34479'.
Load address: 0x2000000
Loading: ####T #########T T #######################T ####T #T ##########T #T ##T ###########
         #############T ######T ####T ##T ###
done
Bytes transferred = 6087436 (5ce30c hex)

Image is signed; verifying checksum... passed
Signer Cert OK
Policy Cert OK
RSA signature verified.
Erasing flash sector @ 0xbf100000................................................................................................done
Erased 93 sectors
Copying to flash...
Writing ............................................................................................done
Verifying flash... 6087436 bytes were the same
Upgrade successful.
apboot> saveenv
Saving Environment to Flash...
Un-Protected 1 sectors
.done
Erased 1 sectors
Writing

 

apboot>upgrade os <filename>是为partition 0升级

apboot>upgrade prov <filename>是为partition 1升级

 

 

如需切换启动的partition,可以使用以下命令,

 

apboot> setenv os_partition <0/1>

 

通过osinfo命令确认。

Search Airheads
Showing results for 
Search instead for 
Did you mean: