[U-Boot] imx6: USB SDP failed for u-boot-dtb.img

Hi,
U-Boot SPL 2018.03-rc3-00111-g0cb2734156-dirty (Mar 06 2018 - 17:19:36 +0530) Trying to boot from USB SDP SDP: initialize... SDP: handle requests...
and SPL reenumerated USB VID/PID as [24774.255201] usb 1-2: new high-speed USB device number 101 using xhci_hcd [24774.425174] usb 1-2: New USB device found, idVendor=0525, idProduct=b4a4 [24774.425181] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [24774.425185] usb 1-2: Product: USB download gadget [24774.425189] usb 1-2: Manufacturer: FSL [24774.433598] hid-generic 0003:0525:B4A4.005C: hiddev97,hidraw2: USB HID v1.10 Device [FSL USB download gadget]
Now I've launched u-boot-dtb.img
$ imx_usb u-boot-dtb.img ... vid=0x0525 pid=0xb4a4 file_name=mx6_usb_sdp_spl.conf config file <.//mx6_usb_sdp_spl.conf> parse .//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 /work/code/u-boot/u-boot-dtb.img load_size 0 bytes load_addr 0x00000000 dcd 1 clear_dcd 0 plug 1 jump_mode 2 jump_addr 0x00000000 == end work item
unknown load address DoIRomDownload failed, err=-3 HAB security state: development mode (0x56787856)
Here is mx6_usb_sdp_spl.conf file mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
Look like the u-boot-dtb.img has FIT header and imx_usb can't process the same, any help?
Jagan.

Hi Jagan,
On Tue, Mar 6, 2018 at 9:25 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi,
U-Boot SPL 2018.03-rc3-00111-g0cb2734156-dirty (Mar 06 2018 - 17:19:36 +0530) Trying to boot from USB SDP SDP: initialize... SDP: handle requests...
and SPL reenumerated USB VID/PID as [24774.255201] usb 1-2: new high-speed USB device number 101 using xhci_hcd [24774.425174] usb 1-2: New USB device found, idVendor=0525, idProduct=b4a4 [24774.425181] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [24774.425185] usb 1-2: Product: USB download gadget [24774.425189] usb 1-2: Manufacturer: FSL [24774.433598] hid-generic 0003:0525:B4A4.005C: hiddev97,hidraw2: USB HID v1.10 Device [FSL USB download gadget]
Now I've launched u-boot-dtb.img
$ imx_usb u-boot-dtb.img ... vid=0x0525 pid=0xb4a4 file_name=mx6_usb_sdp_spl.conf config file <.//mx6_usb_sdp_spl.conf> parse .//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 /work/code/u-boot/u-boot-dtb.img load_size 0 bytes load_addr 0x00000000 dcd 1 clear_dcd 0 plug 1 jump_mode 2 jump_addr 0x00000000 == end work item
unknown load address DoIRomDownload failed, err=-3 HAB security state: development mode (0x56787856)
Here is mx6_usb_sdp_spl.conf file mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
Look like the u-boot-dtb.img has FIT header and imx_usb can't process the same, any help?
Is this a regression? If so, are you able to run a 'git bisect'?

On Tue, Mar 6, 2018 at 6:46 PM, Fabio Estevam festevam@gmail.com wrote:
Hi Jagan,
On Tue, Mar 6, 2018 at 9:25 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi,
U-Boot SPL 2018.03-rc3-00111-g0cb2734156-dirty (Mar 06 2018 - 17:19:36 +0530) Trying to boot from USB SDP SDP: initialize... SDP: handle requests...
and SPL reenumerated USB VID/PID as [24774.255201] usb 1-2: new high-speed USB device number 101 using xhci_hcd [24774.425174] usb 1-2: New USB device found, idVendor=0525, idProduct=b4a4 [24774.425181] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [24774.425185] usb 1-2: Product: USB download gadget [24774.425189] usb 1-2: Manufacturer: FSL [24774.433598] hid-generic 0003:0525:B4A4.005C: hiddev97,hidraw2: USB HID v1.10 Device [FSL USB download gadget]
Now I've launched u-boot-dtb.img
$ imx_usb u-boot-dtb.img ... vid=0x0525 pid=0xb4a4 file_name=mx6_usb_sdp_spl.conf config file <.//mx6_usb_sdp_spl.conf> parse .//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 /work/code/u-boot/u-boot-dtb.img load_size 0 bytes load_addr 0x00000000 dcd 1 clear_dcd 0 plug 1 jump_mode 2 jump_addr 0x00000000 == end work item
unknown load address DoIRomDownload failed, err=-3 HAB security state: development mode (0x56787856)
Here is mx6_usb_sdp_spl.conf file mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
Look like the u-boot-dtb.img has FIT header and imx_usb can't process the same, any help?
Is this a regression? If so, are you able to run a 'git bisect'?
I don't think it's regression, I'm guessing this is first test with u-boot-dtb.img or did you tested the similar image type?

On Tue, Mar 6, 2018 at 11:12 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
I don't think it's regression, I'm guessing this is first test with u-boot-dtb.img or did you tested the similar image type?
I have only used u-boot.img on my tests with SDP.

On 06/03/2018 15:12, Jagan Teki wrote:
On Tue, Mar 6, 2018 at 6:46 PM, Fabio Estevam festevam@gmail.com wrote:
Hi Jagan,
On Tue, Mar 6, 2018 at 9:25 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi,
U-Boot SPL 2018.03-rc3-00111-g0cb2734156-dirty (Mar 06 2018 - 17:19:36 +0530) Trying to boot from USB SDP SDP: initialize... SDP: handle requests...
and SPL reenumerated USB VID/PID as [24774.255201] usb 1-2: new high-speed USB device number 101 using xhci_hcd [24774.425174] usb 1-2: New USB device found, idVendor=0525, idProduct=b4a4 [24774.425181] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [24774.425185] usb 1-2: Product: USB download gadget [24774.425189] usb 1-2: Manufacturer: FSL [24774.433598] hid-generic 0003:0525:B4A4.005C: hiddev97,hidraw2: USB HID v1.10 Device [FSL USB download gadget]
Now I've launched u-boot-dtb.img
$ imx_usb u-boot-dtb.img ... vid=0x0525 pid=0xb4a4 file_name=mx6_usb_sdp_spl.conf config file <.//mx6_usb_sdp_spl.conf> parse .//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 /work/code/u-boot/u-boot-dtb.img load_size 0 bytes load_addr 0x00000000 dcd 1 clear_dcd 0 plug 1 jump_mode 2 jump_addr 0x00000000 == end work item
unknown load address DoIRomDownload failed, err=-3 HAB security state: development mode (0x56787856)
Here is mx6_usb_sdp_spl.conf file mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
Look like the u-boot-dtb.img has FIT header and imx_usb can't process the same, any help?
Is this a regression? If so, are you able to run a 'git bisect'?
I don't think it's regression, I'm guessing this is first test with u-boot-dtb.img or did you tested the similar image type?
Never tested with u-boot-dtb.img, it worked fine with u-boot.img
Best regards, Stefano

Hi Jagan
There is a git log for that configuration file. I have the impression that is done in two steps
Michael
On Tue, Mar 6, 2018 at 3:16 PM, Stefano Babic sbabic@denx.de wrote:
On 06/03/2018 15:12, Jagan Teki wrote:
On Tue, Mar 6, 2018 at 6:46 PM, Fabio Estevam festevam@gmail.com wrote:
Hi Jagan,
On Tue, Mar 6, 2018 at 9:25 AM, Jagan Teki jagannadh.teki@gmail.com wrote:
Hi,
U-Boot SPL 2018.03-rc3-00111-g0cb2734156-dirty (Mar 06 2018 - 17:19:36 +0530) Trying to boot from USB SDP SDP: initialize... SDP: handle requests...
and SPL reenumerated USB VID/PID as [24774.255201] usb 1-2: new high-speed USB device number 101 using xhci_hcd [24774.425174] usb 1-2: New USB device found, idVendor=0525, idProduct=b4a4 [24774.425181] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [24774.425185] usb 1-2: Product: USB download gadget [24774.425189] usb 1-2: Manufacturer: FSL [24774.433598] hid-generic 0003:0525:B4A4.005C: hiddev97,hidraw2: USB HID v1.10 Device [FSL USB download gadget]
Now I've launched u-boot-dtb.img
$ imx_usb u-boot-dtb.img ... vid=0x0525 pid=0xb4a4 file_name=mx6_usb_sdp_spl.conf config file <.//mx6_usb_sdp_spl.conf> parse .//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 /work/code/u-boot/u-boot-dtb.img load_size 0 bytes load_addr 0x00000000 dcd 1 clear_dcd 0 plug 1 jump_mode 2 jump_addr 0x00000000 == end work item
unknown load address DoIRomDownload failed, err=-3 HAB security state: development mode (0x56787856)
Here is mx6_usb_sdp_spl.conf file mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
Look like the u-boot-dtb.img has FIT header and imx_usb can't process the same, any help?
Is this a regression? If so, are you able to run a 'git bisect'?
I don't think it's regression, I'm guessing this is first test with u-boot-dtb.img or did you tested the similar image type?
Never tested with u-boot-dtb.img, it worked fine with u-boot.img
Best regards, Stefano
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Hi all,
Jagan , do you confirm your mx6_usb_sdp_spl.conf contains the 3rd line?
mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000 u-boot-dtb.img:jump header2
BR, Vincent
2018-03-06 15:18 GMT+01:00 Michael Nazzareno Trimarchi < michael@amarulasolutions.com>:
Hi Jagan
There is a git log for that configuration file. I have the impression that is done in two steps
Michael
On Tue, Mar 6, 2018 at 3:16 PM, Stefano Babic sbabic@denx.de wrote:
On 06/03/2018 15:12, Jagan Teki wrote:
On Tue, Mar 6, 2018 at 6:46 PM, Fabio Estevam festevam@gmail.com
wrote:
Hi Jagan,
On Tue, Mar 6, 2018 at 9:25 AM, Jagan Teki jagannadh.teki@gmail.com
wrote:
Hi,
U-Boot SPL 2018.03-rc3-00111-g0cb2734156-dirty (Mar 06 2018 -
17:19:36 +0530)
Trying to boot from USB SDP SDP: initialize... SDP: handle requests...
and SPL reenumerated USB VID/PID as [24774.255201] usb 1-2: new high-speed USB device number 101 using
xhci_hcd
[24774.425174] usb 1-2: New USB device found, idVendor=0525,
idProduct=b4a4
[24774.425181] usb 1-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=0
[24774.425185] usb 1-2: Product: USB download gadget [24774.425189] usb 1-2: Manufacturer: FSL [24774.433598] hid-generic 0003:0525:B4A4.005C: hiddev97,hidraw2: USB HID v1.10 Device [FSL USB download gadget]
Now I've launched u-boot-dtb.img
$ imx_usb u-boot-dtb.img ... vid=0x0525 pid=0xb4a4 file_name=mx6_usb_sdp_spl.conf config file <.//mx6_usb_sdp_spl.conf> parse .//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 /work/code/u-boot/u-boot-dtb.img load_size 0 bytes load_addr 0x00000000 dcd 1 clear_dcd 0 plug 1 jump_mode 2 jump_addr 0x00000000 == end work item
unknown load address DoIRomDownload failed, err=-3 HAB security state: development mode (0x56787856)
Here is mx6_usb_sdp_spl.conf file mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000
Look like the u-boot-dtb.img has FIT header and imx_usb can't process the same, any help?
Is this a regression? If so, are you able to run a 'git bisect'?
I don't think it's regression, I'm guessing this is first test with u-boot-dtb.img or did you tested the similar image type?
Never tested with u-boot-dtb.img, it worked fine with u-boot.img
Best regards, Stefano
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
-- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com | _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Hi Michael, Vincent,
On Tue, Mar 6, 2018 at 7:57 PM, Vincent Prince vincent.prince.fr@gmail.com wrote:
Hi all,
Jagan , do you confirm your mx6_usb_sdp_spl.conf contains the 3rd line?
mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000 u-boot-dtb.img:jump header2
2018-03-06 15:18 GMT+01:00 Michael Nazzareno Trimarchi < michael@amarulasolutions.com>:
Hi Jagan
There is a git log for that configuration file. I have the impression that is done in two steps
Yes, I've verified the single command to download SPL and u-boot-dtb.img
imx_usb.conf 0x15a2:0x0054, mx6_usb_rom.conf, 0x0525:0xb4a4, mx6_usb_sdp_spl.conf
mx6_usb_rom.conf mx6_qsb hid,1024,0x910000,0x10000000,512M,0x00900000,0x40000 SPL:jump header2
mx6_usb_sdp_spl.conf mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000 u-boot-dtb.img:jump header2
Here is the download log [1], seems like the load_size and load_addr were mismatch or unrecognised
Can anyone send the working download log?
[1] https://paste.ubuntu.com/p/mrSmdPRHb7/
Jagan.

I put my log here https://pastebin.com/5aPjntnb , but i use standard DT-less u-boot.img.
Maybe it could be easier to talk in u-boot IRC?
2018-03-06 15:55 GMT+01:00 Jagan Teki jagannadh.teki@gmail.com:
Hi Michael, Vincent,
On Tue, Mar 6, 2018 at 7:57 PM, Vincent Prince vincent.prince.fr@gmail.com wrote:
Hi all,
Jagan , do you confirm your mx6_usb_sdp_spl.conf contains the 3rd line?
mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000 u-boot-dtb.img:jump header2
2018-03-06 15:18 GMT+01:00 Michael Nazzareno Trimarchi < michael@amarulasolutions.com>:
Hi Jagan
There is a git log for that configuration file. I have the impression that is done in two steps
Yes, I've verified the single command to download SPL and u-boot-dtb.img
imx_usb.conf 0x15a2:0x0054, mx6_usb_rom.conf, 0x0525:0xb4a4, mx6_usb_sdp_spl.conf
mx6_usb_rom.conf mx6_qsb hid,1024,0x910000,0x10000000,512M,0x00900000,0x40000 SPL:jump header2
mx6_usb_sdp_spl.conf mx6_spl_sdp hid,uboot_header,1024,0x910000,0x10000000,512M,0x00900000,0x40000 u-boot-dtb.img:jump header2
Here is the download log [1], seems like the load_size and load_addr were mismatch or unrecognised
Can anyone send the working download log?
[1] https://paste.ubuntu.com/p/mrSmdPRHb7/
Jagan.
-- Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
participants (5)
-
Fabio Estevam
-
Jagan Teki
-
Michael Nazzareno Trimarchi
-
Stefano Babic
-
Vincent Prince