Skip to contentSkip to conversation

How to use ski to debug linux kernel ?

DISCUSSION baswaraj kasture 3 participants 3 messages Feb 8, 2005

lore
Share & tools
lore
#0 lore raw

Does anybody knows how to use sky to debug linux
kernel ?

I used follwing command to debug kernel with ski,

#ski iccvmlinux

but it stops the simulation displaying the message "Halting Simulation" .
Any ideas regarding this ?

Thanx,
-Baswaraj

--- Christian Hildner <[email protected]>

Quoted 104 lines · wrote:

Baswaraj,

if you don't really want to have an initrd, it is better to drop it. Put your scsi driver + mpt into the kernel and then boot without initrd. See my sample config for 2.4.25 kernel. If you have an HP ZX6000 you should be fine using it without modification. If not focus on setting the correct scsi driver.

Christian

Quoted 11 lines · baswaraj kasture

Hi,

I have compiled the kerne 2.4.21. Compilation went well. but i got follwing message at boot time. ======================> >.
.
/lib/mptscsih.o : unresolved symbol mpt_deregister_Rsmp_6fb5ab71 /lib/mptscsih.o : Unresolved symbol mpt_event_register_Rsmp_34ace96b

Quoted 6 lines

ERROR : /bin/insmod exited abnormally
Mounting /proc filesystem
Creating block devices
VFS : cannot open root device "LABEL=/ or 00:00
Please append corrrect "root=" boot option

Kernel panic : VFS : Unable to mount root fs on

00:00

Quoted 38 lines

=====================> >

I have following lines in my elilo.conf ,
------------------------------
#original kernel
image=vmlinuz-2.4.21-9.EL
label=linux
initrd=initrd-2.4.21-9.EL.img
read-only
append="root=LABEL=/"

#icc-O2
image=iccvmlinux
label=icc_O2
initrd=iccinitrd-preBasicc.img
read-only
append="root=LABEL=/"
---------------------------
First one works fine.

Any clues why i am getting this error.

Is it related to SCSI Driver ?

Further "/sbin/mkinitrd -f -v " gave follwing
messge,
===================
.
.
.
Looking for deps of module scsi_mod
Looking for deps of module sd_mod
Looking for deps of module unknown
Looking for deps of module mptbase
Looking for deps of module mptscsih mptbase
Looking for deps of module mptbase

Quoted 8 lines

Looking for deps of module ide-disk
Looking for deps of module ext3
Using modules:
./kernel/drivers/message/fusion/mptbase.o
./kernel/drivers/message/fusion/mptscsih.o
Using loopback device /dev/loop0
/sbin/nash -> /tmp/initrd.EsIvQ9/bin/nash
/sbin/insmod.static ->

/tmp/initrd.EsIvQ9/bin/insmod

`/lib/modules/2.4.21preBasicc/./kernel/drivers/message/fusion/mptbase.o'

Quoted 1 line

-> `/tmp/initrd.EsIvQ9/lib/mptbase.o'

`/lib/modules/2.4.21preBasicc/./kernel/drivers/message/fusion/mptscsih.o'

Quoted 10 lines

-> `/tmp/initrd.EsIvQ9/lib/mptscsih.o'
Loading module mptbase
Loading module mptscsih

===================> >

Any clues will be great help ?

Quoted 8 lines

Thanx,
Baswaraj

__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage

Quoted 8 lines

less.

Quoted 4 lines

http://info.mail.yahoo.com/mail_250

ATTACHMENT part 2 application/x-java-applet

version=1.1.1; name=config

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

#2 lore raw
In reply to baswaraj kasture
Quoted 3 lines · baswaraj kasture

Does anybody knows how to use sky to debug linux
kernel ?

You have to configure the kernel to be used in ski. It is not possible to run a generic kernel under ski since ski only emulates the raw processor and lacks firmware and peripherals. The kernel itself has emulation for these missing things but you have to use CONFIG_IA64_HP_SIM.

Also there is a separate mailing list at
http://www.hpl.hp.com/research/linux/ski/mail.php

On the HP site you'll find also howto docs regarding ski.

Christian

Quoted 11 lines

I used follwing command to debug kernel with ski,

#ski iccvmlinux

but it stops the simulation displaying the message "Halting Simulation" .
Any ideas regarding this ?

Thanx,
-Baswaraj