Posts tagged rs232

cisco sg300 upload new firmware via xmodem
posted on 2016-08-07 09:30

After a reset a sg300 did not want to boot, both slices were corrupt. The result was an endless boot loop, where it'd try downloading the firmware but without success.

Using minicom the upload was easy:

  • Turn off switch.
  • If you use an USB-to-serial adapter with a nullmodem cable, most likely the interface is /dev/ttyUSB0. Look through your devices under /dev, in case it is /dev/ttyUSB1
  • minicom -s and setup everything.
  • baud rate 115200 (instead of the usual 9600 with most cisco devices), 8N1 (8 bits, no parity, 1 stop bit), no hardware or software flow control
  • minicom -D /dev/ttyUSB0
  • start switch, press ESC when prompted
  • ctrl-a, s and choose xmodem
  • navigate to the file, or choose the [Goto] menu at the bottom
  • Space to select the file, Enter.

A window like this should pop up and the upload should begin:

+-----------[xmodem upload - Press CTRL-C to quit]------------+                                                                 
|Sending sx300_fw-14502.ros, 57760 blocks: Give your local XMO|                                                                 
|DEM receive command now.                                     |                                                                 
|                                                             |                                                                 
|                                                             |                                                                 
|                                                             |                                                                 
|                                                             |                                                                 
|                                                             |                                                                 
+-------------------------------------------------------------+   

After the upload is finished, the switch should successfully reboot again and be factory reset.

rs232: vim not working over serial connection
posted on 2015-12-27 19:08:50

After having dd'd a fbsd image onto a micro sd card, attaching a monitor to the pi's hdmi port I could see... nothing. (On a sidenote: Go to the raspbsd site [here])http://raspbsd.org/) for a proper bsd image that works in a rbpi 2 B, none of the official images work. These are done by fbsd committer brd@)

Then some googling followed, discerning wether the hdmi-dvi adapter, the dvi-vga adapter or the kvm switch were responsible for that.

Result was, the HDMI port needs to be enabled. But by compiling the option into your OS image. (Ok, lets just skip that then...)

Since accessing the freebsd installation directly from the sd card was not a feasible solution, I hooked a UART / RS232 to USB adapter onto the rbpi pins. When wanting to edit the needed config files via vi, I could not see anything from the editor window.

Problem was, the TERM environment variable needs to be set properly.

Instead of TERM=dialup or something, set it to vt100.

In bash:

export TERM=vt100

In csh:

setenv TERM vt100

Mailing lists do help, but you need to read properly... found this answer here.

Seagate BlackArmor NAS: rs232 and dmesg
posted on 2015-11-29 21:55:22

I am pretty much self-taught, which is why I write up this for others, may it help them!

howto

After having gotten familar with a logic analyser (See here.) I bought and knowing that most motherboards have some kind of debugging interface, I tried my luck on my NAS. Having removed everything and having the sole mainboard at my disposal, I was looking for some clue.

As all outlets are plugged except one with four pins, I simply tried that one. (There was not much to try besides that one, but a dedicated outlet for testing/debugging hardware is the only logical approach, so it had to be that one. Especially considering the fact, that there is no VGA port anywhere to be found.)

By using the continuity check of my multimeter I was able to discern GND, and simply plugged the first three channels of the logic analyser to the remaining three pins. (Actually I soldered wires onto the pins and my clamps were too big.) After having set all channels to trigger, I plugged the PSU into the board and turned it on.

And it did catch some signals. Afterwards I saved it into a .csv file where I used vim and its extensive search-and-replace, as each character ends up on a single line.

  • Remove the first line: ggdd
  • Remove the leading characters/words up to the comma: :%s/.*,//g
  • Remove the appended stuff: :%s/ (0x.*//g
  • concatenate all characters: ggVGJ
  • replace '\r \n' with newlines: :%s/\\r \\n/\r/g
  • replace '\r' with newlines: :%s/\\r/\r/g
  • insert commas: :%s/ COMMA/,/g
  • remove unneeded apostrophes: :%s/ ' ' / /g
  • make it better readable by removing unneded spaces: :%s/\(./)\s\(.\)/\1\2/g (Do that one thrice, and it should be looking ok.)
  • now clean up the whitespace a little: :%s/ / /g (Three or four times, and you are done.)

serial pinout

The pinout for those who want to know more:

   +------+
Rx | o  . |
   |      |
Tx | .  . |  GND
   +------+

'o' marks the upper right edge wich is marked on the board.

You can have a UART/RS232 adapter attached on there.

Settings are:

Data bits: 8
Parity:    None
Stop bits: 1
Rate:      38400

Or simply: 8N1 and 38400 baud. Use either screen /dev/ttyUSB0 38400 or minicom under linux.

With a cheap UART adapter (five to twenty bucks on amazon, depending on what you want to buy.) and some clamps you can easily access the system, have a look at the Uboot bootloader or see the whole boot process as depicted below, without deciphering it after having exported it to a .csv file. (But you likely won't get that far with just trial and error by hooking up the adapter to the pins without identifying the Tx pin first.)

output

@'255''0'

 U-Boot 2008. 10-mpcore (Nov 11 2012 - 15:04:27)
 Whitney model:(ELCAPITAN) release v1. 2-beta2

 CPU: Cavium Networks CNS3000
 ID Code: 410fb024 (Part number: 0xB02, Revision number: 4)
 CPU ID: 900
 Chip Version: c

 DRAM:  512 MB
 Parallel Flash:  0 kB
 Flash Manufacturer: MX
 Serial Flash: 512 kB
 Serial Flash:
 Bank # 1:  Nb pages: 2048  Page Size: 256
  Size: ' ' 524288 bytes,  Logical address: 0x60000000
  Area 0: 60000000 to 60FFFFFF ' ' ' 'SPI flash
 In: ' ' serial
 Out: ' 'serial
 Err: ' 'serial
 CPU works at 700 MHz (700/1/1)
 DDR2 Speed is 400 MHz
 Restoring RTC
 Hit any key to stop autoboot:  2 '8''8''8' 1 '8''8''8' 0

 Serial Flash Sector 3 Erase OK!

0x00000100 ' ' ' '
0x00000200 ' ' ' '
0x00000300 ' ' ' '
0x00000400 ' ' ' '
0x00000500 ' ' ' '
0x00000600 ' ' ' '
0x00000700 ' ' ' '
0x00000800 ' ' ' '
0x00000900 ' ' ' '
0x00000a00 ' ' ' '
0x00000b00 ' ' ' '
0x00000c00 ' ' ' '
0x00000d00 ' ' ' '
0x00000e00 ' ' ' '
0x00000f00 ' ' ' '
0x00001000 ' ' ' '
0x00001100 ' ' ' '
0x00001200 ' ' ' '
0x00001300 ' ' ' '
0x00001400 ' ' ' '
0x00001500 ' ' ' '
0x00001600 ' ' ' '
0x00001700 ' ' ' '
0x00001800 ' ' ' '
0x00001900 ' ' ' '
0x00001a00 ' ' ' '
0x00001b00 ' ' ' '
0x00001c00 ' ' ' '
0x00001d00 ' ' ' '
0x00001e00 ' ' ' '
0x00001f00 ' ' ' '
0x00002000 ' ' ' '
0x00002100 ' ' ' '
0x00002200 ' ' ' '
0x00002300 ' ' ' '
0x00002400 ' ' ' '
0x00002500 ' ' ' '
0x00002600 ' ' ' '
0x00002700 ' ' ' '
0x00002800 ' ' ' '
0x00002900 ' ' ' '
0x00002a00 ' ' ' '
0x00002b00 ' ' ' '
0x00002c00 ' ' ' '
0x00002d00 ' ' ' '
0x00002e00 ' ' ' '
0x00002f00 ' ' ' '
0x00003000 ' ' ' '
0x00003100 ' ' ' '
0x00003200 ' ' ' '
0x00003300 ' ' ' '
0x00003400 ' ' ' '
0x00003500 ' ' ' '
0x00003600 ' ' ' '
0x00003700 ' ' ' '
0x00003800 ' ' ' '
0x00003900 ' ' ' '
0x00003a00 ' ' ' '
0x00003b00 ' ' ' '
0x00003c00 ' ' ' '
0x00003d00 ' ' ' '
0x00003e00 ' ' ' '
0x00003f00 ' ' ' '
0x00004000 ' ' ' '
0x00004100 ' ' ' '
0x00004200 ' ' ' '
0x00004300 ' ' ' '
0x00004400 ' ' ' '
0x00004500 ' ' ' '
0x00004600 ' ' ' '
0x00004700 ' ' ' '
0x00004800 ' ' ' '
0x00004900 ' ' ' '
0x00004a00 ' ' ' '
0x00004b00 ' ' ' '
0x00004c00 ' ' ' '
0x00004d00 ' ' ' '
0x00004e00 ' ' ' '
0x00004f00 ' ' ' '
0x00005000 ' ' ' '
0x00005100 ' ' ' '
0x00005200 ' ' ' '
0x00005300 ' ' ' '
0x00005400 ' ' ' '
0x00005500 ' ' ' '
0x00005600 ' ' ' '
0x00005700 ' ' ' '
0x00005800 ' ' ' '
0x00005900 ' ' ' '
0x00005a00 ' ' ' '
0x00005b00 ' ' ' '
0x00005c00 ' ' ' '
0x00005d00 ' ' ' '
0x00005e00 ' ' ' '
0x00005f00 ' ' ' '
0x00006000 ' ' ' '
0x00006100 ' ' ' '
0x00006200 ' ' ' '
0x00006300 ' ' ' '
0x00006400 ' ' ' '
0x00006500 ' ' ' '
0x00006600 ' ' ' '
0x00006700 ' ' ' '
0x00006800 ' ' ' '
0x00006900 ' ' ' '
0x00006a00 ' ' ' '
0x00006b00 ' ' ' '
0x00006c00 ' ' ' '
0x00006d00 ' ' ' '
0x00006e00 ' ' ' '
0x00006f00 ' ' ' '
0x00007000 ' ' ' '
0x00007100 ' ' ' '
0x00007200 ' ' ' '
0x00007300 ' ' ' '
0x00007400 ' ' ' '
0x00007500 ' ' ' '
0x00007600 ' ' ' '
0x00007700 ' ' ' '
0x00007800 ' ' ' '
0x00007900 ' ' ' '
0x00007a00 ' ' ' '
0x00007b00 ' ' ' '
0x00007c00 ' ' ' '
0x00007d00 ' ' ' '
0x00007e00 ' ' ' '
0x00007f00 ' ' ' '
0x00008000 ' ' ' '
0x00008100 ' ' ' '
0x00008200 ' ' ' '
0x00008300 ' ' ' '
0x00008400 ' ' ' '
0x00008500 ' ' ' '
0x00008600 ' ' ' '
0x00008700 ' ' ' '
0x00008800 ' ' ' '
0x00008900 ' ' ' '
0x00008a00 ' ' ' '
0x00008b00 ' ' ' '
0x00008c00 ' ' ' '
0x00008d00 ' ' ' '
0x00008e00 ' ' ' '
0x00008f00 ' ' ' '
0x00009000 ' ' ' '
0x00009100 ' ' ' '
0x00009200 ' ' ' '
0x00009300 ' ' ' '
0x00009400 ' ' ' '
0x00009500 ' ' ' '
0x00009600 ' ' ' '
0x00009700 ' ' ' '
0x00009800 ' ' ' '
0x00009900 ' ' ' '
0x00009a00 ' ' ' '
0x00009b00 ' ' ' '
0x00009c00 ' ' ' '
0x00009d00 ' ' ' '
0x00009e00 ' ' ' '
0x00009f00 ' ' ' '
0x0000a000 ' ' ' '
0x0000a100 ' ' ' '
0x0000a200 ' ' ' '
0x0000a300 ' ' ' '
0x0000a400 ' ' ' '
0x0000a500 ' ' ' '
0x0000a600 ' ' ' '
0x0000a700 ' ' ' '
0x0000a800 ' ' ' '
0x0000a900 ' ' ' '
0x0000aa00 ' ' ' '
0x0000ab00 ' ' ' '
0x0000ac00 ' ' ' '
0x0000ad00 ' ' ' '
0x0000ae00 ' ' ' '
0x0000af00 ' ' ' '
0x0000b000 ' ' ' '
0x0000b100 ' ' ' '
0x0000b200 ' ' ' '
0x0000b300 ' ' ' '
0x0000b400 ' ' ' '
0x0000b500 ' ' ' '
0x0000b600 ' ' ' '
0x0000b700 ' ' ' '
0x0000b800 ' ' ' '
0x0000b900 ' ' ' '
0x0000ba00 ' ' ' '
0x0000bb00 ' ' ' '
0x0000bc00 ' ' ' '
0x0000bd00 ' ' ' '
0x0000be00 ' ' ' '
0x0000bf00 ' ' ' '
0x0000c000 ' ' ' '
0x0000c100 ' ' ' '
0x0000c200 ' ' ' '
0x0000c300 ' ' ' '
0x0000c400 ' ' ' '
0x0000c500 ' ' ' '
0x0000c600 ' ' ' '
0x0000c700 ' ' ' '
0x0000c800 ' ' ' '
0x0000c900 ' ' ' '
0x0000ca00 ' ' ' '
0x0000cb00 ' ' ' '
0x0000cc00 ' ' ' '
0x0000cd00 ' ' ' '
0x0000ce00 ' ' ' '
0x0000cf00 ' ' ' '
0x0000d000 ' ' ' '
0x0000d100 ' ' ' '
0x0000d200 ' ' ' '
0x0000d300 ' ' ' '
0x0000d400 ' ' ' '
0x0000d500 ' ' ' '
0x0000d600 ' ' ' '
0x0000d700 ' ' ' '
0x0000d800 ' ' ' '
0x0000d900 ' ' ' '
0x0000da00 ' ' ' '
0x0000db00 ' ' ' '
0x0000dc00 ' ' ' '
0x0000dd00 ' ' ' '
0x0000de00 ' ' ' '
0x0000df00 ' ' ' '
0x0000e000 ' ' ' '
0x0000e100 ' ' ' '
0x0000e200 ' ' ' '
0x0000e300 ' ' ' '
0x0000e400 ' ' ' '
0x0000e500 ' ' ' '
0x0000e600 ' ' ' '
0x0000e700 ' ' ' '
0x0000e800 ' ' ' '
0x0000e900 ' ' ' '
0x0000ea00 ' ' ' '
0x0000eb00 ' ' ' '
0x0000ec00 ' ' ' '
0x0000ed00 ' ' ' '
0x0000ee00 ' ' ' '
0x0000ef00 ' ' ' '
0x0000f000 ' ' ' '
0x0000f100 ' ' ' '
0x0000f200 ' ' ' '
0x0000f300 ' ' ' '
0x0000f400 ' ' ' '
0x0000f500 ' ' ' '
0x0000f600 ' ' ' '
0x0000f700 ' ' ' '
0x0000f800 ' ' ' '
0x0000f900 ' ' ' '
0x0000fa00 ' ' ' '
0x0000fb00 ' ' ' '
0x0000fc00 ' ' ' '
0x0000fd00 ' ' ' '
0x0000fe00 ' ' ' '
0x0000ff00 ' ' ' '
0x00010000 ' ' ' '
 mmc_init
 Detected SD Card

 8149432 bytes read
 enter do_eth_down!! !

 ## Booting kernel from Legacy Image at 08000000 .. .
 ' 'Image Name: ' 'Linux-2. 6.3 5.1 3-cavm1.w hitney-ec
 ' 'Created: ' ' ' '2013-07-18  21:38:07 UTC
 ' 'Image Type: ' 'ARM Linux Kernel Image (uncompressed)
 ' 'Data Size: ' ' 8149368 Bytes =  7.8 MB
 ' 'Load Address: 02000000
 ' 'Entry Point:  02000000
 ' 'Loading Kernel Image . .. O K
 OK

 Starting kernel .. .

 Uncompressing Linux.. .  done, booting the kernel.
 [ 0.0 00000] Initializing cgroup subsys cpuset
 [ 0.0 00000] Initializing cgroup subsys cpu
 [ 0.0 00000] Linux version 2.6 .35. 13-cavm1. whitney-econa.w hitney-econa (builder@ubuntu) (gcc version 4.4 .1 (MontaVista Linux G++ 4.4 -) ) #2 Thu Jul 18 14:37:59 PDT 2013
 [ 0.0 00000] Whitney release v1. 1-beta5
 [ 0.0 00000] CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5387f
 [ 0.0 00000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
 [ 0.0 00000] Machine: Cavium Networks CNS3420 Validation Board
 [ 0.0 00000] Ignoring unrecognised tag 0x00000000
 [ 0.0 00000] Memory policy: ECC disabled, Data cache writealloc
 [ 0.0 00000] Built 1 zonelists in Zone order, mobility grouping on.   Total pages: 8188
 [ 0.0 00000] Kernel command line: console=ttyS0,38400 mem=512M root=/dev/md0 rootwait
 [ 0.0 00000] PID hash table entries: 2048 (order: -3, 8192 bytes)
 [ 0.0 00000] Dentry cache hash table entries: 65536 (order: 2, 262144 bytes)
 [ 0.0 00000] Inode-cache hash table entries: 32768 (order: 1, 131072 bytes)
 [ 0.0 00000] allocated 163840 bytes of page_cgroup
 [ 0.0 00000] please try 'cgroup_disable=memory 'option if you don't want memory cgroups
 [ 0.0 00000] Memory: 512MB = 512MB total
 [ 0.0 00000] Memory: 510528k/510528k available, 13760k reserved, 0K highmem
 [ 0.0 00000] Virtual kernel memory layout:
 [ 0.0 00000] ' '  vector  : 0xffff0000 - 0x00000000 ' '(  64 kB)
 [ 0.0 00000] ' '  fixmap  : 0xfff00000 - 0xfffe0000 ' '( 896 kB)
 [ 0.0 00000] ' '  DMA ' '  : 0xff600000 - 0xffe00000 ' '( ' '8 MB)
 [ 0.0 00000] ' '  vmalloc : 0xc0800000 - 0xe0000000 ' '( 504 MB)
 [ 0.0 00000] ' '  lowmem  : 0xa0000000 - 0xc0000000 ' '( 512 MB)
 [ 0.0 00000] ' '  modules : 0x9f000000 - 0xa0000000 ' '(  16 MB)
 [ 0.0 00000] ' ' ' ' .init : 0xa0008000 - 0xa04f0000 ' '(5024 kB)
 [ 0.0 00000] ' ' ' ' .text : 0xa04f0000 - 0xa0ac0000 ' '(5952 kB)
 [ 0.0 00000] ' ' ' ' .data : 0xa0b24000 - 0xa0b6dda0 ' '( 296 kB)
 [ 0.0 00000] Hierarchical RCU implementation.
 [ 0.0 00000]     RCU-based detection of stalled CPUs is disabled.
 [ 0.0 00000]     Verbose stalled-CPUs detection is disabled.
 [ 0.0 00000] NR_IRQS:160
 [ 0.0 00000] Console: colour dummy device 80x30
 [ 0.0 00000] console [ttyS0] enabled
 [ 0.0 20000] Calibrating delay loop. .. 2 79. 34 BogoMIPS (lpj=1396736)
 [ 0.2 60000] pid_max: default: 32768 minimum: 301
 [ 0.2 70000] Mount-cache hash table entries: 8192
 [ 0.2 80000] Initializing cgroup subsys ns
 [ 0.2 90000] Initializing cgroup subsys cpuacct
 [ 0.3 00000] Initializing cgroup subsys memory
 [ 0.3 10000] Initializing cgroup subsys devices
 [ 0.3 20000] Initializing cgroup subsys freezer
 [ 0.3 30000] Initializing cgroup subsys net_cls
 [ 0.3 40000] Initializing cgroup subsys blkio
 [ 0.3 50000] CPU: Testing write buffer coherency:
 [ 0.3 60000] ok
 [ 0.3 60000] CNS3XXX: no. o f cores (2) greater than configured maximum of 1 - clipping
 [ 0.3 70000] CPU1: Booted secondary processor
 [ 0.3 70000] <0> DP-core moving to WFI
 [ 0.3 70000] cvm_nas_init: cvm_nas_task init
 [ 0.3 80000] cvm_nas_init: proc init success
 [ 0.4 00000] devtmpfs: initialized
 [ 0.4 10000] NET: Registered protocol family 16
 [ 0.4 20000] L310 cache controller enabled
 [ 0.4 30000] l2x0: 8 ways, CACHE_ID 0x410000c4, AUX_CTRL 0x02540000, Cache size: 262144 B
 [ 0.4 40000] cns_rdma_init: start
 [ 0.4 50000] cns_rdma_init: reg1: virt=0xbc015d48
 [ 0.4 60000] cns_rdma_init: pre-allocating rdma_sg: 32*280=8960
[ 0.4 70000] cns_rdma_init: q1: virt=0xbc0b3a00, phy=0x3c0b3a00 -> 0x3c0b3bf0
 [ 0.4 80000] cns_rdma_init: done, err=0
 [ 0.4 90000] Cavium feature enabled: SOP-PURENAS, 64KB page size, Jumbo frame,
 [ 0.5 10000] bio: create slab <bio-0> at 0
 [ 0.5 20000] vgaarb: loaded
 [ 0.5 30000] SCSI subsystem initialized
 [ 0.5 40000] usbcore: registered new interface driver usbfs
 [ 0.5 50000] usbcore: registered new interface driver hub
 [ 0.5 60000] usbcore: registered new device driver usb
 [ 0.7 40000] raid6: int32x1 ' '  91 MB/s
 [ 0.9 20000] raid6: int32x2 ' ' 128 MB/s
 [ 1.1 00000] raid6: int32x4 ' ' 126 MB/s
 [ 1.2 80000] raid6: int32x8 ' ' 138 MB/s
 [ 1.4 60000] raid6: CNS-RAID ' ' 48 MB/s
 [ 1.4 70000] raid6: using algorithm CNS-RAID (48 MB/s)
 [ 1.4 80000] Switching to clocksource timer1
 [ 1.4 90000] Slow work thread pool: Starting up
 [ 1.5 00000] Slow work thread pool: Ready
 [ 1.5 10000] FS-Cache: Loaded
 [ 1.5 40000] NET: Registered protocol family 2
 [ 1.5 50000] IP route cache hash table entries: 16384 (order: 0, 65536 bytes)
 [ 1.5 60000] TCP established hash table entries: 16384 (order: 1, 131072 bytes)
 [ 1.5 70000] TCP bind hash table entries: 16384 (order: 0, 65536 bytes)
 [ 1.5 80000] TCP: Hash tables configured (established 16384 bind 16384)
 [ 1.5 90000] TCP reno registered
 [ 1.6 00000] UDP hash table entries: 4096 (order: 0, 65536 bytes)
 [ 1.6 10000] UDP-Lite hash table entries: 4096 (order: 0, 65536 bytes)
 [ 1.6 20000] NET: Registered protocol family 1
 [ 1.6 30000] RPC: Registered udp transport module.
 [ 1.6 40000] RPC: Registered tcp transport module.
 [ 1.6 50000] RPC: Registered tcp NFSv4.1 backchannel transport module.
 [ 2.6 30000] CNS3XXX PCIe Host Control Driver
 [ 2.6 40000] ===============================
 [ 2.6 50000] CNS3XXX PCIe support both internal and external clock.
 [ 2.6 60000] However, incorrect selection may result in system hang.
 [ 2.6 70000] If booting hangs, please select choose
 [ 2.6 80000] CONFIG_CNS3XXX_INTERNAL_CLOCK_SOURCE
 [ 2.6 90000] instead.
 [ 2.6 90000] ===============================
 [ 2.7 00000] PCI-E0 uses external clock source.
 [ 2.7 10000] PCIe: Port[0] Enable PCIe LTSSM
 [ 2.7 20000] PCIe: Port[0] Check data link layer.. .
 [ 2.7 30000] Link up.
 [ 2.7 30000] PCIe: Set Bridge Max_Payload_Size to 128 byte
 [ 2.7 40000] PCIe: Set Bridge Max_Read_Request_Size to 128 byte
 [ 2.7 50000] PCIe: Set Device Max_Payload_Size to 128 byte
 [ 2.7 60000] PCIe: Set Device Max_Read_Request_Size to 128 byte
 [ 2.7 70000] PCI: bus0: Fast back to back transfers disabled
 [ 2.7 80000] PCI: bus1: Fast back to back transfers disabled
 [ 2.7 90000] PCIe0: Bridge found.
 [ 2.8 00000] PCI: enabling device 0000:00:00. 0 (0140 -> 0143)
 [ 2.8 10000] PCIe0 map irq: 0000:00:00. 00 slot 0, pin 1, irq: 87
 [ 2.8 20000] PCIe0 map irq: 0000:01:00. 00 slot 0, pin 1, irq: 61
 [ 2.8 30000] pci 0000:00:00. 0: BAR 8: assigned [mem 0xa0000000-0xa00fffff]
 [ 2.8 40000] pci 0000:01:00. 0: BAR 0: assigned [mem 0xa0000000-0xa0007fff 64bit]
 [ 2.8 50000] pci 0000:01:00. 0: BAR 0: set to [mem 0xa0000000-0xa0007fff 64bit] (PCI address [0xa0000000-0xa0007fff]
 [ 2.8 60000] PCI-E1 uses external clock source.
 [ 2.8 70000] PCIe: Port[1] Enable PCIe LTSSM
 [ 2.8 80000] PCIe: Port[1] Check data link layer.. .
 [ 2.8 90000] Link up.
 [ 2.9 00000] PCIe: Set Bridge Max_Payload_Size to 128 byte
 [ 2.9 10000] PCIe: Set Bridge Max_Read_Request_Size to 128 byte
 [ 2.9 20000] PCIe: Set Device Max_Payload_Size to 128 byte
 [ 2.9 30000] PCIe: Set Device Max_Read_Request_Size to 128 byte
 [ 2.9 40000] PCI: bus0: Fast back to back transfers disabled
 [ 2.9 50000] PCI: bus1: Fast back to back transfers disabled
 [ 2.9 60000] PCIe1: Bridge found.
 [ 2.9 70000] PCIe0 map irq: 0000:00:00. 00 slot 0, pin 1, irq: 87
 [ 2.9 80000] PCIe0 map irq: 0000:01:00. 00 slot 0, pin 1, irq: 61
 [ 2.9 90000] PCIe1 map irq: 0001:00:00. 00 slot 0, pin 1, irq: 88
 [ 3.0 00000] PCIe1 map irq: 0001:01:00. 00 slot 0, pin 1, irq: 62
 [ 3.0 10000] pci 0001:00:00. 0: BAR 8: assigned [mem 0xb0000000-0xb00fffff]
 [ 3.0 20000] pci 0001:00:00. 0: BAR 7: assigned [io  0xbc000000-0xbc000fff]
 [ 3.0 30000] pci 0001:01:00. 0: BAR 2: assigned [mem 0xb0000000-0xb0001fff 64bit]
 [ 3.0 40000] pci 0001:01:00. 0: BAR 2: set to [mem 0xb0000000-0xb0001fff 64bit] (PCI address [0xb0000000-0xb0001fff]
 [ 3.0 50000] pci 0001:01:00. 0: BAR 0: assigned [mem 0xb0002000-0xb000207f 64bit]
 [ 3.0 60000] pci 0001:01:00. 0: BAR 0: set to [mem 0xb0002000-0xb000207f 64bit] (PCI address [0xb0002000-0xb000207f]
 [ 3.0 70000] pci 0001:01:00. 0: BAR 4: assigned [io  0xbc000000-0xbc00007f]
 [ 3.0 80000] pci 0001:01:00. 0: BAR 4: set to [io  0xbc000000-0xbc00007f] (PCI address [0xbc000000-0xbc00007f]
 [ 3.0 90000] pci 0001:00:00. 0: PCI bridge to [bus 01-01]
 [ 3.1 00000] pci 0001:00:00. 0: ' 'bridge window [io  0xbc000000-0xbc000fff]
 [ 3.1 10000] pci 0001:00:00. 0: ' 'bridge window [mem 0xb0000000-0xb00fffff]
 [ 3.1 20000] pci 0001:00:00. 0: ' 'bridge window [mem pref disabled]
 [ 3.1 30000] pci 0001:00:00. 0: PCI bridge to [bus 01-01]
 [ 3.1 40000] pci 0001:00:00. 0: ' 'bridge window [io  0xbc000000-0xbc000fff]
 [ 3.1 50000] pci 0001:00:00. 0: ' 'bridge window [mem 0xb0000000-0xb00fffff]
 [ 3.1 60000] pci 0001:00:00. 0: ' 'bridge window [mem pref disabled]
 [ 3.1 70000] PCI: enabling device 0001:00:00. 0 (0140 -> 0143)
 [ 3.1 80000] VFS: Disk quotas dquot_6.5 .2
 [ 3.1 90000] Dquot-cache hash table entries: 16384 (order 0, 65536 bytes)
 [ 3.2 00000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
 [ 3.2 20000] Installing knfsd (copyright (C) 1996 okir@monad. swb.d e).
 [ 3.2 30000] NTFS driver 2.1 .29 [Flags: R/W].
 [ 3.2 40000] fuse init (API version 7.1 4)
 [ 3.2 50000] SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
 [ 3.2 60000] SGI XFS Quota Management subsystem
 [ 3.2 70000] GFS2 (built Jul 18 2013 14:09:50) installed
 [ 3.2 80000] msgmni has been set to 996
 [ 3.2 90000] alg: No test for stdrng (krng)
 [ 3.3 00000] io scheduler noop registered
 [ 3.3 10000] io scheduler deadline registered (default)
 [ 3.4 00000] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
 [ 3.4 10000] serial8250: ttyS0 at MMIO 0x78000000 (irq = 45) is a 16550A
 [ 3.4 20000] brd: module loaded
 [ 3.4 40000] loop: module loaded
 [ 3.4 50000] drbd: initialized.  Version: 8.3 .8 (api:88/proto:86-94)
 [ 3.4 60000] drbd: built-in
 [ 3.4 70000] drbd: registered as block device major 147
 [ 3.4 80000] drbd: minor_table @ 0xbc0383e0
 [ 3.4 90000] Loading iSCSI transport class v2. 0-870.
 [ 3.5 10000] iscsi: registered transport (tcp)
 [ 3.5 20000] cns3xxx_spi_probe: setup CNS3XXX SPI Controller in polling mode, w/o DMA
 [ 3.5 30000] SPI bit rate = 116/64 Mhz
 [ 3.5 40000] m25p80 spi1. 0: found mx25l4005a, expected m25p80
 [ 3.5 50000] m25p80 spi1. 0: mx25l4005a (512 Kbytes)
 [ 3.5 60000] Creating 3 MTD partitions on "spi1.0 ":
 [ 3.5 70000] 0x000000000000-0x000000030000 : "SPI-UBoot"
 [ 3.5 80000] 0x000000030000-0x000000040000 : "SPI-UBootEnv"
 [ 3.5 90000] 0x000000040000-0x000000080000 : "SPI-FileSystem"
 [ 3.6 10000] CNS3XXX AHCI SATA low-level driver
 [ 3.6 20000] SATA Port0 Spread-spectrum : Disable
 [ 3.6 30000] SATA Port0 Spread-spectrum : Enable
 [ 3.6 40000] SATA Port1 Spread-spectrum : Disable
 [ 3.6 50000] SATA Port1 Spread-spectrum : Enable
 [ 3.6 70000] cns3xxx-ahci cns3xxx-ahci. 0: forcing PORTS_IMPL to 0x3
 [ 3.6 80000] CPU clock : 700
 [ 3.6 90000] *** Timer 1ms: 100000(0x186a0) ***
 [ 3.7 00000] *** Set to: 350000(0x55730) ***
 [ 3.7 10000] cns3xxx-ahci cns3xxx-ahci. 0: AHCI 0001. 0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
 [ 3.7 20000] cns3xxx-ahci cns3xxx-ahci. 0: flags: ncq sntf pm led clo only pmp pio slum part
 [ 3.7 30000] scsi0 : cns3xxx-ahci
 [ 3.7 40000] scsi1 : cns3xxx-ahci
 [ 3.7 50000] ata1: SATA max UDMA/133 ahci bar m16777216@0x83000000 port 0x83000100 irq 65
 [ 3.7 60000] ata2: SATA max UDMA/133 ahci bar m16777216@0x83000000 port 0x83000180 irq 65
 [ 3.7 80000] tun: Universal TUN/TAP device driver, 1.6
 [ 3.7 90000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm. com>
 [ 3.8 00000] mice: PS/2 mouse device common for all mice
 [ 3.8 10000] CNS3XXX Real Time Clock, (c) 2009 Cavium Networks
 [ 3.8 20000] rtc irq:23
 [ 3.8 20000] cns3xxx-rtc cns3xxx-rtc: rtc core: registered cns3xxx-rtc as rtc0
 [ 4.3 30000] i2c /dev entries driver
 [ 4.3 50000] adt7475 0-002e: ADT7473 device, revision 0
 [ 4.3 60000] adt7475 0-002e: Optional features: fan4 pwm2
 [ 4.3 70000] CNS3XXX Watchdog Timer, noboot=0 margin=60 sec (nowayout= 0)
 [ 4.3 80000] watchdog: cns3xxx_wdt_probe
 [ 4.3 90000] watchdog irq = 30
 [ 4.4 00000] watchdog start_regs  = 0xC0A00600
 [ 4.4 70000] Watchdog timer frequency : 349.9 7MHz.
 [ 4.4 80000] ata1: SATA link down (SStatus 0 SControl 300)
 [ 4.4 90000] md: linear personality registered for level -1
 [ 4.5 00000] md: raid0 personality registered for level 0
 [ 4.5 10000] md: raid1 personality registered for level 1
 [ 4.5 20000] md: raid10 personality registered for level 10
 [ 4.5 30000] xor: measuring software checksum speed
 [ 4.5 90000] ' ' arm4regs  : ' '448. 000 MB/sec
 [ 4.6 50000] ' ' 8regs ' '  : ' '275. 200 MB/sec
 [ 4.7 10000] ' ' 32regs ' ' : ' '300. 800 MB/sec
 [ 4.7 70000] ' ' CNS-RAID  : ' '454. 400 MB/sec
 [ 4.7 80000] xor: using function: CNS-RAID (454. 400 MB/sec)
 [ 4.7 90000] md: raid6 personality registered for level 6
 [ 4.8 00000] md: raid5 personality registered for level 5
 [ 4.8 10000] md: raid4 personality registered for level 4
 [ 4.8 20000] device-mapper: ioctl: 4.1 7.0 -ioctl (2010-03-05) initialised: dm-devel@redhat.c om
 [ 4.8 30000] sdhci: Secure Digital Host Controller Interface driver
 [ 4.8 40000] sdhci: Copyright(c) Pierre Ossman
 [ 4.8 50000] sdhci-cns3xxx, (c) 2009 Cavium Networks
 [ 4.8 70000] mmc0: SDHCI controller on cns3xxx [sdhci-cns3xxx. 0] using PIO
 [ 4.8 80000] usbcore: registered new interface driver hiddev
 [ 4.9 00000] usbcore: registered new interface driver usbhid
 [ 4.9 10000] usbhid: USB HID core driver
 [ 4.9 20000] TCP cubic registered
 [ 4.9 30000] NET: Registered protocol family 17
 [ 4.9 40000] VFP support v0. 3: implementor 41 architecture 1 part 20 variant b rev 4
 [ 4.9 60000] cns3xxx-rtc cns3xxx-rtc: setting system clock to 2015-11-29 21:51:23 UTC (1448833883)
 [ 5.0 00000] mmc0: new high speed SD card at address 0007
 [ 5.0 10000] mmcblk0: mmc0:0007 SD256 246 MiB
 [ 5.0 20000]  mmcblk0: p1 p2 p3 p4
 [34.1 60000] ata2: SATA link down (SStatus 0 SControl 300)
 Starting initramfs boot. ..
 rootdelay parameter was not passed on kernel command line - assuming 2s delay
 If you would like to avoid this delay, pass explicit rootdelay=0
 Waiting 2 seconds for devices to settle. ..
 initramfs: Creating device nodes:
 initramfs: Loading /initrd.d /60-sop.s h module
 [36.3 80000] GPIOB_PIN_EN_REG: c430ff80
 [36.3 90000]
 [36.3 90000] Do power enable
 [36.4 00000] Disabling MAC Ports
 [36.4 10000] Suspending DMA
 [36.4 20000] Waiting for DMA Status not IDLE
 [36.4 30000]  0 0
 [36.4 40000]  done
 [36.4 40000] Do power reset
 [36.4 50000] do cns3xxx gsw memory test
 [36.4 60000] cns3xxx gsw memory test is complete
 [36.4 70000] CNS3XXX PSE: Initialize init_port: 7
 [36.4 80000] MAC 0
 [36.4 90000] phy_id: 1c
 [36.4 90000] Initialize RTL8211
 [36.5 00000] do_ssc_test[64]: phy_addr = 00000001
 [36.5 10000] MAC 1
 [36.5 20000] phy_id: 1c
 [36.5 20000] Initialize RTL8211
 [36.5 30000] do_ssc_test[64]: phy_addr = 00000002
 [36.5 40000] MAC 2
 [36.5 50000] vid: 1
 [36.5 50000] pmap: 0x4
 [36.5 50000] age_field: 7
 [36.5 50000] vlan_mac: 1
 [36.5 50000] filter: 0
 [36.5 50000] mac addr: 0:10:75:37:a9:46
 [36.5 60000] cns3xxx_probe: using uboot env MAC addr: 00:10:75:37:a9:46
 [36.5 70000] vid: 2
 [36.5 70000] pmap: 0x4
 [36.5 70000] age_field: 7
 [36.5 70000] vlan_mac: 1
 [36.5 70000] filter: 0
 [36.5 70000] mac addr: 0:10:75:37:a9:47
 [36.5 80000] cns3xxx_probe: using uboot env MAC addr: 00:10:75:37:a9:47
 [36.5 90000]  pse register_pm_notifer 0
 [36.6 00000] CPU0: Initializing DataPlane.. .
 [36.6 10000] dataPlaneInit: Initializing the rings
 [36.6 20000] dataPlaneInit: Page Ring Fill for the first time
 [36.6 30000] .. . cns3xxx_setup_all_tx_resources
 [36.6 40000] .. . cns3xxx_setup_all_rx_resources ## ring_num : 0
 [36.6 60000] CPC: rx resources setup done
 [36.6 70000] dataPlaneInit: Page Ring Fill for the second time
 [36.6 80000] CPU1 DP-6. 680000] CPout P-c WFI c<6>[36.6 80000] oming out of WFI
 [36.6 80000] CPU1: dataPlaneEntry .. ..
 [36.6 80000]  Start Address of seg_hdr = a0bc8160, End addr = a0be815f
 initramfs: Loading /initrd.d /80-md. sh module
 No bootable drives
 initramfs: Loading /initrd.d /85-nfsboot.s h module

INIT: version 2.8 6 booting

 Please wait: booting.. .
 Traceback (most recent call last):
  File "/usr/lib/python2.6 /site-packages/shares/server. py", line 86, in <module>
 ' ' server = Server(socketname, ServerHandler)
  File "/usr/lib/python2.6 /SocketServer.p y", line 400, in __init__
 ' ' self. server_bind()
  File "/usr/lib/python2.6 /SocketServer.p y", line 411, in server_bind
 ' ' self. socket. bind(self.s erver_address)
  File "<string>", line 1, in bind
 socket. error: [Errno 30] Read-only file system
 rm: cannot remove /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 chown: changing ownership of /var/spool/cups: Read-only file system
 chmod: changing permissions of /var/spool/cups: Read-only file system
 chown: changing ownership of /var/spool/cups/tmp: Read-only file system
 chmod: changing permissions of /var/spool/cups/tmp: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 /etc/init.d /rcS: /etc/rcS. d/S02populate-volatile. sh: line 1: can't create /etc/volatile.c ache: Read-only file system
 mount: sysfs already mounted or /sys busy
 mount: according to mtab, sysfs is already mounted on /sys
 Starting udev
 [44.6 90000] PCI: enabling device 0000:01:00. 0 (0140 -> 0142)
 [44.7 00000] xhci_hcd 0000:01:00. 0: xHCI Host Controller
 [44.7 10000] xhci_hcd 0000:01:00. 0: new USB bus registered, assigned bus number 1
 [44.7 80000] xhci_hcd 0000:01:00. 0: irq 61, io mem 0xa0000000
 [44.7 90000] hub 1-0:1.0 : USB hub found
 [44.8 00000] hub 1-0:1.0 : 4 ports detected
 [44.9 70000] PCI: enabling device 0001:01:00. 0 (0140 -> 0143)
 [45.4 90000] scsi2 : sata_sil24
 [45.5 00000] ata3: SATA max UDMA/100 host m128@0xb0002000 port 0xb0000000 irq 62
 [47.7 00000] ata3: SATA link down (SStatus 0 SControl 0)
 touch: cannot touch /tmp/stype: Read-only file system
 Remounting root file system. ..
 umount: /dev/md2: not found
 mdadm: error opening /dev/md2: No such file or directory
 Starting up raid using
 + d1=sda
 + d2=sdb
 + d3=sdc
 + d4=sdd
 + devcnt=0
 + params=<drives name="set">
 + eval dir=/sys/block/$d1
 + dir=/sys/block/sda
 + [ ! -d /sys/block/sda ]
 + continue
 + eval dir=/sys/block/$d2
 + dir=/sys/block/sdb
 + [ ! -d /sys/block/sdb ]
 + continue
 + eval dir=/sys/block/$d3
 + dir=/sys/block/sdc
 + [ ! -d /sys/block/sdc ]
 + continue
 + eval dir=/sys/block/$d4
 + dir=/sys/block/sdd
 + [ ! -d /sys/block/sdd ]
 + continue
 + params=<drives name="set"></drives>
 + [ 0 -ge 1 ]
 + test true = true
 + cat /proc/mdstat
 Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
 unused devices: <none>
 + sh /usr/sbin/sys_part_recover
 + exit 0
 mkdir: cannot create directory /VolumeData: Read-only file system
 Setting up IP spoofing protection: rp_filter.
 Configuring network interfaces. .. / usr/bin/restart_mini_dlna: cd: line 12: can't cd to /usr/config/backupconfig
 /
 run-parts: /etc/network/if-up. d/20-upnp exited with code 1
 done.
 Failed to kill daemon. ( No such file or directory)
 [50.4 30000] dev->name: eth0 ## dev->features: 1116179
 Failed to kill daemon. ( No such file or directory)
 [50.6 00000] dev->name: eth1 ## dev->features: 1116179
 Starting portmap daemon: portmap.
 rm: cannot remove directory /tmp: Read-only file system
 ln: creating symbolic link /tmp/tmp: Read-only file system
 Collected errors:
 * opkg_conf_init: Creating temp dir /tmp/opkg-deRPss failed: Read-only file system
 rm: cannot remove /etc/rcS. d/S98configure: Read-only file system
 Letting uboot know initramfs kernel was successful
 [55.3 90000] EXT4-fs (mmcblk0p4): warning: checktime reached, running e2fsck is recommended
 [55.4 50000] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. O pts: (null)
 rm: cannot remove /s
INIT: Entering runlevel: 5

 Starting system message bus: dbus.
 /etc/rc5. d/S20mountcomplete: line 5: can't create /etc/.u sb_lck: Read-only file system
 Starting S.M .A.R .T.  daemon: smartd (failed)
 * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
 '27'[A'27'[74G[ ok ]
 Starting Lighttpd Web Server: lighttpd.
 /usr/bin/serialno.s h: line 15: can't create /home/SN. txt: Read-only file system
 /etc/rc5. d/S99sysready.s h: line 11: can't create /etc/dflags/sdflag: Read-only file system
 rm: cannot remove /tmp/.v olume_migrate: Read-only file system


 MontaVista(R) Linux(R) 6.0


MontaVista Linux 6 . dev-snapshot-20130718 whitney-econa-4bay console



whitney-econa-4bay login:

password

The login is:

user: root
pass: admin

Then you should have full access to everything which is of interest to you.

IP over serial connection / RS232 via SLIP
posted on 2015-10-10 03:31:04

As of 2015, this is very likely stuff which is needed anymore. Still, for documentation reasons:

slattach /dev/ttyUSB0 -p slip -s 9600 -dL &
# interface 'sl0' just got created now
ifconfig sl0 <IP>

Repeat this on the other host, and you should be able to send ping over your serial connection.

tput reset: reset RS232 serial terminal
posted on 2015-10-06 22:17:50

When serial terminals seem to hang:

tput reset > /dev/ttyXXX
fbsd: use usb-to-serial adapter
posted on 2015-09-21 22:12:00

To use a usb-to-serial adapter, make sure that the needed kernelmodule exists. Look it up with kldstat, and if it doesn't kldload ucom should help.

Afterwards use cu to connect, the device should pop up as /dev/cuaU0:

cu -l /dev/cuaU0 -s 9600

should do the trick.

RS232: Create a loopback device
posted on 2015-09-21 00:33:27

loopback layout

To create a loopback device out of a regular null modem cable, you have to bridge three pin groups:

  • 2 and 3 (RX and TX)
  • 1 and 4 and 6 (DCD and DTR and DSR)
  • 7 and 8 and 9 (RTS and CTS and RI)

pinouts

male:

1 2 3 4 5
 6 7 8 9

female:

5 4 3 2 1
 9 8 7 6

pin usage

The pins on an DB9 plug are, for the sake of completeness:

  • 1 DCD = data carrier detect
  • 2 RX = receive
  • 3 TX = transmit
  • 4 DTR = data terminal ready
  • 5 GND = ground
  • 6 DSR = data set ready
  • 7 RTS = request to send
  • 8 CTS = clear to send
  • 9 RI = ring indicator

1 and 9 can be blank, but it will still work. This is for rs232, for rs422 or rs485 bridging is different.

A lot more info can be found here.

cisco: factory reset for ASA 5510
posted on 2015-09-20 19:30:59

For factory resetting an 'Adaptive Security Appliance', some CLI work has to be done. In the following no prior configuration knowledge is assumed.

get a serial connection

Cisco switches are shipped with a blue female DB9-to-RJ45 adapter cable. (A null modem will not help here, as you need a RJ45 plug at the end which you connect to the ASA's CONSOLE port.)

Such a cable has to be connected to your ASA, and either your serial port of your comp. Since most desktops/laptops do not ship with an rs232 interface anymore, get yourself an male-male USB-to-DB9 adapter.

If you do not have the original cisco cable, use a comparable one: Juniper i.e. ships regular RJ45 ethernet cables plus an female-female RJ45-to-DB9 adapter which works just the same.

In the following a linux operating system is assumed; on windows this works, too. However you have to plug in the adapter, and find out which COM port is used via the device manager, you need this information later when using PuTTy.

On linux you can either go along with minicom, or just use screen. (I have the slight feeling I have written down all this somewhere else already on the blog...)

#as root
screen /dev/ttyUSB0 9600

... and you are connected. Cisco devices in general use 9600 baud, 8bit, 1 stop bit, no flow control. Once I read on official docs about 2 stop bits, but it worked with 1, so go figure it out from the manual if you have trouble with these settings.

step by step

  1. power cycle - turn it off and on again, so it freshly boots after you have connected the serial cable

  2. press ESC here during boot:

    Evaluating BIOS Options ... Launch BIOS Extension to setup ROMMON

    Cisco Systems ROMMON Version (1.0(10)0) #0: Fri Mar 25 23:02:10 PST 2005

    Platform ASA5510

    Use BREAK or ESC to interrupt boot. Use SPACE to begin boot immediately.

  3. confirm current configuration register, if promted if you wish to change anything, answer with 'no':

    rommon #0> confreg

    Current Configuration Register: 0x00000001 Configuration Summary: boot default image from Flash

    Do you wish to change this configuration? y/n [n]: n

    rommon #1>

  4. enter: confreg 0x41

  5. enter: boot

  6. after the appliance has rebooted, you should see this prompt: ciscoasa>

  7. enter privileged mode: enable

  8. erase startup config: write erase

  9. enter config mode: configure terminal

  10. config-register 0x01

  11. exit config mode: exit

  12. confirm via show version, see the end: Configuration register is 0x41 (will be 0x1 at next reload)

  13. save: write

  14. reboot: reload

Done. You now have a fresh ASA at your disposal.

Speedport w701 rs232 pin location
posted on 2015-08-09 00:17:33

For documentation purposes:

        Top right of PCB
_________________________
                         |
F     R A M              |
L                WIFI    |
A                CHIP    |
S        SoC             |
H        CPU  XTal       |
                 4  GND  |
                 3  TX   |
                 2  RX   |
                 1  VCC  |
                         |
              ADM6996    |
                         |
                         |
                         |
                         |
                         |
                         |
                         |
                         |
                         |
                         |
                         |
                         |
                         |
_________________________|

An rs232 bus is used there: GND, TX, RX is what you searched for. Found here.

ASA: access console via serial port
posted on 2015-02-21 18:02:56

To connect to one of Cisco's ASA's (short for Adaptive Security Appliance), you have several options.

Either use the management ethernet port (labelled MGMT) or via the serial interface (CONSOLE), which are both rj45 outlets. This methods of access are the same for most other hardware appliances.

If the ASA was not accessed in a while and the network config was lost (or if it's a leftover from an old customer), you are likely unable to access it through the management port, because you do not know the subnet you have to be in to connect to it, anymore.

If you still happen to know your credentials, you might try the serial interface.

If your computer has a serial interface, too, you only need a rs232-to-rj45 cable for the asa. If you have a laptop its much more likely that you just lack the serial port, you need an adapter from serial to ethernet, plus an adapter from serial-to-usb.

From here the steps differ, depending on your operating system.

windows

  1. plug in the adapter, which is connected to the devices CONSOLE port, too
  2. open the device manager
  3. look up which COM port just got added
  4. open putty
  5. connection destination is i.e. COM-7, if thats the one you saw
  6. enter baud rate (9600 for cisco devices AFAIK)
  7. connect

You should be greeted by a prompt of the ASA. Hit space, in case putty does not update your console window.

linux

  1. plug in the adapter connected to the ASA
  2. ls -alh /dev/tty*
  3. You should see a device called something like /dev/ttyUSB0
  4. sudo screen /dev/ttyUSB0 9600, with baud rate of 9600 like mentioned in the windows manual above
  5. you should be connected, hit spacebar if nothing is shown.

If you happen to have problems to find out which device is added when you insert the adapter into your usb port, try:

watch --differences -n.2 ls /dev/tty*

This blog covers .csv, .htaccess, .pfx, .vmx, /etc/crypttab, /etc/network/interfaces, /etc/sudoers, /proc, 10.04, 14.04, AS, ASA, ControlPanel, DS1054Z, GPT, HWR, Hyper-V, IPSEC, KVM, LSI, LVM, LXC, MBR, MTU, MegaCli, PHP, PKI, R, RAID, S.M.A.R.T., SNMP, SSD, SSL, TLS, TRIM, VEEAM, VMware, VServer, VirtualBox, Virtuozzo, XenServer, acpi, adaptec, algorithm, ansible, apache, apachebench, apple, arcconf, arch, architecture, areca, arping, asa, asdm, awk, backup, bandit, bar, bash, benchmarking, binding, bitrate, blackarmor, blowfish, bochs, bond, bonding, booknotes, bootable, bsd, btrfs, buffer, c-states, cache, caching, ccl, centos, certificate, certtool, cgdisk, cheatsheet, chrome, chroot, cisco, clamav, cli, clp, clush, cluster, coleslaw, colorscheme, common lisp, console, container, containers, controller, cron, cryptsetup, csync2, cu, cups, cygwin, d-states, database, date, db2, dcfldd, dcim, dd, debian, debug, debugger, debugging, decimal, desktop, df, dhclient, dhcp, diff, dig, display manager, dm-crypt, dmesg, dmidecode, dns, docker, dos, drivers, dtrace, dtrace4linux, du, dynamictracing, e2fsck, eBPF, ebook, efi, egrep, emacs, encoding, env, error, ess, esx, esxcli, esxi, ethtool, evil, expect, exportfs, factory reset, factory_reset, factoryreset, fail2ban, fbsd, fedora, file, filesystem, find, fio, firewall, firmware, fish, flashrom, forensics, free, freebsd, freedos, fritzbox, fsck, fstrim, ftp, ftps, g-states, gentoo, ghostscript, git, git-filter-branch, github, gitolite, gnutls, gradle, grep, grml, grub, grub2, guacamole, hardware, haskell, hdd, hdparm, hellowor, hex, hexdump, history, howto, htop, htpasswd, http, httpd, https, i3, icmp, ifenslave, iftop, iis, imagemagick, imap, imaps, init, innoDB, inodes, intel, ioncube, ios, iostat, ip, iperf, iphone, ipmi, ipmitool, iproute2, ipsec, iptables, ipv6, irc, irssi, iw, iwconfig, iwlist, iwlwifi, jailbreak, jails, java, javascript, javaws, js, juniper, junit, kali, kde, kemp, kernel, keyremap, kill, kpartx, krypton, lacp, lamp, languages, ldap, ldapsearch, less, leviathan, liero, lightning, links, linux, linuxin3months, lisp, list, livedisk, lmctfy, loadbalancing, locale, log, logrotate, looback, loopback, losetup, lsblk, lsi, lsof, lsusb, lsyncd, luks, lvextend, lvm, lvm2, lvreduce, lxc, lxde, macbook, macro, magento, mailclient, mailing, mailq, manpages, markdown, mbr, mdadm, megacli, micro sd, microsoft, minicom, mkfs, mktemp, mod_pagespeed, mod_proxy, modbus, modprobe, mount, mouse, movement, mpstat, multitasking, myISAM, mysql, mysql 5.7, mysql workbench, mysqlcheck, mysqldump, nagios, nas, nat, nc, netfilter, networking, nfs, nginx, nmap, nocaps, nodejs, numberingsystem, numbers, od, onyx, opcode-cache, openVZ, openlierox, openssl, openvpn, openvswitch, openwrt, oracle linux, org-mode, os, oscilloscope, overview, parallel, parameter expansion, parted, partitioning, passwd, patch, pdf, performance, pfsense, php, php7, phpmyadmin, pi, pidgin, pidstat, pins, pkill, plesk, plugin, posix, postfix, postfixadmin, postgres, postgresql, poudriere, powershell, preview, profiling, prompt, proxmox, ps, puppet, pv, pvecm, pvresize, python, qemu, qemu-img, qm, qmrestore, quicklisp, r, racktables, raid, raspberry pi, raspberrypi, raspbian, rbpi, rdp, redhat, redirect, registry, requirements, resize2fs, rewrite, rewrites, rhel, rigol, roccat, routing, rs0485, rs232, rsync, s-states, s_client, samba, sar, sata, sbcl, scite, scp, screen, scripting, seafile, seagate, security, sed, serial, serial port, setup, sftp, sg300, shell, shopware, shortcuts, showmount, signals, slattach, slip, slow-query-log, smbclient, snmpget, snmpwalk, software RAID, software raid, softwareraid, sophos, spacemacs, spam, specification, speedport, spi, sqlite, squid, ssd, ssh, ssh-add, sshd, ssl, stats, storage, strace, stronswan, su, submodules, subzone, sudo, sudoers, sup, swaks, swap, switch, switching, synaptics, synergy, sysfs, systemd, systemtap, tar, tcpdump, tcsh, tee, telnet, terminal, terminator, testdisk, testing, throughput, tmux, todo, tomcat, top, tput, trafficshaping, ttl, tuning, tunnel, tunneling, typo3, uboot, ubuntu, ubuntu 16.04, udev, uefi, ulimit, uname, unetbootin, unit testing, upstart, uptime, usb, usbstick, utf8, utm, utm 220, ux305, vcs, vgchange, vim, vimdiff, virtualbox, virtualization, visual studio code, vlan, vmstat, vmware, vnc, vncviewer, voltage, vpn, vsphere, vzdump, w, w701, wakeonlan, wargames, web, webdav, weechat, wget, whois, wicd, wifi, windowmanager, windows, wine, wireshark, wpa, wpa_passphrase, wpa_supplicant, x2x, xfce, xfreerdp, xmodem, xterm, xxd, yum, zones, zsh

View posts from 2017-02, 2017-01, 2016-12, 2016-11, 2016-10, 2016-09, 2016-08, 2016-07, 2016-06, 2016-05, 2016-04, 2016-03, 2016-02, 2016-01, 2015-12, 2015-11, 2015-10, 2015-09, 2015-08, 2015-07, 2015-06, 2015-05, 2015-04, 2015-03, 2015-02, 2015-01, 2014-12, 2014-11, 2014-10, 2014-09, 2014-08, 2014-07, 2014-06, 2014-05, 2014-04, 2014-03, 2014-01, 2013-12, 2013-11, 2013-10


Unless otherwise credited all material Creative Commons License by sjas