All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] change autoboot
@ 2009-02-25  4:04 bundy
  2009-02-25  5:44 ` Pieter
  2009-02-25  7:29 ` Wolfgang Denk
  0 siblings, 2 replies; 5+ messages in thread
From: bundy @ 2009-02-25  4:04 UTC (permalink / raw)
  To: u-boot


Newbie with question: 
uboot is currently configured to autoboot with "run boot_nor". In the
configuration I found a variable called BOOTCOMMAND which is set to "run
boot_nor". Which I now want to set it to "run prog_all_usb; run boot_nor" 
I then recompile everything transfer u-boot to my device and on initial
startup it works but if I turn my device off and back on it and interrupt
autoboot and type "printenv". The bootcmd is set back to just "run boot_nor"
- what am i missing??????????????

Thanks

-- 
View this message in context: http://www.nabble.com/change-autoboot-tp22195894p22195894.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot] change autoboot
  2009-02-25  4:04 [U-Boot] change autoboot bundy
@ 2009-02-25  5:44 ` Pieter
  2009-02-25  7:29 ` Wolfgang Denk
  1 sibling, 0 replies; 5+ messages in thread
From: Pieter @ 2009-02-25  5:44 UTC (permalink / raw)
  To: u-boot



bundy wrote:
> Newbie with question: 
> uboot is currently configured to autoboot with "run boot_nor". In the
> configuration I found a variable called BOOTCOMMAND which is set to "run
> boot_nor". Which I now want to set it to "run prog_all_usb; run boot_nor" 
> I then recompile everything transfer u-boot to my device and on initial
> startup it works but if I turn my device off and back on it and interrupt
> autoboot and type "printenv". The bootcmd is set back to just "run boot_nor"
> - what am i missing??????????????
>
> Thanks
>   
Try erasing your U_Boot environment before rebooting. U-Boot wil then
boot using the default environment you set up.
now change the things you want changed and run saveenv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2722 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090225/e5e1419e/attachment.bin 

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

* [U-Boot] change autoboot
  2009-02-25  4:04 [U-Boot] change autoboot bundy
  2009-02-25  5:44 ` Pieter
@ 2009-02-25  7:29 ` Wolfgang Denk
  2009-02-25 18:52   ` bundy
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2009-02-25  7:29 UTC (permalink / raw)
  To: u-boot

Dear bundy,

In message <22195894.post@talk.nabble.com> you wrote:
> 
> uboot is currently configured to autoboot with "run boot_nor". In the
> configuration I found a variable called BOOTCOMMAND which is set to "run
> boot_nor". Which I now want to set it to "run prog_all_usb; run boot_nor" 
> I then recompile everything transfer u-boot to my device and on initial
> startup it works but if I turn my device off and back on it and interrupt
> autoboot and type "printenv". The bootcmd is set back to just "run boot_nor"
> - what am i missing??????????????

If you had bothered to read the manual you should have known that
rebuilding U-Boot is not necessary for such a simple change - a simple
"setenv" followed by a "saveenv" would have been all you needed.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It is easier to port a shell than a shell script."      - Larry Wall

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

* [U-Boot] change autoboot
  2009-02-25  7:29 ` Wolfgang Denk
@ 2009-02-25 18:52   ` bundy
  2009-02-25 19:08     ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: bundy @ 2009-02-25 18:52 UTC (permalink / raw)
  To: u-boot


Dear Wolfgang Denk

Sorry I was unclear in my question, its not that saveenv doesn't work as it
does, it was that I was hoping
to do it through the build system/configuration file. 

Bundy


wd wrote:
> 
> Dear bundy,
> 
> In message <22195894.post@talk.nabble.com> you wrote:
>> 
>> uboot is currently configured to autoboot with "run boot_nor". In the
>> configuration I found a variable called BOOTCOMMAND which is set to "run
>> boot_nor". Which I now want to set it to "run prog_all_usb; run boot_nor" 
>> I then recompile everything transfer u-boot to my device and on initial
>> startup it works but if I turn my device off and back on it and interrupt
>> autoboot and type "printenv". The bootcmd is set back to just "run
>> boot_nor"
>> - what am i missing??????????????
> 
> If you had bothered to read the manual you should have known that
> rebuilding U-Boot is not necessary for such a simple change - a simple
> "setenv" followed by a "saveenv" would have been all you needed.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> -- 
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> "It is easier to port a shell than a shell script."      - Larry Wall
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

-- 
View this message in context: http://www.nabble.com/change-autoboot-tp22195894p22209226.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot] change autoboot
  2009-02-25 18:52   ` bundy
@ 2009-02-25 19:08     ` Wolfgang Denk
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Denk @ 2009-02-25 19:08 UTC (permalink / raw)
  To: u-boot

Dear bundy,

In message <22209226.post@talk.nabble.com> you wrote:
> 
> Sorry I was unclear in my question, its not that saveenv doesn't work as it
> does, it was that I was hoping
> to do it through the build system/configuration file. 

You can do that, too, of  course.  But  allyou  affect  this  way  is
(usually  [*]) the default environment, which gets used if the normal
environment gets corrupted - as long as there is a  valid  copy  this
one will be used, and the default environment will never be used.

As recommended before, you can erase or otherwise invalidate (for
example, just overwrite the checksum entries) the environment to force
using the default environment.


[*] An exceptions is the (not frequently used) configuration  ith  an
    "embedded"  environment  where  the  environment  is  part of the
    U-Boot image itself and will get overwritten when you  install  a
    new image.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
COBOL is for morons.                                 -- E.W. Dijkstra

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

end of thread, other threads:[~2009-02-25 19:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25  4:04 [U-Boot] change autoboot bundy
2009-02-25  5:44 ` Pieter
2009-02-25  7:29 ` Wolfgang Denk
2009-02-25 18:52   ` bundy
2009-02-25 19:08     ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.