Will this work?

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.
Benjamin1996
Member
Member
Posts: 78
Joined: Sat Apr 10, 2010 7:00 am
Location: Denmark

Re: Will this work?

Post by Benjamin1996 »

Alright guys.. I downloaded mkisofs, but I'm getting this output, trying to build an iso:

Code: Select all

/cygdrive/c/users/benjamin/downloads/cdrtools-latest/mkisofs: Uh oh, I cant find
 the boot image 'cyborgosx.img' !
And this is the command I use to build the iso:

Code: Select all

"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.
Selenic
Member
Member
Posts: 123
Joined: Sat Jan 23, 2010 2:56 pm

Re: Will this work?

Post by Selenic »

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
Member
Member
Posts: 78
Joined: Sat Apr 10, 2010 7:00 am
Location: Denmark

Re: Will this work?

Post by Benjamin1996 »

Selenic wrote:
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:

Code: Select all

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).
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: Will this work?

Post by Combuster »

Flag clobber!

Code: Select all

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 ]
Benjamin1996
Member
Member
Posts: 78
Joined: Sat Apr 10, 2010 7:00 am
Location: Denmark

Re: Will this work?

Post by Benjamin1996 »

Combuster wrote:Flag clobber!

Code: Select all

inc byte [failCount] ; makes failcount > 0
jnz initiateOS       ; if (failcount != 0) -> if (true)
OH MY GOD!! - How could I miss such an obvious mistake? Either ways, thanks a lot it seems to work now! :D
Post Reply