webvaltas

Recovery guide

A 5506-X that stops at the line below is not bricked. It boots and routes fine; it just has no console. Rebuilding one to ASA 9.9(2)85 + SFR 6.2.3 + ASDM 7.16(1) takes about 3 hours, most of it waiting.

Root cause

The console stops at:

Lina to use serial port /dev/ttyS0 for console IO

disk0:/use_ttyS0 exists. That is the whole fault. The file is Cisco’s ASAv switch for sending console output to /dev/ttyS0 instead of the VM console; only its existence matters, the content is ignored. On the 5506-X nothing is wired to that tty, so Lina goes silent. Everything else keeps running: the outside interface still does DHCP, ASDM and SSH still work.

It is a file, not configuration, so write erase does not remove it. Delete it from SSH or ASDM:

delete disk0:/use_ttyS0

With no management access, the only fix is erase disk0: (section 1): ROMMON 1.1.13 has no delete.

Before you start

  • Console cable in the MGMT port, 9600 8N1. Both console ports share one rate.
  • Server stack running on the MGMT link.
  • All five files in ./files (Needed files).
  • 50 GB mSATA installed — the SFR module will not boot without it.
  • MGMT only, nothing in the data ports.
What Address
Server, MGMT link 192.168.1.50
ASA MGMT 192.168.1.188
Server, module network 192.168.45.50
SFR module 192.168.45.45
FTP login asa / asa
Stage Time
Erase + tftpdnld ~2 min
Wizard + disk0 copies 10–20 min
ROMMON 1.1.18 ~15 min, several reboots
SFR install 20–60 min
Licence, ASDM, reset minutes

Server stack

One container serves HTTP (CLI copies), FTP (module install) and TFTP (ROMMON boot) from ./files. Save as compose.yml beside files/, then run docker compose up -d.

yaml
services:
  files:
    image: copyparty/min
    network_mode: host          # TFTP data ports + FTP passive range need host networking
    restart: unless-stopped
    volumes:
      - ./files:/w:ro
    command: >
      -p 80 --ftp 21 --tftp 69 --ftp-pr 30000-30010
      -a asa:asa -v .::r

Everything runs over the MGMT port: ROMMON TFTP, the CLI copies, ASDM/SSH, and the SFR module’s management network. Addresses are in the table above.

Needed files

File Size Used in MD5
asa992-85-lfbff-k8.SPA 111 MB 1–3 c535e7eb7ff4c1d6f19a8cced79e293b
asa5500-firmware-1118.SPA 8.9 MB 2 c59d357e435763b2cce5af9ddd9d9f01
asasfr-5500x-boot-6.2.3-4.img 41 MB 4 97c3bdf419065fb128211d25d3c65181
asasfr-sys-6.2.3-83.pkg 1.3 GB 4 b5f65a57800261111828231507a36335
asdm-7161.bin 36 MB 5 9e58de85ad2d4a0b1465b0345899aaa2

Serve them all from the same directory.

1. Erase and boot from RAM

Time: ~2 min. Done when: the image boots from RAM and the wizard appears.

erase disk0:                          # y
ADDRESS=192.168.1.188
NETMASK=255.255.255.0
SERVER=192.168.1.50
GATEWAY=192.168.1.50
IMAGE=asa992-85-lfbff-k8.SPA
sync
ping 192.168.1.50
tftpdnld

2. Wizard and disk0 install

Time: 10–20 min. Done when: the ASA reboots from disk0: with its own image.

The wizard runs automatically on first CLI — use it for the management IP instead of configure terminal. Press Enter to accept the default unless noted:

Pre-configure Firewall now through interactive prompts [yes]?   Enter
Firewall Mode [Routed]:                                         Enter
Enable password [<use current password>]:                       <set one>
Allow password recovery [yes]?                                  Enter
Clock (UTC): Year/Month/Day/Time                                Enter through
Management IP address:                                          192.168.1.188
Management network mask:                                        255.255.255.0
Host name:                                                      asa5506
Domain name:                                                    example.vnce.eu
IP address of host running Device Manager:                      192.168.1.50

The mask must be one the ASA accepts; 255.255.255.0 works. The router from the wizard is not needed — the MGMT link is local.

Then copy the image and boot it. format disk0: clears what erase disk0: left; the running config from the wizard survives it, and write memory saves it.

enable
format disk0:
copy /noconfirm http://192.168.1.50/asa992-85-lfbff-k8.SPA disk0:/asa992-85-lfbff-k8.SPA
copy /noconfirm http://192.168.1.50/asa5500-firmware-1118.SPA disk0:/asa5500-firmware-1118.SPA
verify /md5 disk0:/asa992-85-lfbff-k8.SPA
boot system disk0:/asa992-85-lfbff-k8.SPA
write memory
reload

ROMMON 1.1.18 - required

Do not skip this. Old ROMMON on the 5506-X is a known brick source (CSCvu12608 boot loops) and the 6.2.3 notes call for the latest ROMMON (1.1.18 release notes). Every unit gets this before it goes to students. The firmware file was copied above.

upgrade rommon disk0:/asa5500-firmware-1118.SPA

Verify with show version | include ROMMON, or reboot to ROMMON and run showmon -v (expect 1.1.18).

3. Licence

Time: minutes. Done when: show activation-key reports Unrestricted(UR).

  • The licensing serial is what show version | include Serial prints. On the 5506-X that is the PCA serial, not the chassis serial.
  • Enter it in the keygen below. It uses the 5506 preset (LICENSE_TYPE["1"] = 01051300, FEATURES_5506) and prints five words.
  • Enter those words with activation-key, then confirm Restricted(R) → Unrestricted(UR). The key is written to flash and activates after reload.
reload
show activation-key

Keygen

activation-key ...

4. SFR module

Time: 30–75 min. Done when: show module sfr reports the module Up after the system install. Follow the SFR install/reimage procedure. The 50 GB mSATA must be installed.

a. Boot the recovery image. On the ASA:

copy /noconfirm http://192.168.1.50/asasfr-5500x-boot-6.2.3-4.img disk0:/asasfr-5500x-boot-6.2.3-4.img
sw-module module sfr recover configure image disk0:/asasfr-5500x-boot-6.2.3-4.img
sw-module module sfr recover boot
show module sfr

Wait 5–15 minutes, then session sfr console.

b. First setup. Login admin / Admin123, run setup (hostname, static 192.168.45.45/24, gateway 192.168.45.50, DNS 192.168.45.50).

c. Install the system. In the module console:

system install ftp://asa:asa@192.168.45.50/asasfr-sys-6.2.3-83.pkg

d. Second setup. The module reboots and the session drops. Afterwards:

show module sfr
session sfr console

Login admin / Admin123 and run setup again — the system install resets the module’s management IP.

5. ASDM (optional)

Time: minutes. Done when: https://192.168.1.188/admin loads.

copy /noconfirm http://192.168.1.50/asdm-7161.bin disk0:/asdm-7161.bin
configure terminal
asdm image disk0:/asdm-7161.bin
http server enable
http 192.168.1.0 255.255.255.0 management
exit
write memory

Open https://192.168.1.188/admin and log in (local user, or blank username plus the enable password). management is the interface name — check show interface ip brief. ASDM 7.16(1) needs Java 8 with Web Start; Adoptium/Temurin 8 ships without javaws, so use Oracle JRE 8 or launch the downloaded launcher jars directly.

6. Factory reset

Time: minutes. Done when: the unit boots to the 5506-X factory config.

write erase
configure factory-default
asdm image disk0:/asdm-7161.bin
write memory
reload

configure factory-default gives the 5506-X default: Gi1/1 outside with DHCP, Gi1/2–1/8 bridged inside on 192.168.1.1 with a DHCP server, ASDM from inside. Re-apply asdm image afterwards because the factory default does not set it.

Power off

Safest: reboot into ROMMON, then unplug the power adapter — nothing is mounted and the module is not running.

reload
# press ESC at the boot prompt

From a running system, quiesce it first:

write memory
sw-module module sfr shutdown
show module sfr

Wait for the module to go down, then unplug the power adapter (no power switch on this model). The module starts again on the next power-on.

Notes

Why these versions

  • 9.9(2)85 is the newest 9.9 build (interim notes). 9.9(2)83 fixed CSCvw53884 — M500IT SSDs on the 5506 going unresponsive after ~3.2 years. Stay on 9.9(2)85, not 9.9(2)83.
  • ASA 9.16 is the last ASA for the 5506-X but drops SFR support; SFR 6.2.3 is the last module release for this model (compatibility).

Gotchas

  • Greedy “all features” keys are rejected (not supported yet); the 5506 preset works.
  • A key generated against the chassis serial is rejected; use the PCA serial.
  • confreg 0x41 loads the built-in empty config, not the 5506-X factory template: only MGMT links, no inside/DHCP/ASDM.
  • ROMMON 1.1.13 has no copy/delete/format; erase is whole-device.
  • ASDM images copy with an informational No digital signature found; 9.9(2) does not enforce ASDM signatures.
  • The SFR VM disk (vm_1.img) lives on disk0, so removing the 50 GB mSATA does not stop the module VM or its memory reservation.