Copying Kernel Binary to a GRUB2 ISO (in Windows)

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
Quaker763
Posts: 17
Joined: Sun Mar 08, 2015 5:32 am
Location: Straya

Copying Kernel Binary to a GRUB2 ISO (in Windows)

Post by Quaker763 »

Hey guys,

I've decided to finally abandon floppy images (with GRUB legacy) and use a GRUB 2 cd-rom image for the VGA/VBE/VESA extensions so I can switch graphics modes (at the moment it's the only way I'm able to). However, I'm having trouble copying the kernel binary in Windows.

I've made my initial image in Arch Linux with grub-mkrescue, and it boots fine in Bochs, however, when I copy a freshly compiled kernel binary to the image (using magicISO), it it seemingly corrupting some kind of data on the disc and it will refuse to boot, citing that it can't find a module :? I've also noticed the file size changed drastically after saving the image. Before, I could just copy the binary onto my floppy with WinImage, but it's beginning to look impossible to do with an ISO on Windows..

I know a LOT of you guys here use Linux (I know I probably should be haha), but does anyone have any suggestions? I've tried at least 4 different tools to copy files to files to an ISO, but none have worked. At the very least, is there any other way besides what is on the wiki to switch to VGA mode without some of the more fiddly implementations? Perhaps even a patched GRUB legacy (the links are dead on the wiki :oops: )

Thanks,
Quaker763
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Copying Kernel Binary to a GRUB2 ISO (in Windows)

Post by BrightLight »

Try a virtual CD-ROM software for WIndows.
Since you have Arch Linux, most people would recommend you use that anyway, as Linux is much more suited for OS development.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
User avatar
Quaker763
Posts: 17
Joined: Sun Mar 08, 2015 5:32 am
Location: Straya

Re: Copying Kernel Binary to a GRUB2 ISO (in Windows)

Post by Quaker763 »

Images are mounted in read-only mode.. I probably should start using Linux, but I don't have time to change my build environment. Anyway, on further reading it seems I can change to certain VGA modes just by writing to VGA registers #-o

Thanks,
Quaker763
User avatar
BrightLight
Member
Member
Posts: 901
Joined: Sat Dec 27, 2014 9:11 am
Location: Maadi, Cairo, Egypt
Contact:

Re: Copying Kernel Binary to a GRUB2 ISO (in Windows)

Post by BrightLight »

VGA is ancient. It's limited to 640x480 with 16 colors. Forget about it, and use VESA.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Post Reply