Serial console TsP

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 : TSmike 2013-03-30: You may need to enter your username and password using the "uuu=" and "ppp=" parameters http://{TeraStation_Pro_IP}/cgi-bin/task.cgi?uuu=admin&ppp=password&task=console&param=on otherwise you may see task:auth_fail - param:auth_fail
 * Open your browser, and open this page : http://{TeraStation_Pro_IP}/cgi-bin/task.cgi?task=console&param=on*

Once the switching is done, you can reboot your TsP (A power-off will reset the serial switchin to UPS function, but a reboot will keep the setting as defined by the user). You'll then be able to see console output using HyperTerminal application.
 * Log in telnet/SSH and run this command : /usr/sbin/miconapl -a serialmode_console

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. Note: This also works on the TSP2, except the serial port should be set to 115200 bps, 8 bit, 1 stop bit, no parity, no flow control.

Console output
Here are some console output logs : BOOTCODE 1.24 (Jul 6 2006 - 15:30:34) romsum=0b521f8f Setup MMU Memtest64bit MemtestData aaaaaaaa 55555555 ffffffff 00000000 MemtestAdrs isUseRevClock=0 idsel=11:816910ec idsel=12:35121095 idsel=13:35121095 idsel=14:00351033 ******* Product Information ******* -- 		 Product Name: TS-TGL(IENARI) VER: 3.09 Date: 2006/7/18 9:29:29 -- 		 Firmware check:done. >>root=/dev/md0 hit any key to Enter cmd mode. Now Loading...zimage_start=FFC0006C zimage_size=000FD3BD done. Now Booting
 * The bootloader

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-7.0.13.0500039 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
 * The kernel startup (just few lines)