From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 24 Sep 2012 17:17:08 +0200 Subject: [U-Boot] [PATCH V2 08/21] mx6: add plugin file for use with imximage.cfg In-Reply-To: <506064C1.6090902@boundarydevices.com> References: <1348012989-19674-1-git-send-email-troy.kisky@boundarydevices.com> <1348281558-19520-1-git-send-email-troy.kisky@boundarydevices.com> <1348281558-19520-9-git-send-email-troy.kisky@boundarydevices.com> <505EE1B2.4070906@denx.de> <505F3783.5040108@boundarydevices.com> <505F41F2.5080908@denx.de> <505F9B4E.7080800@boundarydevices.com> <50600A53.6010706@denx.de> <506064C1.6090902@boundarydevices.com> Message-ID: <50607974.9080606@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 24/09/2012 15:48, Eric Nelson wrote: > Hi Stefano, > Hi Eric, >> But I do not get the connection with the imximage and the need for the >> plugin. If the SOC boots with "Serial Downloader", it polls the USB OTG >> waiting for command as specified in the protocol. With your tool you set >> the registers you need and you can download the file you want, >> independently from the structure of the imxImage. >> > > The relationship is this: if we build a combined SPL image for > a universal i.MX6 U-Boot, how would it know/decide that it's > being loaded via USB and how would it support this? > > imx_usb supports plugins, so we can use it directly with that > approach. But this seems to me an implementation choice rather a constraint of the SOC. As I see in your code, imx_usb parses the iMX header making decisions according to it. Then there is a hard dependency between imx_usb and u-boot code. The other way is that they are independently, let's say, openOCD approach ;-). imx_usb could get an independent file to configure the DDR controller (for example, but it is not limited to), and then load a u-boot (or SPL, or...) where you want. Then there is no strict dependency with the imx_usb tool. The SOC allows this approach, too. Best regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================