From: Ash Charles <ashcharles@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/6] omap3: overo: Allow boot with kernel in UBI rootfs
Date: Tue, 28 Apr 2015 16:17:54 -0700 [thread overview]
Message-ID: <1430263075-27682-6-git-send-email-ashcharles@gmail.com> (raw)
In-Reply-To: <1430263075-27682-1-git-send-email-ashcharles@gmail.com>
If regular NAND booting fails to find a valid uImage in the
kernel partition in NAND, try to boot using a zImage and dtb found
in a UBI volume in the rootfs partition. This is the NAND analog
of mmc zImage booting for device-tree based kernels.
Signed-off-by: Ash Charles <ashcharles@gmail.com>
Signed-off-by: Arun Bharadwaj <arun@gumstix.com>
---
include/configs/omap3_overo.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/include/configs/omap3_overo.h b/include/configs/omap3_overo.h
index 61213df..e1db29a 100644
--- a/include/configs/omap3_overo.h
+++ b/include/configs/omap3_overo.h
@@ -140,6 +140,8 @@
"bootm ${loadaddr}\0" \
"loadzimage=load mmc ${mmcdev}:2 ${loadaddr} ${bootdir}/${bootfile}\0" \
"loadfdt=load mmc ${mmcdev}:2 ${fdtaddr} ${bootdir}/${fdtfile}\0" \
+ "loadubizimage=ubifsload ${loadaddr} ${bootdir}/${bootfile}\0" \
+ "loadubifdt=ubifsload ${fdtaddr} ${bootdir}/${fdtfile}\0" \
"mmcbootfdt=echo Booting with DT from mmc ...; " \
"run mmcargs; " \
"bootz ${loadaddr} - ${fdtaddr}\0" \
@@ -148,6 +150,13 @@
"if nand read ${loadaddr} linux; then " \
"bootm ${loadaddr};" \
"fi;\0" \
+ "nanddtsboot=echo Booting from nand with DTS...; " \
+ "run nandargs; " \
+ "ubi part rootfs; "\
+ "ubifsmount ubi0:rootfs; "\
+ "run loadubifdt; "\
+ "run loadubizimage; "\
+ "bootz ${loadaddr} - ${fdtaddr}\0" \
#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev}; if mmc rescan; then " \
@@ -175,6 +184,10 @@
"fi;" \
"fi;" \
"run nandboot; " \
+ "if test -z \"${fdtfile}\"; then "\
+ "setenv fdtfile omap3-${boardname}-${expansionname}.dtb;" \
+ "fi;" \
+ "run nanddtsboot; " \
/*
* Miscellaneous configurable options
--
2.1.4
next prev parent reply other threads:[~2015-04-28 23:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-28 23:17 [U-Boot] [PATCH 0/6] omap3: overo: collected fixes Ash Charles
2015-04-28 23:17 ` [U-Boot] [PATCH 1/6] omap3: overo: Set the Arbor43C 'expansionname' Ash Charles
2015-05-10 14:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-04-28 23:17 ` [U-Boot] [PATCH 2/6] omap3: overo: Add DTS support for TobiDuo expansion Ash Charles
2015-05-10 14:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-04-28 23:17 ` [U-Boot] [PATCH 3/6] overo: Add support for Palo35 expansion board Ash Charles
2015-05-10 14:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-04-28 23:17 ` [U-Boot] [PATCH 4/6] omap3: overo: Use software BCH8 ECC for NAND Ash Charles
2015-05-10 14:09 ` [U-Boot] [U-Boot, " Tom Rini
2015-04-28 23:17 ` Ash Charles [this message]
2015-05-10 14:09 ` [U-Boot] [U-Boot, 5/6] omap3: overo: Allow boot with kernel in UBI rootfs Tom Rini
2015-04-28 23:17 ` [U-Boot] [PATCH 6/6] overo: Override RAM setup for rev. 0 boards Ash Charles
2015-05-10 14:07 ` [U-Boot] [U-Boot, " Tom Rini
2015-05-11 15:23 ` Ash Charles
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=1430263075-27682-6-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