From: Sricharan R <r.sricharan@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 4/5] ARM: OMAP4/5: Change the default boot command to work with device tree
Date: Thu, 28 Mar 2013 23:10:46 +0530 [thread overview]
Message-ID: <5154809E.1070803@ti.com> (raw)
In-Reply-To: <20130327154510.GQ5711@bill-the-cat>
On Wednesday 27 March 2013 09:15 PM, Tom Rini wrote:
> 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).
>
Yeah, liked this. Thanks for detailed explanation. Will add this
then for better.
Regards,
Sricharan
next prev parent reply other threads:[~2013-03-28 17:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-26 4:27 [U-Boot] [PATCH V3 0/5] ARM: OMAP4/5: Add support to boot with device tree as default Sricharan R
2013-03-26 4:27 ` [U-Boot] [PATCH V3 1/5] ARM: OMAP5: Rename omap5_evm to omap5_uevm Sricharan R
2013-03-26 4:27 ` [U-Boot] [PATCH V3 2/5] ARM: OMAP5: Set fdt_high to enable booting with Device tree Sricharan R
2013-03-26 4:27 ` [U-Boot] [PATCH V3 3/5] ARM: OMAP5: Allow use of a plain text env file Sricharan R
2013-03-26 4:27 ` [U-Boot] [PATCH V3 4/5] ARM: OMAP4/5: Change the default boot command to work with device tree Sricharan R
2013-03-27 15:45 ` Tom Rini
2013-03-28 17:40 ` Sricharan R [this message]
2013-03-26 4:27 ` [U-Boot] [PATCH V3 5/5] ARM: OMAP4/5: Make bootz as the default boot command Sricharan R
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5154809E.1070803@ti.com \
--to=r.sricharan@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox