Yocto zeus - cannot apply patch in u-boot (imx7ulp-evk)

cancel
Showing results for 
Search instead for 
Did you mean: 

Yocto zeus - cannot apply patch in u-boot (imx7ulp-evk)

72 Views
NXP Employee
NXP Employee

Hi everyone,

I currently made the update from sumo to the latest zeus (5.4.24_2.1.0)  and I have some issues.

In my custom meta-layer I have a patch that was applying ok in u-boot with sumo but doesn't apply anymore with the latest zeus revision.

I need this patch in order to change the default fdt_file.

Basically the default fdt_file is imx7ulp-evkb.dtb but I need to use a custom dtb file named imx7ulp-evk-custom.dtb.

Is there any other file structure for zeus in the *.bbappend file that I should follow? Maybe I need to replace the SRC_URI with another key-word?


OBS!
- If I provide a patch file that doesn't exist in the u-boot-imx_2018.03.bbappend file I get a warning when compiling (bitbake -f -c compile u-boot-imx) -> so the patch is read from disk when compiling

Labels (3)
0 Kudos
5 Replies

12 Views
NXP Employee
NXP Employee

Thanks for your help Wigros.

The problem was with the *bbappend file name version.

Renaming u-boot-imx_2018.03.bbappend to u-boot-imx_2020.04.bbappend solved my issue.

0 Kudos

12 Views
NXP TechSupport
NXP TechSupport

OK, good job!

Have a nice day!

B.R,

Weidong

0 Kudos

12 Views
NXP TechSupport
NXP TechSupport

Hello Liviu,

For imx7ul-evk, fdt_file name is defined in u-boot/include/configs/mx7ulp_evk.h, see below, please!

......

"fdt_file=" CONFIG_DEFAULT_FDT_FILE ".dtb\0" \

......

Actuall, she can modify it like this:

#define MY_DTB_FILE      "mx7ulp_customized"

......

"fdt_file=" MY_DTB_FILE ".dtb\0" \

......

or

......

"fdt_file=" mx7ulp_customized ".dtb\0" \

......

Then run : bitbake -f -c compile u-boot-imx or  bitbake u-boot-imx -c compile  -f 

So don't need to make a special path for the change.

Hope above information is helpful for you.

Have a nice day!

B.R,

Weidong

0 Kudos

12 Views
NXP Employee
NXP Employee

Helloweidong.sun and thanks for your reply.

This is exactly what I did. If you will check the uboot_custom_fdt_file.patch file you will see that I changed the CONFIG_DEFAULT_FDT_FILE to use my custom name.

But I cannot make that change by hand and I it to be applied as a patch when I'm compiling my custom layer.

So the actual issue is that the patch is not applied over the mx7ulp_evk.h when the image builds.

Thank you,

Liviu

0 Kudos

12 Views
NXP TechSupport
NXP TechSupport

Hello Liviu,

It seems that bitbake didn't find patch directory, so you can try like this:

SRC_URI += " \
    file://uboot_custom_fdt_file.patch;patchdir=${S}/include/configs \
"

Have  a nice day!

B.R,

Weidong

0 Kudos