Hi Grant,
Grant Edwards wrote:
On 2008-09-22, Grant Edwards <[EMAIL PROTECTED]> wrote:
On 2008-09-21, Grant Edwards <[EMAIL PROTECTED]> wrote:
On 2008-09-21, Grant Edwards <[EMAIL PROTECTED]> wrote:
Now I'm trying to figure out how to get a serial console
enabled (for both the kernel and a shell once things are
started up)...
I'm a bit stumped.
I've done everything I can think of, including adding a line to
config_BSP() like this:
strncpy(commandp, " console=/dev/ttyS0,115200 ", size);
Doh!
I added the above line in the wrong place. It was being
clobbered by a later
memset(commandp, 0, size);
After moving my strncpy() to the bottom of config_BSP(), I now
get nice kernel startup messages and a sash prompt on ttyS0.
Various userland application stuff is still broken, but I don't
really care about that at this point.
After looking at config_BSP() it's obvious that one can set
CONFIG_BOOTPARAM and CONFIG_BOOTPARAM_STRING to acheive the
same result. Modifying the kernel settings for those
parameters after choosing the target in "make menuconfig"
works.
What I can't quite figure out is how to make ttyS0 the default.
Setting CONFIG_BOOTPARAM and CONFIG_BOOTPARAM_STRING in
vendors/SnapGear/PRO/config.linux-2.4.x appears to have no
effect on the default values when a new configuration is
created from scratch.
Maybe I am mis-understanding. But those are the first time
defaults - used when you first configure. So changing them
in a tree configured to build for some particular target
won't update the real linux-2.6.x/.config and config/.config
files unless you explicitly choose to do so in "make config",
or have done something like a "make distclean".
Most of the Snapgear boards have a saved command line in
flash at a fixed offset (I think it was offset 0xc020 into
flash on the PRO's). So they don't default to a hard configured
command line. Ofcourse no problem setting one in your own
builds.
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev