New IT forum Follow us on Twitter
21 May 2012, 06:34:05 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: TonidoPlug2 - Now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Need help booting from eSata drive  (Read 583 times)
yustas
Newbie
*
Posts: 6


« on: 20 September 2011, 09:43:27 pm »

Hello,
I am trying to boot my eSata Sheevaplug from external eSATA drive.
I have upgraded uboot, eSata device is recognized by Ubuntu when I boot my plug from nand or mmc card.

When I am trying to boot from eSata, booting process finishing with
Code:
Uncompressing Linux... done, booting the kernel.

I have read:
http://www.cyrius.com/debian/kirkwood/sheevaplug/uboot-upgrade.html
http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html
http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html
.. and lot of forum topics.

I am using uImage, initrd and rootfs.tar.gz from NewIT install CD.

Configuration of SATA drive:
Code:
   
Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1           2       16033+  83  Linux
/dev/sdb2               3        1218     9767520   83  Linux
/dev/sdb3            1219      243080  1942756515   83  Linux
/dev/sdb4          243081      243201      971932+  83  Linux

Where sdb1 is supposed to be boot partition, sdb2 - root filesystem, sdb3 user data and sdb4 is linux swap.
rootfs.tar.gz was extracted to sdb2.

uBoot variables:
Code:
Marvell>> printenv
arcNumber=2097
baudrate=115200
boot_ide=setenv bootargs $(bootargs_console); run bootcmd_sata; bootm 0x00800000 0x01100000
boot_mmc=setenv bootargs $(bootargs_console) $(bootargs_root_mmc); run bootcmd_mmc; bootm 0x00800000
boot_nand=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; ${x_bootcmd_usb}; ${x_bootcmd_sata}; bootm 0x6400000;
boot_usb=setenv bootargs $(bootargs_console) $(bootargs_root_ide); run bootcmd_usb; bootm 0x00800000 0x01100000
bootargs=console=ttyS0,115200 root=/dev/sdb2 rw rootdelay=5
bootargs_console=console=ttyS0,115200
bootargs_root_ide=root=/dev/sdb2 rootdelay=10
bootargs_root_mmc=root=/dev/mmcblk0p2 rootdelay=5
bootcmd=run boot_usb
bootcmd_mmc=mmc init; ext2load mmc 0:1 0x00800000 /uImage
bootcmd_sata=ide reset; ext2load ide 0:1 0x01100000 /uInitrd; ext2load ide 0:1 0x00800000 /uImage
bootcmd_usb=usb start; fatload usb 0:1 0x00800000 /uImage; fatload usb 0:1 0x01100000 /initrd
bootdelay=3
ethact=egiga0
ethaddr=00:50:43:01:4a:e1
filesize=27FC58
machid=a76
mainlineLinux=yes
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200 mtdparts=orion_nand:512k(uboot),4m@1m(kernel),507m@5m(rootfs) rw
x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
x_bootcmd_kernel=nand read 0x6400000 0x100000 0x400000
x_bootcmd_sata=ide reset;
x_bootcmd_usb=usb start;

Please help me understand what I do wrong.
Thank you.
« Last Edit: 21 September 2011, 08:41:12 am by yustas » Logged
Confusticated
New IT customer
Hero Member
*
Posts: 511


« Reply #1 on: 21 September 2011, 09:33:59 pm »

${bootargs_root_ide} is missing from 'boot_ide'
Logged

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


« Reply #2 on: 22 September 2011, 07:30:37 am »

${bootargs_root_ide} is missing from 'boot_ide'

Solved! Thank you very much for guide me.
What was changed:
Code:
boot_ide=setenv bootargs $(bootargs_console) $(bootargs_root_ide); run bootcmd_sata; bootm 0x00800000
bootcmd=run boot_ide

The Linux kernel with built-in support of Sata was copied to /dev/sdb1
(read more here http://www.newit.co.uk/forum/index.php/topic,796.0.html)
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!