From: "Matthias Weißer" <weisserm@arcor.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] arm: Add support for jadecpu board based on MB86R01 SoC
Date: Thu, 22 Apr 2010 15:17:24 +0200 [thread overview]
Message-ID: <4BD04C64.20000@arcor.de> (raw)
In-Reply-To: <20100422125132.A4D1AC36DD0@gemini.denx.de>
Am 22.04.2010 14:51, schrieb Wolfgang Denk:
>> + if ((in_word& 0xC0) == 0xC0) {
>> + setenv("stdin", "serial");
>> + setenv("stdout", "serial");
>> + setenv("stderr", "serial");
>> + setenv("bootdelay", "10");
>> + } else if ((in_word& 0xC0) != 0) {
>> + setenv("stdout", "vga");
>> + setenv("bootcmd", "mw.l 0x40000000 0 1024; usb start;"
>> + "fatls usb 0; fatload usb 0 0x40000000 mcq5resq.bin;"
>> + "bootelf 0x40000000; bootelf 0x10080000");
>> + setenv("bootdelay", "5");
>
> I consider such mandatory settings of behaviour-critical variables as
> "bootcmd" and "bootdelay" bad style. I recommend to use oither
> variables instead, and to use these as defaults, so the user still has
> a choice to define his own "bootcmd" which does not get overwritten at
> each boot.
OK. I think this will be the approach you mentioned:
setenv bootcmd '${gs_bootcmd}'
setenv gs_bootcmd bootelf 0x...
Is the redirection of the console OK as it is done in the above code?
Regards,
Matthias
next prev parent reply other threads:[~2010-04-22 13:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-22 10:30 [U-Boot] [PATCH 0/3] Add support for MB86R0x SoCs Matthias Weisser
2010-04-22 10:30 ` [U-Boot] [PATCH 1/3] arm: " Matthias Weisser
2010-04-22 10:30 ` [U-Boot] [PATCH 2/3] video: add support for display controller in " Matthias Weisser
2010-04-22 10:30 ` [U-Boot] [PATCH 3/3] arm: Add support for jadecpu board based on MB86R01 SoC Matthias Weisser
2010-04-22 12:51 ` Wolfgang Denk
2010-04-22 13:17 ` Matthias Weißer [this message]
2010-04-22 14:13 ` Wolfgang Denk
2010-05-03 11:38 ` Matthias Weißer
2010-05-03 12:28 ` Wolfgang Denk
2010-04-22 12:41 ` [U-Boot] [PATCH 2/3] video: add support for display controller in MB86R0x SoCs Wolfgang Denk
2010-04-22 13:03 ` Matthias Weißer
2010-05-01 18:51 ` Anatolij Gustschin
2010-05-01 19:05 ` [U-Boot] [PATCH] video: cfb_console: add weak default video_set_lut() Anatolij Gustschin
2010-06-12 8:20 ` [U-Boot] [PATCH v2] " Anatolij Gustschin
2010-06-12 8:35 ` Anatolij Gustschin
2010-04-28 6:29 ` [U-Boot] [PATCH 2/3] video: add support for display controller in MB86R0x SoCs Matthias Weißer
2010-04-28 6:44 ` Wolfgang Denk
2010-04-28 8:08 ` Matthias Weißer
2010-05-01 18:46 ` Anatolij Gustschin
2010-04-22 12:34 ` [U-Boot] [PATCH 1/3] arm: Add support for " Wolfgang Denk
2010-04-26 6:55 ` Matthias Weißer
2010-05-04 22:18 ` Wolfgang Denk
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=4BD04C64.20000@arcor.de \
--to=weisserm@arcor.de \
--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