Difference between revisions of "Serial console TsP"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m
(How to get a serial console log on the TsP)
(36 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[http://isabellaval.ifrance.com/bachata/ bachata] [http://wifry.angelfire.com/styles/donne-famose.htm donne famose in tanga] [http://wipitts.at.tut.by/text/directory/gli-amici.htm gli amici della notte castellina] [http://brandalinden.ifrance.com/topic/unai.htm unai] [http://alena344.ifrance.com/text/mani-sulla/ mani sulla luna] [http://kairikekui.ifrance.com/resources/alfa-gtv/ alfa gtv cup] [http://beyonddreamingx.angelfire.com/content/non-ci.htm non ci facciamo compagnia antonacci] [http://alena344.ifrance.com/text/altoparlanti-autoradio/ altoparlanti autoradio] [http://spkleins.angelfire.com/scheda-video/ scheda video rca svideo] [http://isabellaval.ifrance.com/disegni-su/ disegni su stoffe] [http://kataevka.ifrance.com/articles/concorso-banca/ concorso banca italia] [http://emstripl.at.tut.by/view/new/epson-cs.htm epson c13s050190] [http://kairikekui.ifrance.com/resources/tennis-palline/ tennis palline] [http://beyonddreamingx.angelfire.com/content/alchool-software.htm alchool software] [http://wowinoth.at.tut.by/web/mercedes-e.htm mercedes e 230 sw classic] [http://feralpaw-omm.ifrance.com/html/popeye-vol/ popeye vol 25] [http://wifry.angelfire.com/styles/procione.htm procione] [http://konstantinkar.ifrance.com/description/rex-frigorifero/ rex frigorifero rc 200 x] [http://wifry.angelfire.com/styles/foto-sara.htm foto sara] [http://wiwoolle.at.tut.by/content/view/bacharach.htm bacharach] [http://hewvey.ifrance.com/library/tschudi-johann/ tschudi johann jakob von] [http://gaburlei.angelfire.com/resources/land-of.htm land of dead] [http://kataevka.ifrance.com/articles/storage-portatile/ storage portatile] [http://rebuckma.angelfire.com/description/wild-dancer.htm wild dancer] [http://kairikekui.ifrance.com/resources/lacie-gb/ lacie 20gb usb] [http://pohogue.angelfire.com/library/esmeralda-telenovela.htm esmeralda telenovela] [http://konstantinkar.ifrance.com/description/eri/ eri] [http://dweejah.ifrance.com/new/emanuela-nava/ emanuela nava] [http://snerma.angelfire.com/text/frank-leonhard/ frank leonhard] [http://mckueltzi.at.tut.by/description/lib/bc.htm bc] [http://konstantinkar.ifrance.com/description/biglietti-menu/ biglietti menu] [http://sagaddy.angelfire.com/styles/montaggio-ponteggi/ montaggio ponteggi] [http://spkleins.angelfire.com/super-tramp/ super tramp] [http://nymphbmbzl222.ifrance.com/quaresima.htm quaresima] [http://jrosestar.ifrance.com/html/testo-fuck/ testo fuck it right back] [http://yoschaad.at.tut.by/lib/i-moskettieri.htm i moskettieri] [http://konstantinkar.ifrance.com/description/robot-cucina/ robot cucina professionale] [http://kairikekui.ifrance.com/resources/fotocamere-cannon/ fotocamere cannon] [http://mcunderh.at.tut.by/resources/articles/www-affection.htm www affection orn] [http://nymphbmbzl222.ifrance.com/testo-i.htm testo i dont want back] [http://snerma.angelfire.com/text/porto-cesario/ porto cesario] [http://emstripl.at.tut.by/view/new/deep-purple.htm deep purple the ocean] [http://macertot.ifrance.com/view/good-night.htm good night baby good night] [http://pohogue.angelfire.com/library/sexy-annuncio.htm sexy annuncio] [http://jrosestar.ifrance.com/html/uniball-jetstream/ uniball jetstream] [http://brandalinden.ifrance.com/topic/las-chuches.htm las chuches] [http://wifry.angelfire.com/styles/cartoline-primo.htm cartoline primo maggio] [http://feralpaw-omm.ifrance.com/html/frasi-di/ frasi di invito a compleanno] [http://jrosestar.ifrance.com/html/inno-ufficiale/ inno ufficiale roma] [http://feralpaw-omm.ifrance.com/html/birdman/ birdman] [http://dweejah.ifrance.com/new/marco-massini/ marco massini] [http://nymphbmbzl222.ifrance.com/distributori-gas.htm distributori gas metano provincia modena] [http://feralpaw-omm.ifrance.com/html/furphy-joseph/ furphy joseph] [http://kairikekui.ifrance.com/resources/thermaltake-soprano/ thermaltake soprano vb1000sns  silver] [http://snerma.angelfire.com/text/iriver-lettore/ iriver lettore mp3 wma portatile 1gb] [http://jrosestar.ifrance.com/html/it-s/ it s all right] [http://emstripl.at.tut.by/view/new/gena-lee.htm gena lee nolin fuck] [http://lehartfi.at.tut.by/lib/amd-athlon.htm amd athlon xpm 3000 hp] [http://yoschaad.at.tut.by/lib/stampante-inkjet.htm stampante inkjet colori hp] [http://pohogue.angelfire.com/library/wisin-yandel.htm wisin yandel feat tony dize] [http://brandalinden.ifrance.com/topic/telecamere-nascoste.htm telecamere nascoste nelle palestre] [http://lasylvan.angelfire.com/new/televisore-v/ televisore 12v colori] [http://jrosestar.ifrance.com/html/mondiali/ mondiali 2004] [http://brandalinden.ifrance.com/topic/rembrandt.htm rembrandt] [http://ariadnafeni.ifrance.com/resources/severin-pg/ severin pg] [http://dylantian.ifrance.com/styles/video-max.htm video max pezzali lo strano percorso] [http://dylantian.ifrance.com/styles/ram-notebook.htm ram notebook 512 kingston] [http://zaweaver.at.tut.by/text/directory/take-off.htm take off your pants and jacket] [http://wifry.angelfire.com/styles/epson-c.htm epson c62] [http://ariadnafeni.ifrance.com/resources/keith-jarrett/ keith jarrett the art of improvisation] [http://kairikekui.ifrance.com/resources/nautica-occasioni/ nautica occasioni ch] [http://sagaddy.angelfire.com/styles/scanner-fire/ scanner fire wire] [http://rebuckma.angelfire.com/description/solid-ink.htm solid ink phaser 8400] [http://jrosestar.ifrance.com/html/box-srl/ box srl] [http://hewvey.ifrance.com/library/george-moustaki/ george moustaki] [http://alena344.ifrance.com/text/donna-nike/ donna nike] [http://konstantinkar.ifrance.com/description/kuan-dvd/ kuan dvd] [http://konstantinkar.ifrance.com/description/nemico/ nemico] [http://nymphbmbzl222.ifrance.com/traduzione-canzoni.htm traduzione canzoni robbie williams] [http://mcunderh.at.tut.by/resources/articles/nikon.htm nikon 4200] [http://macertot.ifrance.com/view/daewoo-dtzu.htm daewoo dtz29u7] [http://feralpaw-omm.ifrance.com/html/cinema-hard/ cinema hard gratis] [http://kairikekui.ifrance.com/resources/cicciona/ cicciona] [http://mckueltzi.at.tut.by/description/lib/pac-ct.htm pac ct 300h] [http://pohogue.angelfire.com/library/frigorifero-barca.htm frigorifero barca] [http://webancks.at.tut.by/images/small/williams-nike.htm williams nike] [http://ariadnafeni.ifrance.com/resources/brecht/ brecht] [http://hewvey.ifrance.com/library/mobili-porte/ mobili porte] [http://isabellaval.ifrance.com/gas-bootcut/ gas bootcut] [http://crhighto.at.tut.by/img/styles/figlio-della.htm figlio della luna mecano] [http://lasylvan.angelfire.com/new/blue-jeans/ blue jeans] [http://macertot.ifrance.com/view/side-by.htm side by frigoriferi whirlpool] [http://konstantinkar.ifrance.com/description/indirizzi-trans/ indirizzi trans] [http://hewvey.ifrance.com/library/solo-ieri/ solo ieri scaricare] [http://breveret.at.tut.by/view/new/sony-hdr.htm sony hdr] [http://snerma.angelfire.com/text/berg-decapitacion/ berg decapitacion] [http://nymphbmbzl222.ifrance.com/cosa-fai.htm cosa fai ragazza] [http://zaweaver.at.tut.by/text/directory/latte-mucca.htm latte mucca] [http://isabellaval.ifrance.com/falli-giganti/ falli giganti] [http://dylantian.ifrance.com/styles/superfighe.htm superfighe] [http://bmw-.itforus.info/ bmw 118 benzina] [http://hard-disk.mered.cn/ hard disk 2 5 80gb 5400rpm] [http://verdi-prati.itmilan.info/ verdi prati] [http://heather-graham.infoforit.info/ heather graham killing me softly] [http://garmin-fishfinder.itforus.info/ garmin fishfinder 240] [http://fresh.waked.cn/ fresh] [http://kiosk.altars.cn/ kiosk] [http://olivetti-summa.mered.cn/ olivetti summa 32] [http://www-sottocosta.altars.cn/ www sottocosta it] [http://salvini.infoforit.info/ salvini] [http://tutti-fiori.itforus.info/ tutti fiori] [http://aerarii.6pense.cn/ aerarii] [http://office-.tanned.cn/ office 2003 pro vup] [http://ihab.likit.info/ ihab] [http://wrest.usait.info/ wrest] [http://dido.infoforit.info/ dido] [http://gioielli-piacenza.usitus.info/ gioielli piacenza] [http://igi-calzature.usitus.info/ igi calzature] [http://caligero.tanned.cn/ caligero] [http://universita-tor.mered.cn/ universita tor vergata] [http://acer-lcd.rekki-most.cn/ acer lcd dvi] [http://typhoon-mp.itforus.info/ typhoon mp3 revolution] [http://etheren.infoforit.info/ etheren] [http://sicilia-bedda.likit.info/ sicilia bedda sicilia] [http://tout-sab.likit.info/ tout sab] [http://due-gocce.usitus.info/ due gocce dacqua salata] [http://eros-lesbiche.likit.info/ eros lesbiche] [http://immagini-di.itmilan.info/ immagini di brad pitt] [http://marwan-khoury.altars.cn/ marwan khoury] [http://acer-notebook.likit.info/ acer notebook ferrari 4005wlmi] [http://tgp-video.itforus.info/ tgp video] [http://samsung-lcd.likit.info/ samsung lcd 913] [http://produzione-marmitte.rekki-most.cn/ produzione marmitte caltanisetta] [http://ordinanza-balneare.itforus.info/ ordinanza balneare abruzzo] [http://usb-hub.itmilan.info/ usb hub 4 porte slim] [http://benito-urgu.infoforit.info/ benito urgu] [http://milf-hunter.usait.info/ milf hunter] [http://sony-monitor.usait.info/ sony monitor lcd 20] [http://reaction-quake.rekki-most.cn/ reaction quake] [http://nec-tv.usait.info/ nec tv] [http://foppapedretti-passeggini.tanned.cn/ foppapedretti passeggini] [http://fotos-de.mered.cn/ fotos de paloma] [http://simone-benedetti.itmilan.info/ simone benedetti] [http://elenco-telefonico.likit.info/ elenco telefonico casoria na] [http://fessa.itforus.info/ fessa] [http://sally.infoforit.info/ sally] [http://pc-pentium.seeded.cn/ pc pentium 4 3 2 ghz] [http://ragazze-super.infoforit.info/ ragazze super poppe] [http://manifesti-grafici.itmilan.info/ manifesti grafici del teatro] [http://ultimi-successi.6pense.cn/ ultimi successi] [http://foto-alessio.itmilan.info/ foto alessio boni foto] [http://guns-and.rekki-most.cn/ guns and roses] [http://software-utility.itmilan.info/ software utility cookie cache] [http://foto-di.itforus.info/ foto di atene citta] [http://valeria-e.usait.info/ valeria e antonio] [http://samsung-toner.usait.info/ samsung toner nero scx4100] [http://canzoni-dei.waked.cn/ canzoni dei the rasmus] [http://gemelli-diversi.usitus.info/ gemelli diversi sito ufficiale] [http://pierino-all.usait.info/ pierino all dvd] [http://pianeta-lotto.itmilan.info/ pianeta lotto] [http://she-willbe.itmilan.info/ she willbe loved] [http://dragoonballx.usitus.info/ dragoonballx] [http://addictus.itmilan.info/ addictus] [http://sara-cosmi.rekki-most.cn/ sara cosmi] [http://cuffie-stereo.usait.info/ cuffie stereo con microfono] [http://mielo.usait.info/ mielo] [http://el-cairo.usait.info/ el cairo] [http://tomtom-.seeded.cn/ tomtom 5 pda] [http://barbecue-carbone.usait.info/ barbecue carbone e accessori] [http://bravo-club.usait.info/ bravo club] [http://nuove-canzoni.infoforit.info/ nuove canzoni] [http://ruote-senate.itmilan.info/ ruote senate] [http://moon-dance.itmilan.info/ moon dance midi] [http://condizionatori-merloni.itforus.info/ condizionatori merloni] [http://zamba-de.usitus.info/ zamba de juan panadero] [http://lettori-mp.usitus.info/ lettori mp3 dvd portatili] [http://palmare-gps.likit.info/ palmare gps gsm] [http://nguoi-ta.itforus.info/ nguoi ta noi] [http://figli-dei.infoforit.info/ figli dei fiori] [http://spears-britney.likit.info/ spears britney] [http://como-cambiar.mered.cn/ como cambiar el fondo] [http://la-valle.usait.info/ la valle delle mille colline] [http://custodia-in.itmilan.info/ custodia in alluminio] [http://macchina-pane.itmilan.info/ macchina pane delonghi] [http://asciugatrici.itmilan.info/ asciugatrici] [http://windows-server.itmilan.info/ windows server 2003 5 cal] [http://www-voyeur.6pense.cn/ www voyeur italia] [http://ray-ban.likit.info/ ray ban new aviator] [http://ozone-video.tanned.cn/ ozone video] [http://anello-corallo.itmilan.info/ anello corallo rosa oro] [http://breve-poesia.likit.info/ breve poesia d amore] [http://motore-a.usitus.info/ motore a scoppio thunder tiger] [http://stampante.usitus.info/ stampante 2010] [http://kit-gps.tanned.cn/ kit gps per mio 168] [http://videocamera-nvgs.waked.cn/ videocamera nvgs150] [http://san-pancrazio.itforus.info/ san pancrazio] [http://dolce-amore.usait.info/ dolce amore mio] [http://batteria-ricaricabile.itforus.info/ batteria ricaricabile 9v] [http://mega-mix.waked.cn/ mega mix di gabry ponte] [http://cd-rom.usitus.info/ cd rom] == What is the Serial Console ==
+
{{Template:Articles|TerastationProV1}}
 +
[[Image:Ts-pro-1.jpg|frame|right]]
 +
__TOC__
 +
== 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.
 
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.
 
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.
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&param=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

Ts-pro-1.jpg

Contents

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, 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