Re: grub and booting Linux/i386

H. Peter Anvin (hpa@transmeta.com)
11 Oct 1997 08:27:39 GMT


Followup to: <Pine.LNX.3.96.971011092046.15931A-100000@goldbach.isdn.cs.tu-berlin.de>
By author: Gerd Knorr <kraxel@goldbach.isdn.cs.tu-berlin.de>
In newsgroup: linux.dev.kernel
>
> grub loads a (old) linux-kernel this way: the setup is loaded to 0x90000,
> the kernel to 0x100000. Just before booting linux grub copies the kernel
> to 0x1000 and then jumps to the linux setup code.
^^^^^^
Should be 0x10000 (1000:0000).

>
> 2) From reading the startup code it seems there is basically no difference
> between zImage and bzImage. So it should be possible to load a zImage
> to 0x100000, should'nt it?

Nope, it must be loaded at 0x10000. Don't touch code32_start. The
zImage loading sequence *predates* the existence of the startup code
header, so....

> Tried it: Adjusted type_of_loader, loadflags and code32_start -- did
> not work. The kernel died before printing "Uncompressing linux...". Big
> red button time...

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables