cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
herogian
Adventurer
Adventurer
471 Views
Registered: ‎01-23-2018

How to set autoboot in PetaLinux image

Hello, I built a Linux image with the Petalinux tool, with the following u-boot parameters:

console=ttyPS0,115200 earlyprintk uio_pdrv_genirq.of_id=generic-uio clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait sdhci.debug_quirks=64 cpuidle.off=1

the "problem" is that every time I would like to boot the linux image I need to connect to the serial port and type "bootm" as in figure:

Schermata da 2019-09-13 17-42-43.png

there is some parameter to configure the autoboot?

thanks

0 Kudos
3 Replies
rfs613
Scholar
Scholar
450 Views
Registered: ‎05-28-2013

Yes, you can set the "bootcmd" variable (note, you also need "bootdelay", but you likely already have that). Reference: https://www.denx.de/wiki/DULG/UBootEnvVariables
0 Kudos
herogian
Adventurer
Adventurer
398 Views
Registered: ‎01-23-2018

Ok thank you, it's possible to set these parameters permanently, without re-generating the petalinux image?

0 Kudos
rfs613
Scholar
Scholar
388 Views
Registered: ‎05-28-2013

Usually you can use "saveenv" command to save these parameters permanenty.

 

This relies on u-boot having been configured to store the parameters somewhere (such as QSPI flash, EEPROM, etc).

0 Kudos