TechNexion / u-boot-tn-imx

i.MX U-Boot maintained by TechNexion
GNU General Public License v2.0
13 stars 11 forks source link

lpddr4_pmu_Xd_Xmem.bin circular dependency? #5

Closed mrpathos closed 2 years ago

mrpathos commented 2 years ago

Hey! I'm working on building a Ubuntu kernel for our WB-EDM-G-IMX8MP and thanks for all the hard work getting the ubuntu-tn-imx repo together and automatically pulling everything and all that. I think I have it just about working.

One thing I'm still hung up on: Building u-boot fails in imx8mimage.sh, noting the lpddr4*.bin files aren't found and the binary will be non-functional.

install_uboot_imx8.sh pulls those files down, but runs after the u-boot build (and fails if it hasn't been built, of course.)

I tried just running the install shell script to pull them down and then rerunning the u-boot build, but it still complains so I think the install script is putting those files somewhere than where u-boot build is looking for them.

I would (and may try) manually copying the files to wherever the build wants them, but I also note that for IMX8MP the install script is instead copying another version of the files with _202006.bin ending. There are some other references to "_202006" in the source so maybe the rest of the build will correctly use those, too - I just want to make sure.

Anyway - is there a prerequisite step I'm missing where I'm supposed to manually pull those files down before the u-boot build and put them somewhere? I'll keep digging through makefiles but if you have a quick answer I'd appreciate it. Thanks!

mrpathos commented 2 years ago

I finally stumbled on this: https://github.com/TechNexion/u-boot-tn-imx/blob/tn-imx_v2021.04_5.10.72_2.2.0-stable/doc/board/freescale/imx8mp_evk.rst

This is 15 months old but the _202006 and other magic numbers match so I'll give it a shot.

I guess now this is a question best for the ubuntu-tn-imx repo, but if I have to do these manual steps first to build u-boot for IMX8MP, does that mean the ubuntu-tn-imx repo can't really be used to build the full image, since it pulls this repo down as part of the build process? Or I just need to let the build fail once and then go into output/u-boot/u-boot-tn-imx and do these steps and then run it again or something?

(I appreciate that this repo has to support building u-boot for, I just checked, 679 different boards by 188 different vendors, so this isn't criticism - y'all are solving a hard problem here, just trying to figure out my dev flow! Thanks!)