Page 1 of 1

Creating a 32bit bootable image in 64 bit system

Posted: Mon Jun 16, 2014 1:13 am
by psnix
hi

1. I'm using linux ubuntu 64 bit, but my kernel works in 32 bit, how can i create a 32bit bootable image with grub2 ?!

2. i was get grub2 source code and, i comipled it but i coudn't find stage1 and stage 2 files. therefore i use grub-mkimage command to make image but i got following message:

Code: Select all

./grub-mkimage  -o  test.img multiboot sh elf32 -Oi386-multiboot -d./ sh elf32

./grub-mkimage: error: cannot open .//moddep.lst.
where is problem? and what is moddep.lst?

Re: Creating a 32bit bootable image in 64 bit system

Posted: Mon Jun 16, 2014 1:47 am
by Combuster
Those are two completely separate questions. Building a 32-bit kernel on a 64-bit host is unrelated to installing GRUB somewhere. For the former, you can read the tutorials on the wiki. For the latter, why did you compile it from scratch (and probably got it wrong) rather than using your distribution's bundled version?

Re: Creating a 32bit bootable image in 64 bit system

Posted: Wed Jun 18, 2014 12:35 am
by psnix
why did you compile it from scratch (and probably got it wrong) rather than using your distribution's bundled version?
i can't find stage1 and stage2 so i compile it. EFI bootloader is other problem