cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
76322
Views
85
Helpful
22
Replies
whiteleyjl
Beginner

Unable to change boot file on Cisco 3850

I was working on a Cisco 3850 24 port switch today and I read that it doesn't use the normal "boot system flash:XYZ.bin" but instead it's something like this:

"software install file flash:XYZ.bin new"

That changes the install package or something which makes it boot in the newly selected package which contains the new IOS.  Anyway, when i put in that command I get something about "Failed to ...." or something.  I'm sorry but I'm at home now and I don't have the device with me and it just occured to me to post this on the forum for possible help.  Either way, it's specifically says "Failed..." as the first word which is not what it should normally say.

I used these directions:

http://www.cisco.com/en/US/prod/collateral/switches/ps5718/ps12686/deployment_guide_c07-727067.html#wp9000169

I am in Install mode.  Can anyone help me figure out why this is happening before my outage window on Sunday night?  I've downloaded the new version of the IOS from Cisco.com and verified it is currently located in the flash of this device. 

Thanks for any help you can provide!

22 REPLIES 22

Hi Inayath, 

I have done exactly same which you have mentioned above..like through emergency-install but after completion the whole process, issue still remain same...

witch: dir flash
unable to stat flash/: no such device

switch: dir flash:
Directory of flash:/

7745 drwx 4096 .
2 drwx 4096 ..
7746 -rwx 2097152 nvram_config
7747 -rw- 74409080 cat3k_caa-base.SPA.03.02.01.SE.pkg
7748 -rw- 2775728 cat3k_caa-drivers.SPA.03.02.01.SE.pkg
7749 -rw- 32478052 cat3k_caa-infra.SPA.03.02.01.SE.pkg
7750 -rw- 30389028 cat3k_caa-iosd-universalk9.SPA.150-1.EX1.pkg--- new image
7751 -rw- 18313952 cat3k_caa-platform.SPA.03.02.01.SE.pkg
7752 -rw- 63402700 cat3k_caa-wcm.SPA.10.0.101.0.pkg
7753 -rw- 1224 packages.conf

1395396608 bytes available (252497920 bytes used)

please assist.

@ InayathUlla Sharieff

Thank you. it work

I searched high and low for a set of instructions to do this and found nothing.

Your post was perfect. Thank you.

Great post! you covered the little things that are omitted, or hard to find in the release notes etc. Thanks for posting.

Peter

Why can't I boot my switch with usbflash0?

:

 

switch: boot usbflash0:cat3k_caa-universalk9.16.12.01.SPA.bin
Reading full image into memory............................................................................................................................................................................................................................................................................................................................................................................................................................................................................done
Bundle Image
--------------------------------------
Kernel Address : 0x604496dc
Kernel Size : 0x43824e/4424270
Initramfs Address : 0x6088192a
Initramfs Size : 0x1c0cf62/29413218
Compression Format: mzip

Bootable image at @ ram:0x604496dc
Bootable image segment 0 address range [0x81100000, 0x81da5280] is in range [0x80180000, 0x90000000].
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
File "usbflash0:cat3k_caa-universalk9.16.12.01.SPA.bin" uncompressed and installed, entry point: 0x81894d40
Loading Linux kernel with entry point 0x81894d40 ...
Bootloader: Done loading app on core_mask: 0xf

### Launching Linux Kernel (flags = 0x5)

Linux version 4.9.177 (xelinux@sjc-xelinux1) (gcc version 5.3.0 (GCC) ) #1 SMP Fri Jun 7 18:13:03 PDT 2019
CVMSEG size: 2 cache lines (256 bytes)
Cavium Inc. SDK-5.1.0
bootconsole [early0] enabled
CPU0 revision is: 000d900a (Cavium Octeon II)
Checking for the multiply/shift bug... no.
Checking for the daddiu bug... no.
ata1: SRST failed (errno=-16)
ata1: SRST failed (errno=-16)
ata1: SRST failed (errno=-16)
ata1: SRST failed (errno=-16)
ata1: reset failed, giving up
● linux
State: initializing
Jobs: 123781612 queued
Failed: 123781612 units
Since: Thu 1970-01-01 00:02:03 Universal; 49 years 11 months ago
CGroup: /
├─init.scope
│ └─1 /init splash
└─system.slice
├─report_fails.service
│ └─224 systemctl status -l -n 100 -o short-monotonic --no-pager
├─systemd-udevd.service
│ └─129 /lib/systemd/systemd-udevd
└─systemd-journald.service
└─94 /lib/systemd/systemd-journald
>>> Rebooting
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
watchdog: watchdog0: watchdog did not stop!
reboot: Restarting system

Is there anything that can be done if the recovery bin is missing from sda9? I'm in the same situation where flash is read-only, the device won't boot and emergency-install is failing. I've even gotten a copy of the recovery bin from another device and tried setting RECOVERY_BUNDLE to point to the recovery bin on usb but it seems it doesn't actually do anything. Snips below:

 

---

 

%IOSXEBOOT-4-ABORT: (rp/0): Signature Verification Failed on /tmp/sw/isos/cat3k_caa-infra.SPA.03.07.05E.pkg Failed to process provisioning file (/tmp/packages.conf).

 

---

 

switch: set RECOVERY_BUNDLE usbflash0:cat3k_caa-recovery.bin

switch: emergency-install usbflash0:/cat3k_caa-universalk9.SPA.03.07.05.E.152-3.E5.bin
The bootflash will be erased during install operation, continue (y/n)?y
Starting emergency recovery (usbflash0:/cat3k_caa-universalk9.SPA.03.07.05.E.152-3.E5.bin)...

Cannot access recovery file (sda9:cat3k_caa-recovery.bin and sda9:c3850-recovery.bin)
Call Cisco Systems Technical Support
usage: emergency-install url://<url>

switch: dir

List of filesystems currently registered:

xmodem[0]: (read-only)
null[1]: (read-write)
bs[3]: (read-only)
flash[18]: (read-only)
usbflash0[19]: (read-write)
tftp[20]: (read-write)


switch: dir sda9:
Directory of sda9:/

2 drwx 1024 .
2 drwx 1024 ..

46940160 bytes available (1540096 bytes used)

 

 

 

brad craig
Beginner

The only way I could get around this issues is to do the set command.

like this example

switch#set BOOT flash: ios bin file

switch#reload