[U-Boot] Booting MX6 via Serial Download after DM conversion
Adam Ford
aford173 at gmail.com
Tue Apr 23 02:31:13 UTC 2019
On Mon, Apr 22, 2019 at 9:00 PM Peng Fan <peng.fan at nxp.com> wrote:
>
> Hi Fabio
>
> > Subject: Booting MX6 via Serial Download after DM conversion
> >
> > Hi,
> >
> > Has anyone managed to boot i.MX6 via serial download protocol after the
> > conversion to DM?
>
I 'think' the DM conversion requires the USB Driver to be defined as
UCLASS_USB_GADGET_GENERIC in order to be used as a peripheral. I have
been following one of the TI boards [1] who's USB Driver has a bind
tool that go through the device tree and looks to see if the "dr_mode"
entry and then binds the appropriate driver (either HOST or GADGET).
I started a conversion on this, so I have a patch I can sent to
people, but I haven't gotten the GADGET side working, but I have a
binder function that then loads the host driver when "dr_mode" is set
to host. I haven't had a lot of time to try and figure out the GADGET
side of things yet. If someone wants me to send the a patch for what
I have so far, I can do that, but it only supports host mode.
I am fairly certain all gadget devices are broken on i.MX6 with DM_USB
enabled, so in SPL, I had to disable DM_USB in order to maintain the
SDP tool compatibility in SPL.
[1] - http://git.denx.de/?p=u-boot.git;a=commitdiff;h=7d98dbcc3dc8f1b93676d0953f3bee0db3796eb0
adam
> Include Abel who did the conversion.
>
> >
> > On a mx6sabresd I can no longer boot via SDP running 2019.04:
> >
> > After running 'sudo ./imx_usb SPL' I get:
>
> Honestly I am not familiar with imx_usb, we use mfgtool previously and not uuu tool.
> Would you share where to download imx_usb and any doc,
> Then we will debug this issue.
>
> Thanks,
> Peng.
>
> >
> > U-Boot SPL 2019.04 (Apr 22 2019 - 19:45:46 -0300) Trying to boot from USB
> > SDP
> > SDP: initialize...
> > SDP: handle requests..
> >
> > Then I load the u-boot-dtb.img binary and the following error is seen:
> >
> > $ sudo ./imx_usb u-boot-dtb.img
> > config file </usr/etc/imx-loader.d//imx_usb.conf>
> > 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=0x0063 file_name=mx6_usb_work.conf
> > vid=0x15a2 pid=0x0071 file_name=mx6_usb_work.conf
> > vid=0x15a2 pid=0x007d file_name=mx6_usb_work.conf
> > vid=0x15a2 pid=0x0080 file_name=mx6_usb_work.conf
> > vid=0x1fc9 pid=0x0128 file_name=mx6_usb_work.conf
> > vid=0x15a2 pid=0x0076 file_name=mx7_usb_work.conf
> > vid=0x1fc9 pid=0x0126 file_name=mx7ulp_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
> > vid=0x1b67 pid=0x4fff file_name=mx6_usb_sdp_spl.conf
> > vid=0x0525 pid=0xb4a4 file_name=mx6_usb_sdp_spl.conf
> > vid=0x1fc9 pid=0x012b file_name=mx8mq_usb_work.conf config file
> > </usr/etc/imx-loader.d//mx6_usb_sdp_spl.conf>
> > parse /usr/etc/imx-loader.d//mx6_usb_sdp_spl.conf
> > Trying to open device vid=0x0525 pid=0xb4a4 Interface 0 claimed HAB
> > security state: development mode (0x56787856) == work item filename
> > u-boot-dtb.img 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:2e77d044, 4000 do_download failed, err=-22 HAB security state:
> > development mode (0x56787856)
> >
> > With 2019.01 (prior to DM conversion) I can boot via SDP just fine.
> >
> > Does anyone have any suggestions?
> >
> > Thanks,
> >
> > Fabio Estevam
More information about the U-Boot
mailing list