
On Wed, Jul 28, 2004 at 12:05:20AM +0200, Wolfgang Denk wrote:
Dear Andrew,
in message 20040727012114.GA22062@acmay.homeip.net you wrote:
.....
But I am not sure if the check would be universal. Would it better to add a new type or flag to image header.
If you boot "a stupid homegrown OS" then do it like that: use the "bootm" command for it.
It looks like RTEMS is the simplest OS loader and it should work as is with my image, but it would be nice to have a generic print instead.
What exactly do you mean by "have a generic print instead" ?
Not until after I did the code and started to write the message did I start to look at the other OS type boots. Then I realized that the RTEMS bootm is just what I need. So instead of adding a whole new type just change RTEMS to a generic OS type, that may not care about the args.
So just change the function names and printf to make it obvious it is a simple OS type. Also do a fall through case for both RTEMS and GENERIC OS image types.
Here is an incomplete patch of what I mean.