* Re: kernel command line from u-boot
[not found] <8c675e9b0808062141s74f1a7bfob5cab6b23b0268d3@mail.gmail.com>
@ 2008-08-07 8:54 ` Geert Uytterhoeven
2008-08-07 11:27 ` Amol Lad
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2008-08-07 8:54 UTC (permalink / raw)
To: Amol Lad; +Cc: linux-embedded, Linux Kernel Development
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1302 bytes --]
On Thu, 7 Aug 2008, Amol Lad wrote:
> It seems that there is a small problem when kernel parses the command
> line passed by u-boot.
It doesn't seem to be specific to u-boot...
> For example, when I add "board=myboard boardid=1" in the command line
> and register handler in kernel as __setup("board", board_setup), then
> the board_setup function is called twice : once with argument
> "myboard" and second time with argument "d=1". So kernel is calling
^^^
Wow, when init/main.c:obsolete_checksetup() matches the `board' part,
it ignores the next character (`i'), assuming this is `=', and passes
the remainder (`d=1').
> handler registered for param "board" for "boardid" also. Is this ok ?
I don't think this is OK.
Probably nobody noticed as this part of the code takes care of the
`obsolete-style' parameters. `module_param' is the new way.
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone: +32 (0)2 700 8453
Fax: +32 (0)2 700 8622
E-mail: Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis 293-0376800-10 GEBA-BE-BB
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kernel command line from u-boot
2008-08-07 8:54 ` kernel command line from u-boot Geert Uytterhoeven
@ 2008-08-07 11:27 ` Amol Lad
0 siblings, 0 replies; 2+ messages in thread
From: Amol Lad @ 2008-08-07 11:27 UTC (permalink / raw)
To: Geert Uytterhoeven
> Probably nobody noticed as this part of the code takes care of the
> `obsolete-style' parameters. `module_param' is the new way.
Ohh, btw how module_param is different from obsolete style paramaters
? Do we need to pass arguments to kernel from bootloader using a
different method for getting them processed using module_param ?
>
> Geert Uytterhoeven
Thanks
Amol
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-07 12:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <8c675e9b0808062141s74f1a7bfob5cab6b23b0268d3@mail.gmail.com>
2008-08-07 8:54 ` kernel command line from u-boot Geert Uytterhoeven
2008-08-07 11:27 ` Amol Lad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®