Page 1 of 1
Compiling the kernel
Posted: Mon Feb 15, 2010 4:43 am
by Masquerade
Could anyone give me a step by step guide on how to correctly compile the kernel. When i compile the kernel using the command "fasm kernel.asm kernel.mnt" it seems to compile just fine. I end up with a kernel.mnt file which is 141Kb in size. But when i copy this newly compiled kernel into the existing kolibri.img (0.7.7.0 - Kernel compiled from downloaded 0.7.7.0 source.) it will not boot, I also noticed that the existing kernel.mnt was only 70Kb in size.
I'm learning to program in assembly and would love to use KolibriOS as my learning platform.
Re: Compiling the kernel
Posted: Mon Feb 15, 2010 4:49 am
by Leency
You doing everything right. The kernel in 0.7.7.0 is compressed using kerpack (you can find this programm in kolibri.img).
Re: Compiling the kernel
Posted: Mon Feb 15, 2010 5:19 am
by Masquerade
I now tried to use the kpack.exe to pack the kernel.mnt file i compiler, it's now almost the same size, 67.2Kb. I then copied this file into the kolibri.img file, overwriting the existing kernel.mnt. Then used ImgBurn and made a bootable .iso from the modified kolibri.img file.
But when i tried booting from that .iso in VMWare it stoped at "Starting System...............".
Any clue what might be wrong? The kernel.asm i compiled is the original kernel.asm from the 0.7.7.0 source download, I've not modified it in any way. Want to be able to compile and test before i start trying to modify the code.
Re: Compiling the kernel
Posted: Mon Feb 15, 2010 5:36 am
by Masquerade
I figured it out!
When i copied the file onto the Ram Drive in KolibriOS and then saved a new image and then made an iso from that image it worked. I used MagicISO earlier to copy the kernel into the kolibri.img file.
But thanks anyway for your comment/help...
Re: Compiling the kernel
Posted: Mon Feb 15, 2010 8:18 am
by Mario
kpack.exe - for applications
kerpack - (Kolibri binary executable) - for kernel.mnt
Re: Compiling the kernel
Posted: Sat Apr 03, 2010 12:28 am
by illys
Hi,
Sorry to pop-up in the middle of your discussion but I have a related question...
First let me tell you I just love what you are doing: an assembly OS that releases all the capabilities of the hardware for the applications, and applications that preserve performance for the end-user has been my dream for years.
Consequently I like to get a look at your code: using Windows and Linux, I can modify and compile the kernel, write in kolibri.img, boot on USB, but I cannot easily compress yet. Actually I would like to recompile kerpack as an .exe to be able to compile and compress at once (I am using Windows for compilation).
**And my question comes here**: kerpack.asm is missing in kolibri_0.7.7.0_src/programs/system/kerpack. It should be there since it is referred by keypack.bat. I cannot find it also in the other packages of Kolibri 0.7.7.0.
Is there a way to get kerpack.asm or kerpack.exe somewhere?
Thanks in advance.
Re: Compiling the kernel
Posted: Sat Apr 03, 2010 12:24 pm
by diamond
illys wrote:kerpack.asm is missing in kolibri_0.7.7.0_src/programs/system/kerpack. It should be there since it is referred by keypack.bat. I cannot find it also in the other packages of Kolibri 0.7.7.0.
Fixed in the latest night build (
http://diamond.kolibrios.org/nightbuild/).
Re: Compiling the kernel
Posted: Sat Apr 03, 2010 10:36 pm
by illys
Thanks for your fast reply! I'll go on.