[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loading a later stage, directly

From: Dave Hansen
Subject: loading a later stage, directly
Date: Fri, 07 Feb 2003 09:49:59 -0800
User-agent: Mozilla/5.0 (compatible; MSIE5.5; Windows 98;

I have a relatively strange situation.  I have some old hardware that
already has a bootloader of sorts (NUMAQ, if anyone know what that is).
 It boots off of a card called the MDC, and runs an elf executable
called lynxer.elf.  This program is responsible for pulling boot images
out of the MDC's flash, loading them, and executing them.  The images
were all in elf format, and could be things like an additional
bootloader, or a UNIX kernel.  I want GRUB to be one of the images which
are executed.

I've already modified the program to execute arbitrary code, located in
arbitrary places.  I should just be able to load GRUB, and execute, but
GRUB has some hard-coded addresses in it, and if I load it where it goes
naturally, it would overlap with the lynxer.elf program.

The jump to the executables happens in 32-bit mode, so the initial parts
of stage2/asm.S aren't necessary.  GRUB doesn't have to worry about
loading anything from the disk, or making the real->protected switch.

Any suggestions for where to load it, or trouble I might run into by
skipping all of stage1, and stage2/asm.S until after real_to_prot()?
Dave Hansen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]