* imx6 usb update
@ 2018-11-30 13:49 Erwin Rol
2018-11-30 15:05 ` Erwin Rol
0 siblings, 1 reply; 3+ messages in thread
From: Erwin Rol @ 2018-11-30 13:49 UTC (permalink / raw)
To: Barebox List
Hallo all,
I have my barebox running on a iMx6 (phyBOARD-Segin + phyCORE-i.MX 6UL
Modul).
Loading via USB works fine, and via DFU I can upload a barebox image
and use barebox_update to flash barebox in NAND.
Is it possible to have DFU correctly flash barebox, without first
upload a image to /tmp/barebox and than use barebox_update ?
And a second question is it possible to detect if barebox was booted
from NAND or from USB via imx-loader ? I woud like to use that to start
the system normal when it boots from NAND but go in DFU update mode
when it was started via imx-usb-loader.
As always hints and tips are very welcome,
Erwin
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: imx6 usb update
2018-11-30 13:49 imx6 usb update Erwin Rol
@ 2018-11-30 15:05 ` Erwin Rol
2018-11-30 21:16 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Erwin Rol @ 2018-11-30 15:05 UTC (permalink / raw)
To: Barebox List
Hey all,
the bootmode detection I figured out, but the using DFU to directly
flash barebox bricks my system;
usbgadget -D /dev/nand0.barebox(barebox)s
That doesn't work.
Is there a way to update barebox via DFU?
If not directly is it possible to trigger a script after DFU uploaded a
file, so I can call barebox_update ?
Or what would be the "barebox" way to do it ?
TIA,
Erwin
On Fri, 2018-11-30 at 14:49 +0100, Erwin Rol wrote:
> Hallo all,
>
> I have my barebox running on a iMx6 (phyBOARD-Segin + phyCORE-i.MX 6UL
> Modul).
>
> Loading via USB works fine, and via DFU I can upload a barebox image
> and use barebox_update to flash barebox in NAND.
>
> Is it possible to have DFU correctly flash barebox, without first
> upload a image to /tmp/barebox and than use barebox_update ?
>
> And a second question is it possible to detect if barebox was booted
> from NAND or from USB via imx-loader ? I woud like to use that to start
> the system normal when it boots from NAND but go in DFU update mode
> when it was started via imx-usb-loader.
>
> As always hints and tips are very welcome,
>
> Erwin
>
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: imx6 usb update
2018-11-30 15:05 ` Erwin Rol
@ 2018-11-30 21:16 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2018-11-30 21:16 UTC (permalink / raw)
To: Erwin Rol; +Cc: Barebox List
On Fri, Nov 30, 2018 at 04:05:30PM +0100, Erwin Rol wrote:
> Hey all,
>
> the bootmode detection I figured out, but the using DFU to directly
> flash barebox bricks my system;
>
> usbgadget -D /dev/nand0.barebox(barebox)s
>
> That doesn't work.
Nope, that doesn't work. For boot sources like SD/eMMC that would
indeed work, but NAND needs special treatment.
You can add what fastboot does:
if(filetype_is_barebox_image(data)) {
...
barebox_update();
}
There is currently no way to trigger a script.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-30 21:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-30 13:49 imx6 usb update Erwin Rol
2018-11-30 15:05 ` Erwin Rol
2018-11-30 21:16 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox