Quote:
Originally Posted by elfoozo
How do you tackle this?
|
Tackle what exactly? you said that want to make a "bootable ISO image I can run DOS programs from" ... which i'm afraid doesn't make much sense. (what do DOS programs have to do with linux??)
but since you're posting in a linux forum i guess you're asking how to make a linux distribution or at least a minimal
LINUX boot image ...etc
well, it all starts with
compiling the kernel (obviously) , then figuring out how to
boot it using a bootloader such as grub or lilo (or compiling a bootloader from source then use it to boot the kernel which way ever).
unfortunately the kernel alone doesn't do anything , so you need a
C library (which servers as a mediator between the kernel and whatever apps you're trying to run aka userspace programs) such as glibc.
depending on whether you're building your boot image for the same architecture you're intending to run it for , you may need to build a
toolchain (not needed if for same arch) which involves building 3 primary components binutils,gcc,glibc and other secondary ones several times in a pre-determined order hence the name. (needless to say this is complicated !!)
if you've reached this stage you can , compile/add all the applications you need in your boot image , which at this time would be chrooted directory on your hdd or something similar.
finally , you can use various command-line tools such as "mkimage" found in grub in order to create an ISO image out of this directory. (the irony is that creating the final ISO image is the most trivial part)
Quote:
Originally Posted by elfoozo
I need to understand the procedure top to bottom.
|
i guess you mean
bottom up , because you won't get the top if you don't know about the bottom !
P.S check out "linuxfromscratch" , "building a toolchain" , "compiling the linux kernel" , "bootloader"..etc
Good Luck