Hi Viet,

On 02/08/11 19:34, Viet Nguyen wrote:
I need to get the value of parameter "console" passed by u-boot in arch 
initialization stage.
I think I need to touch config_BSP function.

Do you mean the kernel code you are using doesn't currently get the
command line at all from uboot?  You would only need to do some work
in the config_BSP if there is no code to support geting the uboot
command line at all.


However, if I write a kernel module, how to get value of this parameter from my 
module?

Use module_param() and friends in your driver.

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Principal Engineer        EMAIL:     g...@snapgear.com
SnapGear Group, McAfee                      PHONE:       +61 7 3435 2888
8 Gardner Close                             FAX:         +61 7 3217 5323
Milton, QLD, 4064, Australia                WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to