Kernel Editing Problems

Post here questions, problems and suggestions in English language
bigttcool2
Posts: 6
Joined: Sun Sep 12, 2010 7:20 pm

Kernel Editing Problems

Post by bigttcool2 »

'Hi.
I want to edit the boot screen's text. I compile the kernel with fasm and compact it with kpack. I use winimage to place it in a flp file, then try to boot it with Oracle VM VirtualBox. It just says "Starting systemmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm" and keeps printing a bunch of m's.
When I put the kernel file on floppy disk and boot from it it says "Starting System........." and displays 136 dots.
What am i doing wrong? :oops:

~bigttcool
ChE
Posts: 54
Joined: Thu Aug 13, 2009 10:39 am

Re: Kernel Editing Problems

Post by ChE »

Use kerpack to compress the kernel instead of kpack
bigttcool2
Posts: 6
Joined: Sun Sep 12, 2010 7:20 pm

Re: Kernel Editing Problems

Post by bigttcool2 »

I'm using windows to compile, not kolibri
Mario

Re: Kernel Editing Problems

Post by Mario »

kpack only for applications and driver - it is not for kernel.mnt
bigttcool2
Posts: 6
Joined: Sun Sep 12, 2010 7:20 pm

Re: Kernel Editing Problems

Post by bigttcool2 »

I see. Then how do I compile kernel.mnt on windows with kerpack? My console won't let me execute it (MS-DOS)
Mario

Re: Kernel Editing Problems

Post by Mario »

You can use kernel.mnt without packing. If you need more space in kolibri.img - just delete any games or demo files.
User avatar
art_zh
Kernel Developer
Posts: 1462
Joined: Fri Aug 14, 2009 1:46 am

Re: Kernel Editing Problems

Post by art_zh »

bigttcool2

another way is to compile the kernel inside KolibriOS.

1) load an official distro,
2) run a file manager. MSDOS-users may prefere KFAR - it looks like old-and-good Norton Commander
3) in KFAR press <Alt>-<F2> and choose the disk where your new kernel source files located (it has to be a FAT-disk to avoid file writing problems)
4) jump to the right panel (<Tab>) and enter the source directory (keep /rd/1 on your left panel)
5) load kernel.asm with tinypad text editor (starts by default when you choose an .asm-file),
6) in tinypad menu click Run, then Compile.
7) return to KFAR: a new file KERNEL should appear. Copy it to the left panel (<F5>) as /rd/1/kernel.mnt
8 ) on the left panel, run kerpack
9) run rdsave to store kolibri.img back to your disk.
10) reboot.

the whole procedure takes less than 2 minutes (what other OS has a faster modify-recompile-test routine for itself ?!)
bigttcool2
Posts: 6
Joined: Sun Sep 12, 2010 7:20 pm

Re: Kernel Editing Problems

Post by bigttcool2 »

That makes sense, but I'm using virtual box that doesn't have access to writing the IMG file, or to anything except the ramdrive. Can I do the uncompressed version in the ISO file? It would go faster and would beable to grow. How would I edit the ISO file so that VirtualBox can read it. Any time I try, it fails. Is there something better than MagicISO?
SoUrcerer
Posts: 2810
Joined: Mon Sep 24, 2007 11:11 am

Re: Kernel Editing Problems

Post by SoUrcerer »

As for me, I used trial version of WinImage. Now I use linux :)
bigttcool2
Posts: 6
Joined: Sun Sep 12, 2010 7:20 pm

Re: Kernel Editing Problems

Post by bigttcool2 »

Linux has the native ability to read and write to ISO images?
I have Ubuntu 10.04 on another Virtual Box.
User avatar
<Lrz>
Kernel Optimizer
Posts: 657
Joined: Mon Jan 16, 2006 7:58 pm

Re: Kernel Editing Problems

Post by <Lrz> »

Maybe this way will be usefull for you:
So you need some Windows, Kerpack, KlbrInWin.
1) Run config.exe in ../KlbrInWin/comfig.exe. See way for FDD (for example ../Kolibri/A).
2) Make a new kernel (run the ../trunk/build.bat), copy kernel.mnt in ../Kolibri/A( fdd's way).
3) Copy Kerpack in ../Kolibri/A( fdd's way).
4) Run Kerpack over KlbrInWin.
The end. Your kernel will be packed.
User avatar
diamond
Kernel Developer
Posts: 1600
Joined: Mon Nov 28, 2005 8:00 pm

Re: Kernel Editing Problems

Post by diamond »

art_zh wrote:5) load kernel.asm with tinypad text editor (starts by default when you choose an .asm-file),
6) in tinypad menu click Run, then Compile.
7) return to KFAR: a new file KERNEL should appear. Copy it to the left panel (<F5>) as /rd/1/kernel.mnt
Why so complicated? KFar -> locate kernel.asm -> <Menu> button -> Compile instead of all these steps.
bigttcool2 wrote:Can I do the uncompressed version in the ISO file? It would go faster and would beable to grow. How would I edit the ISO file so that VirtualBox can read it. Any time I try, it fails. Is there something better than MagicISO?
No. The LiveCD ISO is not intended for editing.
bigttcool2
Posts: 6
Joined: Sun Sep 12, 2010 7:20 pm

Re: Kernel Editing Problems

Post by bigttcool2 »

Why can't I edit the LiveCD ISO?

A) Whats the difference?
B) Where's the source code?

I would like to use a CD because I can do more things and its more practical than to use a floppy drive. Right?
User avatar
dunkaist
Mentor
Posts: 729
Joined: Mon Oct 19, 2009 10:58 am
Has thanked: 4 times
Been thanked: 2 times

Re: Kernel Editing Problems

Post by dunkaist »

Hi, bigttcool2!
bigttcool2 wrote:Why can't I edit the LiveCD ISO?

A) Whats the difference?
This is because KolibriOS boots from CD using floppy emulation. Such approach gives some advantages but the other side is (as you mentioned above) difficulties in editing. Do not despair! You really _can_ get *.iso image working (bootable). All you need is:
1). to edit floppy image (e.g. kolibri.img);
2). to place files you would like to have on CD in some folder;
3). make an *.iso image (using corresponding software) from this folder with kolibri.img as 'boot image' or something else depending on your software.
bigttcool2 wrote:B) Where's the source code?
You can get all the source code from KolibriOS svn repository (svn co svn://kolibrios.org) using subversion (if you are familiar, the latest snapshot) or just download this archive.
bigttcool2 wrote:I would like to use a CD because I can do more things and its more practical than to use a floppy drive. Right?
AFAIK, most KolibriOS developers use floppy images because they are convenient to work with. All depends on your target.
anstein99
Posts: 24
Joined: Tue Jan 11, 2011 10:56 am

Re: Kernel Editing Problems

Post by anstein99 »

Well thanks, but what is 'official distro'?
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest