New IT forum Follow us on Twitter
22 May 2012, 10:54:16 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: eSATA plug booting from NAND and SD  (Read 3044 times)
Bakra
Newbie
*
Posts: 16


« on: 14 April 2010, 10:31:13 pm »

I already have a white Sheevaplug, and now I bought a black (eSATA) one.

The way my white Sheevaplug boots is:

1) SD card with Ubuntu 9.04 (with all updates)
2) If no SD card present => boot NAND (also Ubuntu 9.04 with all updates)


Now I want to use that same SD card in the same way on the black Sheevaplug.

My question: how do I make the black Sheevaplug multiboot in the same way as the white one without loosing eSATA capabilities?
« Last Edit: 14 April 2010, 10:37:06 pm by Bakra » Logged
peter a
Full Member
***
Posts: 162


« Reply #1 on: 14 April 2010, 10:38:08 pm »

change the uboot args
Logged
Bakra
Newbie
*
Posts: 16


« Reply #2 on: 15 April 2010, 05:45:42 am »

I did that. I tried the one's from this link: http://www.plugcomputer.org/plugwiki/index.php/SD_Card_As_Root_File_System but then I end up with a kernel panic.
I think that link was the one I used for the white Sheeva.

Can I use this one: http://www.newit.co.uk/forum/index.php?PHPSESSID=ab0e3711db167c54f3ec7ee5c897e16c&topic=194.msg417#msg417 without losing eSATA capabilities?
Logged
peter a
Full Member
***
Posts: 162


« Reply #3 on: 15 April 2010, 08:04:14 am »

The default kernel in the tar ball does not support the Esata drive !!!

Get the plug working from USB first , then you need to change the kernel .

But I don`t know how to multi-boot with the Esata as a boot option .
Logged
Bakra
Newbie
*
Posts: 16


« Reply #4 on: 15 April 2010, 05:43:53 pm »

What do I have to do to just boot it of my SD card?

With the setenv I tried I get an kernel panic
Logged
peter a
Full Member
***
Posts: 162


« Reply #5 on: 15 April 2010, 07:49:53 pm »

That is from a file I use for the boot options I use


Code:
sd card boot

setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/mmcblk0p2'
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x0800000 /uInitrd; ext2load mmc 0 0x400000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x400000 0x0800000'
saveenv

nand boot
setenv mainlineLinux no
setenv bootargs 'console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none'
setenv bootargs_root 'root=/dev/mtdblock2 ro'
  setenv bootcmd 'nand read.e 0x800000 0x100000 0x400000; bootm 0x800000'
saveenv

usb boot
setenv mainlineLinux yes
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/sda2 rootdelay=10'
  setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x0800000 /uInitrd; ext2load usb 0:1 0x400000 /uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x400000 0x0800000'
saveenv


sata kernel

setenv mainlineLinux yes
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/sda2 rootdelay=10'
setenv bootcmd_ide 'ide reset; ext2load ide 1 0x0800000 /test-uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_ide; bootm 0x0800000'
saveenv
Logged
Bakra
Newbie
*
Posts: 16


« Reply #6 on: 17 April 2010, 07:45:11 pm »

Still not booting SD.

I tried the part for SD card booting (except saveenv, because I don't want to save this before it works).

After Marvell >> boot

I get the message: Unknown command 'mmcinit' - try 'help'

Any idea? Your help is much approciated!
Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #7 on: 17 April 2010, 09:21:34 pm »

Are the u-boot versions on the white & black sheevaplug the same ?
Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #8 on: 17 April 2010, 09:34:47 pm »

My mistook, also compare the dates, look at this thread if you havn't already done so
http://www.newit.co.uk/forum/index.php/topic,246.0.html
Logged

Advocatus Diaboli - My agenda is not to give you the answer, but to guide your thoughts so you derive it for yourself!
Bakra
Newbie
*
Posts: 16


« Reply #9 on: 17 April 2010, 09:57:46 pm »

        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Mar 19 2009 - 16:06:59) Marvell version: 3.4.16

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

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
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc


========================================================

This is a copy of the startscreen

In case to boot from SD, is it necessary to install the U-boot from this thread http://www.newit.co.uk/forum/index.php/topic,246.0.html ?
« Last Edit: 17 April 2010, 11:27:44 pm by Bakra » Logged
maisondouf
Jr. Member
**
Posts: 68


Crazy hacker's family since 1982


WWW
« Reply #10 on: 07 May 2010, 08:22:44 pm »

For use eSATA facilities, you have to use only one kind of uboot.

The Marvell version 3.4.16, 3.4.19 and the new 3.4.27 with pingtoo patch don't support it.

You have to download a special version from New-IT here.

It's named 'uboot-sata-090903.bin' and was made with the 3.4.16 Marvell version.

Here is the result of my test with different version of uboot on my esata plug under 2.6.33.3 kernel

Quote
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Apr  9 2009 - 12:23:12) Marvell version: 3.4.16

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

U-Boot 1.1.4 (Dec 27 2009 - 22:03:21) Marvell version: 3.4.27


 * Loading hardware drivers...                                                 
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi1 : sata_mv
scsi2 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
ata1: SATA link down (SStatus 0 SControl F300)
eth0: link up, 100 Mb/s, full duplex, flow control disabled
scsi 0:0:0:0: Direct-Access     ST310014 A                     PQ: 0 ANSI: 0
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 20005650 512-byte logical blocks: (10.2 GB/9.53 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk
NET: Registered protocol family 10
ata2: link is slow to respond, please be patient (ready=0)
ata2: SRST failed (errno=-16)
ata2: link is slow to respond, please be patient (ready=0)
ata2: SRST failed (errno=-16)
ata2: link is slow to respond, please be patient (ready=0)
ata2: SRST failed (errno=-16)
ata2: limiting SATA link speed to 1.5 Gbps
ata2: SRST failed (errno=-16)
ata2: reset failed, giving up
                                                                         [ OK ]
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Jul 14 2009 - 06:46:57) Marvell version: 3.4.16

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



 * Loading hardware drivers...                                                 
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi1 : sata_mv
scsi2 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
ata1: SATA link down (SStatus 0 SControl F300)
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
ata2.00: ATA-7: WDC WD1600BEVS-22RST0, 04.01G04, max UDMA/133
ata2.00: 312581808 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 2:0:0:0: Direct-Access     ATA      WDC WD1600BEVS-2 04.0 PQ: 0 ANSI: 5
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2
sd 2:0:0:0: [sda] Attached SCSI disk
                                                                         [ OK ]

The important thing is to note the date of making (Jul 14 2009 - 06:46:57).

For me, it's simple as I'am french  Grin


The first three version detect only my USB disk  ST310014 A, produce long time-out during sata init and fail.

The special version detects th two disk ( usb  ST310014 A and sata WDC WD1600BEVS-2 )

If you have a tftp server, you stop the boot process and use the 'bubt' command to replace your regular 3.4.16 version.

If not search around the method to make this from an USB key.

Logged

NSLU2 owner since 4 years...
Very new owner of a black eSata Sheevaplug.
(Wiki en français http://plug.maisondouf.fr)
maisondouf
Jr. Member
**
Posts: 68


Crazy hacker's family since 1982


WWW
« Reply #11 on: 09 May 2010, 12:16:31 am »

I have installed the new kernel sheeva-2.6.33.3 from http://sheeva.with-linux.com/sheeva/ using the README-2.6.33.3 script.

This, on a Debian Squeeze installed in a SDHC because debian's kernel 2.6.32-3-kirkwood doen't support SATA.

Now my sata disk is ok, but somes messages appears during boot
Quote
WARNING: Couldn't open directory /lib/modules/2.6.33.3: No such file or directory
FATAL: Could not open /lib/modules/2.6.33.3/modules.dep.temp for writing: No such file or directory

The directory /lib/modules/2.6.33.3 exists with drwxr-xrx rights and the files in it have rw-r--r-- rights

I have executed the scripts with root privileges, so I don't understand at all....
Logged

NSLU2 owner since 4 years...
Very new owner of a black eSata Sheevaplug.
(Wiki en français http://plug.maisondouf.fr)
Bakra
Newbie
*
Posts: 16


« Reply #12 on: 24 May 2010, 08:05:00 pm »

Hi Maisondouf,

I finally had some time to experiment with the black plug.
I made it multi-boot. The only thing is I installed the 2.6.34 kernel form sheeva.with-linux, but it is still booting the old kernel due to wrong env variables. See my other thread: http://www.newit.co.uk/forum/index.php/topic,364.0.html
I already asked Marcus for some advice there.
Thanks for your help. It's much appreciated!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!