Serial port (Network space 2)

From NAS-Central Lacie Wiki
Jump to: navigation, search

The Network space 2 has a TTL level 3.3V serial port.
SerialPort-NS2.jpg
You cannot connect a standard serial port directly, but you need to use a level converter. I used a FTDI TTL-232R-3V3

Serial bootlog (firmware 1.2.9, no network connected):

           _           ____ _ 
          | |    __ _ / ___(_) ___
          | |   / _` | |   | |/ _ \
          | |___ (_| | |___| |  __/
          |_____\__,_|\____|_|\___|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: ASTON_NS LE 
Hold rear button - long :  FAIL


U-Boot 1.1.4 (Sep 23 2009 - 10:38:35) Marvell version: 3.4.16  LaCie 1.2.8 256MB

U-Boot code: 00600000 -> 006701D0  BSS: -> 006BDE80

Soc: 88F6281 A0 (DDR2)
CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz 

DRAM CAS Latency = 3 tRP = 3 tRAS = 9 tRCD=3
DRAM CS[0] base 0x00000000   size 256MB 
DRAM Total size 256MB  16bit width
[512kB@f8000000] Flash: 512 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done

CPU : Marvell Feroceon (Rev 1)

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
egiga0 no link
Waiting for LUMP (3)
no lump receive; continuing

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode
  Device 0 @ 0 0:
Model: SAMSUNG HD103SI                          Firm: 1AG01118 Ser#: S1Y5J9FZA03430      
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)


Loading from IDE device 0, partition 10: Name: hda10
  Type: U-Boot
   Image Name:   Linux-2.6.22.18
   Created:      2010-11-04  17:37:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1935076 Bytes =  1.8 MB
   Load Address: 00008000
   Entry Point:  00008000
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2010-11-04  17:37:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1935076 Bytes =  1.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................................................................. done, booting the kernel.
Linux version 2.6.22.18 (sbs@node5.lacie.com) (gcc version 4.2.1) #1 Thu Nov 4 17:37:15 UTC 2010
CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177
Machine: netspace_v2
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists.  Total pages: 65024
Kernel command line: console=ttyS0,115200 root=/dev/sda7 ro reset=0 productType=ASTON_KW
PID hash table entries: 1024 (order: 10, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB 0MB 0MB 0MB = 256MB total
Memory: 256256KB available (2808K code, 204K data, 484K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e8000000, size 128MB 
PEX0_IO ....base f2000000, size   1MB 
INTER_REGS ....base f1000000, size   1MB 
NFLASH_CS ....base fa000000, size   2MB 
SPI_CS ....base f4000000, size  16MB 
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB 

  Marvell Development Board (LSP Version KW_LSP_4.2.7_patch2)-- netspace_v2  Soc: 88F6281 A0 LE

 Detected Tclk 166666667 and SysClk 200000000 
MV Buttons Device Load
Register Marvell USB EHCI Host controller #0
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
SCSI subsystem initialized
NET: Registered protocol family 2
Time: kw_clocksource clocksource has been installed.
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
Use the XOR engines (acceleration) for enhancing the following functions:
  o RAID 5 Xor calculation
  o kernel memcpy
  o kenrel memzero
Number of XOR engines to use: 4
cesadev_init(c000ef80)
MV Buttons Driver Load
mv_rtc mv_rtc: rtc core: registered mv_rtc as rtc0
mv_rtc mv_rtc: Kirkwood SoC RTC added
Init kirkwood cpufreq driver
Registered led device: ns:blue:front
gpio-hd-power gpio-hd-power: GPIO Hard Disk power device initialized
gpio-usb gpio-usb: USB GPIO's initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Registering unionfs 2.5.3 (for 2.6.22.19)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
INIT Marvell Ethernet Driver: mv_netdev
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o Multi RX Queue support - 4 RX queues
  o Multi TX Queue support - 2 TX Queues
  o TCP segmentation offload enabled
  o Receive checksum offload enabled
  o Transmit checksum offload enabled
  o Network Fast Processing (Routing) supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o Rx descripors: q0=128 q1=128 q2=128 q3=128
  o Tx descripors: q0=532 q1=532
  o Loading network interface(s):
    o eth0, ifindex = 1, GbE port = 0

Warning: Giga 1 is Powered Off

mvFpRuleDb (c07cc000): 2048 entries, 8192 bytes
Integrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access     SAMSUNG  HD103SI          1AG0 PQ: 0 ANSI: 5
Disk topology: host_no=0 channel=0 id=0
sd 0:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
 sda: sda1 < sda5 sda6 sda7 sda8 sda9 sda10 > sda2
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
SPI Serial flash detected @ 0xf4000000, 512KB (128sec x 4KB)
mice: PS/2 mouse device common for all mice
input: gpio-keys as /class/input/input0
i2c /dev entries driver
at24 0-0050: 512 byte 24c04 EEPROM (writable)
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
raid6: int32x1     73 MB/s
raid6: int32x2     80 MB/s
raid6: int32x4     83 MB/s
raid6: int32x8     75 MB/s
raid6: using algorithm int32x4 (83 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
   arm4regs  :   726.400 MB/sec
   8regs     :   505.600 MB/sec
   32regs    :   603.200 MB/sec
raid5: using function: arm4regs (726.400 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
Registered led device: ns:red:front
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Freeing init memory: 484K
===INITRAMFS: =======================================INITRAMFS================================
===INITRAMFS: Initializing filesystem
===INITRAMFS: Mounting /proc
===INITRAMFS: Mounting /sys
===INITRAMFS: Populating /dev
===INITRAMFS: Mounting /dev/pts
===INITRAMFS: Product ID = 'netspace_v2'
===INITRAMFS: minRaidDevices=1
===INITRAMFS: maxRaidDevices=1
===INITRAMFS: Waiting for the master disk to spin up
===INITRAMFS: Waiting for 1 to 1 disks to spin up
===INITRAMFS: We finally have 1 disks, updating /dev
eth0: started
Sleep mode disabled
Powering off leds
Find and update brightness
Powering on leds : resume
Find and update trigger
Find and update delay_on
Find and update delay_off
Find and update hd_blink
===INITRAMFS: Waiting for 1 to 1 disks to spin up
===INITRAMFS: We finally have 1 disks, updating /dev
===INITRAMFS: Found available BootFS partition: /dev/sda7
===INITRAMFS: Mouting /dev/sda7 on /root read only
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
===INITRAMFS: Switching to bootfs, leaving initramfs
===BOOTFS: =======================================BOOTFS=================================
===BOOTFS: Initializing filesystem
===BOOTFS: Mounting /proc
mount: /etc/mtab: Read-only file system
===BOOTFS: Mounting /sys
mount: /etc/mtab: Read-only file system
===BOOTFS: Populating /dev
===BOOTFS: Mounting /dev/pts
mount: /etc/mtab: Read-only file system
===BOOTFS: Mounting /dev/shm
mount: /etc/mtab: Read-only file system
===BOOTFS: #### Running File System Check on Snapshot Partition (/dev/sda9) ###
e2fsck 1.37 (21-Mar-2005)
/dev/sda9: recovering journal
/dev/sda9: clean, 5289/109536 files, 66943/218877 blocks
#### Starting PatchManager using /dev/sda8 and /dev/sda9  ####
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
===BOOTFS: Creating base union /var/base from /var/original
===BOOTFS: Loading snapshots from /snapshots/snaps
unionfs: unionfs: new generation number 2
mount: /etc/mtab: Read-only file system
unionfs: unionfs: new generation number 3
mount: /etc/mtab: Read-only file system

	Next Generation Init version ( 0.6.10.2 Die bugs die! )
	http://www.initng.org
	Author: Jimmy Wennlund <jimmy.wennlund@gmail.com>
	If you find initng useful, please consider a small donation.

	System is starting up!

      runlevel/default	[starting]
      initial/loglevel	[starting]
      initial/mountvirtfs	[starting]
      initial/sysctl	[starting]
      initial/snapshots	[starting]
      initial/memlog	[starting]
      dbus	[starting]
      bootmisc	[starting]
      mountfs	[starting]
      udev/filldev	[starting]
      udev/udevd	[starting]
      udev/mountdev	[starting]
      udev/set_hotplug	[starting]
      modules	[starting]
      dbus/uuidgen	[starting]
      hald	[starting]
      clock	[starting]
      dhcdbd	[starting]
      logrotate	[starting]
      syslogd	[starting]
      klogd	[starting]
      swap	[starting]
      mountuserfs	[starting]
      raid	[starting]
      usb	[starting]
      hostname	[starting]
      NetworkManager	[starting]
      bonding	[starting]
      NetworkManager/prepare	[starting]
      http	[starting]
      getty/1	[starting]
      cron	[starting]
      unicorn	[starting]
      thumbd	[starting]
      sshd	[starting]
      sshd/generate_keys	[starting]
   2% initial/loglevel	[done]  	( done in 27ms )
   5% initial/mountvirtfs	[done]  	( done in 185ms )
   7% initial/sysctl	[done]  	( done in 37ms )

 initial/snapshots start:
  Mounting /oldroot/snapshots/EDMINI
  
  10% initial/memlog	[done]  	( done in 61ms )
  12% initial/snapshots	[done]  	( done in 373ms )
  17% udev/mountdev	[done]  	( done in 381ms )
  20% hostname	[done]  	( done in 141ms )
  22% NetworkManager/prepare	[done]  	( done in 166ms )
  27% udev/udevd	[started]	( pid: 535 )
  27% dbus/uuidgen	[done]  	( done in 336ms )
  30% udev/set_hotplug	[done]  	( done in 323ms )
      udev/udevd	[starting]
  30% logrotate	[done]  	( done in 1120ms )
      udev/udevd	[starting]
  32% udev/udevd	[started]	( pid: 556 )
  35% modules	[done]  	( done in 1282ms )
  37% udev/filldev	[done]  	( done in 3023ms )
  42% getty/1	[started]	( pid: 779 )
  45% swap	[done]  	( done in 34ms )
  47% clock	[done]
  50% sshd/generate_keys	[d  52% mountfs	[done]
  55% bonding	[done]  	( done in 132ms )
  57% usb	[done]  	( done in 28ms )
  60% mountuserfs	[done]  	( done in 178ms )
  62% raid	[done]  	( done in 259ms )
  65% bootmisc	[done]  	( done in 370ms )
  67% syslogd	[started]	( pid: 831 )
  72% klogd	[started]	( pid: 833 )
  75% dbus	[started]	( pid: 835 )
  77% hald	[started]	( pid: 836 )

LaCix Linux release 1.2.9
Kernel 2.6.22.18 on an armv5tejl / ttyS0
NetworkSpace2 login:   82% dhcdbd	[started]	( pid: 841 )
  82% cron	[started]	( pid: 834 )
  85% NetworkManager	[started]	( pid: 856 )
  95% http	[started]	( pid: 857 )
  95% unicorn	[started]	( pid: 858 )
  95% thumbd	[started]	( pid: 859 )
  97% sshd	[started]	( pid: 866 )
 100% runlevel/default	[done]  	( done in 7283ms )


	runlevel "runlevel/default" up in, 6636ms.

      pm/smart_spindown	[starting]
      pm/smart_spindown	[started]	( pid: 894 )
      ntpd	[starting]
      ntpd	[started]	( pid: 1024 )
      fan_controller	[starting]
      fan_controller	[started]	( pid: 1045 )
      runlevel/default	[stopping]
      hostname	[stopping]
      runlevel/default	[stopped]	( stopped in 34ms )
      hostname	[stopped]
      runlevel/default	[starting]
      hostname	[done]  	( done in 42ms )
      runlevel/default	[done]  	( done in 43ms )
      avahi	[starting]
      avahi	[started]	( pid: 1061 )
      ipcommd	[starting]
      ipcommd	[started]	( pid: 1070 )
      cups	[starting]
      cups	[started]	( pid: 1078 )
      transmission	[starting]
      transmission	[started]	( pid: 1111 )
      samba/smbd	[starting]
      samba/smbd	[started]	( pid: 1116 )
      samba/nmbd	[starting]
      samba/nmbd	[started]	( pid: 1118 )
      samba/winbind	[starting]
      samba/winbind	[started]	( pid: 1122 )
      netatalk/cnid_metad	[starting]
      netatalk/atalkd	[starting]
      netatalk/afpd	[starting]
      netatalk/cnid_metad	[started]	( pid: 1130 )
      netatalk/atalkd	[started]	( pid: 1139 )
      netatalk/afpd	[started]	( pid: 1141 )

And shutting down:

LACIE HALT REQUEST!
	System is going down!

  9% runlevel/default	[stopped]	( stopped in 2734ms )
  12% usb	[stopped]
  12% hostname	[stopped]
  29% cron	[stopped]	( stopped in 110ms )
  29% http	[stopped]	( stopped in 111ms )
  29% sshd	[stopped]	( stopped in 95ms )
  29% ntpd	[stopped]	( stopped in 26ms )
  29% fan_controller	[stopped]	( stopped in 25ms )
  29% avahi	[stopped]	( stopped in 17ms )
  29% samba/nmbd	[stopped]	( stopped in 13ms )
  29% samba/winbind	[stopped]	( stopped in 9ms )
  29% netatalk/afpd	[stopped]	( stopped in 6ms )
  30% sshd/generate_keys	[stopped]
  32% netatalk/cnid_metad	[stopped]	( stopped in 3ms )
  34% ipcommd	[stopped]	( stopped in 44ms )
  36% netatalk/atalkd	[stopped]	( stopped in 41ms )
  38% cups	[stopped]	( stopped in 69ms )
  40% samba/smbd	[stopped]	( stopped in 83ms )
  41% raid	[stopped]	( stopped in 338ms )
  43% thumbd	[stopped]	( stopped in 364ms )
  45% klogd	[stopped]	( stopped in 1007ms )
  47% transmission	[stopped]	( stopped in 1837ms )
  49% pm/smart_spindown  50% getty/1	[stopped]	( stopped in 3ms )

 mountuserfs stop:
  umount: cannot umount /media/internal_6: Device or resource busy
  WARNING, failed to umount /media/internal_6
  
  52% mountuserfs	[stopped]	( stopped in 152ms )
  54% unicorn	[stopped]	( stopped in 9192ms )
NetworkManager: <WARN>  nm_signal_handler(): Caught signal 15, shutting down normally.

NetworkManager: <info>  Caught terminiation signal

NetworkManager: <debug> [1311960911.200874] nm_print_open_socks(): Open Sockets List:

NetworkManager: <debug> [1311960911.201420] nm_print_open_socks(): Open Sockets List Done.

NetworkManager: <info>  Deactivating device eth0.

  56% syslogd	[stopped]	( stopped in 24ms )
  58% logrotate	[stopped]
  60% NetworkManager	[stopped]	( stopped in 27ms )
  61% NetworkManager/prepare	[stopped]
  65% hald	[stopped]	( stopped in 5ms )
  65% dhcdbd	[stopped]	( stopped in 3ms )
  67% dbus	[stopped]
  70% bootmisc	[stopped]
  70% dbus/uuidgen	[stopped]
  72% bonding	[stopped]	( stopped in 27ms )
  74% swap	[stopped]	( stopped in 57ms )

 mountfs stop:
  Sending all processes the TERM signal ...
  
  76% clock	[stopped]	( stopped in 82ms )

 mountfs stop:
  Killing (15) process 510, watch
  Killing (15) process 509, watch
  Sending all processes the KILL signal ...
  
  78% mountfs	[stopped]	( stopped in 4194ms )
  81% modules	[stopped]
  87% initial/sysctl	[stopped]
  87% initial/memlog	[stopped]
  90% udev/filldev	[stopped]	( stopped in 37ms )
  90% udev/set_hotplug	[stopped]	( stopped in 36ms )
  92% udev/udevd	[stopped]
  94% udev/mountdev	[stopped]
  96% initial/loglevel	[stopped]	( stopped in 52ms )

 initial/snapshots stop:
  Cleaning stale PID files
  Mounting root as RO 
  
  98% initial/snapshots	[stopped]	( stopped in 363ms )
	Last process exited!


	Your system will now POWER_OFF!
  Goodbye
Power down.