How to optimise boot delay for imx8qx in yocto zeues full image build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to optimise boot delay for imx8qx in yocto zeues full image build

1,536 Views
srikanth1792
Contributor II

Hello,

  I am working on imx8qx board and able to build yocto from Zeus branch with qt5 support.

Now I am trying to do boot optimization by reducing CONFIG_BOOTDELAY=0. I tried to do patching and do the change but none of my works didn't succeeded. So I am in a need of clear procedure to do this update successful. Waiting for response

Thanks

Srikanth

0 Kudos
Reply
8 Replies

1,523 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @srikanth1792 

 

I would like to ask, After of applying CONFIG_BOOTDELAY=0 the boot process is counting to enter U-boot and that is what you want to remove?

 

Best regards,

Salas. 

0 Kudos
Reply

1,514 Views
srikanth1792
Contributor II

Hi alejandro,

  yes I want to change the CONFIG_BOOTDELAY=3 to CONFIG_BOOTDELAY=0

0 Kudos
Reply

1,475 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello,

 

After of your compilation, the emviroment variable "bootdelay" is set to 0 or still 3?

 

Also you can try with -2, as described in the autoboot function.

 

Also, you can change directly in U-boot with setenv bootdelay -2.

 

Best regards,

Salas.

0 Kudos
Reply

1,449 Views
srikanth1792
Contributor II

hello alejandro,

    After default compilation of yocto source uboot bootdelay is 3. I don't want to do manually by setting the env variable.

  I want to do a permanent change in my uboot to boot without boot delay. So I need a clear procedure for that.

  I didn't get your input (Also you can try with -2, as described in the autoboot function.) what to be  done in this function.

 

Regards

Srikanth

0 Kudos
Reply

1,436 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello @srikanth1792 

 

You can try this:

mkdir -p meta-custom/recipes-bsp/u-boot/u-boot-imx
nano meta-custom/recipes-bsp/u-boot/u-boot-imx_%.bbappend

 

and add this content:

 

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://my-uboot-config.cfg"

 

then 

meta-custom/recipes-bsp/u-boot/u-boot-imx/my-uboot-config.cfg

 

and add:

CONFIG_BOOTDELAY=0

 

Then,

nano meta-custom/recipes-bsp/u-boot/u-boot-imx_%.bbappend

 

and add:

do_configure:prepend() {
    cat ${WORKDIR}/my-uboot-config.cfg >> ${B}/.config
}

 

This is working for me.

 

Best regards,

Salas.

0 Kudos
Reply

1,418 Views
srikanth1792
Contributor II

Hello Alejandro,

  Thanks for reply I tried process suggested by you but didn't work for me same bootdelay of 3 sec is there.

I followed the changes suggested by you then I builded bitbake imx-image-full and I flashed the image and checked.

I have a question here is there any need to add these changes in the bblayer.conf and if needed how to create layer.conf for this.

 

Regrads

srikanth.

0 Kudos
Reply

1,403 Views
Alejandro_Salas
NXP TechSupport
NXP TechSupport

Hello, 

 

Before of set your bitbake imx-image-full, please try to do bitbake u-boot-imx, then bitbake imx-image-full, I tested with core image and it is working without any issue.

Also, you are right, I forgot to add the layers in my last steps to Yocto.

Try:

 

$bitbake-layers create-layer meta-custom

$bitbake-layers add-layer meta-custom

$mkdir -p meta-custom/recipes-bsp/u-boot/u-boot-imx
$nano meta-custom/recipes-bsp/u-boot/u-boot-imx_%.bbappend

 

Paste below in the nano file:

 

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

SRC_URI += "file://my-uboot-config.cfg"

do_configure:prepend() {
    cat ${WORKDIR}/my-uboot-config.cfg >> ${B}/.config
}

 

 

Then, 

$nano meta-custom/recipes-bsp/u-boot/u-boot-imx/my-uboot-config.cfg

 

And paste:

 

CONFIG_BOOTDELAY=0

 

 

Finally please do bitbake u-boot-imx and then bitbake imx-image-full.

Best regards,

Salas.

0 Kudos
Reply

1,388 Views
srikanth1792
Contributor II

Hi Alejandro,

  I tried as you said it didn't work as expected still the bootdelay 3 is present. I attached log_do_patch and log_do_configure files for reference. I checked the buid/.config file CONFIG_BOOTDELAY=0 is appending at the last of the file but in the same file CONFIG_BOOTDELAY=3 is also present. Maybe uboot is taking CONFIG_BOOTDELAY=3 instead of CONFIG_BOOTDELAY=0. How to override this?

 

Regards

Srikanth.

0 Kudos
Reply