LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2011, 01:33 PM   #1
elfoozo
Member
 
Registered: Feb 2004
Location: Washington, USA
Distribution: Debian
Posts: 263

Rep: Reputation: 32
Create bootable ISO from scratch?


I need to build a bootable ISO image I can run DOS programs from. As part of the creation, I'll need to get a 9 MB BIOS update on that ISO so I can flash my motherboard.

Google searches turn up lots of misinformation that make too many assumptions that you have a "boot.img" and junk like that already. I need to understand the procedure top to bottom.

How do you tackle this?
 
Old 12-10-2011, 06:52 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
http://www.linuxfromscratch.org.

Prepare for an adventure.
 
Old 12-10-2011, 09:57 AM   #3
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by elfoozo View Post
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 View Post
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

Last edited by entz; 12-10-2011 at 10:01 AM.
 
Old 12-10-2011, 10:57 AM   #4
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
Quote:
Originally Posted by elfoozo View Post
I need to build a bootable ISO image I can run DOS programs from. As part of the creation, I'll need to get a 9 MB BIOS update on that ISO so I can flash my motherboard.
bootable iso that can run dos program, try freedos live cd

Quote:
I need to understand the procedure top to bottom.
to understand the procedure to create bootable iso image, please check slitaz scratchbook

HTH
 
Old 12-10-2011, 12:33 PM   #5
elfoozo
Member
 
Registered: Feb 2004
Location: Washington, USA
Distribution: Debian
Posts: 263

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by entz View Post
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
Hopefully this clarifies more: Use Linux tools to create media that works on Windows systems. ??

I found isomaster which lets me use an image of the boot sector (that I extracted by other tools) and build it into an ISO project. Then I put my BIOS update EXE and BIN as part of the data are in the ISO project. But there seems to be some missing magic that ties the boot sector to the added files. E.g. the resulting ISO boots, but the binaries are invisible when typing "dir".
 
Old 12-10-2011, 02:58 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,423

Rep: Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998
If you have a boot image you might just be able to use it as track one on the cd.

I used to use cat to get an image of a dos floppy. Then take that file and burn it using nero with a cue sheet. I didn't have linux at the time but the posts said to just use track one. The track two could be the file you need. It ought to then show up as b drive.
A floppy to track one ought to show as a.


I agree that freedos may be the correct choice. It can use usb to access this file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
i edited the fedora9.iso files... how do i create bootable iso now? Yaniv-Fer Linux - General 3 11-04-2008 03:52 AM
What Can Create a Bootable ISO carlosinfl Linux - Software 17 10-06-2008 04:01 PM
Create bootable ISO? twistedpair Linux - General 11 11-13-2005 11:27 PM
how to create an iso BOOTABLE abd_bela Debian 1 06-04-2005 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration