public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Switch from mmcboot to ramboot?
@ 2012-11-28 21:50 Grant
  2012-11-29  8:24 ` Lukasz Majewski
  0 siblings, 1 reply; 4+ messages in thread
From: Grant @ 2012-11-28 21:50 UTC (permalink / raw)
  To: u-boot

How can I tell u-boot to boot with the ramboot= definition instead of
mmcboot= ?

- Grant

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Switch from mmcboot to ramboot?
  2012-11-28 21:50 [U-Boot] Switch from mmcboot to ramboot? Grant
@ 2012-11-29  8:24 ` Lukasz Majewski
  2012-11-29 21:09   ` Grant
  0 siblings, 1 reply; 4+ messages in thread
From: Lukasz Majewski @ 2012-11-29  8:24 UTC (permalink / raw)
  To: u-boot

Hi Grant,

> How can I tell u-boot to boot with the ramboot= definition instead of
> mmcboot= ?
> 
> - Grant

You need to change environmental variable bootcmd

setenv bootcmd ramboot
saveenv
run bootcmd

or simpler:

Stop u-boot -> and access prompt

then,

run ramboot

-- 
Best regards,

Lukasz Majewski

Samsung Poland R&D Center | Linux Platform Group

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Switch from mmcboot to ramboot?
  2012-11-29  8:24 ` Lukasz Majewski
@ 2012-11-29 21:09   ` Grant
  2012-11-29 23:22     ` Lukasz Majewski
  0 siblings, 1 reply; 4+ messages in thread
From: Grant @ 2012-11-29 21:09 UTC (permalink / raw)
  To: u-boot

> > How can I tell u-boot to boot with the ramboot= definition instead of
> > mmcboot= ?
> >
> > - Grant
>
> You need to change environmental variable bootcmd
>
> setenv bootcmd ramboot
> saveenv
> run bootcmd
>
> or simpler:
>
> Stop u-boot -> and access prompt
>
> then,
>
> run ramboot

Hi Lucasz, that didn't work for me and I think it's because of the
variables set by 'make am335x_evm_defconfig'.  It seems like there are a
set of standard u-boot commands and a higher level of variables set by 'make
am335x_evm_defconfig' which appear in include/configs/am335x_evm.h and
prevent you from using the standard u-boot commands in uEnv.txt.

For example, even after adding the following to the top of my uEnv.txt:

setenv bootcmd ramboot
saveenv

I still get:

"Booting from mmc ..."

I'm struggling to figure out how to use the framework provided by 'make
am335x_evm_defconfig' in uEnv.txt.  Can you point me to info on how to do
that?

- Grant

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Switch from mmcboot to ramboot?
  2012-11-29 21:09   ` Grant
@ 2012-11-29 23:22     ` Lukasz Majewski
  0 siblings, 0 replies; 4+ messages in thread
From: Lukasz Majewski @ 2012-11-29 23:22 UTC (permalink / raw)
  To: u-boot

Hi Grant,

> > > How can I tell u-boot to boot with the ramboot= definition
> > > instead of mmcboot= ?
> > >
> > > - Grant
> >
> > You need to change environmental variable bootcmd
> >
> > setenv bootcmd ramboot
> > saveenv
> > run bootcmd
> >
> > or simpler:
> >
> > Stop u-boot -> and access prompt
> >
> > then,
> >
> > run ramboot
> 
> Hi Lucasz, that didn't work for me and I think it's because of the
> variables set by 'make am335x_evm_defconfig'.  It seems like there
> are a set of standard u-boot commands and a higher level of variables
> set by 'make am335x_evm_defconfig' which appear in
> include/configs/am335x_evm.h and prevent you from using the standard
> u-boot commands in uEnv.txt.
I can give you an example with Samsung's soc.

When you execute 'make trats_defconfig' then default envs defined at
include/trats.h are compiled in.

Then if envs are broken (or not available), then those values are
default.

Please type ? at u-boot prompt and look for env commands.
When you type the command, then context help appears.

On Samsung's SoCs you can easily write those default envs to memory
(oneNAND or eMMC) with 'envs default'. And then edit those stored
values (as I've written previously).


> 
> For example, even after adding the following to the top of my
> uEnv.txt:

I'm not familiar with am335x_evm board and I don't know what is the
purpose of uEnv.txt.

I may just guess, that this is a default command list to execute.

Please investigate the "env" command if it can work for you.

> 
> setenv bootcmd ramboot
> saveenv
> 
> I still get:
> 
> "Booting from mmc ..."
> 
> I'm struggling to figure out how to use the framework provided by
> 'make am335x_evm_defconfig' in uEnv.txt.  Can you point me to info on
> how to do that?
> 
> - Grant

Regards,
Lukasz

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-29 23:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-28 21:50 [U-Boot] Switch from mmcboot to ramboot? Grant
2012-11-29  8:24 ` Lukasz Majewski
2012-11-29 21:09   ` Grant
2012-11-29 23:22     ` Lukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox