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.
"C:/users/benjamin/downloads/cdrtools-latest/mkisofs.exe" -o cyborgosx.iso -A CyborgOSX -b cyborgosx.img iso
"iso" (the word at the end of the command) is just an empty folder in the same directory as the "compile.bat" file (which is the *.bat file where the above command snippet was copied from).
Oh and by the way, the code is unchanged. - Which means that the resulting *.img file (cyborgosx.img) is the result of the code shown in the pastebin.com link.
Benjamin1996 wrote:"iso" (the word at the end of the command) is just an empty folde
That's why it can't find your file. mkisofs puts that directory's contents onto the CD image. So move your boot file into the directory, or use something like "-graft-points cyborgosx.img=cyborgosx.img" - the format is <file on CD>=<file on local disk>
Benjamin1996 wrote:"iso" (the word at the end of the command) is just an empty folde
That's why it can't find your file. mkisofs puts that directory's contents onto the CD image. So move your boot file into the directory, or use something like "-graft-points cyborgosx.img=cyborgosx.img" - the format is <file on CD>=<file on local disk>
Ahhh thanks .
I think I got it working now. Or at least this is the output produced by the mkisofs command now:
Size of boot image is 2880 sectors -> Emulating a 1440 kB floppy
Total translation table size: 2048
Total rockridge attributes bytes: 0
Total directory bytes: 160
Path table size(bytes): 10
Max brk space used 0
896 extents written (1 MB)
Yet, if I run the iso in Microsoft Virtual PC, simply by going to CD->Capture ISO image and then select the cyborgosx.iso file, I get the "Unable to start OS, please reboot the computer." error message, which is supposed to be printed if it encounters problems resetting the disk system, or loading the sectors into memory.. (for further reference go to: http://pastebin.com/QXrga4nB, where you can see the full boot loader code).
inc byte [failCount] ; makes failcount > 0
jnz initiateOS ; if (failcount != 0) -> if (true)
"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 ]