#
|
#
|
# $Id: README,v 1.2 2001-09-27 12:01:06 chris Exp $
|
# $Id: README,v 1.2 2001-09-27 12:01:06 chris Exp $
|
#
|
#
|
|
|
The code in this directory has been taken WITH PERMISSION from
|
The code in this directory has been taken WITH PERMISSION from
|
Gabriel Paubert, paubert@iram.es. The main reason for having
|
Gabriel Paubert, paubert@iram.es. The main reason for having
|
a separate bootloader for PreP compliant firmware is that the
|
a separate bootloader for PreP compliant firmware is that the
|
initial code is relocated by firmware at an unknow address
|
initial code is relocated by firmware at an unknow address
|
(actually 0x5000 on motorola MCP750) and that as Gabriel I
|
(actually 0x5000 on motorola MCP750) and that as Gabriel I
|
think having a relocatable bootloder code is a must.
|
think having a relocatable bootloder code is a must.
|
|
|
So the way of building a binary executable that can be booted via
|
So the way of building a binary executable that can be booted via
|
hard disk or network boot goes like this :
|
hard disk or network boot goes like this :
|
|
|
- make a RTEMS executable,
|
- make a RTEMS executable,
|
- put is as data section in the bootloder binary,
|
- put is as data section in the bootloder binary,
|
- relink the loader (see make-exe macros for details),
|
- relink the loader (see make-exe macros for details),
|
|
|
I would like to thank Gabriel for his support and his code.
|
I would like to thank Gabriel for his support and his code.
|
The original code can be found in form of a patch to official linux
|
The original code can be found in form of a patch to official linux
|
kernel at (I insist not vger ppc kernel or Imac ppc kernels!!) :
|
kernel at (I insist not vger ppc kernel or Imac ppc kernels!!) :
|
|
|
|
|
|
|
After applying the patch, the code is located in a new directory
|
After applying the patch, the code is located in a new directory
|
called prepboot.
|
called prepboot.
|
|
|
(NB : note use ftp not netscape...)
|
(NB : note use ftp not netscape...)
|
|
|
Note that the actual code differs a lot since Gabriel choose to use
|
Note that the actual code differs a lot since Gabriel choose to use
|
a CHRP compliant mapping instead of a Prep Mapping to save
|
a CHRP compliant mapping instead of a Prep Mapping to save
|
BATs. I had no time to upgrade the code to its new one allthough
|
BATs. I had no time to upgrade the code to its new one allthough
|
I agree it should be done...
|
I agree it should be done...
|
|
|
I have also splitted the original code to have a more modular
|
I have also splitted the original code to have a more modular
|
design enabling to reuse code between the loader and RTEMS
|
design enabling to reuse code between the loader and RTEMS
|
initialization (e.g printk, ...).
|
initialization (e.g printk, ...).
|
|
|
Eric Valette (valette@crf.canon.fr)
|
Eric Valette (valette@crf.canon.fr)
|
|
|
|
|
|
|