mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Re: i.MX6ul USB serial downloader and Barebox
Date: Thu, 21 Feb 2019 11:21:09 +0100	[thread overview]
Message-ID: <ecafbb9b-6e24-a4ff-5203-fe4659e2dce1@pengutronix.de> (raw)
In-Reply-To: <AM0PR08MB384249D802EC267A6302BAE7EB7E0@AM0PR08MB3842.eurprd08.prod.outlook.com>

Hello Patrick,

On 2/21/19 11:01 AM, Patrick Schneider wrote:
> Hi guys,
> I'm trying to find out if the following is possible:
> In a production environment, there is only the USB connection present, no console access to the device. 
> The USB serial downloader mode starts and I am able to load a barebox image to the i.MX6ul RAM. That works either with MFGTools or uuu.
> But how to proceed from there? Is there any way to really flash the barebox image and also the rootFS into a onboard NAND over the USB serial downloader mode with barebox in RAM?
> All examples, guides and tutorials use u-boot so I'm kinda stuck here.

You can
- configure a barebox update handler in your board's code
- export it as Android Fastboot gadget on that USB port
- configure the environment so the gadget is active by default

that way the flashing sequence is:
- use imx-usb-load to load the barebox
- use fastboot to flash the barebox persistently
- use fastboot to flash the rootfs


Cheers
Ahmad 

> 
> Thanks and regards,
> Patrick
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 


-- 
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-21 10:21 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 [this message]
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

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=ecafbb9b-6e24-a4ff-5203-fe4659e2dce1@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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