From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Nelson Date: Sat, 30 May 2015 12:53:13 -0700 Subject: [U-Boot] Booting Wandboard through USB In-Reply-To: <20150530192530.GC1728@bill-the-cat> References: <55683580.8060803@bergerie> <20150530164921.GB1728@bill-the-cat> <5569F63C.4040600@boundarydevices.com> <20150530192530.GC1728@bill-the-cat> Message-ID: <556A1529.6090508@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi Tom, On 05/30/2015 12:25 PM, Tom Rini wrote: > On Sat, May 30, 2015 at 10:41:16AM -0700, Eric Nelson wrote: >> On 05/30/2015 09:49 AM, Tom Rini wrote: >>> On Fri, May 29, 2015 at 11:46:40AM +0200, Vincent Stehl? >>> wrote: >>> [...] >> >> This is an old topic and the threading seems to be messed up in >> the archive, but I think Michael Trimarchi has a solution based >> on inclusion of DFU in the SPL image: >> >> http://lists.denx.de/pipermail/u-boot/2013-October/165849.html >> >> I would prefer to see something slimmer if possible, and using >> imx_usb has the advantage of only needing a single tool on the >> programming host. > > Ah yes, firing up and letting DFU do the rest is another option I > had forgotten about. But I too lean towards something imx_usb can > do as that will also make integration into the Freescale factory > flashing tool easier I suspect. > I think there's an easy way and a more complicated way to do this. The easiest is probably to do something custom in SPL and update imx_usb to support the same. There's a WRITE_FILE command in the serial download protocol which could serve as an example, though 100% compatibility isn't needed, since the internal ROM isn't needed. Note that this would also require updates to the SB_LOADER tool used in the Freescale Manufacturing tool for use on Windows. I think that's closed source (and C# or somesuch), but perhaps Fabio can provide details. The harder way (and the Freescale way) is to somehow package the SPL content and full U-Boot image in a way such that the SPL is a "plugin" that can execute and return to the boot loader after setting up DDR and bundle SPL and u-boot.img into a single .imx file. I think that both imx_usb and sb_loader support plugins. Regards, Eric -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVahUpAAoJEFUqXmm9AiVrTNkH/iexdhpBtiLHGO9IQ1T9ewk+ B+sdeZHj8MLRWRsN7AeWrfXXFqy6+JTkPkKLgiqkfd93JmT82xsp6EOzqO1MPmBK L+nSl0+ILj/iBVhyew5O56N/EJT/JQG4wHIbuJfEIgkMkWP7BK722sOitnkKLXO5 aNPi5T4z4XZXnw+5JSLQi75c4TUGz5O8tMNxd/8yUBrjeW0t03ZqAWErWvAq29IT qLWLr1SYTl5Rl25D5dn2p/mwYlbHNq0KsYZTjesQeyGdKglN8QVmvof84doPpL34 cxerzYlKr1VGaMGo2jQ3hOs+eA+JrYG+C3V82hTvl+5XpSLpfQ/BTxiG04n/pmw= =nBFi -----END PGP SIGNATURE-----