IMX6SX - u-boot. mfgtool uuu.

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

IMX6SX - u-boot. mfgtool uuu.

3,966 Views
mabar52
Contributor III

Trying to get an old u-boot configuration from Yocto2.7 to work with Yocto 4.

I get USB timeout when trying to write u-boot image to IMX6SX.

 

SO-AP-SE-19:uuu root# ./uuu -lsusb
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.125-5-g1a9d927

Connected Known USB Devices
        Path     Chip    Pro     Vid     Pid     BcdVersion
        ==================================================
        2:11     MX6SX   SDP:    0x15A2 0x0071   0x0001



SO-AP-SE-19:uuu root# ./uuu -s
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.125-5-g1a9d927

Build in config:
        Pctl     Chip            Vid     Pid     BcdVersion
        ==================================================
        SDPS:    MX8QXP          0x1fc9  0x012f  [0x0002..0xffff]
        SDPS:    MX8QM           0x1fc9  0x0129  [0x0002..0xffff]
        SDPS:    MX8DXL          0x1fc9  0x0147
        SDPS:    MX28            0x15a2  0x004f
        SDPS:    MX815           0x1fc9  0x013e
        SDPS:    MX865           0x1fc9  0x0146
        SDPS:    MX8ULP          0x1fc9  0x014a
        SDPS:    MX8ULP          0x1fc9  0x014b
        SDPS:    MX93            0x1fc9  0x014e
        SDP:     MX7D            0x15a2  0x0076
        SDP:     MX6Q            0x15a2  0x0054
        SDP:     MX6D            0x15a2  0x0061
        SDP:     MX6SL           0x15a2  0x0063
        SDP:     MX6SX           0x15a2  0x0071
        SDP:     MX6UL           0x15a2  0x007d
        SDP:     MX6ULL          0x15a2  0x0080
        SDP:     MX6SLL          0x1fc9  0x0128
        SDP:     MX7ULP          0x1fc9  0x0126
        SDP:     MXRT106X        0x1fc9  0x0135
        SDP:     MX8MM           0x1fc9  0x0134
        SDP:     MX8MQ           0x1fc9  0x012b
        SDPU:    SPL             0x0525  0xb4a4  [0x0000..0x04ff]
        SDPV:    SPL1            0x0525  0xb4a4  [0x0500..0x9998]
        SDPV:    SPL1            0x1fc9  0x0151  [0x0500..0x9998]
        SDPU:    SPL             0x0525  0xb4a4  [0x9999..0x9999]
        SDPU:    SPL             0x3016  0x1001  [0x0000..0x04ff]
        SDPV:    SPL1            0x3016  0x1001  [0x0500..0x9998]
        FBK:                     0x066f  0x9afe
        FBK:                     0x066f  0x9bff
        FBK:                     0x1fc9  0x0153
        FB:                      0x0525  0xa4a5
        FB:                      0x18d1  0x0d02
        FB:                      0x3016  0x0001
        FB:                      0x1fc9  0x0152
        FB:                      0x0483  0x0afb

Please input command:
U>SDP: dcd -f files/u-boot-memtest-DCP-R8.0-r0.imx
>Start Cmd:SDP: dcd -f files/u-boot-memtest-DCP-R8.0-r0.imx
New USB Device Attached at 2:11
2:11>Okay (0.004s)
Okay
U>SDP: write -f files/u-boot-memtest-DCP-R8.0-r0.imx -ivt 0
2:11>Start Cmd:SDP: write -f files/u-boot-memtest-DCP-R8.0-r0.imx -ivt 0
New USB Device Attached at 2:11
2:11>Fail HID(W):LIBUSB_ERROR_TIMEOUT(2.252s)
HID(W):LIBUSB_ERROR_TIMEOUT
U>

I suspect I miss some config statement for u-boot.
I will also attach my .config.
Otherwise how do I debug this?

Labels (1)
0 Kudos
Reply
4 Replies

3,930 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @mabar52!

How are you generating your image?

What kernel version are you using?

What command is sending to the uuu to program the iMX6?

For 4.1.15_2.0.0 or lower use MFGTool, UUU is supported in U-Boot imx_v2018.03_4.14.78_1.0.0_ga and later releases.

Best Regards!
Chavira

0 Kudos
Reply

3,926 Views
mabar52
Contributor III

Hi, Chavira.

The image is build through Yocto (4) as a bbappend to 

2022.10+fslc

bbappend file and include file attached.

it has patches to the Kconf and code.

Kernel is 5.15.87

 

Ps. I also cloned the u-boot-fslc repo and built it separately from Yocto. That seems to work to write.

 

0 Kudos
Reply

3,907 Views
mabar52
Contributor III

I have found a difference in the .configs of a newly built u-boot from freescale repo and ours.

 

builder@ubuntu-linux-18:~/projects/src/u-boot-fslc$ grep CONFIG_SYS_TEXT_BASE .config
CONFIG_SYS_TEXT_BASE=0x17800000
builder@ubuntu-linux-18:~/projects/src/u-boot-fslc$ git remote -vv
origin  https://github.com/Freescale/u-boot-fslc.git (fetch)
origin  https://github.com/Freescale/u-boot-fslc.git (push)
builder@ubuntu-linux-18:~/projects/src/u-boot-fslc$ git status
On branch 2022.10+fslc

 


Ours:

 

builder@ubuntu-linux-18:~/projects/src/smartware_master/build/tmp$ grep SYS_TEXT_BASE ./work/smartoptics_dcp-poky-linux-gnueabi/u-boot-fslc/DCP-R8.0-r0/build/smartoptics_dcp_memtest_config/.config
CONFIG_SYS_TEXT_BASE=0x87800000
CONFIG_HAVE_SYS_TEXT_BASE=y

 

Is this changed in recent u-boot. Does it mean an offset instead of absolut address now?

0 Kudos
Reply

3,903 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @mabar52!

Please use only the official BSP.

We only have kernels 5.15.71, 5.15.52, 5.15.32.

Please check our Yocto User Guide and try to use our software.

https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

https://github.com/nxp-imx/imx-manifest/blob/imx-linux-kirkstone/README.md

Best Regards!
Chavira

0 Kudos
Reply