Upgrading ROMMON

本文详细介绍了如何通过TFTP服务器升级路由器的ROMMON版本,包括下载ROMMON二进制文件到路由器的闪存中,使用命令进行升级操作,并观察升级过程直至系统重新加载并运行新的ROMMON。

From http://sigmapie.com/

 

After the last trouble without tftp-server in ROMMON, I figure I would upgrade it... it was a lot easier than updating the IOS, and I don't think you can screw it up. By the looks of it, it has a primary and 'upgrade' (secondary) ROMMON... so if the upgrade ROMMON doesn't boot up... the original one does.

There is more screen output than commands here... there is only one command!

Before the upgrade we see that there is no upgraded rommon running.

r2#show rom-monitor 
ReadOnly ROMMON version:
 
System Bootstrap, Version 12.2(8r)T2, RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 2002 by cisco Systems, Inc.
 
No upgrade ROMMON programmed or not yet run
Currently running ROMMON from ReadOnly region
ROMMON from ReadOnly region is selected for next boot

The rommon is not like the IOS, a copy is not stored in flash to be uncompressed, so I had to download the ROMMON binary to the router's flash before I made the router as a TFTP server.

r1(config)#tftp-server flash:C3725_RM2.srec.123-10r

Then I upgraded R2 You can specify a new ROMMON directly from TFTP:

r2#upgrade rom-monitor file tftp://10.0.0.1/C3725_RM2.srec.123-10r

It downloads, and automatically asks if you want to restart.

Loading C3725_RM2.srec.123-10r from 10.0.0.1 (via FastEthernet0/0): !!!
[OK - 613864 bytes]
This command will result in a  'power-on reset' of the router! 
Continue? [yes/no]: yes
System configuration has been modified. Save? [yes/no]: yes
Building configuration...
[OK]
 
ROMMON image upgrade in progress.
Erasing boot flash eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Programming boot flash pppp

After the system reload, it boots the system rommon, followed by the new rommon.

Now Reloading
System Bootstrap, Version 12.2(8r)T2, RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 2002 by cisco Systems, Inc.
 
Running new upgrade for first time
 
System Bootstrap, Version 12.3(10r) [dchih 10r], RELEASE SOFTWARE (fc1)
Copyright (c) 2004 by cisco Systems, Inc.
c3725 processor with 262144 Kbytes of main memory
Main memory is configured to 64 bit mode with parity disabled
 
Upgrade ROMMON initialized

After the upgrade, here is the result of the 'show rom-mon'

r2#show rom-monitor
System Bootstrap, Version 12.2(8r)T2, RELEASE SOFTWARE (fc1)
TAC Support: http://www.cisco.com/tac
Copyright (c) 2002 by cisco Systems, Inc.
 
Upgrade ROMMON version:
System Bootstrap, Version 12.3(10r) [dchih 10r], RELEASE SOFTWARE (fc1)
Copyright (c) 2004 by cisco Systems, Inc.
 
Currently running ROMMON from Upgrade region
ROMMON from Upgrade region is selected for next boot
<think>好的,用户问的是如何在Linux系统中升级共享库。首先,我需要回忆一下共享库的基本概念,以及升级的步骤。共享库在Linux里是多个程序共享的动态链接库,升级通常涉及替换旧的库文件,并确保系统正确识别。 接下来,我得考虑用户可能的场景。用户可能遇到了依赖问题,或者需要新库的功能,或者是安全更新。需要明确步骤,避免系统出问题。比如,直接替换库文件可能导致正在运行的程序崩溃,所以要注意使用正确的方法。 然后,步骤方面。首先检查当前库版本,可以用ldd或ldconfig。然后下载新版本,可能需要编译源码或者获取二进制包。安装时,覆盖旧文件,但要注意备份。之后需要更新动态链接器的缓存,执行ldconfig。最后验证是否成功,检查版本号或测试功能。 另外,用户可能不知道如何安全地处理依赖关系,或者遇到兼容性问题。需要提醒用户谨慎操作,可能的话使用包管理器而不是手动替换,比如apt或yum。这样更安全,能自动处理依赖。 还要考虑引用中的相关内容。引用3提到了LD_PRELOAD,这可能与库预加载有关,但升级共享库通常不需要这个,除非特殊情况。引用4关于下载LibreOffice的不同包,可能类比到下载库的deb或rpm包,用户需要根据系统选择正确格式。引用5提到检查重复项,可能是在配置库路径时需要注意避免重复,比如/etc/ld.so.conf中的路径。 需要生成相关问题,比如如何检查库版本,如何处理依赖冲突,是否有推荐工具等。确保用户能进一步解决可能遇到的问题。 最后,组织回答结构,分步骤说明,强调备份和谨慎操作,引用相关参考资料,并生成相关问题帮助用户深入理解。</think>### 如何升级Linux系统中的共享库 #### 1. **理解共享库的基本概念** 共享库(Shared Libraries)是多个程序可动态链接使用的代码集合,文件扩展名通常为`.so`(如`libc.so.6`)。升级共享库的主要目的是修复漏洞、优化性能或支持新功能。 #### 2. **检查当前库版本** 在升级前,需确认现有库的版本及路径: ```bash ldd --version # 查看动态链接器版本 ldconfig -p | grep <库名称> # 查找特定库的路径和版本 ``` #### 3. **获取新版本库** - **通过包管理器安装**(推荐): 使用系统包管理器(如`apt`或`yum`)自动处理依赖关系: ```bash sudo apt update && sudo apt upgrade <库名称> # Debian/Ubuntu sudo yum update <库名称> # CentOS/RHEL ``` - **手动编译安装**: 若需特定版本,可从官网下载源码编译: ```bash wget <库源码URL> tar -xzvf <库源码包> cd <解压目录> ./configure make sudo make install
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值