• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Boot from Esata ( fixed )  (Read 1877 times)
peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« on: February 20, 2010, 03:49:01 AM »

Hi, I have an Esata version from New IT, and trying now to boot off the Esata drive.
I`ve solved most parts of this, But I think I`m stuck on finding the right Uboot setting?.
I`ve downloaded and installed the Uboot_sata.bin from http://www.newit.co.uk/u-boot/
Complied a Esata Kernel which does work if booted from a usb drive .
But setting which boot the usb drive won`t the sata drive.

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 /sheeva-2.6.32.8-uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x0800000'
saveenv

is there a bootcmd_sata ?
« Last Edit: February 20, 2010, 01:56:57 PM by peter a » Logged

rooster
Administrator
Sr. Member
*****

Karma: 8
Posts: 311


View Profile
« Reply #1 on: February 20, 2010, 08:01:42 AM »

I would add
Quote
ide reset
to the bootcmd.
Your root file system is on the SATA drive second partition?
Why not place the uImage on drive too?
Quote
setenv bootcmd 'ide reset; ext2load ide 0:1 0x0800000  /boot/uImage; setenv bootargs $(console) root=/dev/sda1 rw; bootm 0x0800000;'
should do the job
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #2 on: February 20, 2010, 08:29:41 AM »

Yes

1/ boot
2/ root
3/ swap
4/ Data

as per http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html

I`m new to linux , So if I`m doing it a strange way, it`s not down to method, just the lack of knowledge. 

So any advice on how it should be done will be gratefully taken.

So I think this is my args :-

setenv bootcmd_ide 'ide reset; ext2load ide 0:1 0x0800000 /test-uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_ide; bootm 0x0800000'


Thanks I`ll try that


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

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode
  Device 1 @ 0 1:
Model: WDC WD3200AAJS-22B4A0                    Firm: 01.03A01 Ser#:      WD-WCAT15339683
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)

** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number
Marvell>>         


Still missing a bit
« Last Edit: February 20, 2010, 08:51:51 AM by peter a » Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #3 on: February 20, 2010, 01:20:58 PM »

I can`t get it to boot from Esata

I`ve tried :-


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

But still get the :-

** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number

I know the drive is set up , because it works in a usb caddy .

With :-

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 /test-uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_usb; bootm 0x0800000'
saveenv

I don`t think it`s a partition error , it`s a a can`t find the partition !!!!
Logged

peter a
Full Member
***

Karma: 0
Posts: 132


View Profile
« Reply #4 on: February 20, 2010, 03:41:28 PM »

NOW , a managed to get it to boot from Esata and cloned a usb 160 Gb into a esata 1.5 Tb drive .

Logged

Pages: [1]
Print
Jump to: