Booting from CD

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
User avatar
Chandra
Member
Member
Posts: 487
Joined: Sat Jul 17, 2010 12:45 am

Booting from CD

Post by Chandra »

Hello everyone,

I prepared the boot cd for my OS with 'No Emulation' type. The problem is the ISO of this bootable cd doesn't work with any of the emulators( I tested it under Bochs, Qemu and virtual PC) while it works perfectly fine with real hadware (I tested in under 3 different PCs). When I try to emulate this ISO under Bochs, it gives following output:
int 13h_cdrom: Unsupported AH=0x02

The code is similar to that booting from floppy(except head=0 and dl=0x9f) and I have not initalized the file system yet. I don't understand why it doesn't work with emulators but work with real hardware. If anyone knows about this, please Help!
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Booting from CD

Post by xenos »

It would probably be useful to know how you create the ISO image. Which program are you using (mkisofs / genisoimage?) and what are the command line parameters?
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
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: Booting from CD

Post by Combuster »

If you are using no emulation, you can't normally access the CD as it is not a 512b sector medium. According to the specification you should use the int13 extensions instead (AH=41..48)
"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 ]
User avatar
Chandra
Member
Member
Posts: 487
Joined: Sat Jul 17, 2010 12:45 am

Re: Booting from CD

Post by Chandra »

Yes, that's true. I've tried this before but the removable drive controller functions doesn't seem to exists while performing the installation check. Moreover, the eject media function and enhanced disk drive function also don't work at all. Is there any alternative?
Programming is not about using a language to solve a problem, it's about using logic to find a solution !
Post Reply