Linux imx_usb_loader

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

Linux imx_usb_loader

Jump to solution
2,905 Views
mplseng
Contributor II

Has anyone tried using the Linux imx_usb_loader to program the Vybrid? I am looking to some direction as to how to add support for the Vybrid. Even direction to some documentation would help.

I have compiled the tool, added the USB information for the vybrid to the imx_usb_conf file. Without understanding the format of the mx*_usb_work.conf file, I just associated the Vybrid with the mx51_usb_work.conf file to see if the program would open the device and execute. This was the console output:

sudo ./imx_usb

[sudo] password for g4timesys:

No "_" environment variable

argc == 1, argv == 0xbf96d3f4

base == 0x8050140:./imx_usb

trailing slash == 0x8050141:/imx_usb

conf_path == ./

config file <./imx_usb.conf>

No "_" environment variable

argc == 1, argv == 0xbf96d3f4

base == 0x8050140:./imx_usb

trailing slash == 0x8050141:/imx_usb

conf_path == ./

config file <./mx51_usb_work.conf>

parse mx51_usb_work.conf

15a2:006a(mx51) bConfigurationValue =1

Interface 0 claimed

report 1, wrote 0 bytes, err=-1

report 3, read 0 bytes, err=-1

read=00 00 00 00

report 1, wrote 0 bytes, err=-1

report 3, read 0 bytes, err=-1

read=00 00 00 00

report 1, wrote 0 bytes, err=-1

report 3, read 0 bytes, err=-1

read=00 00 00 00

report 1, wrote 0 bytes, err=-1

report 3, read 0 bytes, err=-1

read=00 00 00 00

report 1, wrote 0 bytes, err=-1

report 3, read 0 bytes, err=-1

read=00 00 00 00

report 1, wrote 0 bytes, err=-1

report 3, read 0 bytes, err=-1

read=00 00 00 00

status failed

Labels (4)
Tags (2)
1 Solution
803 Views
timesyssupport
Senior Contributor II

Hello Bob,

Although we have not validated imx_usb_loader with Vybrid, you could try building the imx_loader sources from Toradex, which also include a Vybrid conf file:

https://github.com/toradex/imx_loader

Thanks,

Timesys Support

View solution in original post

0 Kudos
4 Replies
803 Views
falstaff
Senior Contributor I

Hi,

The only thing I had to change were the configuration files:

imx_usb: add support for Vybrid · c8e10b2 · toradex/imx_loader · GitHub

Our Vybrid modules normally use UART recovery (hence the changes) and do not support USB recovery (due to missing 5V on module). But I tested a modified version once, and things look good:

$ sudo ./imx_usb ../u-boot/u-boot.imx 
config file vid=0x066f pid=0x3780 file_name=mx23_usb_work.conf
vid=0x15a2 pid=0x004f file_name=mx28_usb_work.conf
vid=0x15a2 pid=0x0052 file_name=mx50_usb_work.conf
vid=0x15a2 pid=0x0054 file_name=mx6_usb_work.conf
vid=0x15a2 pid=0x0061 file_name=mx6_usb_work.conf
vid=0x15a2 pid=0x0041 file_name=mx51_usb_work.conf
vid=0x15a2 pid=0x004e file_name=mx53_usb_work.conf
vid=0x15a2 pid=0x006a file_name=vybrid_usb_work.conf
vid=0x066f pid=0x37ff file_name=linux_gadget.conf
config file parse ./vybrid_usb_work.conf
15a2:006a(vybrid) bConfigurationValue =1
Interface 0 claimed
HAB security state: development mode (0x56787856)
== work item
filename ../u-boot/u-boot.imx
load_size 0 bytes
load_addr 0x00000000
dcd 1
clear_dcd 0
plug 1
jump_mode 2
jump_addr 0x00000000
== end work item
main dcd length 8
sub dcd length 4

loading binary file(../u-boot/u-boot.imx) to 3f407c00, skip=0, fsize=60400 type=aa

<<>>succeeded (status 0x88888888)
jumping to 0x3f407c00

--

Stefan

803 Views
rodrigomendes
Contributor I

Hi Stefan,

This seems to be very good news.

We intend to use the VF50 Colibri, where we should provide the 5V to the USB0 in our baseboard.

Would you say that with this modified imx_usb_loader the Serial Downloader is now supported for USB?

Many thanks

Rodrigo

0 Kudos
804 Views
timesyssupport
Senior Contributor II

Hello Bob,

Although we have not validated imx_usb_loader with Vybrid, you could try building the imx_loader sources from Toradex, which also include a Vybrid conf file:

https://github.com/toradex/imx_loader

Thanks,

Timesys Support

0 Kudos
803 Views
karina_valencia
NXP Apps Support
NXP Apps Support

timesyssupport can you attend this case?

0 Kudos