Board.KolibriOS.org

Official KolibriOS board
It is currently Mon Oct 26, 2020 9:17 pm

All times are UTC+03:00




Post new topic  Reply to topic  [ 21 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Kernel Editing Problems
PostPosted: Sun Sep 12, 2010 7:34 pm 
Offline

Joined: Sun Sep 12, 2010 7:20 pm
Posts: 6
'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


Top
   
PostPosted: Sun Sep 12, 2010 9:10 pm 
Offline

Joined: Thu Aug 13, 2009 10:39 am
Posts: 54
Use kerpack to compress the kernel instead of kpack


Top
   
PostPosted: Sun Sep 12, 2010 9:19 pm 
Offline

Joined: Sun Sep 12, 2010 7:20 pm
Posts: 6
I'm using windows to compile, not kolibri


Top
   
PostPosted: Sun Sep 12, 2010 9:47 pm 
kpack only for applications and driver - it is not for kernel.mnt


Top
   
PostPosted: Mon Sep 13, 2010 12:58 am 
Offline

Joined: Sun Sep 12, 2010 7:20 pm
Posts: 6
I see. Then how do I compile kernel.mnt on windows with kerpack? My console won't let me execute it (MS-DOS)


Top
   
PostPosted: Mon Sep 13, 2010 8:59 am 
You can use kernel.mnt without packing. If you need more space in kolibri.img - just delete any games or demo files.


Top
   
PostPosted: Mon Sep 13, 2010 12:13 pm 
Offline
Kernel Developer
User avatar

Joined: Fri Aug 14, 2009 1:46 am
Posts: 1412
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 ?!)


Top
   
PostPosted: Wed Sep 15, 2010 12:20 am 
Offline

Joined: Sun Sep 12, 2010 7:20 pm
Posts: 6
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?


Top
   
PostPosted: Wed Sep 15, 2010 10:26 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
As for me, I used trial version of WinImage. Now I use linux :)


Top
   
PostPosted: Thu Sep 16, 2010 12:12 am 
Offline

Joined: Sun Sep 12, 2010 7:20 pm
Posts: 6
Linux has the native ability to read and write to ISO images?
I have Ubuntu 10.04 on another Virtual Box.


Top
   
PostPosted: Thu Sep 16, 2010 4:00 am 
Offline
Kernel Optimizer
User avatar

Joined: Mon Jan 16, 2006 7:58 pm
Posts: 657
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.


Top
   
PostPosted: Fri Oct 08, 2010 12:00 am 
Offline
Kernel Developer
User avatar

Joined: Mon Nov 28, 2005 8:00 pm
Posts: 1601
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.


Top
   
PostPosted: Sun Nov 28, 2010 6:12 pm 
Offline

Joined: Sun Sep 12, 2010 7:20 pm
Posts: 6
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?


Top
   
PostPosted: Sun Nov 28, 2010 7:16 pm 
Offline
Mentor
User avatar

Joined: Mon Oct 19, 2009 10:58 am
Posts: 518
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.


Top
   
PostPosted: Fri Apr 29, 2011 4:27 pm 
Offline

Joined: Tue Jan 11, 2011 10:56 am
Posts: 24
Well thanks, but what is 'official distro'?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 21 posts ]  Go to page 1 2 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited