OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 4:53 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to make an ISO for my OS? (using custom bootloader)
PostPosted: Fri Sep 29, 2017 4:03 am 
Offline

Joined: Fri Sep 29, 2017 3:53 am
Posts: 1
Hi! I have been tearing my hair out trying to put my operating system on an ISO file.
Currently my makefile creates two files. a boot.bin file (which contains my bootloader) and a kernel.bin file (which contains my kernel).
The two files are combined into a single .bin using the cat command.
How will i create an ISO file from these two?
The operating system i use is Linux Mint 18.2
I will send a link containing my operating system.


Attachments:
File comment: Here it is
Komputilo_OS.tar.gz [12.92 KiB]
Downloaded 30 times
Top
 Profile  
 
 Post subject: Re: How to make an ISO for my OS? (using custom bootloader)
PostPosted: Fri Sep 29, 2017 10:13 am 
Offline
Member
Member
User avatar

Joined: Thu Aug 11, 2005 11:00 pm
Posts: 1110
Location: Tartu, Estonia
This should help:
El-Torito
Mkisofs

_________________
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS


Top
 Profile  
 
 Post subject: Re: How to make an ISO for my OS? (using custom bootloader)
PostPosted: Sat Sep 30, 2017 1:55 pm 
Offline
Member
Member

Joined: Fri Aug 26, 2016 1:41 pm
Posts: 671
You can use genisoimg. I have a Stackoverflow Answer that will probably help you out with usage. The answer there was someone trying to get thir custom bootloader onto an ISO image.


Top
 Profile  
 
 Post subject: Re: How to make an ISO for my OS? (using custom bootloader)
PostPosted: Sun Oct 01, 2017 5:32 pm 
Offline
User avatar

Joined: Thu Apr 24, 2014 1:35 pm
Posts: 13
if you use mkisofs, you'll want to look at the "-no-emul-boot", "-boot-info-table", "-boot-load-size", and "-b" options. You'll also want to leave some space in your boot loader for the Boot Info Table. (This took me forever to realize, so here's an example:)
Code:
jmp 0000:start
times 8-($-$$) db 0 ;this space is reserved for a quick set up and a jump instruction.
;this space reserved for boot info table
bit_PrimaryVolumeDescriptor   resd 1
bit_BootFileLocation          resd 1
bit_BootFileLength            resd 1
bit_Checksum                  resd 1
bit_Reserved                  resb 40
start:
   ;do something here

mkisofs will automagically fill it in for you if you tell it to. If you don't leave space, though, your code will get overwritten and will most likely crash.

You can set it up to tell the BIOS emulate a floppy drive, like in the case of an older system (I think this means that it will only be emulated with int 13h. It still acts like an ATAPI drive if you go directly, I think).

Or, you can tell the BIOS to not emulate the floppy system at all. This is probably what you want for a modern OS.

Good luck!

_________________
SAUCE CD IV - The most schwaaay OS.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot] and 145 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group