how to build uboot image for 8MPLUSLPD4-EVK in standalone environment

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

how to build uboot image for 8MPLUSLPD4-EVK in standalone environment

Jump to solution
3,618 Views
Dawei
Contributor II

Hi,

In the file:
i.MX Linux? User's Guide
Rev:Rev. LF5.10.72_2.2.0, 17 December 2021

que.png

Section 4.5.13
I can't follow the steps in this file, in step 8 in the diagram, run:
make SOC=iMX8MP flash_evk
Which directory is it running in? What does this operation have to do with the imx-mkimage directory created in the previous seven steps, it seems that there is no place to use this directory
Can you provide a correct way to create an u-boot image for 8MPLUSLPD4-EVK(for UUU tool) ?

Labels (2)
0 Kudos
Reply
1 Solution
3,592 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

See my previous reply, you need download imx-boot folder from our server and then use command make SOC=iMX8MP flash_evk under imx-boot folder

You are in uboot-imx folder.

View solution in original post

0 Kudos
Reply
8 Replies
3,579 Views
bernhardfink
NXP Employee
NXP Employee

If you want to do this really stand-alone, so not taking the files from the Yocto build, you can follow the description in the attached file.

Regards,
Bernhard.

0 Kudos
Reply
3,609 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Which directory is it running in?

--->All operations are based on imx-boot directory.Please ignore imx-mkimage directory

0 Kudos
Reply
3,603 Views
Dawei
Contributor II

Thanks for your reply, now I moved the "iMX8M" folder to the root directory of the code, but got the following error.
May I ask this: Is the target in "make SOC=iMX8MP flash_evk" correct?

tim@dell-PowerEdge-T440:~/linux/linux-src/uboot-imx$ tree iMX8M/
iMX8M/
├── bl31.bin
├── imx8mp-evk.dtb
├── lpddr4_pmu_train_1d_dmem.bin
├── lpddr4_pmu_train_1d_imem.bin
├── lpddr4_pmu_train_2d_dmem.bin
├── lpddr4_pmu_train_2d_imem.bin
├── mkimage_uboot
├── signed_hdmi_imx8m.bin
├── u-boot-nodtb.bin
└── u-boot-spl.bin

0 directories, 10 files
tim@dell-PowerEdge-T440:~/linux/linux-src/uboot-imx$
tim@dell-PowerEdge-T440:~/linux/linux-src/uboot-imx$ make SOC=iMX8MP flash_evk
scripts/kconfig/conf --syncconfig Kconfig
CHK include/config.h
CFG u-boot.cfg
In file included from include/config.h:6,
from ./include/common.h:16:
include/configs/imx8mp_evk.h:10:10: fatal error: asm/arch/imx-regs.h: No such file or directory
10 | #include <asm/arch/imx-regs.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.autoconf:77:u-boot.cfg] 错误 1
make: *** 没有规则可制作目标“flash_evk”。 停止。
tim@dell-PowerEdge-T440:~/linux/linux-src/uboot-imx$
0 Kudos
Reply
3,597 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The imx-boot folder is same as imx-mkimage folder, you need download this.

https://source.codeaurora.org/external/imx/imx-mkimage/tree/?h=lf-5.10.72_2.2.0

0 Kudos
Reply
3,601 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

~/imx-boot$ make SOC=iMX8MP flash_evk

You need use this command in imx-boot folder

0 Kudos
Reply
3,595 Views
Dawei
Contributor II
Very Sorry, One more question
No target!
tim@dell-PowerEdge-T440:~/linux/linux-src/uboot-imx$ make imx8mp_evk_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
YACC scripts/kconfig/zconf.tab.c
LEX scripts/kconfig/zconf.lex.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
tim@dell-PowerEdge-T440:~/linux/linux-src/uboot-imx$ make SOC=iMX8MP flash_evk
scripts/kconfig/conf --syncconfig Kconfig
CHK include/config.h
CFG u-boot.cfg
In file included from include/config.h:6,
from ./include/common.h:16:
include/configs/imx8mp_evk.h:10:10: fatal error: asm/arch/imx-regs.h: No such file or directory
10 | #include <asm/arch/imx-regs.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.autoconf:77:u-boot.cfg] 错误 1
make: *** 没有规则可制作目标“flash_evk”。 停止。
tim@dell-PowerEdge-T440:~/linux/linux-src/uboot-imx$
0 Kudos
Reply
3,593 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

See my previous reply, you need download imx-boot folder from our server and then use command make SOC=iMX8MP flash_evk under imx-boot folder

You are in uboot-imx folder.

0 Kudos
Reply
3,586 Views
Dawei
Contributor II
Thank you very much!
0 Kudos
Reply