[U-Boot-Users] lkc support for U-Boot My $0.02 worth

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[U-Boot-Users] lkc support for U-Boot My $0.02 worth

Rod Boyce
What you are forgetting is there the list of supported board currently in
U-Boot are not all the configurations available.  There are configurations
that make Wolfgang's example look very simple that are not released back to
U-Boot for one reason or another.
The flash sector that holds our environment variables in our flash is 128K.

I know that I am going to have to add whatever configuration mechanism you
add to our close source boards and this is my problem and I've hacked the
kernel config files about enough to do this but I still say...
        If it isn't broke why fix it.

Rod


 -----Original Message-----
From: Holger Schurig [mailto:h.schurig at mn-logistik.de]
Sent: Thursday, November 07, 2002 11:25 PM
To: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] lkc support for U-Boot My $0.02 worth

> I still see technical issues; for example, I have not  the  slightest
> idea how longish definitions like:

Not at all. However, I have the feeling that they are not that common. Only
some board has this here and then.


But those long stuff could stay in the *.h file, if needed.

config EXTRA_ENV_SETTINGS
   char "kernel environment settings"
   depends !SPECIAL_BOARD

and in include/config/special_board.h

#undef CONFIG_EXTRA_ENV_SETTINGS
#define CONFIG_EXTRA_ENV_SETTINGS \
  "ten " \
  "thousand " \
  "lines"


> Also,
> I  fear  that  adding new features will become much harder, as you'll
> have to continually extend  the  config  setup.

For me it looks EASIER. A complete description of what is configurable is in

the config.in files. Right now, I have to do things like

grep '^#if' `find -name '*.c'` | sort | unique

to find out what is actually configurable. And then it's only slightly
documented, and dependencies are not laid out clearly.



> And  finally  -  has
> anybody  benchmarked the speed of such a new config scheme?

I doubt there is much difference...   once you've run make
config|xconfig|oldconfig|menuconfig, you have to files. One is includeable
by
"Makefile"s, the other one into C programs.

You simply include this and that's it. I can't see why this should slowdown
the compilation process.

One thing that might be a little time difference is the

cp board/<boardname>/def-configs .config
make oldconfig.

However, running "make oldconfig" on the current Bitkeeper tree of
www.openzaurus.org is negligible:

/usr/src/buildroot-oz# touch packages/config.in
/usr/src/buildroot-oz# touch .config
/usr/src/buildroot-oz# times make oldconfig
0.22user 0.09system 0:00.32elapsed 94%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (5351major+2500minor)pagefaults 0swaps

But then again the combined length of all config.in of this project is only
754 lines with now only 202 configurable variables (I have an 850 MHz AMD
with 1967 bogomips and the hard disk cache was "warm").


Greetings, Holger



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users



Reply | Threaded
Open this post in threaded view
|

[U-Boot-Users] lkc support for U-Boot My $0.02 worth

Wolfgang Denk
In message <8D7C5F56B409554D9D46AC22195807F3061B44 at exchwenz01.dmcwave.co.nz> you wrote:
>
> I know that I am going to have to add whatever configuration mechanism you
> add to our close source boards and this is my problem and I've hacked the

What do you mean with "close source boards"?
PPCBoot / U-Boot is GPL.
Strictly GPL.


Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
See us @ electronica 2002 in Munich, Nov 12-15, Hall A3, Booth A3.325