Boot Entirely from SATA on Akitio

This forum is for all other ARMv5 devices

Boot Entirely from SATA on Akitio

Postby jmandawg » Sun Jun 10, 2012 7:20 pm

I finally got around to trying this, and i followed the steps exactly (twice even) and this is the error i get from the serial console. Any ideas? Thanks.

Code: Select all
Stage-1 Bootloader Mon Nov 14 22:36:34 EST 2011
Attempting to set PLLA to 850MHz ...
  plla_ctrl0 : 0x0000020A
  plla_ctrl1 : 0x00330000
  plla_ctrl2 : 0x0065008B
  plla_ctrl3 : 0x000000F1
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
  Sector : 0x0000009A
  Hdr len: 0x0001FB34
  Hdr CRC: 0x2229BDCD
 OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
  Device 0: Model: Hitachi HTS545050B9A300  Firm: PB4OC64G Ser#: 090620PB4400Q7H                                              27VJG
            Type: Hard Disk
            Capacity: 131071.9 MB = 127.9 GB (268435455 x 512)
  Device 1: not available
Failed to read valid environment from disk, using built-in default


U-Boot 1.1.2 (Dec 31 2011 - 15:24:45)

U-Boot code: 60E00000 -> 60E1FB34  BSS: -> 60E5435C
RAM Configuration:
        Bank #0: 60000000 128 MB
SRAM Configuration:
        64KB at 0x50000000
NAND:128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot:  0

Loading from IDE device 0, partition 2: Name: hda2
  Type: U-Boot

** Bad Magic Number **
Unknown command 'lightled' - try 'help'
$

jmandawg
 
Posts: 34
Joined: Mon Oct 25, 2010 4:07 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Sun Jun 10, 2012 7:29 pm

Thats a new one. I've not seen anyone get that yet, but it seems that it doesn't like the image it is reading from hda1
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6804
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby jmandawg » Sun Jun 10, 2012 7:36 pm

This is my partition table:
Code: Select all
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
43 heads, 2 sectors/track, 11357827 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00008000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048       22527       10240    0  Empty
/dev/sdb2           22528   972866917   486422195   83  Linux


And this is the output of disk_create command:

Code: Select all
[root@pogoweb oxnas-tmp]# ./disk_create
0+1 records in
0+1 records out
444 bytes (444 B) copied, 0.081388 s, 5.5 kB/s
Writing stage 1
14+1 records in
14+1 records out
7576 bytes (7.6 kB) copied, 0.00678719 s, 1.1 MB/s
Writing uboot
253+1 records in
253+1 records out
129852 bytes (130 kB) copied, 0.321883 s, 403 kB/s
Writing kernel to
4164+1 records in
4164+1 records out
2132324 bytes (2.1 MB) copied, 0.0555267 s, 38.4 MB/s
jmandawg
 
Posts: 34
Joined: Mon Oct 25, 2010 4:07 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Sun Jun 10, 2012 7:40 pm

AH, I see what happened there. For some reason your is looking to hda2! Sorry, it's been a busy weekend. You'll need to decide if you want rootfs first, or second. If first, then you'll need to interrupt the uboot and confirm that it is showing ide 0:1 not ide 0:2 in the load commands.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6804
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby jmandawg » Sun Jun 10, 2012 8:37 pm

Code: Select all
$ printenv
bootcmd=run dload1 boot || run dload2 boot || lightled
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=172.31.0.128
serverip=172.31.0.100
autoload=n
netmask=255.255.0.0
bootfile="uImage"
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000
dload1=diskboot 60500000 0:1
dload2=diskboot 60500000 0:2
root_dev1=/dev/sda2
root_dev2=/dev/sda1
root_dev=/dev/sda2
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sda2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512 mem=128M poweroutage=yes

Environment size: 565/8188 bytes


Not sure what i need to change?
jmandawg
 
Posts: 34
Joined: Mon Oct 25, 2010 4:07 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Sun Jun 10, 2012 11:12 pm

Interrupt boot and try
Code: Select all
run dload1


Seems it is failing on both partitions to load a working image. That looks right though.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6804
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby jmandawg » Mon Jun 11, 2012 2:03 am

It doesn't appear to do anything...

Code: Select all
IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot:  0
$ run dload1
$


Does this mean the kernel isn't loaded into the first partition correctly?
jmandawg
 
Posts: 34
Joined: Mon Oct 25, 2010 4:07 am

Re: [How-To] Boot Entirely from SATA

Postby jmandawg » Mon Jun 11, 2012 9:36 pm

Any ideas of what else i can try?
jmandawg
 
Posts: 34
Joined: Mon Oct 25, 2010 4:07 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Mon Jun 11, 2012 9:42 pm

Code: Select all
ide reset
run dload1
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6804
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby jmandawg » Mon Jun 11, 2012 9:55 pm

I started re-doing the disk setup just for good measure. I did notice that after i delete all the partitions and run the disk_create script it does not error out when writing uImage, but there is no partition 1 so i don't know where it's writing it to. disk is formatting now...
jmandawg
 
Posts: 34
Joined: Mon Oct 25, 2010 4:07 am

Next

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 7 guests