[How-To] Boot Entirely from SATA

This forum is for all other ARMv5 devices

Re: [How-To] Boot Entirely from SATA

Postby obaltus » Mon Jan 30, 2012 9:09 pm

Here is the printenv output:

$this->bbcode_second_pass_code('', '$ printenv

bootcmd=run select0 load1 load_rd boot || run lightled select0 load2 load_rd extinguishled boot || lightled
bootdelay=3
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"
select0=ide dev 0
load1=ide read 0x60500000 50a 1644
load2=ide read 0x60500000 e3e8 1644
load_rd=ide read 0x60800000 4122 1644
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000 60800000
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/md0 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes

Environment size: 613/8188 bytes
$ ')
obaltus
 
Posts: 10
Joined: Mon Jan 30, 2012 1:46 pm

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Mon Jan 30, 2012 9:34 pm

Yes, there is the problem.

That uboot is using environment variables that tell it to read from specific sectors on the hard disk.
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 obaltus » Tue Jan 31, 2012 8:43 am

Hello,

Are the uboot environment settings coming from your side? Aren't they? If so, how come that it is working properly on the Pogoplug?
Would you mind providing the right one?

Thanks for your outstanding help.

Olivier
obaltus
 
Posts: 10
Joined: Mon Jan 30, 2012 1:46 pm

Re: [How-To] Boot Entirely from SATA

Postby fixsony » Thu Feb 02, 2012 5:57 pm

Help and do not hit hard. In the script, knew how to change the drives but did not understand how to change workarea ????
$this->bbcode_second_pass_code('', '
workarea="."
')
Last edited by WarheadsSE on Thu Feb 02, 2012 6:53 pm, edited 1 time in total.
Reason: Fixed OBNOXIOUS large and bold, changed to proper CODE tags, and trimmed to the necessary bits.
fixsony
 
Posts: 2
Joined: Sat Jan 28, 2012 6:34 pm

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Thu Feb 02, 2012 6:54 pm

This is supposed to be run from the directory in which you untarred. I said that in the instructions, and VERY CLEARLY did not insist that you need to change that value.
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 » Thu Feb 02, 2012 7:02 pm

$this->bbcode_second_pass_quote('obaltus', 'H')ello,

Are the uboot environment settings coming from your side? Aren't they? If so, how come that it is working properly on the Pogoplug?
Would you mind providing the right one?

Thanks for your outstanding help.

Olivier

I went out an looked at https://github.com/WarheadsSE/uboot-ox8 ... gs/ox820.h (which apparently I need to upload a recent change..), below are the setenv commands. Note: the bootars is wrapped!

Here is what you need:
$this->bbcode_second_pass_code('', '
setenv bootargs "root=/dev/sda2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512"
setenv bootcmd "run dload1 boot || run dload2 boot || lightled"
setenv dload1 "dload1=diskboot 60500000 0:1"
setenv dload1 "dload2=diskboot 60500000 0:2"
')
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 obaltus » Mon Feb 06, 2012 10:19 am

Hello,

Are you sure of the following lines:

$this->bbcode_second_pass_quote('', 's')etenv dload1 "dload1=diskboot 60500000 0:1"
setenv dload1 "dload2=diskboot 60500000 0:2"


Should'nt it be:

$this->bbcode_second_pass_code('', '
setenv dload1 "diskboot 60500000 0:1"
setenv dload2 "diskboot 60008000 0:2"')
obaltus
 
Posts: 10
Joined: Mon Jan 30, 2012 1:46 pm

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Mon Feb 06, 2012 12:42 pm

No. - err sorta
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 obaltus » Mon Feb 06, 2012 1:19 pm

With your uboot settings, I am getting:
$this->bbcode_second_pass_code('', '
IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0
ERROR: There is a global environment variable with the same name.
Unknown command '60500000' - try 'help' ')

Which seems quite logical because dload1 is defined twice.
obaltus
 
Posts: 10
Joined: Mon Jan 30, 2012 1:46 pm

Re: [How-To] Boot Entirely from SATA

Postby WarheadsSE » Mon Feb 06, 2012 1:31 pm

$this->bbcode_second_pass_quote('obaltus', 'H')ello,

Are you sure of the following lines:

$this->bbcode_second_pass_quote('', 's')etenv dload1 "dload1=diskboot 60500000 0:1"
setenv dload1 "dload2=diskboot 60500000 0:2"


Should'nt it be:

$this->bbcode_second_pass_code('', '
setenv dload1 "diskboot 60500000 0:1"
setenv dload2 "diskboot 60008000 0:2"')

Oops, overlooked that
$this->bbcode_second_pass_code('', '
setenv dload1 "diskboot 60500000 0:1"
setenv dload2 "diskboot 60500000 0:2"')

And how in the world did you get it to accept a value defined 2x ?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm
Top

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 29 guests