Serial console TsP

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 14:28, 3 November 2006 by Sylver (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

What is the Serial Console

The serial console is allowing to get message output from the boot process. You can check the boot log (you can even interrupt it to enter some commands), and also the kernel boot log. It's mainly usefull when developping some boot or kernel modifications, this way, if something goes wrong at the startup (aka kernel panic), you'll be able to see where it stopped.

How to get a serial console log on the TsP

Many Bufalo's devices need some soldering work to get the console output over the serial link, the good news with the TeraStation Pro is that you don't even need to open the box to get serial console access because you can use the UPS serial port ! The "bad" news is that you need to start the TsP at least one time to switch the serial link from UPS function to serial function. There are 2 methods to switch the serial link to console mode :

Once the switching is done, you can reboot your TsP (A power-off will reset the serial switchin to UPS function, a rebbot will keep the setting as defined by the user). You'll then be able to see console output using HyperTerminal application. The serial port configuration is the following :

57600bps, 8bit, 1 stop bit, no parity, no flow control

You'll also need to connect your computer to the TsP using a cross over serial cable.

Console output

Here are some console output logs :

  • The bootloader
BOOTCODE 1.24 (Jul  6 2006 - 15:30:34) 
romsum=0b521f8f Setup MMU 
aaaaaaaa 55555555 ffffffff 00000000 MemtestAdrs 

******* Product Information ******* 
Product Name: TS-TGL(IENARI) 
VER: 3.09 
Date: 2006/7/18 9:29:29 
Firmware check:done. 

hit any key to Enter cmd mode. 
Now Loading...zimage_start=FFC0006C 
Now Booting
  • The kernel startup (just few lines)
KERNELBASE=c0000000 r6=900030 r7=900052
cmd_line=root=/dev/md0 panic=5 BOOTVER=1.24
Memory BAT mapping: BAT2=128Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.20_mvl31-ppc_terastation (root@develop) (gcc version 3.3.1 (MontaVista 3.3.1- 2005-01-13)) #3 Tue Jul 18 09:29:11 JST 2006
BUFFALO Network Attached Storage Series
(C) 2002-2005 BUFFALO INC.
On node 0 totalpages: 32768
zone(0): 32768 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/md0 panic=5 BOOTVER=1.24
OpenPIC Version 1.2 (1 CPUs and 10 IRQ sources) at 80040000
decrementer frequency = 32.768000 MHz 
Calibrating delay loop... 174.48 BogoMIPS
Memory: 125200k available (1692k kernel code, 532k data, 68k init, 0k highmem)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Buffer-cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
BUFFALO INC. RTC driver ver 1.00
MICON V2 (C) BUFFALO INC. V.1.00 installed.
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
LSP Revision 1
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded