• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1] 2 3
Author Topic: Enabling Esata on V1.3 Sheeva Plug - Progress Report.  (Read 31107 times)
superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« on: November 09, 2009, 05:12:30 AM »

Hi

Progress report,  early results!

Populating the Sata components and getting the Sata to work  on the "newer" V1.3 Sheevaplug appears to be feasible

I have got a SATA drive visible in uboot,  using a non standard uboot, (borrowed from openrd uboot 3.4.19).

I am using a 500Gb Samsung sata drive in an elcheapo  USB/Esata external case, Esata only connected.

I have not finished connecting all the filter caps on the power supply to the Marvell Sata section. They are so difficult, (one cap side pad is connected to the ground plane, which makes cleaning the pad flat very hard. the ground plane sucks the heat from the iron). However I connected the ferrite inductor  to power the Sata section, just to see if I could get any sign of life from the drive.

Here is the applicable uboot output:-

Quote

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2009.11.09 11:06:28 =~=~=~=~=~=~=~=~=~=~=~=



Marvell>> help ide
ide reset - reset IDE controller

ide info  - show available IDE devices

ide device [dev] - show or set current device

ide part [dev] - print partition table of one or all IDE devices

ide read  addr blk# cnt

ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'

    to/from memory address `addr'



Marvell>> ide reset




Reset IDE:

Marvell Serial ATA Adapter

Integrated Sata device found

[0 1 0]: Enable DMA mode (6)

  Device 1 @ 0 1:

Model: SAMSUNG HM500JI                          Firm: 2AC101C4 Ser#: S1WFJ90S800911     

            Type: Hard Disk

            Supports 48-bit addressing

            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)



Marvell>> ide info




IDE device 1: Model: SAMSUNG HM500JI                          Firm: 2AC101C4 Ser#: S1WFJ90S800911     

            Type: Hard Disk

            Supports 48-bit addressing

            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

Marvell>> ide part






Partition Map for IDE device 1  --   Partition Type: DOS



Partition     Start Sector     Num Sectors     Type

    1        63 97676800283

Marvell>>


Now some warnings,  ( and I know I am 'shouting' )

1. DOING THIS WILL DESTROY ANY WARRANTY ON YOUR SHEEVA PLUG

2. IT IS VERY EASY AND QUICK TO DESTROY YOUR PLUG WHILST DOING THE MODS

3. FITTING THE COMPONENTS IS VERY HARD     You need SMT soldering equipment and  SMT soldering experience.

4.  EXTENSIVE SOFTWARE MODS are REQUIRED

/shout over

Caveats

I have not read / written data yet  I need to understand the format of the uboot ide read / write commands, and also where I can read and write to an area of nand that isn't going  tramp on the O/S, but the plug can get the drive info and the partition info, which is a good start.

I have NOT yet got the kernel to 'see' the Sata drive on boot.  I assume that it is done via udev. My problem is that I  am not familiar with udev in it's latest flavours.   If anyone can point me at a CURRENT tutorial on the current udev,  (I gather that using hotplug is now depreciated),  I will be very grateful.  Also any info you can provide on  the current convention for udev rules naming. When I Google for info on this I bog down in dozens of articles from when udev  was first introduced, but it has altered a lot in todays incarnation.

Now I have some progress, I will now finish installing the pi filter on the 3.3v power feed to the Marvell Sata section, and  work on  the software.

cheers

Patrick


Edit:- just noticed cut and paste corrupted uboot o/p ide part in quote

it should have looked like:-

Partition Map for IDE device 1 -- Partition Type: DOS


Partition    Start Sector   Num Sectors       Type
     1                   63           976768002           83










« Last Edit: November 09, 2009, 05:23:01 AM by superpat » Logged

unreal
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #1 on: November 09, 2009, 02:52:08 PM »

Just to say "well done! Great progress!".

I haven't made any new progress myself as I'm still waiting for the cheapo usb/esata dongle I ordered on ebay to salvage its esata connector.

Keep up the good work! Smiley
Logged

Andy1988
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #2 on: November 12, 2009, 07:40:37 AM »

What ferrite did you use?
Something like this?

http://parts.digikey.de/1/1/350803-ferrite-chip-60-ohm-500ma-0603-blm18pg600sn1d.html
Is it 0603?
Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #3 on: November 13, 2009, 03:39:39 AM »

Hi Andy

I did post a pdf of the mouser part I used here:-

http://plugcomputer.org/plugforum/index.php?topic=683.msg5381#msg5381

It is similar to the DigiKey part, I think the mouser has more dc current capability though. Compare them yourself!

The ferrite is a 0603 part, the caps are 0402's!

I  am still trying to  cross compile a modified plug kernel, with sata initialisation  and  sata data stuctures. I am using a Marvell git clone, and modifying
plug setup.c.  However I am having problems creating a "non-standard"  mach-type sheevaplug.   I am trying to learn how the conditional compile is controlled. I wish I knew the process better. Then I would know which def files to edit.  For instance there is a mach-type file which defines the sheevaplug as 2097 and the Cetra plug variants as 2025 and 2026. I wish I knew where these identifiers were used.

Ah well  blunder onwards!

P
Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #4 on: November 13, 2009, 06:03:47 AM »

Hi

Some Sucess!

I succeeded in cross compiling a kernel with sata support for my plug.

The esata drive has to be "kicked" to make it visible to the kernel before booting. (power off/on)

Here is the dmesg:-

Quote
patrick@sheevaplug:~$ dmsesg

Linux version 2.6.32-rc6-00011-g3ad6b4c-dirty (root@debiansilch) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #1 PREEMPT Fri Nov 13 11:22:22 GMT 2009

CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977

CPU: VIVT data cache, VIVT instruction cache

Machine: Marvell SheevaPlug Reference Board

Memory policy: ECC disabled, Data cache writeback

On node 0 totalpages: 131072

free_area_init_node: node 0, pgdat c04862c4, node_mem_map c054c000

  Normal zone: 1024 pages used for memmap

  Normal zone: 0 pages reserved

  Normal zone: 130048 pages, LIFO batch:31

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048

Kernel command line: console=ttyS0,115200 ro root=/dev/mmcblk0p1 rootdelaqy=1

PID hash table entries: 2048 (order: 1, 8192 bytes)

Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)

Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)

Memory: 256MB 256MB = 512MB total

Memory: 514176KB available (4176K code, 959K data, 116K init, 0K highmem)

SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

Hierarchical RCU implementation.

NR_IRQS:114

Console: colour dummy device 80x30

Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

NET: Registered protocol family 16

Kirkwood: MV88F6281-A0, TCLK=200000000.

Feroceon L2: Enabling L2

Feroceon L2: Cache support initialised.

initial MPP regs: 01111111 11113311 33331111 33003333 42222033 22244444 ffffff22

  final MPP regs: 01111111 11113311 33331111 33003333 42222033 22244444 ffffff02

bio: create slab <bio-0> at 0

vgaarb: loaded

SCSI subsystem initialized

libata version 3.00 loaded.

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

cfg80211: Using static regulatory domain info

cfg80211: Regulatory domain: US

(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)

(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)

cfg80211: Calling CRDA for country: US

Switching to clocksource orion_clocksource

NET: Registered protocol family 2

IP route cache hash table entries: 4096 (order: 2, 16384 bytes)

TCP established hash table entries: 16384 (order: 5, 131072 bytes)

TCP bind hash table entries: 16384 (order: 4, 65536 bytes)

TCP: Hash tables configured (established 16384 bind 16384)

TCP reno registered

NET: Registered protocol family 1

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.

msgmni has been set to 1004

alg: No test for stdrng (krng)

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered (default)

Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled

serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A

console [ttyS0] enabled

loop: module loaded

sata_mv sata_mv.0: version 1.28

sata_mv sata_mv.0: slots 32 ports 2

scsi0 : sata_mv

scsi1 : sata_mv

ata1: SATA max UDMA/133 irq 21

ata2: SATA max UDMA/133 irq 21

NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)

Scanning device for bad blocks

Creating 3 MTD partitions on "orion_nand":

0x000000000000-0x000000100000 : "u-boot"

0x000000100000-0x000000500000 : "uImage"

0x000000500000-0x000020000000 : "root"

MV-643xx 10/100/1000 ethernet driver version 1.4

mv643xx_eth smi: probed

net eth0: port 0 with MAC address 00:50:43:01:c1:e6

libertas_sdio: Libertas SDIO driver

libertas_sdio: Copyright Pierre Ossman

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

orion-ehci orion-ehci.0: Marvell Orion EHCI

orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1

orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000

orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver ums-datafab

usbcore: registered new interface driver ums-freecom

usbcore: registered new interface driver ums-jumpshot

usbcore: registered new interface driver ums-sddr09

usbcore: registered new interface driver ums-sddr55

mice: PS/2 mouse device common for all mice

rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0

i2c /dev entries driver

cpuidle: using governor ladder

cpuidle: using governor menu

mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)

Registered led device: plug:green:health

mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver

mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver

mv_xor mv_xor.0: Marvell XOR: ( xor cpy )

mmc0: host does not support reading read-only switch. assuming write-enable.

mmc0: new high speed SDHC card at address 0001

mmcblk0: mmc0:0001 00000 7.60 GiB

 mmcblk0: p1

mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )

mv_xor mv_xor.2: Marvell XOR: ( xor cpy )

ata1: SATA link down (SStatus 0 SControl F300)

mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

oprofile: using timer interrupt.

TCP cubic registered

NET: Registered protocol family 17

lib80211: common routines for IEEE802.11 drivers

lib80211_crypt: registered algorithm 'NULL'

Gating clock of unused units

before: 0x00c7c1dd

 after: 0x00c7c1d9

rtc-mv rtc-mv: setting system clock to 2009-03-24 14:58:03 UTC (1237906683)

ata2: SATA link up 1.5 Gbps (SStatus 113 SControl F300)

ata2.00: ATA-8: SAMSUNG HM500JI, 2AC101C4, max UDMA/133

ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)

ata2.00: configured for UDMA/133

scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG HM500JI  2AC1 PQ: 0 ANSI: 5

sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)

sd 1:0:0:0: [sda] Write Protect is off

sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00

sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

 sda: sda1

sd 1:0:0:0: [sda] Attached SCSI disk

VFS: Mounted root (ext2 filesystem) readonly on device 179:1.

Freeing init memory: 116K

I could not take a directory of the drive as I had previously formatted it in ext4, and my modified kernel does not support ext4

Quote
patrick@sheevaplug:~$ sudo mount /dev/sda1 /mnt
mount: unknown filesystem type 'ext4'

So I decided to fdisk it and format it with ext3

The fdisk went fine:-

Quote
patrick@sheevaplug:~$ sudo fdisk /dev/sda



The number of cylinders for this disk is set to 60801.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

   (e.g., DOS FDISK, OS/2 FDISK)



Command (m for help): p



Disk /dev/sda: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x56aa5048



   Device Boot      Start         End      Blocks   Id  System

/dev/sda1               1       60801   488384001   83  Linux



Command (m for help): d

Selected partition 1



Command (m for help): p



Disk /dev/sda: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x56aa5048



   Device Boot      Start         End      Blocks   Id  System



Command (m for help): n

Command action

   e   extended

   p   primary partition (1-4)

p

Partition number (1-4): 1

First cylinder (1-60801, default 1):

Using default value 1

Last cylinder, +cylinders or +size{K,M,G} (1-60801, default 60801):

Using default value 60801



Command (m for help): p



Disk /dev/sda: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x56aa5048



   Device Boot      Start         End      Blocks   Id  System

/dev/sda1               1       60801   488384001   83  Linux



Command (m for help): w

The partition table has been altered!



Calling ioctl() to re-read partition table.

Syncing disks.

Unfortunately writing the file system bombed:-

Quote
patrick@sheevaplug:~$ sudo mksfs.ext3 /dev/sda1

mke2fs 1.41.4 (27-Jan-2009)

Filesystem label=

OS type: Linux

Block size=4096 (log=2)

Fragment size=4096 (log=2)

30531584 inodes, 122096000 blocks

6104800 blocks (5.00%) reserved for the super user

First data block=0

Maximum filesystem blocks=0

3727 block groups

32768 blocks per group, 32768 fragments per group

8192 inodes per group

Superblock backups stored on blocks:

32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,

4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,

102400000



Writing inode tables:    0/3727   1/3727   2/3727   3/3727   4/3727   5/3727   6/3727   7/3727   8/3727   9/3727  10/3727  11/3727  12/3727  13/3727  14/3727  15/3727  16/3727  17/3727  18/3727  19/3727  20/3727  21/3727  22/3727  23/3727  24/3727ata2.00: exception Emask 0x100 SAct 0x1 SErr 0x10400000 action 0x6 frozen

ata2.00: edma_err_cause=06000000 pp_flags=00000003

  25/3727  26/3727  27/3727ata2: SError: { Handshk }

ata2.00: failed command: WRITE FPDMA QUEUED

ata2.00: cmd 61/ac:00:57:20:00/00:00:00:00:00/40 tag 0 ncq 88064 out

         res 40/00:04:57:20:00/00:00:00:00:00/40 Emask 0x100 (unknown error)

  28/3727  29/3727  30/3727ata2.00: status: { DRDY }

  31/3727  32/3727  33/3727  34/3727  35/3727  36/3727^C

This is getting a bit deep for me.  I have Googled the WRITE FPDMA QUEUED error and I found:-

Quote
Race-Free Status Return Mechanism

This feature eliminates the "handshake" traditionally required with the host to enable the status return, allowing the status of any command to be communicated at any time and the drive to complete multiple commands sequentially or at the same time

Interrupt Aggregation

The drive typically interrupts the host multiple times for each command it completes. The more interrupts, the bigger the host processing burden and the slower the performance. NCQ reduces the average number of interrupts per command to as few as one. If the drive completes multiple commands in a short time span--common with a highly queued workload--NCQ can aggregate the individual interrupts so that the host controller only has to process one interrupt.

First Party DMA (FPDMA)

NCQ uses First Party DMA to allow the drive set up Direct Memory Access (DMA) operation for a data transfer without host software intervention. The drive selects the DMA context by sending a DMA Setup FIS (Frame Information Structure) to the host controller. This FIS specifies the tag of the command for the DMA to be set up. Based on the tag value, the host controller will load the PRD table pointer for that command into the DMA engine and the transfer can proceed with no software intervention, allowing the drive to efficiently re-order commands since it can select the buffer to transfer on its own.

Please can anyone advise me... Does Marvell support this NCQ and FPDMA?,  Does my Samsung drive?  Is there a def in the driver I can switch it off when compiling?

How should I tackle this error?

Cheers

Patrick


EDIT 17:47

I threw away my cheapo ext Esata drive case and connected the Sata drive directly to the Plug with a sata/Esata cable I had in my junk box. I connected an external power supply to the drive and gave it another go to ext3 format the drive.

This time it completed successfully albeit with 7 of the same errors as I had previously. (I wonder if the power filters might help, I must may the effort and solder them in)

I mounted the drive OK and wrote and read a few short files OK.

I get a periodic (every tens of seconds), error in the sata system, it looks like the drive I have tries to go to sleep if not used, this appears to upset the plug's sata sub system, I want to run hdparm to tell the drive to keep spinning!

I have just screwed up my sd card ext2format, pulling it out of the powered plug, ( I needed to add the networking params so I could apt-get hdparm)

AGH!!

So I am back to fdisking my sdcard, then I will put the  rootfs back and the uImage I built and will try again

These Sd cards are most definitely NOT hot swappable!

P
« Last Edit: November 13, 2009, 10:59:48 AM by superpat » Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #5 on: November 14, 2009, 07:57:26 AM »

Hi

A lot of progress today!

1.  The errors I was getting in the sata subsystem  were due to my new, (one month old), Samsung HM500JI sata drive being defective.

I replaced this drive with a Samsung HD501LJ drive I dug out, it appears to work perfectly (see later)

2.  I found that neither of two Esata / usb external enclosures worked with the Plug Esata  system

However connecting the disk drive(s) directly to the Plug  esata connector worked. I did not need to power cycle to get the drive(s) visible to uboot

My esata to sata cable is one metre long, and unshielded, but the  HD501LJ drive worked well.

3.  Summary of today's tests.

3.1  I connected the replacement Sumsung drive  HD501LJ to the Plug computer with an Esata / sata 1 metre cable and a 12/5 v power brick.
3.2  I started uboot and halted at prompt. Using the ide reset command I saw that Uboot had found the drive.
3.3  I then booted my modifed kernel uImage from  SD card.   The kernel loaded and loaded the ata  sata drivers and created a dev/sda.
3.4  I repartitioned the drive and formatted it ext3  with no problems.
3.5  I ran the bonnie++ disk test /exercise program, with no errors, still working out the timing info, putty really screwed the formatting! (Higher disk transfer is good lower cpu usuage is good)
Output from bonnie:-
Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-------Sequential Create------ --------Random Create--------
                             -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
Machine                     Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
sheevaplug                 1G  5729  98   62350  57  28612  30   5981  99  80999  34    240.8   2
                   
                   
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  6111  47 +++++ +++ 21720 100 12521  94 +++++ +++ 21274  99
sheevaplug,1G,5729,98,62350,57,28612,30,5981,99,80999,34,240.8,2,16,6111,47,+++++,+++,21720,100,12521,94,+++++,+++,21274,99

3.6  I ran hdparm on the drive OK

Timing cached reads:   712 MB in  2.00 seconds = 356.04 MB/sec
Timing buffered disk reads:  244 MB in  3.02 seconds =  80.82 MB/sec


4. Work to be done.

4.1  Finish installing filter caps.
4.2  Find out why plug  sata system does not like my external enclosures on initiqalisation
4.3  Clean up modified kernel  and document.
4.4. Cut hole in sheevaplug case to access esata connector.
4.5  Get a RMA for the defective drive and return it, ( there is "lifetime" warranty on the drive).
4.6  Finish my home server using  a big sata drive!

I have attached todays putty log with all the interesting stuff!

Quote

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: OpenRD-Base LE

U-Boot 1.1.4 (Oct 27 2009 - 21:57:24) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

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

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

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:  3  0
Marvell>> u ide reset


Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found

Marvell>> <INTERRUPT>
Marvell>> ide reset


Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found

Marvell>> ide reset


Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: SAMSUNG HD501LJ                          Firm: CR100-10 Ser#: S0MUJ1MP852091     
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

Marvell>> ide reset

Unknown command 'ide' - try 'help'
Marvell>> <INTERRUPT>
Marvell>> ide ide le

Usage:
ide     - IDE sub-system

Marvell>> <INTERRUPT>
Marvell>> ide reset


Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: SAMSUNG HD501LJ                          Firm: CR100-10 Ser#: S0MUJ1MP852091     
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

Marvell>> b <INTERRUPT>
Marvell>> set bootargs 'console=ttys S0,  115200 ro root=/dev/mmcblk0p1 rootdelay=1'

Marvell>> mmcinit

SDHC found. Card desciption is:
Manufacturer:       0x1b, OEM "SM"
Product name:       "00000", revision 1.0
Serial number:      2054004964
Manufacturing date: 8/2009
CRC:                0x00, b0 = 0
Marvell>> ext2load mmc 0 0x800000 /boot/uImage


2274104 bytes read
Marvell>> bootm 0x800000

## Booting image at 00800000 ...
   Image Name:   Linux-2.6.32-rc6-00011-g3ad6b4c-
   Created:      2009-11-13  11:22:38 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2274040 Bytes =  2.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.32-rc6-00011-g3ad6b4c-dirty (root@debiansilch) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #1 PREEMPT Fri Nov 13 11:22:22 GMT 2009
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell SheevaPlug Reference Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 ro root=/dev/mmcblk0p1 rootdelay=1
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB 256MB = 512MB total
Memory: 514176KB available (4176K code, 959K data, 116K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:114
Console: colour dummy device 80x30
Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Kirkwood: MV88F6281-A0, TCLK=200000000.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
msgmni has been set to 1004
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
loop: module loaded
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Scanning device for bad blocks
Creating 3 MTD partitions on "orion_nand":
0x000000000000-0x000000100000 : "u-boot"
0x000000100000-0x000000500000 : "uImage"
0x000000500000-0x000020000000 : "root"
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:50:43:01:c1:e6
libertas_sdio: Libertas SDIO driver
libertas_sdio: Copyright Pierre Ossman
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
mice: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
cpuidle: using governor menu
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
Registered led device: plug:green:health
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mmc0: host does not support reading read-only switch. assuming write-enable.
mmc0: new high speed SDHC card at address 0001
mmcblk0: mmc0:0001 00000 7.60 GiB
 mmcblk0: p1
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
ata1: SATA link down (SStatus 0 SControl F300)
mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
oprofile: using timer interrupt.
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
rtc-mv rtc-mv: setting system clock to 2009-03-25 16:07:52 UTC (1237997272)
Waiting 1sec before mounting root device...
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
ata2.00: ATA-8: SAMSUNG HD501LJ, CR100-10, max UDMA7
ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG HD501LJ  CR10 PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 1:0:0:0: [sda] Attached SCSI disk
VFS: Mounted root (ext2 filesystem) readonly on device 179:1.
Freeing init memory: 116K
 * Filesystem type 'fusectl' is not supported. Skipping mount.
 * Setting preliminary keymap...        /usr/bin/ckbcomp: No keycodes, nor layout specified

[ OK ]
 * Starting kernel event manager...       
[ OK ]
 * Loading hardware drivers...       
[ OK ]
 * Loading kernel modules...         * Loading manual drivers...       
[ OK ]
 * Setting kernel variables (/etc/sysctl.conf)...        Unknown HZ value! (94) Assume 100.

[ OK ]
 * Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)...        Unknown HZ value! (94) Assume 100.

[ OK ]
 * Setting kernel variables (/etc/sysctl.d/10-network-security.conf)...        Unknown HZ value! (94) Assume 100.
error: "net.ipv4.tcp_syncookies" is an unknown key

[fail]
 * Activating swap...       
[ OK ]
 * Checking file systems...        fsck 1.41.4 (27-Jan-2009)

[ OK ]
 * Mounting local filesystems...       
[ OK ]
 * Activating swapfile swap...       
[ OK ]
 * Configuring network interfaces...       
[ OK ]
 * Setting up console font and keymap...        /usr/bin/ckbcomp: No keycodes, nor layout specified

[ OK ]
 * Starting system log daemon...       
[ OK ]
 * Starting kernel log daemon...       
[ OK ]
 * Starting OpenBSD Secure Shell server sshd       
[ OK ]

Ubuntu 9.04 sheevaplug ttyS0

sheevaplug login: patrick
Password:  * Restarting OpenBSD Secure Shell server sshd

Last login: Sat Nov 14 11:32:04 GMT 2009 on ttyS0
Linux sheevaplug 2.6.32-rc6-00011-g3ad6b4c-dirty #1 PREEMPT Fri Nov 13 11:22:22 GMT 2009 armv5tel

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/


patrick@sheevaplug:~$ sudo fdisk /dev/sda

The number of cylinders for this disk is set to 60801.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00080843

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       60801   488384001    7  HPFS/NTFS

Command (m for help): t d
Selected partition 1

Command (m for help): p

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00080843

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-60801, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-60801, default 60801):
Using default value 60801

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

patrick@sheevaplug:~$sudo  mkfs.ext3 /dev/sda1
mke2fs 1.41.4 (27-Jan-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
30531584 inodes, 122096000 blocks
6104800 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
3727 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000

Writing inode tables:    0/3727   1/3727   2/3727   3/3727   4/3727   5/3727   6/3727   7/3727   8/3727   9/3727  10/3727  11/3727  12/3727  13/3727  14/3727  15/3727  16/3727  17/3727 
....cut for brievity...
/37273719/37273720/37273721/37273722/37273723/37273724/37273725/37273726/3727done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

patrick@sheevaplug:

patrick@sheevaplug~$ cd /mnt/test
patrick@sheevaplug:/mnt/test$ dir
lost+found

patrick@sheevaplug:/mnt/test$ sudo mkdir btest
patrick@sheevaplug:/mnt/test$ cd ..

patrick@sheevaplug:/mnt$ bonnie++ --help
bonnie++: invalid option -- '-'
usage: bonnie++ [-d scratch-dir] [-s size(Mb)[:chunk-size(b)]]
                [-n number-to-stat[:max-size[:min-size][:num-directories]]]
                [-m machine-name]
                [-r ram-size-in-Mb]
                [-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use]
                [-q] [-f] [-b] [-p processes | -y]

Version: 1.03c
patrick@sheevaplug:/mnt$ bonnie++ --helpsudo -u root -d /mnt/test/btest
Using uid:0, gid:0.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...done.
Stat files in sequential order...done.
Delete files in sequential order...done.
Create files in random order...done.
Stat files in random order...done.
Delete files in random order...done.
Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
sheevaplug       1G  5729  98 62350  57 28612  30  5981  99 80999  34 240.8   2
                    ------Sequential Create------ --------Random Create--------
                    -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
              files  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP  /sec %CP
                 16  6111  47 +++++ +++ 21720 100 12521  94 +++++ +++ 21274  99
sheevaplug,1G,5729,98,62350,57,28612,30,5981,99,80999,34,240.8,2,16,6111,47,+++++,+++,21720,100,12521,94,+++++,+++,21274,99
patrick@sheevaplug:/mnt$ dir /mnt/test/btest
patrick@sheevaplug:/mnt$
patrick@sheevaplug:/mnt$ sudo hdparm -t /dev/sda

[sudo] password for patrick:



/dev/sda:

 Timing buffered disk reads:  242 MB in  3.00 seconds =  80.62 MB/sec

patrick@sheevaplug:/mnt$ sudo hdparm -t /dev/sda /dev/sdaT /dev/sda



/dev/sda:

 Timing cached reads:   672 MB in  2.00 seconds = 335.84 MB/sec

patrick@sheevaplug:/mnt$ sudo hdparm -T /dev/sda1



/dev/sda1:

 Timing cached reads:   712 MB in  2.00 seconds = 356.04 MB/sec

patrick@sheevaplug:/mnt$ sudo hdparm -T /dev/sda1 /dev/sda1t /dev/sda1



/dev/sda1:

 Timing buffered disk reads:  244 MB in  3.02 seconds =  80.82 MB/sec

patrick@sheevaplug:/mnt$



 






 
Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #6 on: November 15, 2009, 06:04:00 AM »

Hi

More progress.

In my last reply, I wrote that I thought my 2.5in Samsung sata drive HM500Jl was defective, but before I raised an RMA, I thought I would test it.

I installed it in another linux box I have here and thrashed the drive, there were no errors!   --- Not the drive then!

I reconnected the suspect drive to the Sheevaplug, whilst doing so I noticed the "kettle" mains connecter to the +5/12V PS brick I am using was very sloppy fit.  I replaced this with a new kettle lead, much firmer push fit into the PS brick.

I was also unhappy about the heat generated from the 500G Samsung drive in a small sealed case, so I put it "naked" across an upturned plastic box lid, so air could reach the electronics on the underside of the drive, as well from the disk itself

I powered up the plug and rebooted my modified kernel.

I have repeated all the steps I did yesterday, which YESTERDAY showed the intermittent errors  and also did several more  tests .

I  have not recorded ANY drive errors today  ------ Hooray!   But I still don't know which "fix" fixed it!, I should have only changed one thing at a time!

I D/L'd  another tester prog:- iozone and ran that for an extended period of time.  I ran bonnie++ for a full pass    ---- No Errors drive or otherwise from either.

I used wget on the sheevaplug and D/L'd  debian-live-502-i386-gnome-desktop.iso to the drive, and then copied it to a new file name, repeated several times.

I checked the md5sum of the final copy against the reference on the DL site... they were still identical.

The 724838400 byte file took around 32 seconds to transfer, (file to file on the same disk)  which I work out as 22.6 Mbyte/sec transfer rate 

I have been thinking about repackaging the plug and hard drive into a aluminium die cast box. This would mean I can mount the drive in the box,  ensure effective cooling of the drive, keep all the cables inside, and generally make a neater server. 

My goal for all this has been to create a reliable home server that uses minimum power, that I can feel happy about leaving on 24/7. 

cheers

P



Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #7 on: November 18, 2009, 09:29:14 AM »

Hi,

I have spent a couple of days trying to understand USB / eSATA enclosures!

Connecting either my Samsung 2.5in or 3.5in  drives to my eSATA enabled Sheevaplug DIRECTLY, i.e.  bare drive plugged into a external 5/12v PS brick, and cabled straight into the eSATA port of the Sheevaaplug results in:-

1.  Uboot " seeing" the drive on a ide reset command
2.  Linux booting and running with my sata enabled kernel, will "see" the drive and create a /dev/sda and /devsda1
3. The system is quite happy to be hot plugged and unplugged, the /dev/sda being removed and replaced as the drive is unplugged and replugged
4. There are no data errors, and data transfers  are fine.

HOWEVER.  I have two eSATA  / USB hard drive external enclosures which struggle to work with the Sheevaplug eSATA (USB works on both)
One is a 3.5in EYE-T USB 2.0 and eSata Mobile disk, 3.5in model NS320ES
The second is a Pluscom 2.5in  model C221-INIC1608.

The problem with the 3.5in unit is that the SheevaPlug NEVER "sees" the drive subsytem either by Uboot or the kernel
The problem with the 2.5in unit is that the Sheevaplug ONLY  "sees" the drive after the power to the enclosure is removed / replaced.
Once the 2.5in unit is disconnected, and reconnected, the kernel cannot find the drive again and shuts down the sata driver.

Both  enclosures work OK  when connected to a i386 SATA  motherboard running Linux.  (I have not tried hot plugging the enclosures).

Looking at the guts of the enclosures reveals some interesting things.

Firstly the EYE-T enclosure uses an Initio inic-1610l  bridge i.c. 
It is quite a complicated i.c with an integrated 8051 microcontroller.  Here is the feature summary:-
Quote
1.1   Feature Summary
      Integrates USB2.0 PHY IP core.
      Data transfer rate of up to 60 MB/sec on USB side, 150 MB/sec on SATA side.
      Integrated internal Turbo 8051 uP with 16KB embedded SRAM.
      Program Flash In-Line (Firmware download mechanism, USB direct for MFG Test, write .bta file.
      Local Bus Interface to Serial Peripheral Interface (SPI) Flash Only.
      Support HID.
      Up to 9 GPIO pins.
      The option of using only one external crystal.
      Provide software utilities for downloading the upgraded firmware code under USB.
      Supports SATA (bridged SATA) Hard Disk drives, CD-RW devices, DVDs, Removable media devices
      USB 1.1 and USB 2.0 compliant.
      USB Mass Storage Class Bulk-Only Transport Specification Compliant.
      SATA specification 1.0 (1.5 Gbps), SATA II and eSATA Compliant (Hot Plug is supported).
      Support SATA to SATA pass through.
      Supports SATA NCQ.
      Supports 3Gbps SATA host and 3Gbps SATA HDD connection to internal 1.5Gbps SATA Phy.
      Support ATA/ATAPI device DMA and PIO mode.
      4k bytes of data buffer for data transfer.
      One SATA channel support.
      On-Chip 3.3V to 1.8V regulator.
       64 pin LQFP

The block diagram shows that the serial data signals from the host pass through the I.c. where they are muxed with the sata signals derived from the USB connection. The two serial data lines then leave the chip to connect to the disk drive.

Note the maximum data rates for the USB and Sata  connections!

The 2.5in Pluscom enclosure also has an Initio I.C. but in this case it is a inic-1608l.  This ic does NOT have a sata port, it is ONLY a USB to sata converter, as far as I can see, the two serial lines from the input eSATA connector go directly to the sata drive connector, but the output of the inic-1608l ic, USB to Sata is wired in parallel to the drive connector.  Again the ic has a 8051 microcontroller.  The USB data rate is specified at 60MBps. Obviously there is no sata data rate.   If the 8051 is not running correctly, perhaps it shuts the o/p of the chip off, stopping the sata connection running as well Huh

I had a hard look at the external enclosures available.  There does not appear to be many true SATAll specification  enclosures.  most devices on the market appear to be Chinese clones in the Pluscom vein.   (The Initio bridge Ic vendor does not appear to support more than 150MBps on any of the 4 chips they sell.

Now the inition inc-1610l does state that hotplugging is supported in the chip, but I have no idea whether the EYE-T manufacturer has implemented it in the firmware of the 8051!

Have you ever seen a ext enclosure manufacturer offering a firmware update ?

I have found a reasonable priced vendor of the Antec MX-25  enclosure, and ordered one, just to see if paying for a more expensive product will result in one that works. It should arrive in a few days.

I am thinking more seriously about installing the Plug and drive in a metal box.  My misgiving is that the price of it this  development will soon reach the price of an OpenRD box!  However this is much more fun.  It keeps my brain from completely melting into mush! I am retired and I cannot abide watching the cr*p on the  tv every night!

cheers for now

P







Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #8 on: November 21, 2009, 08:08:26 AM »

Hi,

Whilst waiting for my more expensive 2.5in esata / usb enclosure to arrive, I thought I would play around with my Samsung HD501LJ 500 mbyte sata drive. I think it is faster than the 2.5in drive I also use.

To make it more interesting I thought I would try to boot off the Sata drive, instead of running the kernel from a SD as I usually do.

 I put the drive on my 386 Linux box,  created a "rootstock" ubuntu  root file system on the drive,  put my modified kernel uImage in  the /boot directory, edited the /etc/network/interfaces file.

I then attached the drive directly to the Sheevaplug, using a 5V/12V power brick, powered the Plug, typed in the boot commands  and booted the drive!     

For proof and FYI here is the console message... Note the Sheevaplug finds and uses ata2 for a Sata2 device!

Quote
Hit any key to stop autoboot:  3  0

Marvell>> set bootargs 'console=ttyS0,115200 ro root=/dev/sda1 rootdelay=1'


Marvell>> ide reset




Reset IDE:

Marvell Serial ATA Adapter

Integrated Sata device found

[0 1 0]: Enable DMA mode (6)

  Device 1 @ 0 1:

Model: SAMSUNG HD501LJ                          Firm: CR100-10 Ser#: S0MUJ1MP852091     

            Type: Hard Disk

            Supports 48-bit addressing

            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)



Marvell>> ext2load ide 1:1 0x800000 /boot/uImage




2274104 bytes read

Marvell>> bootm 0x800000


## Booting image at 00800000 ...

   Image Name:   Linux-2.6.32-rc6-00011-g3ad6b4c-

   Created:      2009-11-13  11:22:38 UTC

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    2274040 Bytes =  2.2 MB

   Load Address: 00008000

   Entry Point:  00008000

   Verifying Checksum ... OK

OK



Starting kernel ...



Uncompressing Linux... done, booting the kernel.

Linux version 2.6.32-rc6-00011-g3ad6b4c-dirty (root@debiansilch) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #1 PREEMPT Fri Nov 13 11:22:22 GMT 2009

CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977

CPU: VIVT data cache, VIVT instruction cache

Machine: Marvell SheevaPlug Reference Board

Memory policy: ECC disabled, Data cache writeback

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048

Kernel command line: console=ttyS0,115200 ro root=/dev/sda1 rootdelay=1

PID hash table entries: 2048 (order: 1, 8192 bytes)

Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)

Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)

Memory: 256MB 256MB = 512MB total

Memory: 514176KB available (4176K code, 959K data, 116K init, 0K highmem)

SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

Hierarchical RCU implementation.

NR_IRQS:114

Console: colour dummy device 80x30

Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

NET: Registered protocol family 16

Kirkwood: MV88F6281-A0, TCLK=200000000.

Feroceon L2: Enabling L2

Feroceon L2: Cache support initialised.

bio: create slab <bio-0> at 0

vgaarb: loaded

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

cfg80211: Using static regulatory domain info

cfg80211: Regulatory domain: US

(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

(2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)

(5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

(5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

(5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

(5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)

(5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)

cfg80211: Calling CRDA for country: US

Switching to clocksource orion_clocksource

NET: Registered protocol family 2

IP route cache hash table entries: 4096 (order: 2, 16384 bytes)

TCP established hash table entries: 16384 (order: 5, 131072 bytes)

TCP bind hash table entries: 16384 (order: 4, 65536 bytes)

TCP: Hash tables configured (established 16384 bind 16384)

TCP reno registered

NET: Registered protocol family 1

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.

msgmni has been set to 1004

alg: No test for stdrng (krng)

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered (default)

Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled

serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A

console [ttyS0] enabled

loop: module loaded

sata_mv sata_mv.0: version 1.28

sata_mv sata_mv.0: slots 32 ports 2

scsi0 : sata_mv

scsi1 : sata_mv

ata1: SATA max UDMA/133 irq 21

ata2: SATA max UDMA/133 irq 21

NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)

Scanning device for bad blocks

Creating 3 MTD partitions on "orion_nand":

0x000000000000-0x000000100000 : "u-boot"

0x000000100000-0x000000500000 : "uImage"

0x000000500000-0x000020000000 : "root"

MV-643xx 10/100/1000 ethernet driver version 1.4

mv643xx_eth smi: probed

net eth0: port 0 with MAC address 00:50:43:01:c1:e6

libertas_sdio: Libertas SDIO driver

libertas_sdio: Copyright Pierre Ossman

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

orion-ehci orion-ehci.0: Marvell Orion EHCI

orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1

orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000

orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver ums-datafab

usbcore: registered new interface driver ums-freecom

usbcore: registered new interface driver ums-jumpshot

usbcore: registered new interface driver ums-sddr09

usbcore: registered new interface driver ums-sddr55

mice: PS/2 mouse device common for all mice

rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0

i2c /dev entries driver

cpuidle: using governor ladder

cpuidle: using governor menu

mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)

Registered led device: plug:green:health

mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver

mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver

mv_xor mv_xor.0: Marvell XOR: ( xor cpy )

mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )

mv_xor mv_xor.2: Marvell XOR: ( xor cpy )

ata1: SATA link down (SStatus 0 SControl F300)

mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

oprofile: using timer interrupt.

TCP cubic registered

NET: Registered protocol family 17

lib80211: common routines for IEEE802.11 drivers

rtc-mv rtc-mv: setting system clock to 2009-04-01 17:18:09 UTC (1238606289)

Waiting 1sec before mounting root device...

ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)

ata2.00: ATA-8: SAMSUNG HD501LJ, CR100-10, max UDMA7

ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)

ata2.00: configured for UDMA/133

scsi 1:0:0:0: Direct-Access     ATA      SAMSUNG HD501LJ  CR10 PQ: 0 ANSI: 5

sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)

sd 1:0:0:0: [sda] Write Protect is off

sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

 sda: sda1

sd 1:0:0:0: [sda] Attached SCSI disk

EXT3-fs: mounted filesystem with writeback data mode.

VFS: Mounted root (ext3 filesystem) readonly on device 8:1.

Freeing init memory: 116K

kjournald starting.  Commit interval 5 seconds

 * Filesystem type 'fusectl' is not supported. Skipping mount.

 * Setting preliminary keymap...        /usr/bin/ckbcomp: No keycodes, nor layout specified


[ OK ]

 * Starting kernel event manager...       
[ OK ]

 * Loading hardware drivers...       
[ OK ]

 * Loading kernel modules...         * Loading manual drivers...       
[ OK ]

 * Setting kernel variables (/etc/sysctl.conf)...       
[ OK ]

 * Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)...       
[ OK ]

 * Setting kernel variables (/etc/sysctl.d/10-network-security.conf)...        error: "net.ipv4.tcp_syncookies" is an unknown key


[fail]

 * Activating swap...       
[ OK ]

 * Checking file systems...        fsck 1.41.4 (27-Jan-2009)


[ OK ]

 * Mounting local filesystems...       
[ OK ]

 * Activating swapfile swap...       
[ OK ]

 * Configuring network interfaces...       
[ OK ]

 * Setting up console font and keymap...        /usr/bin/ckbcomp: No keycodes, nor layout specified


[ OK ]

 * Starting system log daemon...       
[ OK ]
 * Starting kernel log daemon...       
[ OK ]


Ubuntu 9.04 sheevaplug ttyS0



sheevaplug login:  * Starting OpenBSD Secure Shell server sshd       
[ OK ]
 * Restarting OpenBSD Secure Shell server sshd


Ubuntu 9.04 sheevaplug ttyS0



sheevaplug login: patrick

Password:

Linux sheevaplug 2.6.32-rc6-00011-g3ad6b4c-dirty #1 PREEMPT Fri Nov 13 11:22:22 GMT 2009 armv5tel



The programs included with the Ubuntu system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.



Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by

applicable law.



To access official Ubuntu documentation, please visit:

http://help.ubuntu.com/

To run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.


 


Everything went fine, so I thought I would compare the performance of the SheevaPlug / Sata sub system, in exactly the same way as was done in Kenny's "Computing plugs" wiki with USB drive throughput

Quote
patrick@sheevaplug:~$ sync; time sh -c "dd if=/dev/zero of=./test bs-=1000k count
=1000; sync"

1000+0 records in

1000+0 records out

1024000000 bytes (1.0 GB) copied, 21.1881 s, 48.3 MB/s



real0m23.005s

user0m0.030s

sys0m11.120s

patrick@sheevaplug:~$ sync; time sh -c "dd if=/dev/zero of=./test bs=1000k count=
=1000; sync"

1000+0 records in

1000+0 records out

1024000000 bytes (1.0 GB) copied, 20.2974 s, 50.4 MB/s



real0m22.131s

user0m0.010s

sys0m12.120s

patrick@sheevaplug:~$ sync ; time sh -c "dd if=./test of=/dev/null; sync"

2000000+0 records in

2000000+0 records out

1024000000 bytes (1.0 GB) copied, 19.7607 s, 51.8 MB/s



real0m19.900s

user0m1.760s

sys0m7.740s

patrick@sheevaplug:~$ sync; time sh -c "dd if=./test of=/dev/null; sync"

2000000+0 records in

2000000+0 records out

1024000000 bytes (1.0 GB) copied, 19.7442 s, 51.9 MB/s



real0m19.910s

user0m1.840s

sys0m8.110s

patrick@sheevaplug:~$ sync; time sh -c "dd if=./test of=/dev/null; sync"

2000000+0 records in

2000000+0 records out

1024000000 bytes (1.0 GB) copied, 19.7358 s, 51.9 MB/s



real0m19.910s

user0m1.620s

sys0m8.100s

The read and write performance was similar  around 51 MB/s. 

Hdparm gave the following result:-

Quote
patrick@sheevaplug:~$sudo  hdparm -t /dev/sda1


/dev/sda1:

 Timing buffered disk reads:  236 MB in  3.02 seconds =  78.04 MB/sec


patrick@sheevaplug:~$ sudo hdparm -T /dev/sda1


/dev/sda1:

 Timing cached reads:   682 MB in  2.00 seconds = 340.86 MB/sec


If anyone wants me to try any particular program, benchmark or test please just ask!

cheers for now

Patrick

Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #9 on: November 24, 2009, 08:28:25 AM »

Hi,

Well this is about the last progress report, I have come to the end of the saga, and I am a happy bunny.

My new Antec "Veris" MX-25 2.5" ext USB / E-Sata enclosure arrived today.  I installed my Samsung 500Gb Sata drive, but did not connect it to the plug.

I booted up my sata enabled kernel on a SD card,  when  system was settled I connected the Enclosure to the Plug firstly by USB

I ran the tests I did on the previous reply (on my 3.5 in drive) and got the following results:-
Quote
USB CONNECTION
hdparm
/dev/sda1:

 Timing buffered disk reads:   76 MB in  3.06 seconds =  24.85 MB/sec 
 Timing cached reads:   590 MB in  2.00 seconds = 294.36 MB/sec

Write to disk
1000+0 records in
1000+0 records out
1024000000 bytes (1.0 GB) copied, 33.2693 s, 30.8 MB/s
1024000000 bytes (1.0 GB) copied, 32.8597 s, 31.2 MB/s
1024000000 bytes (1.0 GB) copied, 32.9182 s, 31.1 MB/s

Read from Disk
1024000000 bytes (1.0 GB) copied, 32.9256 s, 31.1 MB/s
1024000000 bytes (1.0 GB) copied, 32.9567 s, 31.1 MB/s
I then umounted the drive and disconnected the usb cable. I powered the enclosure from a +5v brick and connected the eSata cable to the Plug.

The running system "found" the new sata drive and created the /devs for me !  Removing and replacing the drive several times, "hot plugging",  works fine

I then ran the same tests again:-
Quote
E-Sata connection
hdparm
/dev/sda1:

 Timing buffered disk reads:  192 MB in  3.02 seconds =  63.57 MB/sec
 Timing cached reads:   630 MB in  2.01 seconds = 314.12 MB/sec

Write to disk
1000+0 records in
1000+0 records out
1024000000 bytes (1.0 GB) copied, 14.5329 s, 70.5 MB/s
1024000000 bytes (1.0 GB) copied, 13.4408 s, 76.2 MB/s
1024000000 bytes (1.0 GB) copied, 13.8651 s, 73.9 MB/s

Read from disk
1024000000 bytes (1.0 GB) copied, 12.4138 s, 82.5 MB/s
1024000000 bytes (1.0 GB) copied, 12.4488 s, 82.3 MB/s
1024000000 bytes (1.0 GB) copied, 11.9506 s, 85.7 MB/s

The only "funny"  remaining to be investigated is once when I plugged the Esata cable into the enclosure, the Putty connection closed itself. When I restarted it and reconnected to the Plug, I was still logged in and  the Plug had not taken a dump, there was no dmesg or errors in any log files. All I can think of is that there may be a bug in  uboot.

Since the E-Sata connection  appears to being performing very well now, I am going to cut a hole in the plastic case of the plug to accomodate the E-Sata connector, (ala the Ctera Plug). and box it all up.  I haven't yet added the four filter caps to the Plug sata power supply, but I have to do that, although there does not appear to be any problems with them not fitted!

I will then install the required apps to build my home server!

 I will try to create an illustrated account of the modifications, hardware and software on the PlugWiki, ( I have opened an account, but I have to learn how to create a "how to" article).

One thing I am not clear about, is how to document and name the modified kernel, so as to avoid any chance of people confusing it with "normal" kernels.   The mods are very minor, only a couple or three lines in   arch/arm/mach-kirkwood/sheevaplug-setup.c  There is of course the need for the modified uboot which I obtained from the openrd  archive.

If anyone wants any info please reply here or drop me a PM

cheers for now

Patrick

Edit for punctuation

Edit  I cut a hole in the SheevaPlug case and stuffed it all back inside.

Added picture of modified Plug with E-Sata drive connected!

P


* dsc_0057.jpg (58.4 KB, 1028x688 - viewed 5958 times.)
« Last Edit: November 25, 2009, 05:51:26 AM by superpat » Logged

Guai888
Newbie
*

Karma: 0
Posts: 21


View Profile
« Reply #10 on: November 29, 2009, 09:35:04 AM »

Hi Guys,

I have 1.3 board and I put on the esata connector and the components.
When I run "ide reset" in uboot, here is what I got

****************************************************************8

 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Jul 19 2009 - 16:03:28) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

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

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

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>>
Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Warning Integrated SATA is Powered Off
no device found

*****************************************************

Does that mean I have put on the wrong components?
Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #11 on: November 29, 2009, 01:03:48 PM »

@Guai888

Hi,   Nice to read that someone else is having a go at Esata!

Firstly.... You write "put on the esata connector and the components".

Have you installed ALL the components. If not, the critical ones are the 4 series decoupling caps to the esata connector, and the Ferrite inductor (BIT7) that conducts 3.3V power to the sata section of the Marvell SOC.  (Its good to install the pi filter components if you can).

I have already documented the component values and locations  at length in the  hardware forum, mainly in the http://plugcomputer.org/plugforum/index.php?topic=683.msg5371#msg5371, but also in this post, earlier replies.

I installed Uboot  I borrowed from the Openrd forum, I  haven't tried esata with the SheevaPlug uboot, didn't know it supported sata ! My u-boot announces itself thus:-

Quote

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: OpenRD-Base LE

U-Boot 1.1.4 (Oct 27 2009 - 21:57:24) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

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

I also compiled a kernel with esata support for the sheevaplug.

cheers

P

Logged

Guai888
Newbie
*

Karma: 0
Posts: 21


View Profile
« Reply #12 on: November 29, 2009, 08:45:21 PM »

Hi Superpat,

I have change the uboot to Open-RD. Here is what I got:

*************************************************************
 ** MARVELL BOARD: OpenRD-Base LE

U-Boot 1.1.4 (Oct 27 2009 - 21:57:24) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

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

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

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


ide reset

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
Error - Failed initializing(SRST) drive on channel 1
Failed initializing storage deivce connected to SATA channel 1

*************************************************************

I think I have put on all the component correctly but it is time for me to recheck.

Logged

superpat
Full Member
***

Karma: 15
Posts: 141


View Profile
« Reply #13 on: November 30, 2009, 02:35:38 AM »

@Guai888

Hi,

You are 50%  complete now.

The Marvell SOC sata section is alive and well!

It looks like the communication between the drive and the Soc is not OK

There appears to be a problem either

1. Between the Marvell Soc and the esata connector  ( i.e.  the 4 serial decouple caps, or the esata connector soldering)

2. Esata cable and sockets.  I found the Esata / esata cables I had purchased had very thick plastic grips on the connectors which would not allow the pins of the connector to enter the sockets fully,  I had to trim back the plastic surrounding the esata sockets on both my drive enclosures' end plates, to allow the esata plug to make contact properly.

3 The sata device you are connecting to the esata connector    What have you got connected?    I found that one of my cheap external enclosures would NOT work with the Esata connection at all, the other only connected after removing / replacing the 5v power connector several times, or unplugging / replugging the esata cable.

I found the PREFERRED way of testing the sata channels was to connect a sata drive, bare, directly from the sata connection on the drive to the esata connector on the sheevaplug, using a Sata to ESata cable I had in my spares box, ( it was a 1 metre cable but worked fine).  I powered the drive from a small 5V 12V power brick and a sata drive power connector.
This eliminates the possibility of your esta enclosure not being "compatible" with the Sheevaplug

I am convinced a lot of the  cheap enclosures  although fitted with USB and Esata ports do not function with Esata properly. I think there may be issues between Sata 1 and Sata 2  standards and speeds.  I went as far as purchasing a Antec enclosure, nearly 30 retail, this connects to the Plug first time every time, with no need to pulse the power or esata
cables

YMMV

good luck

Patrick
Logged

Guai888
Newbie
*

Karma: 0
Posts: 21


View Profile
« Reply #14 on: November 30, 2009, 07:38:58 AM »

Hi Patrick,

I double checked my board.

C197 on the CPU side
C196, C78, C79 on the (K column) right above BIT7
BIT 7

C164, C188, C190, C189

Do I miss any components?

I am pretty sure that Open-RD uboot is working. I just can not get it pass the initialization.
If I pull out the eSATA cable, the prompt will immediately inform me that drive fail to initialize otherwise it will just wait for a long time before prompt return and inform me that drive fail to initialize.
I assume that uboot was waiting for some thing from the drive but never get it so it just time out.
Do you need to set any environment variable?

Best Regards
Paul Liu
Logged

Pages: [1] 2 3
Print
Jump to: