TechNexion / imx-mfgtools-tn

Freescale/NXP I.MX Chip image deploy tools. forked from NXPmicro/mfgtools.
BSD 3-Clause "New" or "Revised" License
7 stars 5 forks source link

fix the SDPV/SPL config and jump addr for technexion pico-imx6ul #5

Open littlehill opened 1 year ago

littlehill commented 1 year ago

Hello, expected review time: 10-20minutes + test on HW/build etc.

Problem: Can not flash a wic to imx6ul target.

Serial-download flashing pico-imx6ul (PICO-PI-IMX6UL Start Kit) hangs during UUU SDP phase. (Attaching logs of both host and target terminals.)

Solution:

Adding device ID 0x0151 to the libuuu/config.cpp solved that but then the target cycles through Header "Tag is not an IMX image" and resets. Causing uuu to take another shot at loading SPL and it ends up cycling 'indefinitely'. Header is found at the 'right' offset 0x87800000. For u-boot.img we just have to jump to the same addr as load-addr.

Attached files:

(I hope filenames are descriptive enough but feel free to poke for more info if needed)

Thank you for consideration and have a good day :-) README_testing-notes.txt testing-logs.zip

ray-chang commented 1 year ago

Hi @littlehill

Thanks for the feedback. According to the logs you provide, you are using u-boot 2022.04. But the pico-im6ul flash binary in the UUU package that we released are kept in the sumo version(2018.03). This version does not have the problem you described. https://download.technexion.com/development_resources/development_tools/installer/imx-mfg-uuu-tool_20230822.zip

We are not sure if this patch will affect our current release. We will keep this request open until we also upgrade to the same version.

BR, Ray

littlehill commented 1 year ago

Hi Ray, Just for clarification or future reference: I was using the u-boot and SPL built by default init as repo init -u https://github.com/TechNexion/tn-imx-yocto-manifest.git -b kirkstone_5.15.y-stable -m imx-5.15.71-2.2.0.xml

Thank you for the quick response and link to recommended uuu binaries. My setup works either way now so no problem there. Have a good one, Mirek