Re: Grub cannot boot kickstart - error 13
Laurent Vivier <[email protected]>
| Newsgroups | gmane.comp.micro-kernel.l4.l4ka.general |
|---|---|
| Organization | Bull S.A.S. |
| Message-ID | <[email protected]> |
Hi, I had the same problem. And the problem is coming from grub 0.97 (coming with a debian etch). In fact, grub 0.97 makes some tests on the object to load as kernel : when you specify the flag MULTIBOOT_AOUT_KLUDGE in multiboot header, the object cannot be in ELF format. And this is why kickstart cannot be loaded : it is ELF with flag MULTIBOOT_AOUT_KLUDGE. An easy solution is to remove this flag from the multiboot header of "kickstart". Index: user/util/kickstart/crt0-ia32.S =================================================================== RCS file: /public-cvs/pistachio/user/util/kickstart/crt0-ia32.S,v retrieving revision 1.2.4.2 diff -r1.2.4.2 crt0-ia32.S 74,80c74,75 < .long 0x00010000; < .long - 0x00010000 - 0x1BADB002; < .long __mb_header; < .long _start; < .long _edata; < .long _end; < .long _start; --- > .long 0x00000000; > .long - 0x00000000 - 0x1BADB002; Regards, Laurent Stu Glaser wrote: > Hi all, > > When I try to boot kickstart/pistachio, grub halts with: > > Error 13: Invalid or unsupported executable format > > I am using pistachio 0.4 inside vmware on a pentium M machine. The same > error occurs for the binary distribution, the 0.4 source distribution, > and the CVS repository. > > I tried the following at the grub command prompt: > > grub> root (hd0,0) > grub> kernel /boot/kickstart > > Error 13: Invalid or unsupported executable format > > grub> kernel /boot/i686-kernel > > ****a bunch of memory addresses in hex**** > > Of course, trying to boot the kernel directly causes a Memory descriptor > overlow error. > > > # file kickstart > kickstart: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), > statically linked, not stripped > # file i686-kernel > # gcc --version > gcc (GCC) 4.1.2 20060928 .......... > > Am I missing a step here? > > Thanks, > -Stu > > -- ------------- [email protected] -------------- "Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFF4q409Kffa9pFVzwRAirtAKDRAk2otHDw/k3244RP/SOBw66K8gCfYgMh I8J12iirnd4oGyEt4MT/YW4= =A8Zb -----END PGP SIGNATURE-----