[RFC][PATCH] Put PReP boot arguments in a fixed location in the boot image

Leigh Brown leigh at solinno.co.uk
Wed Mar 26 07:01:32 EST 2003


Tom Rini said:
> On Sat, Mar 22, 2003 at 08:31:18PM -0000, Leigh Brown wrote:
>> I have been using this patch very successfully for ages.  Having the
>> boot arguments in a fixed location in the boot image makes it trivial
>> to write a program to set the arguments.
>>
>> Please take a look at the patch and let me know what you think.  If
>> there are no negative comments I shall post it again for inclusion.
>> The patch should apply against linuxppc_2_4 and linuxppc_2_4-devel.
>
> The changes to 'mkprep' I _think_ would break non-'PReP' systems using
> that.  Please modify simple/head.S (and related) in a similar fashion,
> and present this is a patch against 'linux-2.4' (GNU or BK patch is fine
> with me).  Thanks.

Hi Tom,

Thanks for looking at the patch.  I hadn't realised that mkprep was used
to build non-prep images (how silly of me ;-) ).  I looked at the simple/
head.S and I'm a bit afraid to change it because I don't know anything
about that code, and couldn't ever test it and so on.

Soooooo, how about the attached patch instead (not tested yet), which
changes mkprep to accept an additional -entry parameter to tell it to
use a non-default entry point, and is used only for zImage.prep?

However, if you're sure that simple/head.S can be changed in the same
way as I did for prep/head.S, I will do so, if you prefer.

Cheers,

Leigh.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 010-boot-args-2.diff
Type: application/octet-stream
Size: 5470 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20030325/7d0576a5/attachment.obj>


More information about the Linuxppc-dev mailing list