elf booting

steven james pyro at linuxlabs.com
Sun Nov 24 16:26:00 CET 2002


Greetings,

The bounce buffer is normally allocated at the top of ram - 2* the size of
the LinuxBIOS ram segment. It would appear that its got the wrong idea
about the size of ram in this case.

G'day,
sjames


On Sun, 24 Nov 2002, Andrew Kohlsmith wrote:

> I seem to have gotten myself stuck.  I can load an elf image out of ROM but 
> can't jump to it.  I _can't_ load an elf image off of the drive at all.
> 
> The output of a boot using BOOT_ROM=1 and having the natsemi.elf at 0xc000 is 
> attached.
> 
> If I try BOOT_IDE=1 the only difference is that it doesn't find an elf 
> candidate (it never tries to access the HDD).
> 
> The end goal is to load the kernel off of CompactFlash on IDE0 master.  I 
> (think I) know how to place the kernel on the HDD and adjust the IDE_OFFSET 
> in the config but I'm not even getting that far.
> 
> >From the attached serial output you can see that it finds the natsemi.elf and 
> that it is declared valid.  If I examine code at 0x400000 it seems to be 
> correct, meaning that it did copy the code over there.
> 
> The processor never gets up there though.  From tracing through the image it 
> seems that the adjustment for Linuxbios' image in high memory is all messed 
> up.
> 
> After editing loglevel.h to allow "spew" level printks, the following is 
> visible (I could see it throught the bochs debugger, but this just verifies 
> that I'm not totally crazy.  :-)
> 
> Loaded segments
> verified segments
> closed down stream
> Jumping to boot code at 0x400000
> entry    = 0x00400000
> lb_start = 0x00004000
> lb_size  = 0x0004e2d0
> adjust   = 0x3fbadd30
> buffer   = 0x3fb63a60
>      elf_boot_notes = 0x0000bc40
> adjusted_boot_notes = 0x3fbb9970
> 
> now adjust and buffer are both waaaaaaaaaaaaaay beyond normal memory space...  
> Is this normal or did I just fail to initialize something correctly?
> 
> the objdump output for the natsemi.elf is also attached.  From what I can tell 
> it's nothing unusual.
> 
> Regards,
> Andrew

-- 
-------------------------steven james, director of research, linux labs
... ........ ..... ....                     230 peachtree st nw ste 701
the original linux labs                             atlanta.ga.us 30303
      -since 1995                              http://www.linuxlabs.com
                                   office 404.577.7747 fax 404.577.7743
-----------------------------------------------------------------------





More information about the coreboot mailing list