boundarydevices/imx_usb_loader

failed to add imx8qm to imx_usb_loader

redbrain17 opened this issue · 1 comments

Hello,

I tried to add a imx8qm board. So I added in imx_usb.conf

0x1fc9:0x0129, mx8qm_usb_work.conf

I also added a file mx8qm_usb_work.conf with this content:

mx8qm
#hid/bulk,[old_header,]max packet size, dcd_addr, {ram start, ram size}(repeat valid ram areas)
hid,1024,0x910000,0x40000000,1G,0x00900000,0x40000
#load/run SPL
flash.bin:dcd,clear_dcd,plug,jump header

Not sure if the values a valid here for imx8qm. Can someone verify that?

Now I got this output on running

sudo ./imx_usb flash.bin

Trying to open device vid=0x1fc9 pid=0x0129
Interface 0 claimed
do_command err=-7, last_trans=0
do_command err=-7, last_trans=0
do_command err=-7, last_trans=0
do_command err=-7, last_trans=0

So the USB detection worked. But can't send a command to that board.
Thx for any help.

After looking into the mfgtool I found out that imx8qm is using the SDPS protocol. So I adapted mx8qm_usb_work.conf

mx8qm
#hid/bulk,[old_header,]max packet size, dcd_addr, {ram start, ram size}(repeat valid ram areas)
sdps,ep1,1020,0x0,0x40000000,1G,0x00900000,0x40000
#load/run SPL
flash.bin:dcd,clear_dcd,plug,jump header

now I'am running into this issue:

Trying to open device vid=0x1fc9 pid=0x0129
Interface 0 claimed
== work item
filename flash.bin
load_size 0 bytes
load_addr 0x00000000
dcd 1
clear_dcd 0
plug 1
jump_mode 3
jump_addr 0x00000000
== end work item
header not found 8400:f001d101, 4000
do_download failed, err=-22