Page 1 of 1

Editing Kernel Source Code

Posted: Sun Jun 19, 2022 8:07 pm
by Vuk5001
Hello, I recently downloaded kolibrios and I wanted to change the source code (inside kolibrios) and there is no
kerpack and disk (iso I was using to boot) is full so i cant copy kernel to /rd/1/kernel.mnt to make it into a
.img file , and where I can find kerpack to actually download and use it.


Thanks.

Re: Editing Kernel Source Code

Posted: Sun Jun 19, 2022 10:30 pm
by turbocat
Greetings. Use KPACK for this. There is a checkbox "Kernel" it includes the kerpack function

Re: Editing Kernel Source Code

Posted: Mon Jun 20, 2022 5:11 pm
by Vuk5001
turbocat wrote:Greetings. Use KPACK for this. There is a checkbox "Kernel" it includes the kerpack function
Hi. I used Kpack and checked kernel option and I selected output as .img and when i run it in qemu it says " Not a bootable Disk. "
I am using KERNEL file that compile generated (when compiled kernel.asm).

Thanks.

Re: Editing Kernel Source Code

Posted: Tue Jun 21, 2022 4:21 pm
by Pathoswithin
You should output as .mnt.
Also, you may not use it at all, and just delete something from image. Games folder, for example.

Re: Editing Kernel Source Code

Posted: Tue Jun 21, 2022 7:52 pm
by Vuk5001
Pathoswithin wrote:You should output as .mnt.
Also, you may not use it at all, and just delete something from image. Games folder, for example.
And how do i mount a .mnt file? Rename it to .img? Or qemu can support .mnt?

Re: Editing Kernel Source Code

Posted: Wed Jun 22, 2022 9:09 am
by rgimad
Vuk5001 wrote: And how do i mount a .mnt file? Rename it to .img? Or qemu can support .mnt?
No, you need to replace the original kernel.mnt in .img image with the newly compiled kernel.mnt.