On 2008-09-23, Greg Ungerer <[EMAIL PROTECTED]> wrote:

>> 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.

Just as an experiment I set them in
vendors/SnapGear/PRO/config.linux-2.4.x. Then I deleted the
top-level .config file and did a "make menuconfig" and selected
the SnapGear/PRO target.  The kernel .config file that was
created didn't have the BOOTPARAM config set the way I expected
it to.

> 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".

Ah.  I guess just removing the top-level .config file (the one
in the uClinux-dist directory) wasn't enough.

> 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).

I couldn't see where that was being picked up in the setup
code, but I'll look again.

> So they don't default to a hard configured command line.
> Ofcourse no problem setting one in your own builds.

This is all mostly just a learning exercise.  The real goal is
to get uCLinux going on a custom Samsung 4510B board, and on a
custom NIOS2 board. Since I already had a few SnapGear PRO's
sitting around, I thought it would be educational to start out
with something for which there was an existing port.

My next goal is to get the 4510B build working on the skyeye
simulator...

-- 
Grant Edwards                   grante             Yow! Here I am in 53
                                  at               B.C. and all I want is a
                               visi.com            dill pickle!!

_______________________________________________
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

Reply via email to