Creating a 32bit bootable image in 64 bit system

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
psnix
Member
Member
Posts: 50
Joined: Fri Oct 24, 2008 12:34 pm

Creating a 32bit bootable image in 64 bit system

Post 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?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

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

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
psnix
Member
Member
Posts: 50
Joined: Fri Oct 24, 2008 12:34 pm

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

Post 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
Post Reply