Page 1 of 2
files of the kernel
Posted: Mon Apr 13, 2009 1:32 pm
by angel
Hello!
I'm new in Kolibrios, and I have some questions...
Which are the minimun files of the kernel?
With them, can I compile the system? how?
I know that I can see the execution of system step by step... how?
Thanks

Re: files of the kernel
Posted: Mon Apr 13, 2009 6:51 pm
by hidnplayr
To compile the kernel, you need all the files in the 'kernel/trunk' directory on the SVN server. (except the ones in 'drivers' folder)
You can also download these files zipped from the 'download' page on the main site, they're called 'kernel [sources]'
You can compile the kernel using FASM on windows/linux/KolibriOS/.. all you need to do is compile kernel.asm.
Fasm will output a file kernel.bin, you need to rename it to kernel.mnt
(You can also use a script to compile it, compile.bat on windows, make.sh on linux)
'The execution of system step by step', you mean like a debugger?
To debug applications, you can use 'mtdbg' program on KolibriOS.
To debug the kernel itself, it's more difficult, I believe the easiest sollution is to run it in BOCHS.
Good luck, and welcome to the forums
Re: files of the kernel
Posted: Mon Apr 13, 2009 10:36 pm
by angel
I have downloaded these files zipped from the 'download' page on the main site
but I've had this problem
Language '' is incorrect
Enter valid language [ en ru ge et ]:
>en
*** building kernel with language 'en' ...
flat assembler version 1.67.38 (65536 kilobytes memory)
fs/fs.inc [767]:
jc err
error: invalid operand.
error: fasm execution failed
Presione una tecla para continuar . . .
Should I download the kernel of SVN server?
Thanks

Re: files of the kernel
Posted: Mon Apr 13, 2009 11:12 pm
by hidnplayr
The zip file on the download page is collected from the SVN server, and has the SVN revision number in the filename.
Revision #1063 should be able to compile just fine (as most revisions..)
Did you edit any files?
Re: files of the kernel
Posted: Tue Apr 14, 2009 7:09 am
by Galkov
That was fixed in revision 1047 by heavyron with this note: "small fix to correct compiling with fasm 1.67.34"
Simply, label err was replaced to error in file
Re: files of the kernel
Posted: Wed Apr 15, 2009 3:38 pm
by angel
With explanations that you have told me, I've compiled the kernel
How can I execute into a floppy?
Could I execute the kernel into Windows?
Thank you very much
Re: files of the kernel
Posted: Wed Apr 15, 2009 8:58 pm
by hidnplayr
If you are using a real floppy, just overwrite the existing file 'kernel.mnt' with the one you compiled.
To test the kernel while you're in windows, you need an emulator such as Virtualbox or Qemu or Bochs or .. something else
When you are using an emulator, you need to attach a virtual floppy (kolibri.img), to get your new kernel into kolibri.img, you need a program such as Winimage.
There is an article about how to use KolibriOS in Qemu here:
http://wiki.kolibrios.org/wiki/Setting_ ... u_manager)
Re: files of the kernel
Posted: Wed Feb 13, 2013 1:41 pm
by stefano
Hi,
I'm compiling the kernel on Ubuntu (make lang=en), but I get this error:
Code: Select all
--- building 'bin/drivers/viasound.obj' ...
flat assembler version 1.70.03 (65536 kilobytes memory)
error: source file not found.
make: *** [drivers] Error 255
I looked in bin/drivers and viasound.obj is not there.
Re: files of the kernel
Posted: Wed Feb 13, 2013 2:23 pm
by SoUrcerer
There's some problems on our SVN, it seems that someone deleted /drivers/viasound.asm and didn't fixed makefile. May be viasound.asm is obsolete, I don't know. You can fix this issue by creating empty viasound.asm in /drivers
Re: files of the kernel
Posted: Wed Feb 13, 2013 2:27 pm
by stefano
Ok.
Thank you.
Re: files of the kernel
Posted: Wed Feb 13, 2013 2:33 pm
by stefano
Solved!
Only to notify:
same error with vmode.obj and vt823(x).obj (the source is vt823x.asm).
Re: files of the kernel
Posted: Wed Feb 13, 2013 2:35 pm
by stefano
Other error:
Code: Select all
*** building skins ...
/bin/sh: 1: cd: can't cd to skin
--- building 'bin/skins/default.skn' ...
flat assembler version 1.70.03 (65536 kilobytes memory)
error: source file not found.
make: *** [skins] Error 255
Re: files of the kernel
Posted: Wed Feb 13, 2013 2:37 pm
by SoUrcerer
Try
make kernel lang=en
This should produce un-packed kernel.mnt file, which you can pack with kerpack utility. It seems that makefile in "kernel/trunk" is kind of obsolete. Skins are in /skins, not /kernel, as you may noticed.
Re: files of the kernel
Posted: Wed Feb 13, 2013 3:35 pm
by hidnplayr
SoUrcerer wrote:There's some problems on our SVN, it seems that someone deleted /drivers/viasound.asm and didn't fixed makefile. May be viasound.asm is obsolete, I don't know. You can fix this issue by creating empty viasound.asm in /drivers
Problems are not with SVN but with makefile indeed.
Re: files of the kernel
Posted: Fri Feb 15, 2013 3:02 am
by stefano
SoUrcerer wrote:Try
make kernel lang=en
This should produce un-packed kernel.mnt file, which you can pack with kerpack utility. It seems that makefile in "kernel/trunk" is kind of obsolete. Skins are in /skins, not /kernel, as you may noticed.
Thank you.
I have corrected the "makefile" comparing with the file "build.bat".