This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How compiling a selfmade kernel?
- To: help-gcc at gnu dot org
- Subject: Re: How compiling a selfmade kernel?
- From: A-Du-ReaNOGI at EsperNOGO dot Com (Art Du Rea: NoGargbageIn:NoGarbageOut)
- Date: Wed, 01 Sep 1999 19:11:47 GMT
- Newsgroups: gnu.gcc.help
- References: <37CD6BCF.9F9645ED@village.uunet.be>
- Xref: wodc7nx0 gnu.gcc.help:804
On Wed, 01 Sep 1999 20:09:19 +0200, RiverTonic <thomas@village.uunet.be> wrote:
>I wrote a main.c file. Normally, it prints a serie of characters on the
>screen when booted, but how do I have to compile my main.c file, so I
>can tell lilo to boot it. When I compile it the normal way, lilo tries
>to boot it, but it fails.
I don't know a whole lot about this, but I am in the middle of compiling an application in C
to boot and run on Motorola DSP EVM boards. That's a WHOLE lot smaller problem than trying
to run on a PC. Anyway, the Kernel for C programs is in a file called something like
"crt0.asm" or some variation of this. I think it's the Linker for the Motorola system that
has a "-crt" switch to select the Kernel object to link the application to. The kernel for
an executable application will likely be very simple compared to a bootable kernel. Here
are some files I had to deal with for the Motorola application ...
crt0563x.cln
crt0.asm
stdio.c stdio.h
hostio.c hostio.h
ioprim.h
fread.c read.c
fwrt.c write.c
If something doesn't come to you in a "pop top can", get ready for a lot of hard work! Good
luck!
All the best, and ENJOY!
Art Du Rea
Knoxville, Tennessee, USA
(Remove NOGI:NOGO for direct e-mail)