common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option
PATCH 1/4 common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option
From: Matthew McClintock <[email protected]>
Just setting CONFIG_SILENT_CONSOLE does not make the CONSOLE silent without the silent env variable set. This adds a new define to add this to the default environment easily
--- README | 4 ++++ common/env_common.c | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-)
README +4 -0
@@ -546,6 +546,10 @@ The following options need to be configured: the "silent" environment variable. See doc/README.silent for more information. + When CONFIG_SILENT_CONSOLE_AT_BOOT is set u-boot + will be built with silent defined in the default + environment for a completly silent console at boot + - Console Baudrate: CONFIG_BAUDRATE - in bps Select one of the baudrates listed in
common/env_common.c +3 -0
@@ -123,6 +123,9 @@ uchar default_environment[] = {#if defined(CONFIG_PCI_BOOTDELAY ) && (CONFIG_PCI_BOOTDELAY >0 ) "pcidelay=" MK_STR(CONFIG_PCI_BOOTDELAY) "\0"#endif +#ifdef CONFIG_SILENT_CONSOLE_AT_BOOT + "silent=1\0" +#endif #ifdef CONFIG_EXTRA_ENV_SETTINGS CONFIG_EXTRA_ENV_SETTINGS#endif
Signature · 1 line
1.7.5
PATCH 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
From: Matthew McClintock <[email protected]>
Allow users to pass in extra defines via make so they can modify the build. Example
make P1022DS EXTRA_OPTS=NAND
is equivalent to
make P1022DS_NAND
--- mkconfig | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
mkconfig +7 -1
@@ -81,6 +81,12 @@ if [ "${ARCH}" -a "${ARCH}" != "${arch}" ]; then exit 1 fi +if [ -z "${options}" ] ; then +options+=$EXTRA_OPTS +else +options+=,$EXTRA_OPTS +fi + if [ "$options" ] ; then echo "Configuring for ${BOARD_NAME} - Board: ${CONFIG_NAME}, Options: ${options}" else
@@ -146,7 +152,7 @@ else > config.h # Create new config file fi echo "/* Automatically generated - do not edit */" >>config.h - +TARGETS+=`echo $EXTRA_OPTS | tr ',' ' '` for i in ${TARGETS} ; do i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`" echo "#define CONFIG_${i}" >>config.h ;
Signature · 1 line
1.7.5
PATCH 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
mkconfig if [ "${ARCH}" -a "${ARCH}" != "${arch}" ]; then · line 88
Quoted 11 lines · On Thursday, June 02, 2011 15:27:30 y at right.am.freescale.net wrote:
mkconfig +5
-0@@ -81,6 +81,12 @@ if [ "${ARCH}" -a "${ARCH}" != "${arch}" ]; then exit 1 fi +if [ -z "${options}" ] ; then +options+=$EXTRA_OPTS +else +options+=,$EXTRA_OPTS +fi
style is broken (lacking indentation), and the "+=" operator is not in the POSIX shell spec
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110603/6aab7bcd/attachment.pgp
PATCH v2 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
Allow users to pass in extra defines via make so they can modify the build. Example
make P1022DS EXTRA_OPTS=NAND
is equivalent to
make P1022DS_NAND
---
v2: Fix tab indention, fix posix compliance
mkconfig | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
mkconfig +7 -1
@@ -81,6 +81,12 @@ if [ "${ARCH}" -a "${ARCH}" != "${arch}" ]; then exit 1 fi +if [ -z "${options}" ] ; then + options=$EXTRA_OPTS +else + options="$options,$EXTRA_OPTS" +fi + if [ "$options" ] ; then echo "Configuring for ${BOARD_NAME} - Board: ${CONFIG_NAME}, Options: ${options}" else
@@ -146,7 +152,7 @@ else > config.h # Create new config file fi echo "/* Automatically generated - do not edit */" >>config.h - +TARGETS+=`echo $EXTRA_OPTS | tr ',' ' '` for i in ${TARGETS} ; do i="`echo ${i} | sed '/=/ {s/=/\t/;q } ; { s/$/\t1/ }'`" echo "#define CONFIG_${i}" >>config.h ;
Signature · 1 line
1.7.5
PATCH v2 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
mkconfig if [ "${ARCH}" -a "${ARCH}" != "${arch}" ]; then · line 88
Quoted 5 lines · On Friday, June 03, 2011 14:36:03 Matthew McClintock wrote:
mkconfig +5
-0+if [ -z "${options}" ] ; then + options=$EXTRA_OPTS +else + options="$options,$EXTRA_OPTS" +fi
this can be simplified (or at least done in one line) with:
options=${options:+${options},}${EXTRA_OPTS}
although i can understand that not everyone can grok that at first blush
Quoted 1 line
+TARGETS+=
echo $EXTRA_OPTS | tr ',' ' '
you're still using non-portable += append operator
although i dont understand how EXTRA_OPTS can both be extra options and extra targets at the same time ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110603/e031d19d/attachment.pgp
PATCH v2 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
Quoted 11 lines · Mike Frysinger
mkconfig if [ "${ARCH}" -a "${ARCH}" != "${arch}" ]; then · line 88
Quoted 5 lines · On Friday, June 03, 2011 14:36:03 Matthew McClintock wrote:
mkconfig +5
-0+if [ -z "${options}" ] ; then + ? ? options=$EXTRA_OPTS +else + ? ? options="$options,$EXTRA_OPTS" +fithis can be simplified (or at least done in one line) with:
options=${options:+${options},}${EXTRA_OPTS}although i can understand that not everyone can grok that at first blush
I'm fine with doing this if it's understandable by all
Quoted 7 lines
Quoted 2 lines
+TARGETS+=
echo $EXTRA_OPTS | tr ',' ' 'you're still using non-portable += append operator
although i dont understand how
EXTRA_OPTScan both be extra options and extra targets at the same time ...
Actually I just looked over this again and I found a much simpler way to accomplish the same thing. See my next patch.
-M
PATCH v3 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
In reply to Mike FrysingerAllow users to pass in extra defines via make so they can modify the build. Example
make P1022DS EXTRA_OPTS=NAND
is equivalent to
make P1022DS_NAND
---
v2: Fix tab indention, fix posix compliance
v3: Move appending $EXTRA_OPTS up higher before we set $TARGETS so we
only need to append $EXTRA_OPTS to $options and not $TARGETS
mkconfig | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
mkconfig +5 -1
@@ -72,9 +72,13 @@ fi # Check if we only have a colon... if [ "${tmp}" != "$7" ] ; then options=${7#*:} - TARGETS="`echo ${options} | sed 's:,: :g'` ${TARGETS}" fi } +# Append options passed in via EXTRA_OPTS +if [ -n "$EXTRA_OPTS" ] ; then + options=${options:+${options},}${EXTRA_OPTS} +fi +TARGETS="`echo ${options} | sed 's:,: :g'` ${TARGETS}" if [ "${ARCH}" -a "${ARCH}" != "${arch}" ]; then echo "Failed: \$ARCH=${ARCH}, should be '${arch}' for ${BOARD_NAME}" 1>&2
Signature · 1 line
1.7.5
Wolfgang Denk
NAKPATCH v3 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
Dear Matthew McClintock,
Quoted 8 lines · In message <[email protected]> you wrote:
Allow users to pass in extra defines via make so they can modify the build. Example
make P1022DS EXTRA_OPTS=NAND
is equivalent to
make
P1022DS_NAND
I see absolutely no sense in this, We already have a way to specify such arguments, as you write yourself in your commit message. Your new way is just more complicated, more typing effort, and as such just useless overhead.
NAK.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The main thing is the play itself. I swear that greed for money has nothing to do with it, although heaven knows I am sorely in need of money. - Feodor Dostoyevsky
PATCH v3 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
Quoted 4 lines · Wolfgang Denk
I see absolutely no sense in this, ?We already have a way to specify such arguments, as you write yourself in your commit message. ?Your new way is just more complicated, more typing effort, and as such just useless overhead.
Did you not see the other patch in the same series that makes use of this feature? It's not about actually typing it out. Let me know if you need help finding patch 3/4.
-M
PATCH v3 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
Dear McClintock Matthew-B29882,
Quoted 9 lines · In message <[email protected]> you wrote:
Quoted 4 lines · Wolfgang Denk
I see absolutely no sense in this, =A0We already have a way to specify such arguments, as you write yourself in your commit message. =A0Your new way is just more complicated, more typing effort, and as such just useless overhead.
Did you not see the other patch in the same series that makes use of this feature? It's not about actually typing it out. Let me know if you need help finding patch 3/4.
It does not matter if you add it here and use it there. We already have a mechanhism to do that, so no new method is needed. Please use the existing code instead oif reinventing the wheel.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A supercomputer is a machine that runs an endless loop in 2 seconds.
PATCH v3 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
Quoted 7 lines · Wolfgang Denk
Quoted 3 lines
Did you not see the other patch in the same series that makes use of this feature? It's not about actually typing it out. Let me know if you need help finding patch 3/4.
It does not matter if you add it here and use it there. ?We already have a mechanhism to do that, so no new method is needed. ?Please use the existing code instead oif reinventing the wheel.
How do I make a new build configuration without making changes to boards.cfg or the Makefile? I could add a new entry there for every bootstrap build but I was trying and hoping to avoid this. For example for every build I could need the following
BOARD_NANDBOARD_NAND_IN_BOOTSTRAPBOARD_SPIFLASHBOARD_SPIFLASH_IN_BOOTSTRAPBOARD_SDCARDBOARD_SDCARD_IN_BOOTSTRAP
I was hoping to avoid all the IN_BOOTSTRAP variants.
-M
PATCH v3 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
Dear McClintock Matthew-B29882,
Quoted 6 lines · In message <[email protected]> you wrote:
How do I make a new build configuration without making changes to boards.cfg or the
Makefile? I could add a new entry there for every bootstrap build but I was trying and hoping to avoid this. For example for every build I could need the following
Quoted 6 lines
BOARD_NANDBOARD_NAND_IN_BOOTSTRAPBOARD_SPIFLASHBOARD_SPIFLASH_IN_BOOTSTRAPBOARD_SDCARDBOARD_SDCARD_IN_BOOTSTRAP
Are these independent targets? I think you don't run a "./MAKEALL BOARD_SDCARD_IN_BOOTSTRAP" alone, right?
You can set all types of make variable sinternally during different stages of the build, like we already do with the nand_spl code.
I have to admit that I don't even understand why you would need separate top-level FOO and FOO_IN_BOOTSTRAP make targets. Please elucidate.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de For every complex problem, there is a solution that is simple, neat, and wrong. - Mark Twain
PATCH v3 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
Quoted 9 lines · Wolfgang Denk
Quoted 6 lines
BOARD_NANDBOARD_NAND_IN_BOOTSTRAPBOARD_SPIFLASHBOARD_SPIFLASH_IN_BOOTSTRAPBOARD_SDCARDBOARD_SDCARD_IN_BOOTSTRAPAre these independent targets? ?I think you don't run a "./MAKEALL
BOARD_SDCARD_IN_BOOTSTRAP" alone, right?
Correct, however I was hoping to use a normal build system to make this image. With the only difference being that CONFIG_IN_BOOTSTRAP is defined when parsing the board config file.
Quoted 2 lines
You can set all types of make variable sinternally during different stages of the build, like we already do with the
nand_splcode.
Right but nand_spl provides more Makefiles for building it's own image. I want to reuse the normal u-boot build system to create this shim/bootstrap image.
Quoted 3 lines
I have to admit that I don't even understand why you would need separate top-level FOO and
FOO_IN_BOOTSTRAPmake targets. ?Please elucidate.
Sorry, let me try to explain some more.
Certain boards require some sort of shim, or spl for booting from media other than NOR on our parts. We need this shim to perform DDR initialization. This shim does not need to be anything but a stripped down version of u-boot since it needs to be <256k and contain the DDR SPD initialization code. Therefore I just wanted to reuse the u-boot build system as is and add some configuration changes to create all the final images for booting this board.
So when I build a target for my board the following happens:
make FOO
-> builds u-boot.bin to run from RAM
-> calls make FOO_IN_BOOTSTRAP to run from L2 and configure DDR -> NAND will also have a nand_spl shim as well (where as SDCARD and SPI booting currently do not have support in u-boot for making this shim)
The FOO_IN_BOOTSTRAP build above creates a u-boot image that runs from L2 and its BOOTCOMMAND is set such that it will automatically load the final u-boot image from the boot media to ram and then execute the full version of u-boot.
-M
Wolfgang Denk
NAKPATCH v2 2/4 build/mkconfig: Add EXTRA_OPTS argument to make to modify build
In reply to Matthew McClintockDear Matthew McClintock,
Quoted 10 lines · In message <[email protected]> you wrote:
Allow users to pass in extra defines via make so they can modify the build. Example
make P1022DS EXTRA_OPTS=NAND
is equivalent to
make
P1022DS_NANDSigned-off-by Matthew McClintock <[email protected]>
What would that be good for?
I consider this not a good idea.
NAK.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Misquotation is, in fact, the pride and privilege of the learned. A
widely-read man never quotes accurately, for the rather obvious
reason that he has read too widely.
- Hesketh Pearson _Common Misquotations_ introductionPATCH 3/4 nand_spl/spiboot/sdboot: Add ability to have smaller middle loader
In reply to y at right.am.freescale.netFrom: Matthew McClintock <[email protected]>
This patch allows some boards do define CONFIG_BOOTSTRAP to let them build a MPL or middle program loader to setup the board before booting to the full u-boot build. The advantage is that we are using the same build system and linker scripts that would be used in a normal u-boot build.
This is used on powerpc/85xx parts that only have 256kB of cache and also need to perform DDR SPD. So, the nand_spl will load the MPL to L2 SRAM and there DDR will be configured. Afterwards the MPL uses the CONFIG_BOOTCOMMAND environment variable to boot to the appropriate media. This also works with SD and SPI via the on chip rom but instead it goes from on-chip-rom to MPL to full version of u-boot.
Depends on previous icache/dcache command changes and various build fixes for add cases that occur when trying to build an extremely minimal image
--- Makefile | 38 +++++++++++++++++++++++++++++++++++++- mkconfig | 1 + 2 files changed, 38 insertions(+), 1 deletions(-)
Makefile +37 -1
@@ -317,6 +317,16 @@ ifeq ($(CONFIG_NAND_U_BOOT),y) ALL += $(obj)u-boot-nand.bin endif +ifndef CONFIG_IN_BOOTSTRAP +ifeq ($(CONFIG_SPIFLASH), y) +ALL += $(obj)u-boot-spi.bin +endif + +ifeq ($(CONFIG_SDCARD), y) +ALL += $(obj)u-boot-sd.bin +endif +endif + ifeq ($(CONFIG_ONENAND_U_BOOT),y) ALL += $(obj)u-boot-onenand.bin ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin
@@ -404,8 +414,16 @@ $(obj)u-boot.lds: $(LDSCRIPT) nand_spl: $(TIMESTAMP_FILE) $(VERSION_FILE) depend $(MAKE) -C nand_spl/board/$(BOARDDIR) all +NAND_SPL_OBJS-y += $(obj)nand_spl/u-boot-spl-16k.bin +NAND_SPL_OBJS-$(CONFIG_BOOTSTRAP) += $(obj)u-boot-bootstrap.bin +NAND_SPL_OBJS-y += $(obj)u-boot.bin + +ifeq ($(CONFIG_BOOTSTRAP),y) +$(obj)u-boot-nand.bin: nand_spl $(obj)u-boot-bootstrap.bin $(obj)u-boot.bin +else $(obj)u-boot-nand.bin: nand_spl $(obj)u-boot.bin - cat $(obj)nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin +endif + cat $(NAND_SPL_OBJS-y) > $(obj)u-boot-nand.bin onenand_ipl: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk $(MAKE) -C onenand_ipl/board/$(BOARDDIR) all
@@ -413,6 +431,23 @@ onenand_ipl: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk $(obj)u-boot-onenand.bin: onenand_ipl $(obj)u-boot.bin cat $(ONENAND_BIN) $(obj)u-boot.bin > $(obj)u-boot-onenand.bin +ifdef CONFIG_BOOTSTRAP +$(obj)u-boot-spi.bin: $(obj)u-boot.bin $(obj)u-boot-bootstrap.bin + cat $(obj)u-boot-bootstrap.bin $(obj)u-boot.bin > $(obj)u-boot-spi.bin +$(obj)u-boot-sd.bin: $(obj)u-boot.bin $(obj)u-boot-bootstrap.bin + cat $(obj)u-boot-bootstrap.bin $(obj)u-boot.bin > $(obj)u-boot-sd.bin +else +$(obj)u-boot-spi.bin: $(obj)u-boot.bin + ln -s u-boot.bin u-boot-spi.bin +$(obj)u-boot-sd.bin: $(obj)u-boot.bin + ln -s u-boot.bin u-boot-sd.bin +endif + +$(obj)u-boot-bootstrap.bin: + rm -rf $(BUILD_DIR)bootstrap + $(MAKE) $(CONFIG_BOARD_NAME) O=bootstrap/ EXTRA_OPTS=IN_BOOTSTRAP + cp $(BUILD_DIR)bootstrap/u-boot.bin u-boot-bootstrap.bin + $(VERSION_FILE): @( localvers='$(shell $(TOPDIR)/tools/setlocalversion $(TOPDIR))' ; \ printf '#define PLAIN_VERSION "%s%s"\n' \
@@ -1130,6 +1165,7 @@ clean: \( -name 'core' -o -name '*.bak' -o -name '*~' \ -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \ | xargs rm -f + @rm -fr $(BUILD_DIR)bootstrap/ clobber: clean @find $(OBJTREE) -type f \( -name '*.depend' \
mkconfig +1 -0
@@ -159,6 +159,7 @@ for i in ${TARGETS} ; do done cat << EOF >> config.h +#define CONFIG_BOARD_NAME $BOARD_NAME #define CONFIG_BOARDDIR board/$BOARDDIR #include <config_cmd_defaults.h> #include <config_defaults.h>
Signature · 1 line
1.7.5
PATCH 3/4 nand_spl/spiboot/sdboot: Add ability to have smaller middle loader
Dear y at right.am.freescale.net,
Quoted 6 lines · In message <1307042852-10385-3-git-send-email-y> you wrote:
This patch allows some boards do define
CONFIG_BOOTSTRAPto let them build a MPL or middle program loader to setup the board before booting to the full u-boot build. The advantage is that we are using the same build system and linker scripts that would be used in a normal u-boot build.
The intention is OK, but I disagree with the implementation.
Makefile ifeq ($(CONFIG_NAND_U_BOOT),y) · line 328
Quoted 9 lines
Makefile +9
-0+ifndef CONFIG_IN_BOOTSTRAP +ifeq ($(CONFIG_SPIFLASH), y) +ALL += $(obj)u-boot-spi.bin +endif + +ifeq ($(CONFIG_SDCARD), y) +ALL += $(obj)u-boot-sd.bin +endif +endif
I really dislike to have this in the top level Makefile. We want to make it simpler, less board specific. and this is the opposite.
I doubt you always need all these images. If you need u-boot-sd.bin, then just type "make u-boot-sd.bin".
Makefile $(obj)u-boot.lds: $(LDSCRIPT) · line 419
Quoted 6 lines
nand_spl: $(TIMESTAMP_FILE) $(VERSION_FILE) dependMakefile +3
-0$(MAKE) -C nand_spl/board/$(BOARDDIR) all +NAND_SPL_OBJS-y += $(obj)nand_spl/u-boot-spl-16k.bin +NAND_SPL_OBJS-$(CONFIG_BOOTSTRAP) += $(obj)u-boot-bootstrap.bin +NAND_SPL_OBJS-y += $(obj)u-boot.bin
This looks pretty much board specific to me. I doubt all boards can use u-boot-spl-16k.bin here.
Quoted 3 lines
Makefile +3
-0+ifeq ($(CONFIG_BOOTSTRAP),y) +$(obj)u-boot-nand.bin: nand_spl $(obj)u-boot-bootstrap.bin $(obj)u-boot.bin +else
...
Makefile onenand_ipl: $(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk · line 449
Quoted 4 lines
+$(obj)u-boot-bootstrap.bin:
Makefile +3
-0+ rm -rf $(BUILD_DIR)bootstrap + $(MAKE) $(CONFIG_BOARD_NAME) O=bootstrap/ EXTRA_OPTS=IN_BOOTSTRAP + cp $(BUILD_DIR)bootstrap/u-boot.bin u-boot-bootstrap.bin
Argh.. how many different images are you going to add? This is becoming a mess.
Do we really need all this in the top level Makefile?
mkconfig for i in ${TARGETS} ; do · line 165
Quoted 12 lines
mkconfig +1
-0@@ -159,6 +159,7 @@ for i in ${TARGETS} ; do done cat << EOF >> config.h +#define CONFIG_BOARD_NAME $BOARD_NAME #define CONFIG_BOARDDIR board/$BOARDDIR #include <config_cmd_defaults.h> #include <config_defaults.h>
NAK. This breaks existing code, also it should not be needed.
Best regards,
Wolfgang Denk
Signature · 8 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I see that Microsoft's campaign to destroy all knowledge of any
operating environment but its own environment-of-the-year has
succeeded in creating a generation of users who don't understand the
concept of a shell...
-- L. Peter Deutsch in <[email protected]>PATCH 3/4 nand_spl/spiboot/sdboot: Add ability to have smaller middle loader
Quoted 4 lines · Wolfgang Denk
Quoted 4 lines
Makefile +4
-0+ifndef CONFIG_IN_BOOTSTRAP +ifeq ($(CONFIG_SPIFLASH), y) +ALL += $(obj)u-boot-spi.bin +endif
Quoted 8 lines
Makefile ifeq ($(CONFIG_NAND_U_BOOT),y) · line 328
Quoted 5 lines
Makefile +5
-0+ +ifeq ($(CONFIG_SDCARD), y) +ALL += $(obj)u-boot-sd.bin +endif +endifI really dislike to have this in the top level
Makefile. We want to make it simpler, less board specific. and this is the opposite.
Perhaps having a CONFIG_TARGET_IMAGE available and having just one generic TARGET available?
ifdef CONFIG_TARGET_IMAGE
ALL += $(CONFIG_TARGET_IMAGE)
endif
TARGET_IMAGE_OBJS-y += various.bin
TARGET_IMAGE_OBJS-y += required.bin
TARGET_IMAGE_OBJS-y += blobs.bin
$(obj)$(CONFIG_TARGET_IMAGE): $(TARGET_IMAGE_OBJS-y)
cat $(TARGET_IMAGE_OBJS-y) > $(obj)$(CONFIG_TARGET_IMAGE)
Quoted 2 lines
I doubt you always need all these images. ?If you need u-boot-sd.bin, then just type "make u-boot-sd.bin".
We choose these targets by adding a config line in boards.cfg. We don't build them unless we do a make BOARD_{NAND,SDCARD,SPIFLASH}. We could optionally just require the user to type out the target manually or do what I mentioned above however, I strongly believe these images should always be built as we don't want end user confusion about which image to program.
Quoted 9 lines
Makefile $(obj)u-boot.lds: $(LDSCRIPT) · line 419
Quoted 6 lines
?nand_spl: ? ?$(TIMESTAMP_FILE) $(VERSION_FILE) depend ? ? ? ? ? ? ? $(MAKE) -C nand_spl/board/$(BOARDDIR) all
Makefile +3
-0+NAND_SPL_OBJS-y += $(obj)nand_spl/u-boot-spl-16k.bin +NAND_SPL_OBJS-$(CONFIG_BOOTSTRAP) += $(obj)u-boot-bootstrap.bin +NAND_SPL_OBJS-y += $(obj)u-boot.binThis looks pretty much board specific to me. ?I doubt all boards can use u-boot-spl-16k.bin here.
This u-boot-spl-16k.bin reference has been here before this patch. It is typically just the u-boot-nand image to be used and not actually required to be 16k. It could probably be updated to just be u-boot-spl.bin except that for some boards this is not the right image. Usually the 16k one points at the right image.
Quoted 10 lines
Quoted 4 lines
Makefile +3
-0+ifeq ($(CONFIG_BOOTSTRAP),y) +$(obj)u-boot-nand.bin: ? ? ? nand_spl $(obj)u-boot-bootstrap.bin $(obj)u-boot.bin +else...
Quoted 4 lines
+$(obj)u-boot-bootstrap.bin:
+ ? ? ? ? ? ? rm -rf $(BUILD_DIR)bootstrap
+ ? ? ? ? ? ? $(MAKE) $(CONFIG_BOARD_NAME) O=bootstrap/ EXTRA_OPTS=IN_BOOTSTRAP
+ ? ? ? ? ? ? cp $(BUILD_DIR)bootstrap/u-boot.bin u-boot-bootstrap.bin
Quoted 4 lines
Argh.. how many different images are you going to add? ?This is becoming a mess.
Do we really need all this in the top level
Makefile?
I'm not sure there is a great way around this. I played around with trying to include them in the config.mk or a board/cpu/arch Makefile (I'll admit my lack of Makefile mastery here) but what seems to work best is something like this to add "other" targets that don't need to reside in the top level Makefile. This is best because targets depend on things in the toplevel Makefile.
sinclude $(obj)arch/$(ARCH)/Makefile.targets sinclude $(obj)arch/$(ARCH)/cpu/$(CPU)/Makefile.targets
Quoted 7 lines
Quoted 7 lines
mkconfig +0
-0@@ -159,6 +159,7 @@ for i in ${TARGETS} ; do?done
Quoted 7 lines
Quoted 5 lines
?cat << EOF >>
config.h
+#defineCONFIG_BOARD_NAME$BOARD_NAME
?#defineCONFIG_BOARDDIRboard/$BOARDDIR
?#include <config_cmd_defaults.h>
?#include <config_defaults.h>NAK. This breaks existing code, also it should not be needed.
How does this break existing code? Because a specific board might also defined this? I can drop it and add it to the board config file instead, but it seemed easier to programmatically do this so one target can build another target. This combined with the previous patch lets one build invoke another build (then we can add an additional option via EXTRA_OPTS from the previous patch)
-M
PATCH 3/4 nand_spl/spiboot/sdboot: Add ability to have smaller middle loader
Dear McClintock Matthew-B29882,
Quoted 8 lines · In message <[email protected]> you wrote:
Perhaps having a
CONFIG_TARGET_IMAGEavailable and having just one generic TARGET available?ifdef
CONFIG_TARGET_IMAGE
ALL += $(CONFIG_TARGET_IMAGE)
endif
Quoted 6 lines
TARGET_IMAGE_OBJS-y += various.bin
TARGET_IMAGE_OBJS-y += required.bin
TARGET_IMAGE_OBJS-y += blobs.bin$(obj)$(CONFIG_TARGET_IMAGE): $(TARGET_IMAGE_OBJS-y)
cat $(TARGET_IMAGE_OBJS-y) > $(obj)$(CONFIG_TARGET_IMAGE)
THis will probably not work, as different images may require different levels of alignment / padding. Also, some architectures require more fancy image building capabilities (provided for example by the mkimage tool).
Quoted 5 lines
Quoted 2 lines
I doubt you always need all these images. ?If you need u-boot-sd.bin, then just type "make u-boot-sd.bin".
We choose these targets by adding a config line in boards.cfg. We don't build them unless we do a make BOARD_{NAND,SDCARD,SPIFLASH}. We
Ok, so you do run individual builds for one selected image type each. This is IMHO OK.
Quoted 1 line
could optionally just require the user to type out the target manually
What's the difference? Writing "make BOARD_{NAND,SDCARD,SPIFLASH}" is typing out the target manually, isn't it?
Quoted 3 lines
or do what I mentioned above however, I strongly believe these images should always be built as we don't want end user confusion about which image to program.
In which way would that prevent any confusion? In any case you have to know which image you want to program. It's poretty much the same to me if I have to select a name from a list of images that resault from a "make" run, or if I select a name from a list of possible make target names. Actually, the latter seems more logical to me.
Quoted 8 lines
Quoted 6 lines
Makefile $(obj)u-boot.lds: $(LDSCRIPT) · line 419
Quoted 3 lines
Makefile +3
-0+NAND_SPL_OBJS-y += $(obj)nand_spl/u-boot-spl-16k.bin +NAND_SPL_OBJS-$(CONFIG_BOOTSTRAP) += $(obj)u-boot-bootstrap.bin +NAND_SPL_OBJS-y += $(obj)u-boot.binThis looks pretty much board specific to me. ?I doubt all boards can use u-boot-spl-16k.bin here.
This u-boot-spl-16k.bin reference has been here before this patch. It
Yes, I know.
Quoted 4 lines
is typically just the u-boot-nand image to be used and not actually required to be 16k. It could probably be updated to just be u-boot-spl.bin except that for some boards this is not the right image. Usually the 16k one points at the right image.
In general, it's wrong and should be fixed.
Quoted 8 lines
Quoted 1 line
Do we really need all this in the top level
Makefile?I'm not sure there is a great way around this. I played around with trying to include them in the config.mk or a board/cpu/arch
Makefile(I'll admit my lack ofMakefilemastery here) but what seems to work best is something like this to add "other" targets that don't need to reside in the top levelMakefile. This is best because targets depend on things in the toplevelMakefile.
I think we should step back a bit. Assume I forgot everything I've read so far, and try to explain me in simple words (completely independent from your suggested implementation) what exactly you want to do.
Quoted 10 lines
Quoted 7 lines
Quoted 5 lines
?cat << EOF >>
config.h
+#defineCONFIG_BOARD_NAME$BOARD_NAME
?#defineCONFIG_BOARDDIRboard/$BOARDDIR
?#include <config_cmd_defaults.h>
?#include <config_defaults.h>NAK. This breaks existing code, also it should not be needed.
How does this break existing code? Because a specific board might also defined this? I can drop it and add it to the board config file
Not might, bot actually does.
Quoted 4 lines
instead, but it seemed easier to programmatically do this so one target can build another target. This combined with the previous patch lets one build invoke another build (then we can add an additional option via
EXTRA_OPTSfrom the previous patch)
All this is way too obscure to me. I fail to see what you are trying to acchieve.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Witch! Witch! They'll burn ya! -- Hag, "Tomorrow is Yesterday", stardate unknown
PATCH 3/4 nand_spl/spiboot/sdboot: Add ability to have smaller middle loader
Quoted 11 lines · Wolfgang Denk
Quoted 11 lines
Perhaps having a
CONFIG_TARGET_IMAGEavailable and having just one generic TARGET available?ifdef
CONFIG_TARGET_IMAGE
ALL += $(CONFIG_TARGET_IMAGE)
endifTARGET_IMAGE_OBJS-y += various.bin
TARGET_IMAGE_OBJS-y += required.bin
TARGET_IMAGE_OBJS-y += blobs.bin
Quoted 7 lines
Quoted 2 lines
$(obj)$(CONFIG_TARGET_IMAGE): ? $(TARGET_IMAGE_OBJS-y)
? ? ? ? ? ? ? ? cat $(TARGET_IMAGE_OBJS-y) > $(obj)$(CONFIG_TARGET_IMAGE)THis will probably not work, as different images may require different levels of alignment / padding. ?Also, some architectures require more fancy image building capabilities (provided for example by the mkimage tool).
It works for the images in the Makefile currently, but in the future more complicated and board specific targets could live in board/arch/cpu specific files that are included into the top level makefile.
sinclude $(obj)arch/$(ARCH)/Makefile.targets sinclude $(obj)arch/$(ARCH)/cpu/$(CPU)/Makefile.targets
In fact we could move all image creation (besides u-boot.bin) out to the files and clean out the top level makefile.
Quoted 10 lines
Quoted 9 lines
Quoted 2 lines
Do we really need all this in the top level
Makefile?I'm not sure there is a great way around this. I played around with trying to include them in the config.mk or a board/cpu/arch
Makefile(I'll admit my lack ofMakefilemastery here) but what seems to work best is something like this to add "other" targets that don't need to reside in the top levelMakefile. This is best because targets depend on things in the toplevelMakefile.
Quoted 4 lines
I think we should step back a bit. ?Assume I forgot everything I've read so far, and try to explain me in simple words (completely independent from your suggested implementation) what exactly you want to do.
I think my other reply to your email on patch 2/4 should provide a good summary on what I am trying to accomplish.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
?cat << EOF >>
config.h
+#defineCONFIG_BOARD_NAME$BOARD_NAME
?#defineCONFIG_BOARDDIRboard/$BOARDDIR
?#include <config_cmd_defaults.h>
?#include <config_defaults.h>
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
NAK. This breaks existing code, also it should not be needed.
How does this break existing code? Because a specific board might also defined this? I can drop it and add it to the board config file
Not might, bot actually does.
Still not sure how this is breaking anything. Can you point me at a build that fails?
PATCH 4/4 Add P1021MDS board support
In reply to y at right.am.freescale.netFrom: Haiying Wang <[email protected]>
This patch supports P1021MDS board to boot from NAND flash (No NOR flash on this board). And because P1021 only has 256K L2 SRAM, which can not used for final uboot image it makes use of the MPL.
---
This patch requires some previously sent patches to build correctly. They deal build fixes for building the <256k middle u-boot image:
http://patchwork.ozlabs.org/patch/97219/
http://patchwork.ozlabs.org/patch/97177/
http://patchwork.ozlabs.org/patch/97174/
http://patchwork.ozlabs.org/patch/97026/
and one from Mike Frysinger
http://patchwork.ozlabs.org/patch/98422/
I'm skipping the following checkpatch warnings since they don't seem to apply:
WARNING: Use #include <linux/io.h> instead of <asm/io.h> +#include <asm/io.h>
WARNING: Use #include <linux/io.h> instead of <asm/io.h> +#include <asm/io.h>
WARNING: suspect code indent for conditional statements (8, 8)
if (uec->the_first_run == 0) {[...]
+ /* P1021MDS board needs to reset micrel phy for each UEC */
ERROR: Macros with multiple statements should be enclosed in a do - while loop
+#define CONFIG_SYS_I2C_NOPROBES { {0, 0x69} } /* Don't probe these addrs */
ERROR: need consistent spacing around '/' (ctx:WxV)
+#define CONFIG_ROOTPATH /nfsroot
^
ERROR: Macros with complex values should be enclosed in parenthesis
+#define CONFIG_ROOTPATH /nfsroot
WARNING: Use #include <linux/io.h> instead of <asm/io.h> +#include <asm/io.h>
MAINTAINERS | 4 + README | 13 + board/freescale/p1021mds/Makefile | 52 ++ board/freescale/p1021mds/ddr.c | 81 ++++ board/freescale/p1021mds/law.c | 32 ++ board/freescale/p1021mds/p1021mds.c | 181 +++++++ board/freescale/p1021mds/tlb.c | 100 ++++ boards.cfg | 1 + drivers/qe/uec.c | 9 + include/configs/P1021MDS.h | 629 +++++++++++++++++++++++++ nand_spl/board/freescale/p1021mds/Makefile | 137 ++++++ nand_spl/board/freescale/p1021mds/nand_boot.c | 69 +++ 12 files changed, 1308 insertions(+), 0 deletions(-) create mode 100644 board/freescale/p1021mds/Makefile create mode 100644 board/freescale/p1021mds/ddr.c create mode 100644 board/freescale/p1021mds/law.c create mode 100644 board/freescale/p1021mds/p1021mds.c create mode 100644 board/freescale/p1021mds/tlb.c create mode 100644 include/configs/P1021MDS.h create mode 100644 nand_spl/board/freescale/p1021mds/Makefile create mode 100644 nand_spl/board/freescale/p1021mds/nand_boot.c
MAINTAINERS +4 -0
@@ -17,6 +17,10 @@ # Board CPU # ######################################################################### +Haiying Wang <[email protected]> + + P1021MDS P1021 + Poonam Aggrwal <[email protected]> P2020RDB P2020
README +13 -0
@@ -2225,6 +2225,19 @@ FIT uImage format: Adds the MTD partitioning infrastructure from the Linux kernel. Needed for UBI support. +- NAND Boot Support + CONFIG_NAND_U_BOOT + + Builds a U-Boot image that boots from NAND, prefixed by a small + loader stub (secondary program loader -- SPL) that loads the + rest of U-Boot into RAM. This symbol will be set in all build + phases. + + CONFIG_NAND_SPL + + This is set by the build system when compiling code to go into + the SPL. It is not set when building the code that the SPL + loads. Modem Support: --------------
board/freescale/p1021mds/Makefile new file +52 -0
52 lines not on this page · raw message
board/freescale/p1021mds/ddr.c new file +81 -0
81 lines not on this page · raw message
board/freescale/p1021mds/law.c new file +32 -0
@@ -0,0 +1,32 @@ +/* +* Copyright 2010-2011 Freescale Semiconductor, Inc. +* +* See file CREDITS for list of people who contributed to this +* project. +* +* This program is free software; you can redistribute it and/or modify it +* under the terms of the GNU General Public License as published by the Free +* Software Foundation; either version 2 of the License, or (at your option) +* any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> +#include <asm/fsl_law.h> +#include <asm/mmu.h> + +struct law_entry law_table[] = { +SET_LAW (CONFIG_SYS_BCSR_BASE_PHYS ,LAW_SIZE_256K ,LAW_TRGT_IF_LBC ), +SET_LAW (CONFIG_SYS_NAND_BASE_PHYS ,LAW_SIZE_1M ,LAW_TRGT_IF_LBC ), +}; + +int num_law_entries =ARRAY_SIZE (law_table);
board/freescale/p1021mds/p1021mds.c new file +181 -0
181 lines not on this page · raw message
board/freescale/p1021mds/tlb.c new file +100 -0
100 lines not on this page · raw message
boards.cfg +1 -0
@@ -550,6 +550,7 @@ P1020RDB_36BIT_SPIFLASH powerpc mpc85xx p1_p2_rdb freesca P1020RDB_NAND powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P1020RDB,NAND P1020RDB_SDCARD powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P1020RDB,SDCARD P1020RDB_SPIFLASH powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P1020RDB,SPIFLASH +P1021MDS_NAND powerpc mpc85xx p1021mds freescale - P1021MDS:NAND P1022DS powerpc mpc85xx p1022ds freescale P1022DS_36BIT powerpc mpc85xx p1022ds freescale - P1022DS:36BIT P2010RDB powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P2010RDB
drivers/qe/uec.c +9 -0
@@ -31,6 +31,9 @@#include "uec_phy.h" #include "miiphy.h" #include <phy.h> +#ifdef CONFIG_P1021MDS +#define BCSR11_ENET_MICRST 0x20 +#endif /* Default UTBIPAR SMI address */ #ifndef CONFIG_UTBIPAR_INIT_TBIPA
@@ -1225,6 +1228,12 @@ static int uec_init(struct eth_device* dev, bd_t *bd)if (uec->the_first_run ==0 ) {#if defined(CONFIG_P1012 ) || defined(CONFIG_P1016 ) || \ defined(CONFIG_P1021 ) || defined(CONFIG_P1025 ) +#ifdef CONFIG_P1021MDS +/* P1021MDS board needs to reset micrel phy for each UEC */ +clrbits_8 ((u8 *)(CONFIG_SYS_BCSR_BASE +11 ),BCSR11_ENET_MICRST ); +udelay (200 ); +setbits_8 ((u8 *)(CONFIG_SYS_BCSR_BASE +11 ),BCSR11_ENET_MICRST ); +#endif /* QE9 and QE12 need to be set for enabling QE MII managment signals */ setbits_be32 (&gur->pmuxcr, MPC85xx_PMUXCR_QE9);setbits_be32 (&gur->pmuxcr, MPC85xx_PMUXCR_QE12);
include/configs/P1021MDS.h new file +629 -0
629 lines not on this page · raw message
nand_spl/board/freescale/p1021mds/Makefile new file +137 -0
137 lines not on this page · raw message
nand_spl/board/freescale/p1021mds/nand_boot.c new file +69 -0
69 lines not on this page · raw message
Signature · 1 line
1.7.5
PATCH 1/4 common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option
In reply to y at right.am.freescale.netQuoted 3 lines · On Thursday, June 02, 2011 15:27:29 y at right.am.freescale.net wrote:
Just setting
CONFIG_SILENT_CONSOLEdoes not make the CONSOLE silent without the silent env variable set. This adds a new define to add this to the default environment easily
any reason you couldnt add silent=0 to CONFIG_EXTRA_ENV_SETTINGS ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110603/83bdfbb6/attachment.pgp
PATCH 1/4 common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option
Quoted 1 line · Mike Frysinger
any reason you couldnt add silent=0 to
CONFIG_EXTRA_ENV_SETTINGS?
I was just perturbed that setting CONFIG_SILENT_CONSOLE did not actually make the console silent - I thought it would be cleaner to have a define available for this. This is an optional patch though in that sense
-M
PATCH 1/4 common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option
Quoted 6 lines · On Friday, June 03, 2011 14:34:27 McClintock Matthew-B29882 wrote:
Quoted 1 line · Mike Frysinger
any reason you couldnt add silent=0 to
CONFIG_EXTRA_ENV_SETTINGS?I was just perturbed that setting
CONFIG_SILENT_CONSOLEdid not actually make the console silent - I thought it would be cleaner to have a define available for this.
i know people are surprised by this from time to time, but i think the README is pretty clear about it. is there clarification there that you'd like ?
since CONFIG_EXTRA_ENV_SETTINGS is board-specific, i'm not sure adding another board-specific define for a single default env var gains us anything. -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110603/b0c1c1a2/attachment.pgp
PATCH 1/4 common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option
Quoted 7 lines · Mike Frysinger
Quoted 6 lines · Mike Frysinger
Quoted 1 line
any reason you couldnt add silent=0 to
CONFIG_EXTRA_ENV_SETTINGS?I was just perturbed that setting
CONFIG_SILENT_CONSOLEdid not actually make the console silent - I thought it would be cleaner to have a define available for this.
Quoted 5 lines
i know people are surprised by this from time to time, but i think the README is pretty clear about it. ?is there clarification there that you'd like ?
since
CONFIG_EXTRA_ENV_SETTINGSis board-specific, i'm not sure adding another board-specific define for a single default env var gains us anything.
Not really too concerned either way here.
Some of our boards have some really long CONFIG_EXTRA_ENV_SETTINGS and it's nice to try to keep that shorter by moving stuff into CONFIG_NFSBOOTCOMMAND, CONFIG_RAMBOOTCOMMAD, CONFIG_SILENT_CONSOLE_AT_BOOT, etc. but beyond that we can just add to our CONFIG_EXTRA_ENV_SETTINGS as well.
PATCH 1/4 common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option
Quoted 16 lines · On Friday, June 03, 2011 16:14:29 McClintock Matthew-B29882 wrote:
Quoted 7 lines · Mike Frysinger
Quoted 6 lines · Mike Frysinger
Quoted 1 line
any reason you couldnt add silent=0 to
CONFIG_EXTRA_ENV_SETTINGS?I was just perturbed that setting
CONFIG_SILENT_CONSOLEdid not actually make the console silent - I thought it would be cleaner to have a define available for this.Quoted 7 lines
i know people are surprised by this from time to time, but i think the README is pretty clear about it. is there clarification there that you'd like ?
since
CONFIG_EXTRA_ENV_SETTINGSis board-specific, i'm not sure adding another board-specific define for a single default env var gains us anything.
Quoted 7 lines
Not really too concerned either way here.
Some of our boards have some really long
CONFIG_EXTRA_ENV_SETTINGSand it's nice to try to keep that shorter by moving stuff intoCONFIG_NFSBOOTCOMMAND,CONFIG_RAMBOOTCOMMAD,CONFIG_SILENT_CONSOLE_AT_BOOT, etc. but beyond that we can just add to ourCONFIG_EXTRA_ENV_SETTINGSas well.
we had a similar thing with Blackfin boards, but we just made it our own set of defines that eventually culminated in a single CONFIG_EXTRA_ENV_SETTINGS
*shrug*
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110603/bae14f8c/attachment.pgp
PATCH 1/4 common/env_common: Add CONFIG_SILENT_CONSOLE_AT_BOOT env option
In reply to y at right.am.freescale.netDear y at right.am.freescale.net,
Quoted 5 lines · In message <1307042852-10385-1-git-send-email-y> you wrote:
From: Matthew McClintock <[email protected]>
Just setting
CONFIG_SILENT_CONSOLEdoes not make the CONSOLE silent without the silent env variable set. This adds a new define to add this to the default environment easily
Mike has explained why: I NAK this, too.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de People with narrow minds usually have broad tongues.