From: Tom Rini Date: Wed, 27 Mar 2013 11:45:10 -0400 Subject: [U-Boot] [PATCH V3 4/5] ARM: OMAP4/5: Change the default boot command to work with device tree In-Reply-To: <1364272056-27886-5-git-send-email-r.sricharan@ti.com> References: <1364272056-27886-1-git-send-email-r.sricharan@ti.com> <1364272056-27886-5-git-send-email-r.sricharan@ti.com> Message-ID: <20130327154510.GQ5711@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Mar 26, 2013 at 09:57:35AM +0530, Sricharan R wrote: > Now with kernel moving to all device tree, the default > boot command is changed to pass the device tree blob. > Also, adding the findfdt command to get the dt-blob > based on the board. [snip] > @@ -153,7 +155,9 @@ > "mmcargs=setenv bootargs console=${console} " \ > "vram=${vram} " \ > "root=${mmcroot} " \ > - "rootfstype=${mmcrootfstype}\0" \ > + "rootfstype=${mmcrootfstype}; " \ > + "run findfdt; " \ > + "fatload mmc ${mmcdev} ${fdtaddr} ${fdtfile}\0" \ I missed this part before, sorry. What we do on am335x_evm to allow for easier overrides is: - bootcmd runs findfdt (since we'll need it in all cases). - Enable CONFIG_CMD_FS_GENERIC - Add a 'loadfdt' command that can be called out ala loaduimage - Use 'load' in loadfdt/loaduimage so that we don't care what the underlying filesystem type is. - Use bootdir to help with overrides as well: loaduimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile} loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile} So that we can easily grab from the first partition (FAT) or another partition (ext3/4/etc). -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: