[How-To] Boot Entirely from SATA

This forum is for all other ARMv5 devices

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Wed Feb 06, 2013 3:59 pm

If you use a PARTUUID, it is happy, OR, you can use a hybrid.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby tilator » Wed Feb 06, 2013 4:06 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'I')f you use a PARTUUID, it is happy, OR, you can use a hybrid.


Partuuid is something I'm not familiar with. Actually the kernel version does not support partuuid booting, so I suppose that's not the case here.

Stage1, u-boot and kernel uImage can all be put to the same unformated part of the disk. This works with GPT partition table.

uImage must then be read to ram by IDE read. Then just bootm.

If you want, I can put the commands I used here.
tilator
 
Posts: 42
Joined: Sat Sep 01, 2012 2:24 pm

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Wed Feb 06, 2013 4:42 pm

I, myself, fully understand how it works.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby nurio » Wed Feb 06, 2013 7:38 pm

I can’t get my pogoplug to boot from my Sans Digital TR5UT+B RAID 5 enclosure, from what I can tell it loads stage1 (sector 34) but can’t find u-boot at sector 0x0000009A (“No FIS received”)??? and then fails miserably with “IDE read: device not ready” and a whole bunch of hex strings of about 1024 byte long, is that some sort of a kernel dump?:
$this->bbcode_second_pass_code('', '
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 : 0x0000009ANo FIS received

Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading disk 0, Image 1
Sector : 0x0000DF78No FIS received

Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading disk 1, Image 0
Sector : 0x0000009A
Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading disk 1, Image 1
Sector : 0x0000DF78
Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading disk 0, Image 0
Sector : 0x0000009AIDE read: device not ready
[Ox45900000]=Ox00000000
[Ox45900004]=Ox50010001
[Ox45900008]=Ox00000001
[Ox4590000c]=Ox00000000
[Ox45900010]=Ox00000000
[Ox45900014]=Ox00000000
[Ox45900018]=Ox00000000
[Ox4590001c]=Ox00000000
[Ox45900020]=Ox00000000
[Ox45900024]=Ox00000000
[Ox45900028]=Ox00000000
[Ox4590002c]=Ox00000000
[Ox45900030]=Ox00010000
[Ox45900034]=Ox00000000
[Ox45900038]=Ox00000000
[Ox4590003c]=Ox000001f3
[Ox45900040]=Ox00000000
[Ox45900044]=Ox00000000
[Ox45900048]=Ox00000000
[Ox4590004c]=Ox00000000
[Ox45900050]=Ox00000000
[Ox45900054]=Ox00000000
[Ox45900058]=Ox00000000
[Ox4590005c]=Ox00000000
[Ox45900060]=Oxc8000100
[Ox45900064]=Ox00000000
[Ox45900068]=Oxfffe0000
[Ox4590006c]=Ox02020202
[Ox45900070]=Ox00000113
[Ox45900074]=Ox00000024
[Ox45900078]=Ox00000024
[Ox4590007c]=Ox00000001
[Ox45900080]=Oxffffffff
[Ox45900084]=Ox000000ff
[Ox45900088]=Oxffffffff
[Ox4590008c]=Ox000000ff
[Ox45900090]=Ox00000000
[Ox45900094]=Ox00000000
[Ox45900098]=Ox00000000
[Ox4590009c]=Ox2f2f2a28
[Ox459000a0]=Ox2f2f0004
[Ox459000a4]=Ox00000000
[Ox459000a8]=Ox00000000
[Ox459000ac]=Ox00000000
[Ox459000b0]=Ox0000c800
[Ox459000b4]=Ox0000009a
[Ox459000b8]=Ox00000000
[Ox459000bc]=Ox00000080
[Ox459000c0]=Ox00000080
[Ox459000c4]=Ox00000000
[Ox459000c8]=Ox00000000
[Ox459000cc]=Ox00000000
[Ox459000d0]=Ox00000000
[Ox459000d4]=Ox00000000
[Ox459000d8]=Ox00000000
[Ox459000dc]=Ox00000000
[Ox459000e0]=Ox00000000
[Ox459000e4]=Ox00000000
[Ox459000e8]=Ox00000000
[Ox459000ec]=Ox00000000
[Ox459000f0]=Ox00000000
[Ox459000f4]=Ox00000000
[Ox459000f8]=Ox00000000
[Ox459000fc]=Ox00000000
[Ox45910000]=Ox00000000
[Ox45910004]=Ox01000000
[Ox45910008]=Ox00000000
[Ox4591000c]=Ox00000000
[Ox45910010]=Ox00000000
[Ox45910014]=Ox00000000
[Ox45910018]=Ox00000000
[Ox4591001c]=Ox00000000
[Ox45910020]=Ox00000000
[Ox45910024]=Ox00000000
[Ox45910028]=Ox00000000
[Ox4591002c]=Ox00000000
[Ox45910030]=Ox00060000
[Ox45910034]=Ox00000000
[Ox45910038]=Ox00000000
[Ox4591003c]=Ox000001f3
[Ox45910040]=Ox00000000
[Ox45910044]=Ox00000000
[Ox45910048]=Ox00000000
[Ox4591004c]=Ox00000000
[Ox45910050]=Ox00000000
[Ox45910054]=Ox00000000
[Ox45910058]=Ox00000000
[Ox4591005c]=Ox00000008
[Ox45910060]=Ox00000000
[Ox45910064]=Ox00000000
[Ox45910068]=Oxfffe0000
[Ox4591006c]=Ox02020202
[Ox45910070]=Ox00000000
[Ox45910074]=Ox00000020
[Ox45910078]=Ox00000020
[Ox4591007c]=Ox00000001
[Ox45910080]=Oxffffffff
[Ox45910084]=Ox000000ff
[Ox45910088]=Oxffffffff
[Ox4591008c]=Ox000000ff
[Ox45910090]=Ox00000000
[Ox45910094]=Ox00000000
[Ox45910098]=Ox00000000
[Ox4591009c]=Ox2f2f2a28
[Ox459100a0]=Ox2f2f0004
[Ox459100a4]=Ox00000000
[Ox459100a8]=Ox00000000
[Ox459100ac]=Ox00000000
[Ox459100b0]=Ox00000000
[Ox459100b4]=Ox00000000
[Ox459100b8]=Ox00000000
[Ox459100bc]=Ox00000000
[Ox459100c0]=Ox80000080
[Ox459100c4]=Ox00000000
[Ox459100c8]=Ox00000000
[Ox459100cc]=Ox00000000
[Ox459100d0]=Ox00000000
[Ox459100d4]=Ox00000000
[Ox459100d8]=Ox00000000
[Ox459100dc]=Ox00000000
[Ox459100e0]=Ox00000000
[Ox459100e4]=Ox00000000
[Ox459100e8]=Ox00000000
[Ox459100ec]=Ox00000000
[Ox459100f0]=Ox00000000
[Ox459100f4]=Ox00000000
[Ox459100f8]=Ox00000000
[Ox459100fc]=Ox00000000
[Ox459a0000]=Ox40972bc3
[Ox459a0004]=Ox20cffff8
[Ox459a0008]=Ox20cffff8
[Ox459a000c]=Oxd0010000
[Ox459a0010]=Ox20cffff8
[Ox459a0014]=Ox20cffff8
[Ox459a0018]=Ox00010000
[Ox459a001c]=Ox04020000
[Ox459a0020]=Ox04000801
[Ox459a0024]=Ox00000000
[Ox459a0028]=Ox00000000
[Ox459a002c]=Ox00000000
[Ox459a0030]=Ox00000000
[Ox459a0034]=Ox00000000
[Ox459a0038]=Ox00000000
[Ox459a003c]=Ox04020000
[Ox459a0040]=Ox40972bc3
[Ox459a0044]=Ox20cffff8
[Ox459a0048]=Ox20cffff8
[Ox459a004c]=Oxd0010000
[Ox459a0050]=Ox20cffff8
[Ox459a0054]=Ox20cffff8
[Ox459a0058]=Ox00010000
[Ox459a005c]=Ox04020000
[Ox459a0060]=Ox04000801
[Ox459a0064]=Ox00000000
[Ox459a0068]=Ox00000000
[Ox459a006c]=Ox00000000
[Ox459a0070]=Ox00000000
[Ox459a0074]=Ox00000000
[Ox459a0078]=Ox00000000
[Ox459a007c]=Ox04020000
[Ox459a0080]=Ox40972bc3
[Ox459a0084]=Ox20cffff8
[Ox459a0088]=Ox20cffff8
[Ox459a008c]=Oxd0010000
[Ox459a0090]=Ox20cffff8
[Ox459a0094]=Ox20cffff8
[Ox459a0098]=Ox00010000
[Ox459a009c]=Ox04020000
[Ox459a00a0]=Ox04000801
[Ox459a00a4]=Ox00000000
[Ox459a00a8]=Ox00000000
[Ox459a00ac]=Ox00000000
[Ox459a00b0]=Ox00000000
[Ox459a00b4]=Ox00000000
[Ox459a00b8]=Ox00000000
[Ox459a00bc]=Ox04020000
[Ox459a00c0]=Ox40972bc3
[Ox459a00c4]=Ox20cffff8
[Ox459a00c8]=Ox20cffff8
[Ox459a00cc]=Oxd0010000
[Ox459a00d0]=Ox20cffff8
[Ox459a00d4]=Ox20cffff8
[Ox459a00d8]=Ox00010000
[Ox459a00dc]=Ox04020000
[Ox459a00e0]=Ox04000801
[Ox459a00e4]=Ox00000000
[Ox459a00e8]=Ox00000000
[Ox459a00ec]=Ox00000000
[Ox459a00f0]=Ox00000000
[Ox459a00f4]=Ox00000000
[Ox459a00f8]=Ox00000000
[Ox459a00fc]=Ox04020000
[Ox459e0000]=Oxf00000ff
[Ox459e0004]=Ox00000003
[Ox459e0008]=Ox80000000
[Ox459e000c]=Ox00000001
[Ox459e0010]=Ox00000000
[Ox459e0014]=Ox00000000
[Ox459e0018]=Ox00000000
[Ox459e001c]=Ox00000000
[Ox459e0020]=Ox00000000
[Ox459e0024]=Ox00000000
[Ox459e0028]=Ox00000000
[Ox459e002c]=Ox00000000
[Ox459e0030]=Ox01000000
[Ox459e0034]=Ox00000000
[Ox459e0038]=Ox00000000
[Ox459e003c]=Ox6ffa0000
[Ox459e0040]=Ox00000001
[Ox459e0044]=Ox00000002
[Ox459e0048]=Ox00000000
[Ox459e004c]=Ox00000000
[Ox459e0050]=Ox00000000
[Ox459e0054]=Ox00000000
[Ox459e0058]=Ox00000000
[Ox459e005c]=Ox00000000
[Ox459e0060]=Ox04241000
[Ox459e0064]=Ox00000000
[Ox459e0068]=Ox00080008
[Ox459e006c]=Ox00000000
[Ox459e0070]=Ox00000000
[Ox459e0074]=Ox00000000
[Ox459e0078]=Ox00000000
[Ox459e007c]=Oxffffffff
[Ox459e0080]=Ox00000000
[Ox459e0084]=Ox00000000
[Ox459e0088]=Ox00000000
[Ox459e008c]=Ox00000000
[Ox459e0090]=Ox00000000
[Ox459e0094]=Ox00000000
[Ox459e0098]=Ox00000000
[Ox459e009c]=Ox00000000
[Ox459e00a0]=Ox00000084
[Ox459e00a4]=Ox00400000
[Ox459e00a8]=Ox00000000
[Ox459e00ac]=Ox00000301
[Ox459e00b0]=Ox00000000
[Ox459e00b4]=Ox00000000
[Ox459e00b8]=Ox00000002
[Ox459e00bc]=Ox00000000
[Ox459e00c0]=Ox00000000
[Ox459e00c4]=Ox00000000
[Ox459e00c8]=Ox00000000
[Ox459e00cc]=Ox00000000
[Ox459e00d0]=Ox00000000
[Ox459e00d4]=Ox00000000
[Ox459e00d8]=Ox00000000
[Ox459e00dc]=Ox00000000
[Ox459e00e0]=Ox00000000
[Ox459e00e4]=Ox00000000
[Ox459e00e8]=Ox00000000
[Ox459e00ec]=Ox00000000
[Ox459e00f0]=Ox00000000
[Ox459e00f4]=Ox00000000
[Ox459e00f8]=Ox00000000
[Ox459e00fc]=Ox00000000
')
If I boot the plug from a different USB drive it has no problem mounting the raid partitions either via SATA or USB, so there shouldn’t be any real problem with the box.

The raid is setup with MBR for the sake of testing, and I’ve also tried GPT before but had the same results. The current drive layout is::
$this->bbcode_second_pass_code('', 'Disk /dev/sde: 12002.2 GB, 12002151890944 bytes
255 heads, 63 sectors/track, 1459178 cylinders, total 23441702912 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/sde1 2048 22529 10241 83 Linux
/dev/sde2 22530 20994049 10485760 83 Linux')

As part of my troubleshooting and experiments I also tried booting a laptop drive that I had in a Thermaltake Duet drive dock (two HDD slots) which also failed with “No FIS received”, but it seem to have bit more progress than with the raid enclosure:
$this->bbcode_second_pass_code('', '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 : 0x0000009ANo FIS received

Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading disk 0, Image 1
Sector : 0x0000DF78No FIS received

Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading disk 1, Image 0
Sector : 0x0000009A
Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading disk 1, Image 1
Sector : 0x0000DF78
Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
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: ST9160823AS Firm: 3.CME Ser#: 5NK14R4J
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 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2345664 Bytes = 2.2 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2345664 Bytes = 2.2 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................................................................................................. done, booting the kernel.
[ 0.000000] Linux version 2.6.31.6_SMP_820 (root@hunchback) (gcc version 4.7.0 20120505 (prerelease) (GCC) ) #7 SMP Thu Jun 14 20:31:06 CDT 2012
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: Oxsemi NAS
[ 0.000000] 1 memory region
[ 0.000000] Ignoring unrecognised tag 0x00000000
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: 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
[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 128MB = 128MB total
[ 0.000000] Memory: 125112KB available (4012K code, 316K data, 144K init, 0K highmem)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:96
[ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[ 0.010000] Console: colour dummy device 80x30
[ 0.010000] console [ttyS0] enabled
[ 0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[ 0.240000] Security Framework initialized
[ 0.240000] Mount-cache hash table entries: 512
[ 0.250000] CPU: Testing write buffer coherency: ok
[ 0.250000] Calibrating local timer... 424.49MHz.
[ 0.320000] CPU1: Booted secondary processor
[ 0.420000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[ 0.630000] Brought up 2 CPUs
[ 0.640000] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[ 0.650000] tmpfs: No value for mount option 'mode'
[ 0.650000] devtmpfs: initialized
[ 0.650000] NET: Registered protocol family 16
[ 0.660000] Number of DMA channels = 4, version = 4
[ 0.670000] Reserving a DMA channel for DirectRAID
[ 0.670000] Allocating 389 SRAM generic DMA descriptors
[ 1.180000] PCIeA version/deviceID 082510b5
[ 1.180000] PCIeB version/deviceID 082510b5
[ 4.210000] ox820_pci_preinit() PCIEB link up timeout (00001814)
[ 4.210000] ox820_pcie_setup_resources() Enabling PCIe Pre-Emphasis
[ 4.220000] ox820_pciea_setup_resources() resource c781b140
[ 4.220000] ox820_pciea_setup_resources() io: 0x4be00000 - 0x4befffff
[ 4.230000] ox820_pciea_setup_resources() non-pre: 0x48000000 - 0x49ffffff
[ 4.240000] ox820_pciea_setup_resources() pre: 0x4a000000 - 0x4bdfffff
[ 4.240000] PCI: bus0: Fast back to back transfers disabled
[ 4.250000] PCI: bus1: Fast back to back transfers enabled
[ 4.270000] bio: create slab <bio-0> at 0
[ 4.270000] SCSI subsystem initialized
[ 4.280000] usbcore: registered new interface driver usbfs
[ 4.280000] usbcore: registered new interface driver hub
[ 4.290000] usbcore: registered new device driver usb
[ 4.330000] NET: Registered protocol family 2
[ 4.330000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 4.340000] Switched to NOHz mode on CPU #0
[ 4.340000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 4.340000] Switched to NOHz mode on CPU #1
[ 4.350000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 4.360000] TCP: Hash tables configured (established 4096 bind 4096)
[ 4.360000] TCP reno registered
[ 4.370000] NET: Registered protocol family 1
[ 4.370000] Create fragment cache
[ 4.390000] fuse init (API version 7.12)
[ 4.400000] msgmni has been set to 244
[ 4.400000] alg: No test for stdrng (krng)
[ 4.410000] io scheduler noop registered
[ 4.410000] io scheduler anticipatory registered
[ 4.420000] io scheduler deadline registered
[ 4.420000] io scheduler cfq registered (default)
[ 4.440000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 4.450000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[ 4.460000] brd: module loaded
[ 4.470000] loop: module loaded
[ 4.480000] ox820sata: OX820 sata core.
[ 4.480000] scsi0 : oxnassata
[ 4.480000] scsi1 : oxnassata
[ 4.490000] ata1: SATA max UDMA/133 irq 50
[ 4.490000] ata2: SATA max UDMA/133 irq 50
[ 4.500000] ox820sata: reseting SATA core
[ 4.860000] ata1: SATA link down (SStatus 0 SControl 300)
[ 4.860000] ox820sata: reseting SATA core
[ 5.220000] ata2: SATA link down (SStatus 0 SControl 300)
[ 5.220000] tun: Universal TUN/TAP device driver, 1.6
[ 5.230000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 5.230000] NAND: Page read time 40ms
[ 5.240000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[ 5.240000] Scanning device for bad blocks
[ 5.310000] Creating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[ 5.320000] 0x000000000000-0x000000e00000 : "boot"
[ 5.330000] 0x000000e00000-0x000008000000 : "rootfs"
[ 5.330000] UBI: attaching mtd2 to ubi0
[ 5.340000] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 5.340000] UBI: logical eraseblock size: 129024 bytes
[ 5.350000] UBI: smallest flash I/O unit: 2048
[ 5.350000] UBI: sub-page size: 512
[ 5.360000] UBI: VID header offset: 512 (aligned 512)
[ 5.360000] UBI: data offset: 2048
[ 5.720000] UBI: attached mtd2 to ubi0
[ 5.720000] UBI: MTD device name: "rootfs"
[ 5.720000] UBI: MTD device size: 114 MiB
[ 5.730000] UBI: number of good PEBs: 912
[ 5.730000] UBI: number of bad PEBs: 0
[ 5.740000] UBI: max. allowed volumes: 128
[ 5.740000] UBI: wear-leveling threshold: 4096
[ 5.750000] UBI: number of internal volumes: 1
[ 5.750000] UBI: number of user volumes: 1
[ 5.760000] UBI: available PEBs: 0
[ 5.760000] UBI: total number of reserved PEBs: 912
[ 5.770000] UBI: number of PEBs reserved for bad PEB handling: 9
[ 5.770000] UBI: max/mean erase counter: 2/1
[ 5.780000] UBI: image sequence number: 0
[ 5.780000] UBI: background thread "ubi_bgt0d" started, PID 313
[ 5.780000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.780000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
[ 5.780000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[ 5.810000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
[ 5.830000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[ 5.830000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 5.840000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.840000] usb usb1: Product: OXNAS EHCI Host Controller
[ 5.850000] usb usb1: Manufacturer: Linux 2.6.31.6_SMP_820 ehci_hcd
[ 5.860000] usb usb1: SerialNumber: usb
[ 5.860000] usb usb1: configuration #1 chosen from 1 choice
[ 5.870000] hub 1-0:1.0: USB hub found
[ 5.870000] hub 1-0:1.0: 2 ports detected
[ 5.880000] Initializing USB Mass Storage driver...
[ 5.880000] usbcore: registered new interface driver usb-storage
[ 5.890000] USB Mass Storage support registered.
[ 5.890000] usbcore: registered new interface driver libusual
[ 5.900000] mice: PS/2 mouse device common for all mice
[ 5.900000] usbcore: registered new interface driver hiddev
[ 5.910000] usbcore: registered new interface driver usbhid
[ 5.920000] usbhid: v2.6:USB HID core driver
[ 5.920000] TCP cubic registered
[ 5.920000] NET: Registered protocol family 10
[ 5.930000] lo: Disabled Privacy Extensions
[ 5.930000] NET: Registered protocol family 17
[ 5.940000] RPC: Registered udp transport module.
[ 5.940000] RPC: Registered tcp transport module.
[ 5.950000] Waiting for root device /dev/sda2...
[ 6.190000] usb 1-1: new high speed USB device using oxnas-ehci and address 2
[ 6.340000] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[ 6.340000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 6.350000] usb 1-1: Product: USB2.0 Hub
[ 6.350000] usb 1-1: configuration #1 chosen from 1 choice
[ 6.360000] hub 1-1:1.0: USB hub found
[ 6.370000] hub 1-1:1.0: 4 ports detected
')

One thing I found interesting is that if I connect same laptop drive directly to the plug via SATA it boots completely fine.

I was hoping to get the pogoplug to boot from the raid tower, any thought?
nurio
 
Posts: 5
Joined: Sun Jul 25, 2010 8:15 pm

Re: [How-To] Boot Entirely from SATA

Postby nurio » Thu Feb 07, 2013 3:18 pm

@tilator, although it probably won’t help me solve my problem, can you share with us this information?

Thanks
nurio
 
Posts: 5
Joined: Sun Jul 25, 2010 8:15 pm

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Thu Feb 07, 2013 4:17 pm

@nurio
In your case, it looks like the SoC BOM doesn't like the port multiplex, or at least the stage1 doesn't. That isn't actually too smart of a piece of software, and doesn't have a full blown SATA stack, so this is probably a failing factor in that rather than anything else.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [How-To] Boot Entirely from SATA

Postby tilator » Thu Feb 07, 2013 7:25 pm

$this->bbcode_second_pass_quote('nurio', '@')tilator, although it probably won’t help me solve my problem, can you share with us this information?

Thanks


I fully agree with WarheadsSE. Stage1 is most definitely your trouble.

I have Silverstone DC01 but I have installed Akitio Mycloud Mini software in it, because it's updated lately. Kernel version is 2.6.31.14, boot's totally from hard drive (Samsung 1TB) having GPT partition table in it.

This device has 256MB ram. There are different Stage1 and u-boot files for nand boot and sata boot as well as for different ram amount. So, there are quite many of them and you must have right one for it to work correctly.

This device boots entirely from sata drive with gpt partition table by doing these steps:

1. make hard disk gpt label.

2. make partitions (I have 4. First is 33MB unformatted partition for stage1, u-boot and kernel uImage. Secong is 2GB ext3 partition for rest of the OS. Third is swap and last is for data.

My partition table looks like this:

Model: ATA SAMSUNG HN-M101M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 33.6MB 2181MB 2147MB ext3 primary
2 2181MB 2718MB 537MB linux-swap(v1) primary
3 2718MB 1000GB 997GB ntfs msftres


3. make the disk bootable using the perl script you can find at the start of this thread.

4. write stage1, u-boot and kernel in the first partition.

You can find all important things from the commands under:

dd if=$stage1File of="$disk" bs=512 seek=34
dd if=$ubootFile of="$disk" bs=512 seek=154
dd if=$kernelFile of="$disk" bs=512 seek=1290
dd if=$stage1File of="$disk" bs=512 seek=57088
dd if=$ubootFile of="$disk" bs=512 seek=57208
dd if=$kernelFile of="$disk" bs=512 seek=58344

"$disk" might be /dev/sda none of the files will be written to formatted partitions (sda1, sda2 etc) but directly to the device. They will end up to the unformatted part of the disk, because with this installation sda1 starts from sector 65536.

5. put rest of the OS where you like it to be. Mine is SDA1.

6. reboot and set environment settings for u-boot.

Mine is here:

$ printenv
bootcmd=run dload1 boot || run dload2 boot || lightled
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=192.168.50.100
serverip=192.168.50.59
autoload=n
netmask=255.255.0.0
bootfile="uImage"
select0=ide dev 0
select1=ide dev 1
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000
dload1=ide read 0x60500000 50a 1644
dload2=ide read 0x60500000 e3e8 1644
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sda1 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512 mem=256M poweroutage=yes

IDE READ 50a match disk sector 1290 and e3e8 sector 58344. Hex number 1644 match 5700 sectors. So UImage can be up to 5700*512=2918400 bytes with these settings. If uImage is bigger, the last number must be changed bigger too. Stage1, u-boot and uImage are all twice on the disk. Obviously second copy should work if first one might get broken.

That's it as long as booting this device. I also got today the rest of it working. Last thing was to make the power button to bring it totally down too. I made a tiny SW to read power button state and a perl script to power the device down as it's supposed to be done.
tilator
 
Posts: 42
Joined: Sat Sep 01, 2012 2:24 pm

Re: [How-To] Boot Entirely from SATA

Postby nurio » Fri Feb 08, 2013 3:00 am

@WarheadsSE, thank you for your reply.

@tilator, thank you for writing this up, I found this very insightful!

Oh well, I guess I'll have give up on the idea to simplify my setup with the raid tower as both the boot/os and data drive.
nurio
 
Posts: 5
Joined: Sun Jul 25, 2010 8:15 pm

Re: [How-To] Boot Entirely from SATA

Postby sethjvm » Fri Feb 22, 2013 1:02 pm

Other than the one post earlier in this thread where WarheadsSE stated that he was able to boot from hybrid MBR, is anyone successfully booting from hybrid MBR? Additionally, is anyone successfully booting from a 4096 sector (advanced formatting) drive?

I am trying to set up a 3TB Seagate in a Tt Sata dock but it is something that appears to be beyond my capabilities. I am not sure if the problem is the 4096 sector size or the hybrid MBR or a combination of both.

If there is anyone who has successfully set up a 3TB Sata drive either as a boot from SATA or boot from NAND, I would appreciate any ideas about your formatting. I did see something in the V2 forum from dannyp but the V2 hardware seems to be less difficult to work with.
Pogo Plug Pro with ALARM SATA rootfs
success: wireless, samba, sabnzbd, sickbeard, transmission, lamp with Gallery3 and newznab+, rsync server, tor
still trying: avahi, minidlna
up next: asterisk, openvpn, proxy server of some sort
gave up: nfs and lvm
sethjvm
 
Posts: 53
Joined: Wed Oct 19, 2011 7:36 am

Re: [How-To] Boot Entirely from SATA

Postby karog » Fri Feb 22, 2013 2:45 pm

$this->bbcode_second_pass_quote('sethjvm', 'A')dditionally, is anyone successfully booting from a 4096 sector (advanced formatting) drive?

I boot successfully from the disk described below via smartctl which has Sector Sizes: 512 bytes logical, 4096 bytes physical
$this->bbcode_second_pass_code('', '
# smartctl -a /dev/sda
smartctl 6.0 2012-10-10 r3643 [armv6l-linux-2.6.31.6_SMP_820] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Western Digital Scorpio Black (AF)
Device Model: WDC WD5000BPKT-00PK4T0
Serial Number: WD-WX11CC170861
LU WWN Device Id: 5 0014ee 6579a0bfa
Firmware Version: 01.01A01
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS (minor revision not indicated)
SATA Version is: SATA 2.6, 3.0 Gb/s
Local Time is: Fri Feb 22 09:42:12 2013 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
')
karog
 
Posts: 300
Joined: Thu Jan 05, 2012 7:55 pm
Top

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 6 guests