From: Ash Charles <ashcharles@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [Patch v2 8/9] [omap3][overo] Allow overo to boot with device tree
Date: Wed, 21 May 2014 14:04:54 -0700 [thread overview]
Message-ID: <1400706295-31871-9-git-send-email-ashcharles@gmail.com> (raw)
In-Reply-To: <1400706295-31871-1-git-send-email-ashcharles@gmail.com>
Update the board configuration for Gumstix Overo. In particular,
add support for zImage and DTB files on boot.
Signed-off-by: Ash Charles <ashcharles@gmail.com>
---
include/configs/omap3_overo.h | 58 ++++++++++++++++++++++++++++---------------
1 file changed, 38 insertions(+), 20 deletions(-)
diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h
index 1e4dfcf..48cadbb 100644
--- a/include/configs/omap3_overo.h
+++ b/include/configs/omap3_overo.h
@@ -39,6 +39,7 @@
#define CONFIG_REVISION_TAG
#define CONFIG_OF_LIBFDT
+#define CONFIG_CMD_BOOTZ
/*
* Size of malloc() pool
@@ -92,7 +93,7 @@
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_EXT2 /* EXT2 Support */
#define CONFIG_CMD_FAT /* FAT support */
-#define CONFIG_CMD_JFFS2 /* JFFS2 Support */
+#define CONFIG_CMD_FS_GENERIC
#define CONFIG_CMD_I2C /* I2C serial bus support */
#define CONFIG_CMD_MMC /* MMC support */
@@ -165,8 +166,13 @@
#define CONFIG_EXTRA_ENV_SETTINGS \
"loadaddr=0x82000000\0" \
+ "dtbaddr=0x81600000\0" \
+ "dtbfile=overo.dtb\0" \
+ "bootdir=/boot\0" \
+ "bootfile=zImage\0" \
+ "usbtty=cdc_acm\0" \
"console=ttyO2,115200n8\0" \
- "mpurate=500\0" \
+ "mpurate=auto\0" \
"optargs=\0" \
"vram=12M\0" \
"dvimode=1024x768MR-16 at 60\0" \
@@ -193,16 +199,21 @@
"omapdss.def_disp=${defaultdisplay} " \
"root=${nandroot} " \
"rootfstype=${nandrootfstype}\0" \
- "loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr\0" \
- "bootscript=echo Running bootscript from mmc ...; " \
+ "loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr\0" \
+ "bootscript=echo Running boot script from mmc ...; " \
"source ${loadaddr}\0" \
- "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \
- "importbootenv=echo Importing environment from mmc${mmcdev} ...; " \
+ "loadbootenv=load mmc ${mmcdev} ${loadaddr} uEnv.txt\0" \
+ "importbootenv=echo Importing environment from mmc ...; " \
"env import -t ${loadaddr} ${filesize}\0" \
- "loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImage\0" \
- "mmcboot=echo Booting from mmc ...; " \
+ "loaduimage=load mmc ${mmcdev} ${loadaddr} uImage\0" \
+ "mmcboot=echo Booting from mmc...; " \
"run mmcargs; " \
"bootm ${loadaddr}\0" \
+ "loadzimage=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}\0" \
+ "loadfdt=load mmc ${mmcdev}:2 ${dtbaddr} ${bootdir}/${dtbfile}\0" \
+ "mmcbootfdt=echo Booting with DT from mmc ...; " \
+ "run mmcargs; " \
+ "bootz ${loadaddr} - ${dtbaddr}\0" \
"nandboot=echo Booting from nand ...; " \
"run nandargs; " \
"nand read ${loadaddr} linux; " \
@@ -212,20 +223,27 @@
"mmc dev ${mmcdev}; if mmc rescan; then " \
"if run loadbootscript; then " \
"run bootscript; " \
- "else " \
- "if run loadbootenv; then " \
- "run importbootenv; " \
- "if test -n ${uenvcmd}; then " \
- "echo Running uenvcmd ...;" \
- "run uenvcmd;" \
+ "fi;" \
+ "if run loadbootenv; then " \
+ "echo Loaded environment from ${bootenv};" \
+ "run importbootenv;" \
+ "fi;" \
+ "if test -n $uenvcmd; then " \
+ "echo Running uenvcmd ...;" \
+ "run uenvcmd;" \
+ "fi;" \
+ "if run loaduimage; then " \
+ "run mmcboot;" \
+ "fi;" \
+ "if run loadzimage; then " \
+ "if test -n $dtbfile; then " \
+ "if run loadfdt; then " \
+ "run mmcbootfdt;" \
"fi;" \
"fi;" \
- "if run loaduimage; then " \
- "run mmcboot; " \
- "else run nandboot; " \
- "fi; " \
- "fi; " \
- "else run nandboot; fi"
+ "fi;" \
+ "fi;" \
+ "run nandboot; " \
#define CONFIG_AUTO_COMPLETE 1
/*
--
1.8.3.2
next prev parent reply other threads:[~2014-05-21 21:04 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-29 23:15 [U-Boot] [PATCH 0/8] omap3: overo: update board data Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 1/8] omap: overo: allow the use of a plain text env file instead boot scripts Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 2/8] OMAP3: overo: add command support for mtd and ubi Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 3/8] OMAP3: overo: increase linux partition to 8 MiB Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 4/8] OMAP3: overo: eliminate hard-coded partition offsets Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 5/8] arm: omap3: Fix omap3_overo SPL boot hangup Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 6/8] [omap3][overo] Add Board Revision for Wireless chip Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 7/8] OMAP3: overo: add some Gumstix expansion boards Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 8/8] [omap3][overo] Allow overo to boot with device tree Ash Charles
2014-05-06 18:14 ` Tom Rini
2014-05-06 23:56 ` Ash Charles
2014-05-07 12:40 ` Tom Rini
2014-05-07 17:45 ` Ash Charles
2014-05-07 17:47 ` [U-Boot] [PATCH] omap3: overo: Use common configurations for Overo Ash Charles
2014-05-20 17:34 ` [U-Boot] [PATCH 8/8] [omap3][overo] Allow overo to boot with device tree Stefan Herbrechtsmeier
2014-05-21 20:16 ` Ash Charles
2014-05-21 21:04 ` [U-Boot] [Patch v2 0/9] omap3: overo: update board data Ash Charles
2014-05-21 21:04 ` [U-Boot] [Patch v2 1/9] omap: overo: allow the use of a plain text env file instead boot scripts Ash Charles
2014-05-23 23:50 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 2/9] OMAP3: overo: add command support for mtd and ubi Ash Charles
2014-05-23 23:50 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 3/9] OMAP3: overo: increase linux partition to 8 MiB Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 4/9] OMAP3: overo: eliminate hard-coded partition offsets Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 5/9] arm: omap3: Fix omap3_overo SPL boot hangup Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 6/9] [omap3][overo] Add Board Revision for Wireless chip Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, 6/9, omap3, overo] " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 7/9] OMAP3: overo: add some Gumstix expansion boards Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` Ash Charles [this message]
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, 8/9, omap3, overo] Allow overo to boot with device tree Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 9/9] omap3: overo: Use common configurations for Overo Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
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=1400706295-31871-9-git-send-email-ashcharles@gmail.com \
--to=ashcharles@gmail.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