侧边栏壁纸
  • 累计撰写 31 篇文章
  • 累计创建 5 个标签
  • 累计收到 0 条评论
标签搜索

目 录CONTENT

文章目录

Aruba AC控制器如何在cpboot里升级系统

Eddy zhou - 小强
2022-10-10 / 0 评论 / 0 点赞 / 4,464 阅读 / 1,253 字

The cpboot upgrade procedure is similar to one for existing platforms except that you need to specify the “ethact” variable.

这里重点:This variable enables a specific port: “ethact = xlr_gmac(0 - 3)” with 0 being port 1/3 and 3 being port 1/0.

For example, when using port 1/3, you specify:
setenv ethact xlr_gmac0
Use these commands when using port 0:

Example of an image upload from CPBoot:
CPBoot 1.1.4.0 (build 16250)
Built: 2007-09-20 at 16:13:58
DRAM: Operating at 533 MHz
DRAM: Channel 0: 1024 MB
DRAM: Channel 2: 1024 MB
DRAM: Total = 2048 MB
POST: Memory test: Physical 0 - 0x10000000 - quick test
Memory test: Physical 0x10000000 - 0x80000000 - quick test
PASS
CPU: XLR532 Clock: 800MHz
Board: A3600
CPLD: rev: 1.1
SMP: All 32 cpus successfully started
Net: xlr_gmac0 xlr_gmac1 xlr_gmac2 xlr_gmac3
IDE: Bus 0: OK
Device 0: Model: CF 512MB Firm: 06/07/29 Ser#: GHS3ABPCF07060600005
Type: Removable Hard Disk
Capacity: 502.0 MB = 0.4 GB (1028160 x 512)
Boot: Primary bootflash partition

Hit any key to stop autoboot: 0 <<< 按任意键进入cpboot
cpboot> <<< 进入cpboot模式
cpboot> printenv <<< 显示配置信息
bootargs=quiet
bootcmd=bootf
bootdelay=5
baudrate=9600
loadaddr=0x87000000
psb_os_cpu_mask=0
ethprime=xlr_gmac3
ethaddr=00:0b:86:61:17:c0
eth1addr=00:0b:86:61:17:c1
eth2addr=00:0b:86:61:17:c2
eth3addr=00:0b:86:61:17:c3
stdin=serial
stdout=serial
stderr=serial

Environment size: 277/131068 bytes

cpboot> setenv ipaddr 10.168.89.18 <<< 配置控制器地址
cpboot> setenv netmask 255.255.255.0 <<< 配置子网掩码
cpboot> setenv gatewayip 10.168.89.1 <<<配置网关
cpboot> setenv serverip 10.1.1.234 <<< 配置tftp服务器地址
cpboot> setenv ethact xlr_gmac3 <<< 配置使用的网络接口
cpboot> save <<<保存配置

cpboot> ping 10.168.89.1 <<< 使用ping 测试网络是否正常
Using xlr_gmac3 device
host 10.168.89.1 is alive <<< Ping结果正常
cpboot> upgrade 1 ArubaOS_MMC_3.3.2.0_18843 <<< 从Tftp服务器升级固件
Starting TFTP Download …
Using xlr_gmac3 device
TFTP from server 10.1.1.234; our IP address is 10.168.89.18; sending through gateway 10.168.89.1
Filename ‘ArubaOS_MMC_3.3.2.0_18843’.
Load address: 0x87000000
Loading: ##############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
done
Bytes transferred = 33326904 (1fc8738 hex)
offset=0 src=87000000 len=33326904
cpboot>
cpboot> boot
Loading image 0:1##########################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
Verifying checksum…
Booting image…
(PROM): Adding mem region start=100000, size=ff00000
(PROM): Adding mem region start=20000000, size=4ffe0000
argc=3, argv=8baf70f8, envp=8baf7058, prom_info=820c9830
argv[1] = [quiet]
arcs_cmdline=[quiet ]
argv[2] = [console=ttyS0,9600]
arcs_cmdline=[quiet console=ttyS0,9600 ]
prom_init: envp[0] = [BOARD=NEBBIOLO]
arcs_cmdline=[quiet console=ttyS0,9600 console=ttyS0,38400 rdinit=/sbin/init ]
Master CPU Thread: 0 of 0 running on Phoenix 0
Initializing PIC…
on_chip init done
XLR_ Board Major Version 5
<<<<< Welcome to Aruba Networks - Aruba A3600-64 >>>>>
Performing CompactFlash fast test… Checking for file system…
Passed.
Reboot Cause: User reboot.
Restoring the database…done.
Generating SSH Keys…done.
Reading configuration from default.cfg
Retrieving Configuration…will take approximately 1 minute
(Aruba)
User:

控制器进入cpboot方法:

出现如下提示,按 Ctrl+x 中断启动
Hit Ctrl + X keys to stop autoboot: 0
第一中断进入cpxload,输入cpboo后回车
cpxload# cpboot
CPBoot image is signed
Verifying CPBoot checksum…
CPBoot check passed
Signer Cert OK

再次出现如下提示,按 Ctrl+x 中断启动,此时进入cpboot
Hit Ctrl + X keys to stop autoboot: 0
cpboot>
格式化flash命令如下。一般情况可以先格式化0:1,从分区0启动系统,进入系统后升级分区1。然后格式化0:0,从分区1启动,再升级分区0。这样有web或者配置接口等操作比较方便,已有配置也能无缝过度。

cpboot> format 0:0或0:1
Format will erase everything on eUSB flash’s partition 0
#Are you sure you want to continue (y/n)?y
一堆#####提示符之后即完成

cpboot> format 0:2可以清除系统配置分区,但是不删除镜像。
cpboot> format 不加参数将格式化一切
如果系统没有镜像,或者同时format 0:0以及 0:1,只能通过cpboot升级镜像。过程如下:

设置控制器IP等信息,serverip为下载镜像文件的TFTP服务器IP。

cpboot> setenv ipadddr
cpboot> setenv netmask
cpboot> setenv gatewayip
cpboot> setenv serverip
默认接口ge-0/0/0,如果要修改,输入以下命令:

cpboot>setenv ethact ge-0
ge-0对应0/0/0口,ge-1对应0/0/1口,以此类推。
如果采用其他口可能提示没有mac地址:
*** ERROR: `eth4addr’ not set
通过命令添加mac地址即可。
cpboot>setenv eth4addr 00:0b:86:b8:cc:eb(只用修改最后一位,默认0口地址可以用printenv查看)
如果做完以上配置,不能ping通TFTP服务器,在控制器链接的交换机或其他设备查看端口是否up,如果接口down状态,对于有ETH/SFP的设备可能需要以下命令:

cpboot>pfe mgmt
升级系统:

cpboot> upgrade 0或1 ArubaOS_70xx_10.3.1.4_86211

AOS Upgrades with Ancillary Files images from cpboot will cause
partition 0 and 1 to both contain the new AOS version.
Do you wish to continue? (y or n): y
启动

cpboot> purgeenv
Un-Protected 1 sectors
Erasing Flash…
. done
Writing to Flash… done
Protected 1 sectors
cpboot> reset

0

评论区