Difference between revisions of "Serial console TsP"
(removed spam) |
(→How to get a serial console log on the TsP) |
||
(37 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Template:Articles|TerastationProV1}} | ||
+ | [[Image:Ts-pro-1.jpg|frame|right]] | ||
+ | __TOC__ | ||
== What is the Serial Console == | == 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. | 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. | ||
Line 6: | Line 9: | ||
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''. | 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 : | There are 2 methods to switch the serial link to console mode : | ||
− | * Open your browser, and open this page : http://{TeraStation_Pro_IP}/cgi-bin/task.cgi?task=console | + | * Open your browser, and open this page : http://{TeraStation_Pro_IP}/cgi-bin/task.cgi?task=console¶m=on* |
+ | * Log in telnet/SSH and run this command : /usr/sbin/miconapl -a serialmode_console | ||
+ | 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. | ||
+ | |||
+ | 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 : | ||
+ | * The bootloader | ||
+ | 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 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-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 |
Revision as of 06:26, 13 November 2012
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 :
- Open your browser, and open this page : http://{TeraStation_Pro_IP}/cgi-bin/task.cgi?task=console¶m=on*
- Log in telnet/SSH and run this command : /usr/sbin/miconapl -a serialmode_console
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.
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 :
- The bootloader
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 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-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