Serial Port Assistance Needed.

Post Reply
livewireorg
Posts: 3
Joined: Tue Aug 09, 2011 12:49 pm

Serial Port Assistance Needed.

Post by livewireorg » Tue Aug 09, 2011 12:54 pm

I am using this page as reference:

http://lacie.nas-central.org/wiki/Serial_port_(2Big_2)


My TTL-232R-3V3 cable that was specified in the instructions arrived in the mail today but it does not fit on the port. I took the enclosure apart to access the serial port and see that its an 8 pin connector while the cable end is 6pin. Was there any modifications required on the cable to connect it to the serial port?

Any assistance is appreciated.

Thanks!

-Livewire

Mijzelf
Posts: 6204
Joined: Mon Jun 16, 2008 10:45 am

Re: Serial Port Assistance Needed.

Post by Mijzelf » Tue Aug 09, 2011 2:37 pm

Yes. I took the RX, TX and GND connector out of the black plastic thingy, did some tape around it for electrical isolation, and put them directly on the headers on the PCB.

livewireorg
Posts: 3
Joined: Tue Aug 09, 2011 12:49 pm

Re: Serial Port Assistance Needed.

Post by livewireorg » Wed Aug 10, 2011 6:33 am

Thats what I ended up trying to do. I used hyperterm with 115200 N-8-1 settings but only got gargbage characters and that was when I wiggled the connection. What terminal emulator did you use? Also was there no need for +5v VCC connection?

Thanks,

Mijzelf
Posts: 6204
Joined: Mon Jun 16, 2008 10:45 am

Re: Serial Port Assistance Needed.

Post by Mijzelf » Wed Aug 10, 2011 7:53 am

I used minicom, I think, and no, VCC doesn't need to be connected. It's provided on both ends for the case the other end would need a power supply, or a reference voltage. Both are not needed here (and actually I never found a situation where VCC had to be connected).

You are aware that TX of the NAS should be connected to RX of the serial adapter, and vice versa?

livewireorg
Posts: 3
Joined: Tue Aug 09, 2011 12:49 pm

Re: Serial Port Assistance Needed.

Post by livewireorg » Fri Aug 12, 2011 4:05 pm

Thanks for the help I got the serial port connection to work, however my Lacie is apparently under the weather:



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


U-Boot 1.1.4 (Dec 21 2009 - 16:55:45) Marvell version: 3.4.16 LaCie 1.3.9

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

Soc: MV88F6281 Rev 3 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 166Mhz

DRAM CAS Latency = 6 tRP = 5 tRAS = 18 tRCD=6
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
*** Warning - bad CRC, using default environment


CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


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

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode
Device 0 @ 0 0:
Model: SAMSUNG HD154UI Firm: 1AG01118 Ser#: S2CHJ1CZ800023
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430799.3 MB = 1397.2 GB (-1364690128 x 512)
Port Multiplier found @ 0 1. Vendor: 197b ports: 2
[0 1 0]: Enable DMA mode
Device 1 @ 0 1 0:
Model: SAMSUNG HD154UI Firm: 1AG01118 Ser#: S1Y6JDWZ812140
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430799.3 MB = 1397.2 GB (-1364690128 x 512)

## Valid DOS partition found ##

Loading from IDE device 0, partition 10: Name: hda10
Type: U-Boot
Image Name: Linux-2.6.22.18
Created: 2011-03-16 11:18:03 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1938476 Bytes = 1.8 MB
Load Address: 00008000
Entry Point: 00008000
## Booting image at 00800000 ...
Image Name: Linux-2.6.22.18
Created: 2011-03-16 11:18:03 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1938476 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@node2.lacie.com) (gcc version 4.2.1) #1 Wed Mar 16 11:17:55 UTC 2011
CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177
Machine: net2big_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=PRO_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)-- net2big_v2 Soc: MV88F6281 Rev 3 LE

Detected Tclk 166666667 and SysClk 400000000
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: net2big:blue:front
Registered led device: net2big:red:front
Registered led device: net2big:blue:hd1
Registered led device: net2big:red:hd1
Registered led device: net2big:blue:hd2
Registered led device: net2big:red:hd2
gpio-fan gpio-fan: No fan power resource available
gpio-fan gpio-fan: GPIO fan initialized
gpio-hd-power gpio-hd-power: GPIO Hard Disk power device initialized
gpio-usb gpio-usb: USB GPIO's initialized
g762 0-003e: device successfully 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 (c077e000): 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 HD154UI 1AG0 PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access SAMSUNG HD154UI 1AG0 PQ: 0 ANSI: 5
Disk topology: host_no=0 channel=0 id=0
sd 0:0:0:0: [sda] 2930277168 512-byte hardware sectors (1500302 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] 2930277168 512-byte hardware sectors (1500302 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
Disk topology: host_no=1 channel=0 id=0
sd 1:0:0:0: [sdb] 2930277168 512-byte hardware sectors (1500302 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:0:0: [sdb] 2930277168 512-byte hardware sectors (1500302 MB)
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb: sdb1 < sdb5 sdb6 sdb7 sdb8 sdb9 sdb10 > sdb2
sd 1:0:0:0: [sdb] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 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 98 MB/s
raid6: int32x2 114 MB/s
raid6: int32x4 123 MB/s
raid6: int32x8 111 MB/s
raid6: using algorithm int32x4 (123 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 : 1089.600 MB/sec
8regs : 758.400 MB/sec
32regs : 904.400 MB/sec
raid5: using function: arm4regs (1089.600 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
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 = 'net2big_v2'
===INITRAMFS: minRaidDevices=2
===INITRAMFS: maxRaidDevices=2
===INITRAMFS: Waiting for the master disk to spin up
===INITRAMFS: Waiting for 1 to 1 disks to spin up
===INITRAMFS: We finally have 2 disks, updating /dev
eth0: link down
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 2 disks, updating /dev
===INITRAMFS: Found available BootFS partition: /dev/sda7
===INITRAMFS: Normal boot, starting bootfs system array
===INITRAMFS: Stmd: md0 stopped.
arting bootfs RAID array (/dev/md0) with /dev/sdmd: bind<sda7>
a7
raid1: raid set md0 active with 1 out of 2 mirrors
===INITRAMFS: Mouting /dev/md0 okjournald starting. Commit interval 5 seconds
n /root read onlEXT3-fs: mounted filesystem with ordered data mode.
y
===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
eth0: link up, full duplex, speed 100 Mbps
===BOOTFS: Mounting /dev/pts
mount: /etc/mtab: Read-only file system
===BOOTFS: Mounting /dev/shm
mount: /etc/mtab: Read-only file system
===BOOTFS: Warning: addBootfsComponents() /dev/sda7 is already part of /dev/md0, won't add it
===BOOTFS: addBootfsComponents() Adding /dev/sdb7 to /dev/md0
md: bind<sdb7>
RAID1 conf printout:
--- wd:1 rd:2
disk 0, wo:0, o:1, dev:sda7
disk 1, wo:1, o:1, dev:sdb7
===BOOTFS: Starting md1 (RootFS)
md: recovery of RAID array md0
md: minimum _guaranteed_ speed: 1000 KB/sec/disk.
md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for recovery.
md: using 128k window, over a total of 7936 blocks.
md: md0: recovery done.
RAID1 conf printout:
--- wd:2 rd:2
disk 0, wo:0, o:1, dev:sda7
disk 1, wo:0, o:1, dev:sdb7
md: md1 stopped.
===BOOTFS: Failure: startMd_Device() Assembling failed, probably not enough components
===BOOTFS: Failure: startMd_Root() Could not start md1
===BOOTFS: Starting md2 (Snapshots)
md: md2 stopped.
md: bind<sda9>
raid1: raid set md2 active with 1 out of 2 mirrors
===BOOTFS: Starting md3 (Swap)
md: md3 stopped.
md: bind<sda5>
raid1: raid set md3 active with 1 out of 2 mirrors
===BOOTFS: #### Running File System Check on Snapshot Partition (/dev/md2) ###
e2fsck 1.37 (21-Mar-2005)
/dev/md2: recovering journal
/dev/md2: clean, 3500/109536 files, 52561/218848 blocks
#### Starting PatchManager using /dev/md1 and /dev/md2 ####
EXT3-fs: unable to read superblock
EXT2-fs: unable to read superblock
mount: Mounting /dev/md1 on /var/original failed: Invalid argument
===BOOTFS: systemInitialize: Failed to mount /dev/md1
kjournald starting. Commit interval 5 seconds
EXT3 FS on md2, 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
/sbin/init: /sbin/init: 1359: [: not found
/sbin/init: /sbin/init: 1359: [: not found
/sbin/init: /sbin/inKernel panic - not syncing: Attempted to kill init!
it: 1359: [: not found
/sbin/init: /sbin/init: 1359: echo: not found
/sbin/init: /sbin/init: 1359: [: not found
/sbin/init: /sbin/init: 1359: cannot open /dev/console: No such file


My Lacie crashed a couple weeks ago and I have been trying to get it working ever since. I did recover my data using UFS explorer but would like to get the Lacie back in working order. Initially tried to keep the partitions as they were and only copy the tarballs into the appropriate directories and that helped to the point that I could see the Lacie using the network assistant once again but the webpage would just hang. I then went through the whole process from scratch and captured the already set UUID's using the --examine option in mdadm and then setting them back once I had repartitioned and formated but am stuck at the same point. Now I can see though the log that the Lacie does not even complete its boot cycle. I'm at the point now where I think it may be a total loss and am looking at getting a D-Link DNS-320 that does not have all these annoying Lacie restraints about what disks you can use. If you can think of something else I can try w/ the Lacie I am looking forward to hearing it. Thanks for all the assistance so far :)

Mijzelf
Posts: 6204
Joined: Mon Jun 16, 2008 10:45 am

Re: Serial Port Assistance Needed.

Post by Mijzelf » Fri Aug 19, 2011 8:04 pm

Obviously md1 is damaged, somehow. You could connect the disks to a normal Linux system, assemble md1 (I guess it's sd[ab]7), build a new filesystem (ext3), and extract my 'backup' to it.

Post Reply