OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 5:34 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Bootable iso image floppy disk question [solved]
PostPosted: Thu Jan 10, 2019 3:45 pm 
Offline
Member
Member
User avatar

Joined: Tue Dec 11, 2018 3:13 pm
Posts: 50
Hello, everyone.

I was checking out the osdev wiki to see what kind of information that it had about building bootable image files, and whilst reading the Article about Mkisofs, I found this line,

Quote:
First you need to build a bootable floppy image which holds f. ex. grub with your menu.lst and your kernel (and additional required modules).


And then I find these lines,

Quote:
Then, you put this boot floppy image in a temporary directory, say as /tmp/deploy/boot.img.

After that, you copy all your additional files (applications, images, texts, directories too) into the given directory (f. ex. /tmp/deploy).


Now I have several questions, because I am not quite understanding this.

1) Does this supposed floppy disk image have to be 1.44MB? Can it be any other size?

And probably for the biggest question that I have right now,

2) It claims that you need to add the additional files to the temp directory, but then it says to add the kernel stuff and whatnot onto the floppy disk image. I am confused at what it is telling me. Can I put the kernel and 'other modules' in the temp directory and just use the floppy image for 'stage1', I guess you could say, boot code, and then use the temp directory as the stage2 boot files, kernel, etc? And why does it say that the kernel and 'other modules' need to be in the floppy image? Am I not understanding here?

Thanks!


Last edited by saltlamp on Sun Jan 13, 2019 7:38 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Bootable iso image floppy disk question
PostPosted: Fri Jan 11, 2019 4:27 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
saltlamp wrote:
1) Does this supposed floppy disk image have to be 1.44MB? Can it be any other size?

According to the El Torito specification, the supported sizes for emulated floppy disks are 1.2MB, 1.44MB, and 2.88MB. Of course, firmware is stupid and might only work correctly with 1.44MB.

saltlamp wrote:
2) It claims that you need to add the additional files to the temp directory, but then it says to add the kernel stuff and whatnot onto the floppy disk image. I am confused at what it is telling me. Can I put the kernel and 'other modules' in the temp directory and just use the floppy image for 'stage1', I guess you could say, boot code, and then use the temp directory as the stage2 boot files, kernel, etc? And why does it say that the kernel and 'other modules' need to be in the floppy image? Am I not understanding here?

That example assumes you're using a bootloader that only works with floppy disks. If you're using a bootloader that works with CDs, then you can put the files wherever you want. (But if you're using a bootloader that works with CDs, why bother with floppy disk emulation?)


Top
 Profile  
 
 Post subject: Re: Bootable iso image floppy disk question
PostPosted: Fri Jan 11, 2019 3:00 pm 
Offline
Member
Member
User avatar

Joined: Tue Dec 11, 2018 3:13 pm
Posts: 50
Octocontrabass wrote:
saltlamp wrote:
1) Does this supposed floppy disk image have to be 1.44MB? Can it be any other size?

According to the El Torito specification, the supported sizes for emulated floppy disks are 1.2MB, 1.44MB, and 2.88MB. Of course, firmware is stupid and might only work correctly with 1.44MB.

saltlamp wrote:
2) It claims that you need to add the additional files to the temp directory, but then it says to add the kernel stuff and whatnot onto the floppy disk image. I am confused at what it is telling me. Can I put the kernel and 'other modules' in the temp directory and just use the floppy image for 'stage1', I guess you could say, boot code, and then use the temp directory as the stage2 boot files, kernel, etc? And why does it say that the kernel and 'other modules' need to be in the floppy image? Am I not understanding here?

That example assumes you're using a bootloader that only works with floppy disks. If you're using a bootloader that works with CDs, then you can put the files wherever you want. (But if you're using a bootloader that works with CDs, why bother with floppy disk emulation?)


Ah, okay, I believe I see now. I haven't seen the entire wiki, so I don't know if this was explained before I found those lines, but if not, I think that the wiki should be more specific, because holy hell, that was confusing. I was almost starting to think that it was that way yesterday, but I wasn't sure, so I needed to ask.

One more quick question, if you don't mind. If I remember correctly, I was reading a Stack Overflow question about this very subject yesterday, and one of the answers said that if you write the image file with the flag '-no-emu-boot', it disables the use of BIOS interrupts, because it's not being emulated as a floppy disk or a hard disk. Is this even correct? I don't think it is, yet not every source that I read on this subject is consistent.

Anyway, thank you, sir, and good luck on your future projects!


Top
 Profile  
 
 Post subject: Re: Bootable iso image floppy disk question
PostPosted: Sat Jan 12, 2019 3:30 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
saltlamp wrote:
If I remember correctly, I was reading a Stack Overflow question about this very subject yesterday, and one of the answers said that if you write the image file with the flag '-no-emu-boot', it disables the use of BIOS interrupts, because it's not being emulated as a floppy disk or a hard disk. Is this even correct?

Of course not. The El Torito specification explains which BIOS interrupts you can use to access the CD in no-emulation mode.


Top
 Profile  
 
 Post subject: Re: Bootable iso image floppy disk question
PostPosted: Sat Jan 12, 2019 3:33 pm 
Offline
Member
Member
User avatar

Joined: Tue Dec 11, 2018 3:13 pm
Posts: 50
Octocontrabass wrote:
saltlamp wrote:
If I remember correctly, I was reading a Stack Overflow question about this very subject yesterday, and one of the answers said that if you write the image file with the flag '-no-emu-boot', it disables the use of BIOS interrupts, because it's not being emulated as a floppy disk or a hard disk. Is this even correct?

Of course not. The El Torito specification explains which BIOS interrupts you can use to access the CD in no-emulation mode.


Alright, I understand now. Again, thanks.


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 79 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