Re: [uClinux-dev] 2.4 kernel boot problem

From: Richard Klingler (richard.klingler@violasystems.com)
Date: Wed Sep 25 2002 - 03:32:26 EDT


> Hi Thierry
> 
> > Hi,Richard Klingler
> > 
> > >Hi Thierry
> > >
> > >First:
> > >
> > >bootloader mode = bootloader loads image and executes it...right?
> > Yes,of course.In bootloader mode,I give bootloader the strat address 
> of 
> > my 2.4 kernel.It is 1000400.
> > >normal mode = reset vector and initial sp is within your kernel 
> > image...right?
> > >              so your kernel image is the first (and only) piece of
> > >              software that gets executed?
> > In normal mode,the address 1000400 is strored in the head of my kernel 
> > image.I have tried this in my 2.0 kernel and it did the right 
> thing.But 
> > when I apply it to my 2.4 kernel,it failed to start itself.
> > I think there may be some difference between 2.4 and 2.4 kernel that 
> > cause this problem.
> 
> But what starts your kernel image? Which piece of code?
> Do you do any intialisation in front of starting the kernel?
> (DRAM initialisation etc.)
> 
> If you want to start your kernel directly out of reset then you have to
> do your own initialisations so your kernel finds a working environment.
> This means setting up (S)DRAM, chip select signals, serial port etc.
> The kernel won't do this for you (nut the bootloader does).
> 
> Can you post your crt0_rom.S and loader script here?
> 

Just loooked at the uClinux-2.0.x crt0_rom.S.
uClinux-2.0.x does the initialisation for you but uClinux-2.4.x not
which is the right way in my oppinion (o;

So have a look at the uClinux-2.0.x crt0 and copy the needed stuff
into your 2.4.x crrt0_rom.S.


Rick

This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Wed Sep 25 2002 - 04:01:58 EDT