[How-To] Boot Entirely from SATA

This forum is for all other ARMv5 devices

Re: [How-To] Boot Entirely from SATA

Postby jmandawg » Wed Dec 21, 2011 3:18 am

$this->bbcode_second_pass_quote('WarheadsSE', 'T')his is the method I use for my OC'd plug that has a fried NAND chip (bad sector in middle of the first erase block :/)

How did you fry it? :(
jmandawg
 
Posts: 34
Joined: Mon Oct 25, 2010 4:07 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Wed Dec 21, 2011 5:22 am

I have no idea. I came back from vacation, and it was just dead.
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 jkgm » Thu Dec 22, 2011 10:07 am

Is the last command of disk_create supposed to write the kernel out without seeking? As soon as that happens my partition map goes *poof*, along with everything else done above that command.

After running disk_create, fdisk grumps about it being an invalid partition map:
$this->bbcode_second_pass_code('', 'Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x76964aa9.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
')

I added seek=2048 to the final command and it looks happy, but won't boot :
$this->bbcode_second_pass_code('', 'Disk /dev/sdb: 60.0 GB, 60011642880 bytes
64 heads, 32 sectors/track, 57231 cylinders, total 117210240 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 34815 16384 83 Linux
/dev/sdb2 34816 116161663 58063424 83 Linux
/dev/sdb3 116161664 117210239 524288 82 Linux swap / Solaris
')
What am I missing here? Shouldn't one of the partitions be marked bootable? I obviously don't understand what I'm doing, but groping around in the dark only gets me so far... :lol:
jkgm
 
Posts: 18
Joined: Thu Dec 15, 2011 10:51 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Thu Dec 22, 2011 12:42 pm

/facepalm

Nice typo! ....

I'll be updating that file immediately.


FIXED!
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 WarheadsSE » Fri Dec 23, 2011 1:49 pm

Did that fix your problem? Feedback helps confirm ;)
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 skealoha86 » Sat Dec 24, 2011 2:24 am

Thanks for the very clear guide! I've been using Arch on the Pogoplug Pro since Arch Linux ARM but have been pretty silent...

If I've already flashed NAND for my previous install (booted off USB HDD), I don't need to revert NAND to stock to boot off of SATA, right? The only benefit to doing that would be renewed access to the default Cloud Engines tools and web interface with my Plug (if I keep the SATA drive off during boot).

Thanks for the photos too - I only managed to cut my finger with the box cutter once carving out space for the eSATA port :)
skealoha86
 
Posts: 14
Joined: Sat Dec 24, 2011 2:13 am

Re: [How-To] Boot Entirely from SATA

Postby jkgm » Sat Dec 24, 2011 9:43 am

$this->bbcode_second_pass_quote('WarheadsSE', 'D')id that fix your problem? Feedback helps confirm ;)

Thanks for the update! I haven't had a chance to try it out yet, with it being Christmas and all. Will definitely have a go early next week.
jkgm
 
Posts: 18
Joined: Thu Dec 15, 2011 10:51 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Sat Dec 24, 2011 2:24 pm

$this->bbcode_second_pass_quote('skealoha86', 'T')hanks for the very clear guide! I've been using Arch on the Pogoplug Pro since Arch Linux ARM but have been pretty silent...

If I've already flashed NAND for my previous install (booted off USB HDD), I don't need to revert NAND to stock to boot off of SATA, right? The only benefit to doing that would be renewed access to the default Cloud Engines tools and web interface with my Plug (if I keep the SATA drive off during boot).

Thanks for the photos too - I only managed to cut my finger with the box cutter once carving out space for the eSATA port :)

Nope, no revert.

The SATA boot method I have here completely overrides the NAND, so there is no need to touch it. You can however revert it so that you had access to the stock Pogoplug software with the SATA off ;) Good inference.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm
Top

Re: [How-To] Boot Entirely from SATA

Postby jkgm » Sun Dec 25, 2011 9:41 pm

Just to make sure I have the right kernel, is a Pogoplug PRO (no P01 or any other identifying code) PCI or PCIe bus? I'm currently booting this Pogoplug from USB. Is there an easy way to check which kernel it's currently using? Both are included in /. I suppose I could try deleting one and see if it breaks, but that's rather... messy. :?
jkgm
 
Posts: 18
Joined: Thu Dec 15, 2011 10:51 am

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Mon Dec 26, 2011 12:00 am

Deleting one wouldn't help anyways.

`lspci` If you get a return value that lists a card attached, you have a PCI bus.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 6 guests

cron