Page 1 of 1

Copying Kernel Binary to a GRUB2 ISO (in Windows)

Posted: Thu Jan 07, 2016 11:44 pm
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

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

Posted: Fri Jan 08, 2016 6:47 am
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.

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

Posted: Sat Jan 09, 2016 1:15 am
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

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

Posted: Sat Jan 09, 2016 2:52 am
by BrightLight
VGA is ancient. It's limited to 640x480 with 16 colors. Forget about it, and use VESA.