mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Patrick Schneider <patrick.schneider@bhtronik.de>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: i.MX6ul USB serial downloader and Barebox
Date: Fri, 22 Feb 2019 09:33:39 +0100	[thread overview]
Message-ID: <20190222083339.p5i5xlk42whfoi5s@pengutronix.de> (raw)
In-Reply-To: <AM0PR08MB3842CDAAFDCF1C1EA5865F11EB7F0@AM0PR08MB3842.eurprd08.prod.outlook.com>

On Fri, Feb 22, 2019 at 08:12:49AM +0000, Patrick Schneider wrote:
> Hi again,
> thanks for that suggestion, I'll look into that, because 'no console
> interaction' would indeed be the preferable way to go here.  But in
> the production process we also need to burn some ocotp fuses (which we
> would do by automated console commands atm).  Is it possible to send
> commands over usb in gadget mode?

Yes. One possibility is to use "fastboot oem exec <cmd>". This can be a
bit tricky since the fastboot string length is very limited (64 bytes I
think). The other possibility is to create a multi gadget which also
creates a console. See the global.usbgadget.acm option. With this you
can remote control barebox via a USB serial console. You might want to
look into the labgrid project which integrates all this nicely.

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

      reply	other threads:[~2019-02-22  8:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-21 10:01 Patrick Schneider
2019-02-21 10:21 ` Ahmad Fatoum
2019-02-21 10:41 ` Sascha Hauer
2019-02-21 12:01   ` AW: " Patrick Schneider
2019-02-21 13:31     ` Sascha Hauer
2019-02-21 14:30       ` AW: " Patrick Schneider
2019-02-22  7:57         ` Sascha Hauer
2019-02-22  8:12           ` AW: " Patrick Schneider
2019-02-22  8:33             ` Sascha Hauer [this message]

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=20190222083339.p5i5xlk42whfoi5s@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=patrick.schneider@bhtronik.de \
    /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