Page 2 of 2
Re: Need help with C Kernel
Posted: Wed Jul 21, 2010 7:34 pm
by gerryg400
Thanks, but what is the easiest way for me to boot this kernel.bin file?
The barebones tutorial tells you exactly how to do it. However you need to install cygwin or use a Linux (possibly virtual) machine to get all the tools needed. 'Easiest' depends on your current situation and knowledge. I've never tried it but I believe Qemu has a built in bootloader. I guess if that works it would be the easiest.
Re: Need help with C Kernel
Posted: Fri Jul 30, 2010 6:33 am
by chibicitiberiu
You may want to use unsigned char instead of char for the videomem pointer, this way you can use all 256 characters, and all text colors.
Re: Need help with C Kernel
Posted: Sat Jul 31, 2010 9:23 am
by Fanael
gerryg400 wrote:However you need to install cygwin or use a Linux (possibly virtual) machine to get all the tools needed.
Could you explain why one needs Cygwin or Linux in order to do what OP wants to?
Re: Need help with C Kernel
Posted: Sat Jul 31, 2010 11:49 am
by Code0x58
Cygwin/Linux would most likely be for GCC if you choose to use it, which is quite likely, but you could use another C compiler (such as OpenWatcom's) and their linker. I myself use NASM + GCC (in MinGW) and wlink (OpenWatcom's linker), but might switch GCC for OW. If your using GRUB, OpenWatcom happily works with ELFs.
Re: Need help with C Kernel
Posted: Sun Aug 01, 2010 4:59 pm
by Combuster
Fanael wrote:gerryg400 wrote:However you need to install cygwin or use a Linux (possibly virtual) machine to get all the tools needed.
Could you explain why one needs Cygwin or Linux in order to do what OP wants to?
Because a single install of cygwin (or linux) contains the whole pipeline of tools to build, test, run, and distribute your work. You get a compiler, linker, link archiver, build tool, image tools, image writers, and compression utilities in one convenient package. And it's all command-line based so it becomes easy to perform all tasks under a single command.
And it's better to stick to an established standard when having problems instead of deviating from it without knowing what you do - it essentially eliminates the environment as a factor. So yes, we expect the OP to use cygwin unless he has a convincing reason not to.