mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Erwin Rol <mailinglists@erwinrol.com>
Cc: Barebox List <barebox@lists.infradead.org>
Subject: Re: imx6ul (phytec Segin board) USB/DFU
Date: Thu, 29 Nov 2018 11:59:41 +0100	[thread overview]
Message-ID: <20181129105941.5n424vfjiw6e7s5j@pengutronix.de> (raw)
In-Reply-To: <1543416825.5085.11.camel@erwinrol.com>

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@gmail.com>
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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2018-11-29 10:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28 14:53 Erwin Rol
2018-11-28 15:59 ` Ladislav Michl
2018-11-29 10:59 ` Sascha Hauer [this message]
2018-11-29 11:28 ` Jan Lübbe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181129105941.5n424vfjiw6e7s5j@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=mailinglists@erwinrol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox