Mailing List Archive

dom0 kernel crashes with kernel panic during boot
Hi there,
I've just built xen & dom0 kernel from gentoo ebuilds (bugs.gentoo.org),
but my dom0 kernel crashes during boot.
Any help is appreciated. Console log, grub.conf and .config are included,
machine is celeron/466, 128MB of RAM.

Console log:

Linux version 2.6.9-xen0 (root@zirafa) (gcc version 3.3.4 20040623 (Gentoo
Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #2 Sun Nov 14 19:19:39 CET 2004
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000002000000 (usable)
32MB LOWMEM available.
DMI not present.
Built 1 zonelists
Kernel command line: root=/dev/hda3 ro console=ttyS0,115200n8
Initializing CPU#0
PID hash table entries: 256 (order: 8, 4096 bytes)
Xen reported: 467.733 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Linux version 2.6.9-xen0 (root@zirafa) (gcc version 3.3.4 20040623 (Gentoo
Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #2 Sun Nov 14 19:19:39 CET 2004
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000002000000 (usable)
32MB LOWMEM available.
DMI not present.
Built 1 zonelists
Kernel command line: root=/dev/hda3 ro console=ttyS0,115200n8
Initializing CPU#0
PID hash table entries: 256 (order: 8, 4096 bytes)
Xen reported: 467.733 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Unable to handle kernel NULL pointer dereference at virtual address
00000000
printing eip:
c010ad74
*pde = ma 00000000 pa 55555000
[<c0107a1b>] evtchn_do_upcall+0xab/0x110

[<c010c8bb>] hypervisor_callback+0x33/0x49

[<c010796a>] force_evtchn_callback+0xa/0x10

[<c02f0760>] start_kernel+0x170/0x190

[<c02f0350>] unknown_bootoption+0x0/0x180

Oops: 0002 [#1]
PREEMPT
Modules linked in:
CPU: 0
EIP: 0061:[<c010ad74>] Not tainted VLI
EFLAGS: 00211286 (2.6.9-xen0)
EIP is at do_IRQ+0x94/0x1b0
eax: c02b1d60 ebx: 00000ff4 ecx: c02b4880 edx: c02b4880
esi: 00000000 edi: c02ef000 ebp: c02eb800 esp: c02eff5c
ds: 0069 es: 0069 ss: 0069
Process swapper (pid: 0, threadinfo=c02ef000 task=c02b1d60)
Stack: 00000080 c011cbde c031ed40 c02b4880 00000008 00000000 fbffc000
00000000
c0107a1b 00000080 c02effa8 00000001 c02effa8 00000000 c033e200
c0310220
c02ef000 c010c8bb c02effa8 00000000 c02b5b84 00000000 c033e200
c0310220
Call Trace:
[<c011cbde>] __call_console_drivers+0x5e/0x60

[<c0107a1b>] evtchn_do_upcall+0xab/0x110

[<c010c8bb>] hypervisor_callback+0x33/0x49

[<c010796a>] force_evtchn_callback+0xa/0x10

[<c02f0760>] start_kernel+0x170/0x190

[<c02f0350>] unknown_bootoption+0x0/0x180

Code: 0c 85 c9 74 7c 89 df 8b 35 00 d0 30 c0 ff 4f 14 8b 47 08 a8 08 0f 85
16 01 00 00 39 f7 0f 84 ed 00 00 00 8b 07 8d 9e f4 0f 00 00 <89> 06 89 e0
89 46 30 8b 54 24 0c 89 96 fc 0f 00 00 8b 44 24 28
<0>Kernel panic - not syncing: Fatal exception in interrupt

------------------------- end of log ----------------

my grub.conf looks like:
--- begin ---
title Xen 2.0 / XenLinux 2.6.9
kernel (hd0,0)/xen.gz dom0_mem=32768 com0=115200,8n1
module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro console=ttyS0,115200n8
--- end ---

and .config of dom0 (cleaned up by `grep -Ev "^#"
/usr/src/linux-2.6.9-xen0/.config | cat -s`):

--- begin ---
CONFIG_XEN=y
CONFIG_ARCH_XEN=y
CONFIG_NO_IDLE_HZ=y

CONFIG_XEN_PRIVILEGED_GUEST=y
CONFIG_XEN_PHYSDEV_ACCESS=y
CONFIG_XEN_BLKDEV_BACKEND=y
CONFIG_XEN_NETDEV_BACKEND=y
CONFIG_XEN_WRITABLE_PAGETABLES=y
CONFIG_XEN_SCRUB_PAGES=y
CONFIG_FOREIGN_PAGES=y
CONFIG_HAVE_ARCH_DEV_ALLOC_SKB=y
CONFIG_X86=y

CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN=y
CONFIG_BROKEN_ON_SMP=y

CONFIG_LOCALVERSION=""
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_BSD_PROCESS_ACCT_V3=y
CONFIG_SYSCTL=y
CONFIG_LOG_BUF_SHIFT=14
CONFIG_HOTPLUG=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_KALLSYMS=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
CONFIG_SHMEM=y

CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_OBSOLETE_MODPARM=y
CONFIG_KMOD=y

CONFIG_XENARCH="i386"
CONFIG_MMU=y
CONFIG_UID16=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_MPENTIUMII=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_L1_CACHE_SHIFT=5
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_PREEMPT=y
CONFIG_X86_CPUID=y

CONFIG_NOHIGHMEM=y
CONFIG_HAVE_DEC_LOCK=y

CONFIG_PCI=y
CONFIG_PCI_DIRECT=y

CONFIG_EARLY_PRINTK=y
CONFIG_4KSTACKS=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_X86_STD_RESOURCES=y
CONFIG_PC=y

CONFIG_BINFMT_ELF=y

CONFIG_PREVENT_FIRMWARE_BUILD=y

CONFIG_BLK_CPQ_CISS_DA=y
CONFIG_BLK_DEV_LOOP=m

CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=m
CONFIG_IDE_TASK_IOCTL=y

CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y

CONFIG_NET=y

CONFIG_PACKET=y
CONFIG_UNIX=y
CONFIG_INET=y

CONFIG_NETFILTER=y
CONFIG_BRIDGE_NETFILTER=y

CONFIG_IP_NF_IPTABLES=m

CONFIG_BRIDGE=y

CONFIG_NETDEVICES=y

CONFIG_NET_ETHERNET=y
CONFIG_MII=y

CONFIG_NET_TULIP=y
CONFIG_TULIP=y
CONFIG_NET_PCI=y
CONFIG_PCNET32=y
CONFIG_8139TOO=m
CONFIG_8139TOO_PIO=y

CONFIG_INPUT=y

CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768

CONFIG_SOUND_GAMEPORT=y
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y

CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y

CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y

CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=2

CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

CONFIG_VGA_CONSOLE=y
CONFIG_DUMMY_CONSOLE=y

CONFIG_EXT2_FS=y
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_JBD=y
CONFIG_FS_MBCACHE=y
CONFIG_FS_POSIX_ACL=y

CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_ZISOFS_FS=m

CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"

CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
CONFIG_TMPFS=y
CONFIG_RAMFS=y

CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=m
CONFIG_SUNRPC=m

CONFIG_MSDOS_PARTITION=y

CONFIG_NLS=m
CONFIG_NLS_DEFAULT="utf-8"
CONFIG_NLS_CODEPAGE_437=m
CONFIG_NLS_CODEPAGE_850=m
CONFIG_NLS_CODEPAGE_852=m
CONFIG_NLS_CODEPAGE_1250=m
CONFIG_NLS_ISO8859_1=m
CONFIG_NLS_ISO8859_2=m
CONFIG_NLS_UTF8=m

CONFIG_CRC32=y
CONFIG_ZLIB_INFLATE=m
--- end ---

--
Jan Kundrat
jan.kundrat@fzu.cz



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
RE: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> I've just built xen & dom0 kernel from gentoo ebuilds
> (bugs.gentoo.org), but my dom0 kernel crashes during boot.
> Any help is appreciated. Console log, grub.conf and .config
> are included, machine is celeron/466, 128MB of RAM.

The 'unknown bootoption' is quite interesting. Please can you see what
happens if you remove the ",15200n8".

Thanks,
Ian


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
RE: dom0 kernel crashes with kernel panic during boot [ In reply to ]
On 2004-11-15, 09:42, Ian Pratt wrote:

>
> > I've just built xen & dom0 kernel from gentoo ebuilds
> > (bugs.gentoo.org), but my dom0 kernel crashes during boot.
> > Any help is appreciated. Console log, grub.conf and .config
> > are included, machine is celeron/466, 128MB of RAM.
>
> The 'unknown bootoption' is quite interesting. Please can you see what
> happens if you remove the ",15200n8".

",115200n8", I assume. This error occured also only with "ro
root=/dev/hda3", without serial console, but dump was longer than one
screen. Anyway, here it goes, including some garbage at the beggining
which could be caused by grub attempting to use the same serial port:

./bin/miniterm -b9600
** ctrl-b quits miniterm **
ÏÍýÍåLinux version 2.6.9-xen0 (root@zirafa) (gcc version 3.3.4 20040623
(GentooLinux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #2 Sun Nov 14 19:19:39 CET
2004
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000002000000 (usable)
32MB LOWMEM available.
DMI not present.
Built 1 zonelists
Kernel command line: root=/dev/hda3 ro console=ttyS0
Initializing CPU#0
PID hash table entries: 256 (order: 8, 4096 bytes)
Xen reported: 467.735 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Linux version 2.6.9-xen0 (root@zirafa) (gcc version 3.3.4 20040623 (Gentoo
Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)) #2 Sun Nov 14 19:19:39 CET 2004
BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000002000000 (usable)
32MB LOWMEM available.
DMI not present.
Built 1 zonelists
Kernel command line: root=/dev/hda3 ro console=ttyS0
Initializing CPU#0
PID hash table entries: 256 (order: 8, 4096 bytes)
Xen reported: 467.735 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Unable to handle kernel NULL pointer dereference at virtual address
00000000
printing eip:
c010ad74
*pde = ma 00000000 pa 55555000
[<c0107a1b>] evtchn_do_upcall+0xab/0x110

[<c010c8bb>] hypervisor_callback+0x33/0x49

[<c010796a>] force_evtchn_callback+0xa/0x10

[<c02f0760>] start_kernel+0x170/0x190

[<c02f0350>] unknown_bootoption+0x0/0x180

Oops: 0002 [#1]
PREEMPT
Modules linked in:
CPU: 0
EIP: 0061:[<c010ad74>] Not tainted VLI
EFLAGS: 00211286 (2.6.9-xen0)
EIP is at do_IRQ+0x94/0x1b0
eax: c02b1d60 ebx: 00000ff4 ecx: c02b4880 edx: c02b4880
esi: 00000000 edi: c02ef000 ebp: c02eb800 esp: c02eff5c
ds: 0069 es: 0069 ss: 0069
Process swapper (pid: 0, threadinfo=c02ef000 task=c02b1d60)
Stack: 00000080 c011cbde c031ed40 c02b4880 00000008 00000000 fbffc000
00000000
c0107a1b 00000080 c02effa8 00000001 c02effa8 00000000 c033e200
c0310220
c02ef000 c010c8bb c02effa8 00000000 c02b5b84 00000000 c033e200
c0310220
Call Trace:
[<c011cbde>] __call_console_drivers+0x5e/0x60

[<c0107a1b>] evtchn_do_upcall+0xab/0x110

[<c010c8bb>] hypervisor_callback+0x33/0x49

[<c010796a>] force_evtchn_callback+0xa/0x10

[<c02f0760>] start_kernel+0x170/0x190

[<c02f0350>] unknown_bootoption+0x0/0x180

Code: 0c 85 c9 74 7c 89 df 8b 35 00 d0 30 c0 ff 4f 14 8b 47 08 a8 08 0f 85
16 01 00 00 39 f7 0f 84 ed 00 00 00 8b 07 8d 9e f4 0f 00 00 <89> 06 89 e0
89 46 30 8b 54 24 0c 89 96 fc 0f 00 00 8b 44 24 28
<0>Kernel panic - not syncing: Fatal exception in interrupt



My vmlinux has been built using DistCC, so I'll recompile it once again.
Current vmlinux is available at
http://home-hep.fzu.cz/kundratj/dev/xen/vmlinux-2.6.9-xen0-distcc
other interresting files could be
http://home-hep.fzu.cz/kundratj/dev/xen/System.map-2.6.9-xen0-distcc
http://home-hep.fzu.cz/kundratj/dev/xen/xen-syms
http://home-hep.fzu.cz/kundratj/dev/xen/xen.gz

--
Jan Kundrat
jan.kundrat@fzu.cz



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> On 2004-11-15, 09:42, Ian Pratt wrote:
>
> >
> > > I've just built xen & dom0 kernel from gentoo ebuilds
> > > (bugs.gentoo.org), but my dom0 kernel crashes during boot.
> > > Any help is appreciated. Console log, grub.conf and .config
> > > are included, machine is celeron/466, 128MB of RAM.
> >
> > The 'unknown bootoption' is quite interesting. Please can you see what
> > happens if you remove the ",15200n8".
>
> ",115200n8", I assume. This error occured also only with "ro
> root=/dev/hda3", without serial console, but dump was longer than one
> screen. Anyway, here it goes, including some garbage at the beggining
> which could be caused by grub attempting to use the same serial port:

We've never tried XenLinux with an SSP/PIE-enabled version of GCC.
You might want to try adding
"-nopie -fno-stack-protector -fno-stack-protector-all"
to Linux's CFLAGS in the Linux root Makefile.

Although perhaps these are already disabled -- Xen itself doesn't
build at all with PIE or SSP turned on.

-- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> We've never tried XenLinux with an SSP/PIE-enabled version of GCC.
> You might want to try adding
> "-nopie -fno-stack-protector -fno-stack-protector-all"
> to Linux's CFLAGS in the Linux root Makefile.
>
> Although perhaps these are already disabled -- Xen itself doesn't
> build at all with PIE or SSP turned on.

still crashing. vmlinux is available, see my second message.

CFLAGS:

--- /usr/src/linux-2.6.9-xen0/Makefile 2004-11-15 17:37:04.000000000
+0100
+++ /usr/src/linux-2.6.9-xen0/Makefile.original 2004-11-15
17:34:28.000000000 +0100
@@ -204,8 +204,7 @@

HOSTCC = gcc
HOSTCXX = g++
-#HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-nopie -fno-stack-protector -fno-stack-protector-all
+HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
HOSTCXXFLAGS = -O2

# Decide whether to build built-in, modular, or both.
@@ -346,9 +345,7 @@
CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)

CFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs \
- -fno-strict-aliasing -fno-common \
- -nopie -fno-stack-protector -fno-stack-protector-all
-
+ -fno-strict-aliasing -fno-common
AFLAGS := -D__ASSEMBLY__

export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION LOCALVERSION
KERNELRELEASE \

--
Jan Kundrat
jan.kundrat@fzu.cz



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
and of course the patch should be in the opposite direction :-)

--
Jan Kundrat
jan.kundrat@fzu.cz



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> > We've never tried XenLinux with an SSP/PIE-enabled version of GCC.
> > You might want to try adding
> > "-nopie -fno-stack-protector -fno-stack-protector-all"
> > to Linux's CFLAGS in the Linux root Makefile.
> >
> > Although perhaps these are already disabled -- Xen itself doesn't
> > build at all with PIE or SSP turned on.
>
> still crashing. vmlinux is available, see my second message.

Are you building with CONFIG_4KSTACKS? Can you please try without?
I suspect that the config option is broken... :-(

-- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> Are you building with CONFIG_4KSTACKS? Can you please try without?
> I suspect that the config option is broken... :-(

yes, CONFIG_4KSTACKS=y. I'll recompile...

--
Jan Kundrat
jan.kundrat@fzu.cz



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> Are you building with CONFIG_4KSTACKS? Can you please try without?
> I suspect that the config option is broken... :-(

ok, building without CONFIG_4KSTACKS fixed that panic, but I have other
problem - is it possible to share one serial port between grub, xen itself
and dom0?

It panics also if I use

kernel (hd0,0)/xen.gz dom0_mem=32768
module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro console=ttyS0,115200

my grub.conf contains

serial --unit=0 --speed=115200
terminal serial console

the (stripped) message is:

devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Limiting direct PCI/PCI transfers.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 6 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
HP CISS Driver (v 2.6.2)
pcnet32.c:v1.30i 06.28.2004 tsbogend@alpha.franken.de
Kernel panic - not syncing: Couldn't register Xen virtual console driver
as ttyS


--
Jan Kundrat
jan.kundrat@fzu.cz



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
RE: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> have other problem - is it possible to share one serial port
> between grub, xen itself and dom0?

The easiest way to do this is to simply not build a hardware serial
driver into dom0, but use the ttyS0 driver provided by the xen console
driver.

Just add "com1=115200,8n1" to your Xen command line, then your grub and
dom0 setups should work fine.

Alternatively, you could have dom0 drive the serial line directly, but
you'll have to tell the xencons driver in dom0 not to grab the ttyS
name, using "xencons=off".

One for the FAQ...

Ian

> It panics also if I use
>
> kernel (hd0,0)/xen.gz dom0_mem=32768
> module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro
> console=ttyS0,115200
>
> my grub.conf contains
>
> serial --unit=0 --speed=115200
> terminal serial console
>
> the (stripped) message is:
>
> devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
> devfs: boot_options: 0x1
> Limiting direct PCI/PCI transfers.
> serio: i8042 AUX port at 0x60,0x64 irq 12
> serio: i8042 KBD port at 0x60,0x64 irq 1
> Serial: 8250/16550 driver $Revision: 1.90 $ 6 ports, IRQ
> sharing disabled ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A HP
> CISS Driver (v 2.6.2) pcnet32.c:v1.30i 06.28.2004
> tsbogend@alpha.franken.de Kernel panic - not syncing:
> Couldn't register Xen virtual console driver as ttyS
>
>
> --
> Jan Kundrat
> jan.kundrat@fzu.cz
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>
>


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
Have you compiled serial port support into the dom0 kernel - you shouldn't
build this driver in or it will conflict with Xen's use of the port.

If you just build in the standard Xen console driver, it will register as
ttyS0 and will play nicely with Xen.

HTH,
Mark

On Monday 15 Nov 2004 19:52, Jan Kundrat wrote:
> > Are you building with CONFIG_4KSTACKS? Can you please try without?
> > I suspect that the config option is broken... :-(
>
> ok, building without CONFIG_4KSTACKS fixed that panic, but I have other
> problem - is it possible to share one serial port between grub, xen itself
> and dom0?
>
> It panics also if I use
>
> kernel (hd0,0)/xen.gz dom0_mem=32768
> module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro console=ttyS0,115200
>
> my grub.conf contains
>
> serial --unit=0 --speed=115200
> terminal serial console
>
> the (stripped) message is:
>
> devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
> devfs: boot_options: 0x1
> Limiting direct PCI/PCI transfers.
> serio: i8042 AUX port at 0x60,0x64 irq 12
> serio: i8042 KBD port at 0x60,0x64 irq 1
> Serial: 8250/16550 driver $Revision: 1.90 $ 6 ports, IRQ sharing disabled
> ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
> HP CISS Driver (v 2.6.2)
> pcnet32.c:v1.30i 06.28.2004 tsbogend@alpha.franken.de
> Kernel panic - not syncing: Couldn't register Xen virtual console driver
> as ttyS


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
RE: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> > have other problem - is it possible to share one serial port
> > between grub, xen itself and dom0?
>
> The easiest way to do this is to simply not build a hardware serial
> driver into dom0, but use the ttyS0 driver provided by the xen console
> driver.
>
> Just add "com1=115200,8n1" to your Xen command line, then your grub and
> dom0 setups should work fine.
>

ok, I'll try it. Thanks for your help.

> Alternatively, you could have dom0 drive the serial line directly, but
> you'll have to tell the xencons driver in dom0 not to grab the ttyS
> name, using "xencons=off".
>
> One for the FAQ...
>
> Ian
>
> > It panics also if I use
> >
> > kernel (hd0,0)/xen.gz dom0_mem=32768
> > module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro
> > console=ttyS0,115200
> >
> > my grub.conf contains
> >
> > serial --unit=0 --speed=115200
> > terminal serial console
> >
> > the (stripped) message is:
> >
> > devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
> > devfs: boot_options: 0x1
> > Limiting direct PCI/PCI transfers.
> > serio: i8042 AUX port at 0x60,0x64 irq 12
> > serio: i8042 KBD port at 0x60,0x64 irq 1
> > Serial: 8250/16550 driver $Revision: 1.90 $ 6 ports, IRQ
> > sharing disabled ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A HP
> > CISS Driver (v 2.6.2) pcnet32.c:v1.30i 06.28.2004
> > tsbogend@alpha.franken.de Kernel panic - not syncing:
> > Couldn't register Xen virtual console driver as ttyS
> >
> >
> > --
> > Jan Kundrat
> > jan.kundrat@fzu.cz
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: InterSystems CACHE
> > FREE OODBMS DOWNLOAD - A multidimensional database that combines
> > robust object and relational technologies, making it a perfect match
> > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xen-devel
> >
> >
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>
>
>

--
Jan Kundrat
jan.kundrat@fzu.cz



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
RE: dom0 kernel crashes with kernel panic during boot [ In reply to ]
ok, it's working now. Thanks for your help.

kernel (hd0,0)/xen.gz dom0_mem=32768 com0=115200,8n1 com1=115200,8n1
module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro console=ttyS0,115200n8



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
You can simplify your parameters a little bit...

> ok, it's working now. Thanks for your help.
>
> kernel (hd0,0)/xen.gz dom0_mem=32768 com0=115200,8n1 com1=115200,8n1
^^^^^^^^^^^^^^^
This bit is meaningless.
There is no 'com0'. The two standard serial lines are 'com1' and 'com2'.


> module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro console=ttyS0,115200n8
^^^^^^^^^
This bit is actually
unnecessary.
The virtual console driver doesn't interpret extra parameters, even
when it is impersonating ttyS0.

-- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> ok, it's working now. Thanks for your help.
>
> kernel (hd0,0)/xen.gz dom0_mem=32768 com0=115200,8n1 com1=115200,8n1
> module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro console=ttyS0,115200n8

Unless I'm much mistaken, 'com0' is meaningless - the first
serial port is com1.

I'm afraid our syntax for configuring the serial port is a bit
confusing... we should probably have gone for something more akin
to Linux's console= line. I guess we'd consider a patch to add an
alternative syntax ;-)

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> > kernel (hd0,0)/xen.gz dom0_mem=32768 com0=115200,8n1 com1=115200,8n1
> ^^^^^^^^^^^^^^^
> This bit is meaningless.
> There is no 'com0'. The two standard serial lines are 'com1' and 'com2'.
>
oh, thanks. I've been probably thinking in unix terms where everything
starts at zero :-)

> > module (hd0,0)/vmlinuz-2.6.9-xen0 root=/dev/hda3 ro console=ttyS0,115200n8
> ^^^^^^^^^
> This bit is actually
> unnecessary.
> The virtual console driver doesn't interpret extra parameters, even
> when it is impersonating ttyS0.

fixed, too.
Many thanks for excellent feedback :-)

j.



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> > Are you building with CONFIG_4KSTACKS? Can you please try without?
> > I suspect that the config option is broken... :-(
>
> yes, CONFIG_4KSTACKS=y. I'll recompile...

By the way - CONFIG_4KSTACKS is now fixed, and it is added rto the
default configs for xen0 and xenU.

-- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
On Tue, Nov 16, 2004 at 12:17:41PM +0000, Keir Fraser wrote:

> By the way - CONFIG_4KSTACKS is now fixed, and it is added rto the
> default configs for xen0 and xenU.

Why is this the default? For some people this might still cause
problems.



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> On Tue, Nov 16, 2004 at 12:17:41PM +0000, Keir Fraser wrote:
>
> > By the way - CONFIG_4KSTACKS is now fixed, and it is added rto the
> > default configs for xen0 and xenU.
>
> Why is this the default? For some people this might still cause
> problems.

Rumour has it that FC3 kernels use it by default. If not, then I
guess we should revert. At least this way it gets tested in the
unstable tree ;-)

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
On Wed, Nov 17, 2004 at 02:36:58AM +0000, Ian Pratt wrote:

> Rumour has it that FC3 kernels use it by default.

They do, before FC3 even.

And it caused problems for some people (in areas that RH doesn't
support).

The worst cases might be all fixed by now --- but I'm not certain of
that.

> If not, then I guess we should revert. At least this way it gets
> tested in the unstable tree ;-)

Doing something because FC<n> does it isn't a good enough reason IMO.
There might be good reasons for it, but that isn't one.


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
What are the issues? I know some binary drivers don't like it (e.g.,
nvidia) but they don't work on Xen anyway.

-- Keir

> On Wed, Nov 17, 2004 at 02:36:58AM +0000, Ian Pratt wrote:
>
> > Rumour has it that FC3 kernels use it by default.
>
> They do, before FC3 even.
>
> And it caused problems for some people (in areas that RH doesn't
> support).
>
> The worst cases might be all fixed by now --- but I'm not certain of
> that.
>
> > If not, then I guess we should revert. At least this way it gets
> > tested in the unstable tree ;-)
>
> Doing something because FC<n> does it isn't a good enough reason IMO.
> There might be good reasons for it, but that isn't one.



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> What are the issues? I know some binary drivers don't like it (e.g.,
> nvidia) but they don't work on Xen anyway.
>
> -- Keir

if I'm not mistaken, CONFIG_4KSTACKS disables reiser4 support (at least on
vanilla 2.6.8.1, not sure about Xen). Not a problem for me, though.

>
> > On Wed, Nov 17, 2004 at 02:36:58AM +0000, Ian Pratt wrote:
> >
> > > Rumour has it that FC3 kernels use it by default.
> >
> > They do, before FC3 even.
> >
> > And it caused problems for some people (in areas that RH doesn't
> > support).
> >
> > The worst cases might be all fixed by now --- but I'm not certain of
> > that.
> >
> > > If not, then I guess we should revert. At least this way it gets
> > > tested in the unstable tree ;-)
> >
> > Doing something because FC<n> does it isn't a good enough reason IMO.
> > There might be good reasons for it, but that isn't one.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>
>

--
Jan Kundrat
jan.kundrat@fzu.cz



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> > What are the issues? I know some binary drivers don't like it (e.g.,
> > nvidia) but they don't work on Xen anyway.
> >
> > -- Keir
>
> if I'm not mistaken, CONFIG_4KSTACKS disables reiser4 support (at least on
> vanilla 2.6.8.1, not sure about Xen). Not a problem for me, though.

reiser4 is not in the main tree. It's still in only the -mm tree.
The reiserfs version in 2.6.9 is not disabled by the CONFIG_$kSTACKS
option.

-- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> > > What are the issues? I know some binary drivers don't like it (e.g.,
> > > nvidia) but they don't work on Xen anyway.
> > >
> > > -- Keir
> >
> > if I'm not mistaken, CONFIG_4KSTACKS disables reiser4 support (at least on
> > vanilla 2.6.8.1, not sure about Xen). Not a problem for me, though.
>
> reiser4 is not in the main tree. It's still in only the -mm tree.
> The reiserfs version in 2.6.9 is not disabled by the CONFIG_$kSTACKS
> option.

ok, maybe it was in some -gentoo patched kernel or somewhere else, who
knows, but I bet I've seen it _somewhere_ and it has been affected by
CONFIG_4KSTACKS. I'm almost sure.



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: dom0 kernel crashes with kernel panic during boot [ In reply to ]
> > > > What are the issues? I know some binary drivers don't like it (e.g.,
> > > > nvidia) but they don't work on Xen anyway.
> > > >
> > > > -- Keir
> > >
> > > if I'm not mistaken, CONFIG_4KSTACKS disables reiser4 support (at least on
> > > vanilla 2.6.8.1, not sure about Xen). Not a problem for me, though.
> >
> > reiser4 is not in the main tree. It's still in only the -mm tree.
> > The reiserfs version in 2.6.9 is not disabled by the CONFIG_$kSTACKS
> > option.
>
> ok, maybe it was in some -gentoo patched kernel or somewhere else, who
> knows, but I bet I've seen it _somewhere_ and it has been affected by
> CONFIG_4KSTACKS. I'm almost sure.
>

I believe that reiser4 has already been fixed in -mm so that it works
with 4k stacks. So when it hits mainline in 2.6.10/2.6.11 timeframe
it'll not be an issue.

-- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel

1 2  View All