Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to add imx8qm to imx_usb_loader #113

Open
redbrain17 opened this issue May 11, 2020 · 1 comment
Open

failed to add imx8qm to imx_usb_loader #113

redbrain17 opened this issue May 11, 2020 · 1 comment

Comments

@redbrain17
Copy link

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.

@redbrain17
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant