Message-ID: <3496DD9F.2AA8@student.uni-ulm.de>
Date: Tue, 16 Dec 1997 11:59:27 -0800
From: Gunther Schulz <Gunther.Schulz@student.uni-ulm.de>
Organization: Universitt Ulm
X-Mailer: Mozilla 2.0 (Win16; I)
MIME-Version: 1.0
Newsgroups: comp.os.minix
Subject: Minix vmd kernel hacking/tracking
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: p1ws14.rz.uni-ulm.de
Lines: 32
Path: octarine.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!newsfeed.ecrc.net!blackbush.xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!p1ws14.rz.uni-ulm.de
Xref: octarine.cc.adfa.oz.au comp.os.minix:29645

Urgently need some tips for kernel hacking/tracking


Hi,
I'm trying to run Minix vmd on my HP Omnibook. I use Minix vmd and not 
the normal Minix, as only Minix vmd supports a virtual dos drive and I 
have no possibility to create a Minix partition on my notebook (no 
floppy-drive -> no boot disk!)

Now my problem: When I boot Minix vmd with dosboot.com monitor starts.
Then I boot the kernel. The kernel is executed at least untill the 'main' 
routine in /usr/src/sys/kernel/i386/main.c until the line 'restart' (I 
put in some printf's and got all messages...). Even the kb_init procedure 
is executed correctly (set debug=1 in monitor gave me some messages). The 
routines main.c in /usr/src/sys/mm/main.c and /usr/src/sys/fs/main.c and 
the init procedure aren't executed at all.

What happens after that restart? I suppose, the system runs in a 'single 
tasking' mode until that point, then all processes from tasktab are 
executed, now working in real multitasking mode. I also think the Init 
process has the PID=1. What process owns number 0?  (I got the message 
'vm386.c 2442: process 0 has a page fault in the zero data page, offset 
0x0') As the code in vm386.c is called by lot's of procs I don't know, at 
which point the program really caused an error!

How can I find the point where the kernel crashes? 
What debug-switches do exist?
What is process with PID=0, better, which code belongs to this process?

Many thanks for your help!!!

	Greetings, Gunther Schulz
