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