[U-Boot-Users] u-boot dos not autostart commands

Hi all. I have PXA270 board with embedded by vendor bootleader - "U-Boot 1.3.0". I define that environment: --- $ printenv baudrate=115200 bootdelay=3 bootargs=video=pxafb:mode:800x480-16,active,pixclock:37000,left:100,right:1,hsynclen:10,upper:20,lower:1,vsynclen:10,outputen:1,pixclockpol:0 root=/dev/sda1 rootdelay=20 console=ttyS0,115200 bootcmd=cp.b 01e00000 a1000000 13216e stdin=serial stdout=serial stderr=serial
Environment size: 298/262140 bytes --- But after power on, I cannot see countdown & run bootcmd. If I 'run bootcmd' by hand - that works OK. But not automatically after power on. Can anybody tell me, how I can solve this ?
Thank you.

Alexei Babich a.babich@rez.ru writes:
I have PXA270 board with embedded by vendor bootleader - "U-Boot 1.3.0". I define that environment:
$ printenv baudrate=115200 bootdelay=3 bootargs=video=pxafb:mode:800x480-16,active,pixclock:37000,left:100,right:1,hsynclen:10,upper:20,lower:1,vsynclen:10,outputen:1,pixclockpol:0 root=/dev/sda1 rootdelay=20 console=ttyS0,115200 bootcmd=cp.b 01e00000 a1000000 13216e
What are you trying to do here?
...
But after power on, I cannot see countdown & run bootcmd. If I 'run bootcmd' by hand - that works OK. But not automatically after power on. Can anybody tell me, how I can solve this ?
It seems that support for bootdelay (CONFIG_BOOTDELAY) is not enabled in your vendors version of U-Boot. So to get this feature you will have to compile a new U-Boot.
Best regards
Markus Klotzbuecher
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de

bootcmd=cp.b 01e00000 a1000000 13216e
What are you trying to do here?
Simple test autostart. If I run it manually, this copy linux uImage from FLASH to RAM..
It seems that support for bootdelay (CONFIG_BOOTDELAY) is not enabled in your vendors version of U-Boot. So to get this feature you will have to compile a new U-Boot.
Thank you, I will ask them.

Alexei Babich a.babich@rez.ru writes:
bootcmd=cp.b 01e00000 a1000000 13216e
What are you trying to do here?
Simple test autostart. If I run it manually, this copy linux uImage from FLASH to RAM..
You know "bootm" will do this for you?
Best regards
Markus Klotzbuecher
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de

You know "bootm" will do this for you?
I know, but u-boot do _NOTHING_ after power on. Any command in 'bootcmd' is ignored.

In message 200805171408.06423.a.babich@rez.ru you wrote:
But after power on, I cannot see countdown & run bootcmd.
Probably that was not selected in the board configuration?
If I 'run bootcmd' by hand - that works OK. But not automatically after power on. Can anybody tell me, how I can solve this ?
Add at least CONFIG_BOOTDELAY to your board configuration, build and install the new version.
Best regards,
Wolfgang Denk
participants (3)
-
Alexei Babich
-
Markus Klotzbücher
-
Wolfgang Denk