Re: imx6ul (phytec Segin board) USB/DFU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Erwin,

On Wed, Nov 28, 2018 at 03:53:45PM +0100, Erwin Rol wrote:
> Hallo All,
> 
> I am trying to get USB device (DFU) to work on my Phytec Segin board
> (imx6ul SOC). 
> 
> I can upload barebox with imx-usb-loader and it starts fine (so USB
> hardware is working)
> 
> Than when barebox runs I want to put that same USB port in DFU mode and
> update the nand flash (barebox, env, kernel, rootfs) via DFU.
> 
> But I can't get it to work, I assume USB device mode setup is missing
> from the board setup, but I can't really find info on how to add it.

First check the dr_mode property in you OTG device tree node. It should
be either "peripheral" or "otg". If it's "otg" then you have to do a
otg.mode=peripheral on the command line for your device to show up.

Note that newer versions of dfu-util do not work with barebox. I never
tracked this down unfortunately. More specifically this one is the
evil commit:

commit 377f6f136d3369529f44578acaeee82d7c7d7af9 (breaks-barebox,
refs/bisect/bad)
Author: Paul Fertser <fercerpav@xxxxxxxxx>
Date:   Sun Aug 10 14:26:05 2014 +0400

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux