Building uboot 22.04 / flash.bin failed

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

Building uboot 22.04 / flash.bin failed

1,150 Views
arno_0
Contributor III

Hi,

before adding my own board to uboot I try to compile flash.bin for the imx8mp EVK board.

I cloned https://github.com/nxp-imx/uboot-imx.git

"git clone https://github.com/nxp-imx/uboot-imx.git -b lf_v2022.04"

and followed the instruction in imx8mp_evk.rst. (createdt a bl31.bin, downloaded firmware...).

"make O=build" doesn't build a flash.bin.

Doing a "make O=build flash.bin" fails with 

...

OBJCOPY u-boot-nodtb.bin
RELOC u-boot-nodtb.bin
../"" \
arch/arm/dts/imx8mp-evk.dtb > u-boot.its
/bin/sh: 1: ../: Permission denied
make[1]: *** [/home/user/y/src/nxp/uboot-imx/Makefile:1371: u-boot.its] Error 126
make[1]: *** Deleting file 'u-boot.its'
make[1]: Leaving directory '/home/user/y/src/nxp/uboot-imx/build'

How to fix it?

Labels (1)
Tags (3)
0 Kudos
3 Replies

1,102 Views
arno_0
Contributor III

Sorry for delay.

What do you mean with "upstream"?  I found at least 3 ways to build:

* mainline (from uboot repos)

* repos from nxp (done as described in that docu inside)

* repos from nxp as described in your mentioned porting guide).

I am not really clear why there are so different ways. Is it just to add the HDMI blob?

What I found is missed in this is to add BINMAN to the target. Other imx8mp targets have that inside, EVK not. With that included it compiles a flash.bin. But will try that way from porting guide too. Can I just skip the HDMI step if I don't use it?

 

0 Kudos

1,089 Views
Harvey021
NXP TechSupport
NXP TechSupport

After consulting the R&D team, binman is turned off by default, in theory, there will be problems with binman doing FIT. So suggested using the imx-mkimage tool,

Best regards

Harvey

1,120 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi @arno_0 

This build is for upstream, I'd suggest you use imx-mkimage (4.5.13 How to build imx-boot image by using imx-mkimage) of Linux user guide.

Best regards

Harvey