From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] [v2] powerpc: 'monitor' environment variable contains full video configuration
Date: Tue, 15 Mar 2011 10:52:28 -0500 [thread overview]
Message-ID: <4D7F8B3C.4080307@freescale.com> (raw)
In-Reply-To: <20110315154741.5719A1518DB8@gemini.denx.de>
Wolfgang Denk wrote:
>> Well, that's why I have two variables. My patch has the ability to set the
>> > kernel command line appropriately if the video display is configured and enabled
>> > in U-Boot. The second variable is used to assist in setting the actual kernel
>> > command-line, because that's the easiest and safest way to do it. An
> Don't try to be more clever than the user. Instead of helping, you
> restrict him. That's bad.
I'm not being more clever. The code is setting a variable (diubootargs) that is
guaranteed to be the same video mode that U-Boot is running. If you want to
ensure that Linux set to the same video mode, then use the variable. Otherwise,
don't use the variable and set the command line manually.
>> > alternative that I tried to implement is to have do_bootm_linux() edit the
>> > kernel command line directly, removing any existing video= option and putting a
> NAK, NAK, NAK. All such automatic and unconditional editing is bad
> and should strictly be avoided.
You didn't understand my post. I was saying that I tried to implement it, but
gave up because it got too complicated.
> Leave the decision which device to use as console to the user.
That's what the 'monitor' environment variable is for.
>> > There are three things that need to be done:
>> >
>> > 1) The video mode needs to be configured
> ACK.
>
>> > 2) The video display needs to be enabled and the U-Boot console needs to be
>> > routed to it
> NAK.
>
> Wether the U-Boot console is attached to the serial port or the video
> console or netconsole or anything else should be left to the user.
Again, that's what the variable is for. What's the point of configuring the
video display if you're not going to enable it?
> A default setting is OK, but the user must be able to set anything he
> likes.
Are we speaking the same language? It doesn't appear that you're understanding
anything I'm saying.
>> > 3) The kernel command line needs to be set
> ACK. Again, the user must have free choice of options.
>
>> > For #1, we use video-mode. How do you want #2 and #3 handled?
> See above.
I still don't understand what you actually want.
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2011-03-15 15:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 20:19 [U-Boot] [PATCH] [v2] powerpc: 'monitor' environment variable contains full video configuration Timur Tabi
2011-03-14 23:33 ` Wolfgang Denk
2011-03-14 23:39 ` Tabi Timur-B04825
2011-03-15 9:05 ` Wolfgang Denk
2011-03-15 14:50 ` Timur Tabi
2011-03-15 15:15 ` Wolfgang Denk
2011-03-15 15:21 ` Timur Tabi
2011-03-15 15:47 ` Wolfgang Denk
2011-03-15 15:52 ` Timur Tabi [this message]
2011-03-15 19:02 ` Wolfgang Denk
2011-03-15 19:09 ` Timur Tabi
2011-03-15 19:38 ` Wolfgang Denk
2011-03-15 19:49 ` Timur Tabi
2011-03-15 20:41 ` Wolfgang Denk
2011-03-15 20:48 ` Timur Tabi
2011-03-15 21:47 ` Wolfgang Denk
2011-03-15 22:32 ` Timur Tabi
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=4D7F8B3C.4080307@freescale.com \
--to=timur@freescale.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