From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::6]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSkMR-00011X-Uz for barebox@lists.infradead.org; Fri, 30 Nov 2018 15:05:51 +0000 Received: from odin.home.erwinrol.com by smtp.strato.de (RZmta 44.6 DYNA|AUTH) with ESMTPSA id L03290uAUF5UIsV (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Fri, 30 Nov 2018 16:05:30 +0100 (CET) Message-ID: <1543590330.5085.16.camel@erwinrol.com> From: Erwin Rol Date: Fri, 30 Nov 2018 16:05:30 +0100 In-Reply-To: <1543585763.5085.14.camel@erwinrol.com> References: <1543585763.5085.14.camel@erwinrol.com> Mime-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: imx6 usb update 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