Skip to contentSkip to conversation

2.6.23-rc8 dies somewhere during boot!?

DISCUSSION Gerhard Pircher 4 participants 12 messages Sep 27, 2007 – Sep 28, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

I'm working on a 2.6.23 kernel for the AmigaOne. I implemented the device tree and the platform setup code, which all compiles fine. I built a cuImage target, loaded it on my target machine with TFTP and booted it. The kernel passes the platform setup code and then dies somewhere in the driver init code (AFAICT), but before the keyboard driver is initialized (thus magic sysrq key doesn't work). Can somebody help me to track down this problem?

I tried to recover the kernel log buffer and attached it to this e-mail.

regards,

Gerhard

Signature · 2 lines
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger

/*
* AmigaOne platform setup
*
* Copyright 2007 Gerhard Pircher ([email protected])
*
* Based on original amigaone_setup.c source code
* Copyright 2003 by Hans-Jörg and Thomas Frieden
* and chrp/setup.c
* Copyright 1995 by Linus Torvalds
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/

#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/user.h>
#include <linux/tty.h>
#include <linux/major.h>
#include <linux/interrupt.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/ide.h>
#include <linux/pci.h>
#include <linux/utsrelease.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/console.h>
#include <linux/seq_file.h>
#include <linux/root_dev.h>
#include <linux/initrd.h>
#include <linux/module.h>
#include <linux/timer.h>

#include <asm/cputable.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/pci-bridge.h>
#include <asm/dma.h>
#include <asm/machdep.h>
#include <asm/irq.h>
#include <asm/sections.h>
#include <asm/time.h>
#include <asm/i8259.h>
#include <asm/system.h>
#include <asm/udbg.h>
#include <asm/vga.h>

extern void amigaone_find_bridges(void);

void amigaone_set_l2cr(void)

{
	/* This disables the L2 hardware prefetch. It is normally disabled and
	 * enabled again within _set_L2CR(), but the L2 prefetch enable is not
	 * compiled in for the AmigaOne.
	 */
	_set_L2CR(_get_L2CR());

	if(((_get_L2CR() & L2CR_L2E) == 0) && (strstr(cmd_line, "l2cr=") == NULL))
	{
		printk("AmigaOne l2cr : L2 cache was not active, activating.\n");
		_set_L2CR(0);
		_set_L2CR(L2CR_L2E | L2CR_L2PE);
	}
}

int amigaone_show_cpuinfo(struct seq_file *m)

{
	struct device_node *root;
	const char *model = "";

	root = of_find_node_by_path("/");
	if (root)
		model = of_get_property(root, "model", NULL);
	seq_printf(m, "machine\t\t: %s\n", model);

	of_node_put(root);

	seq_printf(m, "msscr0\t\t: 0x%08lX\n", mfspr(SPRN_MSSCR0));

	return 0;
}

void __init amigaone_setup_arch(void)

{
	/* init to some ~sane value until calibrate_delay() runs */
	loops_per_jiffy = 50000000/HZ;
#ifdef CONFIG_BLK_DEV_INITRD
	/* this is fine for chrp */
	initrd_below_start_ok = 1;

	if (initrd_start)
		ROOT_DEV = Root_RAM0;
	else
#endif
		ROOT_DEV = Root_SDA2; /* sda2 (sda1 is for the kernel or OS4) */

	/* Enable the L2 cache. */
	amigaone_set_l2cr();

	/* Lookup PCI host bridges */
	/* setup PCI host bridge */
#ifdef CONFIG_PCI_HOST_DRIVER
	for (np = NULL; (np = of_find_node_by_type(np, "pci")) != NULL;)
		articias_setup_pci(np);
#else
	amigaone_find_bridges();

#endif

	/* Uncomment, when U-boot was updated. */

// pci_create_OF_bus_map();

	/* vgacon.c needs to know where VGA memory is mapped. */

// vgacon_remap_base = (unsigned long) ioremap(0xfd000000, 0x01000000);
// conswitchp = &vga_con;

	if (ppc_md.progress)
		ppc_md.progress("Linux/PPC "UTS_RELEASE"\n", 0x0);
}

void __init amigaone_init_IRQ(void)

{
	struct device_node *np, *pic = NULL;
	unsigned long amigaone_int_ack = 0;

	/* Search for ISA interrupt controller. */
	for_each_node_by_type(np, "interrupt-controller")
		if (of_device_is_compatible(np, "pnpPNP,000")) {
			pic = np;
			break;
		}

	BUG_ON(pic == NULL);

	/* Look for interrupt acknowledge address in the PCI root node. */
	for_each_node_by_name(np, "pci") {
		const unsigned int *addrp = of_get_property(np,
			"8259-interrupt-acknowledge", NULL);

		if (addrp == NULL)
			continue;
		amigaone_int_ack = addrp[of_n_addr_cells(np)-1];
		break;
	}
	of_node_put(np);

	if (np == NULL)
		printk(KERN_WARNING "Cannot find PCI interrupt acknowledge"
		       " address, polling\n");

	i8259_init(pic, amigaone_int_ack);
	ppc_md.get_irq = i8259_irq;
	irq_set_default_host(i8259_get_host());
}

void __init amigaone_init(void)
{
#ifdef CONFIG_NVRAM
// amigaone_nvram_init();
#endif

	request_region(0x20,0x20,"pic1");
	request_region(0xa0,0x20,"pic2");
	request_region(0x00,0x20,"dma1");
	request_region(0x40,0x20,"timer");
	request_region(0x80,0x10,"dma page reg");
	request_region(0xc0,0x20,"dma2");
}

/* Copied from U-Boot. */
static inline void soft_restart(unsigned long addr)

{
	/* SRR0 has system reset vector, SRR1 has default MSR value.
	 * rfi restores MSR from SRR1 and sets the PC to the SRR0 value.
	 */
	__asm__ __volatile__ ("mtspr	26, %0"		:: "r" (addr));
	__asm__ __volatile__ ("li	4, (1 << 6)"	::: "r4");
	__asm__ __volatile__ ("mtspr	27, 4");
	__asm__ __volatile__ ("rfi");

	/* Not reached. */
	while(1);
}

void amigaone_restart(char *cmd)

{
    	unsigned long addr;

	local_irq_disable();

	/* Flush and disable I/D cache. */
	__asm__ __volatile__ ("mfspr	3, 1008"	::: "r3");
	__asm__ __volatile__ ("ori	5, 5, 0xcc00"	::: "r5");
	__asm__ __volatile__ ("ori	4, 3, 0xc00"	::: "r4");
	__asm__ __volatile__ ("andc	5, 3, 5"	::: "r5");
	__asm__ __volatile__ ("sync");
	__asm__ __volatile__ ("mtspr	1008, 4");
	__asm__ __volatile__ ("isync");
	__asm__ __volatile__ ("sync");
	__asm__ __volatile__ ("mtspr	1008, 5");
	__asm__ __volatile__ ("isync");
	__asm__ __volatile__ ("sync");

	addr = 0xfff00100;
	soft_restart(addr);
	while(1);
}

static int __init amigaone_probe(void)

{
	unsigned long root = of_get_flat_dt_root();
 	if (of_flat_dt_is_compatible(root, "eyetech,amigaone")) {
	 	/* Coherent memory access cause complete system lockup! Thus
		 * remove it in any case, even if the CPU needs it. We'll
		 * disable the L2 cache prefetch later on.
		 */
	 	cur_cpu_spec->cpu_features &= ~CPU_FTR_NEED_COHERENT;

		ISA_DMA_THRESHOLD = 0x00FFFFFF;
		DMA_MODE_READ = 0x44;
		DMA_MODE_WRITE = 0x48;

		return 1;
	}

	return 0;
}

define_machine(amigaone) {
.name = "AmigaOne",
.probe = amigaone_probe,
.setup_arch = amigaone_setup_arch,
.init = amigaone_init,
.show_cpuinfo = amigaone_show_cpuinfo,
.init_IRQ = amigaone_init_IRQ,
.restart = amigaone_restart,
.calibrate_decr = generic_calibrate_decr,
.progress = udbg_progress,
.phys_mem_access_prot = pci_phys_mem_access_prot,
};

/*
* AmigaOne platform PCI setup
*
* Copyright 2007 Gerhard Pircher ([email protected])
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/

#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/init.h>

#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/irq.h>
#include <asm/machdep.h>
#include <asm/sections.h>
#include <asm/pci-bridge.h>

void __init
amigaone_find_bridges(void)

{
	struct device_node *dev;
	const int *bus_range;
	int len, index = -1;
	struct pci_controller *hose;
	struct device_node *root = of_find_node_by_path("/");

	for (dev = root->child; dev != NULL; dev = dev->sibling) {
		if (dev->type == NULL || strcmp(dev->type, "pci") != 0)
			continue;
		++index;

		bus_range = of_get_property(dev, "bus-range", &len);
		if (bus_range == NULL || len < 2 * sizeof(int)) {
			printk(KERN_WARNING "Can't get bus-range for %s\n",
				dev->full_name);
			continue;
		}

/* if (bus_range[1] == bus_range[0])

			printk(KERN_INFO "PCI bus %d", bus_range[0]);
		else
			printk(KERN_INFO "PCI buses %d..%d",
			       bus_range[0], bus_range[1]);
		printk(" controlled by %s", dev->full_name); */

		hose = pcibios_alloc_controller(dev);
		if (!hose) {
			printk("Can't allocate PCI controller structure for %s\n",
				dev->full_name);
			continue;
		}
		hose->arch_data = dev;
		hose->first_busno = bus_range[0];
		hose->last_busno = bus_range[1];

		setup_indirect_pci(hose, 0xfec00cf8, 0xfee00cfc, 0);

		/* Interpret the "ranges" property */
		/* This also maps the I/O region and sets isa_io/mem_base. */
		pci_process_bridge_OF_ranges(hose, dev, index == 0);
	}

	of_node_put(root);
}

<6>Using AmigaOne machine description.
<4>Total memory = 1536MB; using 4096kB for hash table (at cfc00000).
<5>Linux version 2.6.23-rc8 (geri@earth) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #11 Wed Sep 26 22:35:58 CEST 2007. <4> -> find_legacy_serial_port().
<4>stdout is /pci@80000000/isa@7/serial@2f8.
<4> -> add_legacy_isa_port(/pci@80000000/isa@7/serial@2f8).
<7>Found legacy serial port 0 for /pci@80000000/isa@7/serial@2f8.
<7> port=2f8, taddr=fe0002f8, irq=0, clk=1843200,speed=0.
<4> -> add_legacy_isa_port(/pci@80000000/isa@7/serial@3f8).
<7>Found legacy serial port 1 for /pci@80000000/isa@7/serial@3f8.
<7> port=3f8, taddr=fe0003f8, irq=0, clk=1843200, speed=0.
<4>legacy_serial_console = 0.
<4>default console speed = 115200.
<4> <- find_legacy_serial_port().
<6>console [udbg0] enabled.
<7>Entering add_active_range(0, 0, 393216) 0 entries of 256 used.
<4>AmigaOne l2cr : L2 cache was not active, activating..
<4>PCI: IO 0x0 -> 0xbfffff.
<4>PCI: MEM[0] 0x80000000 -> 0xfdffffff.
<7>Top of RAM: 0x60000000, Total RAM: 0x60000000.
<7>Memory hole size: 0MB.
<4>Zone PFN ranges:.

<4>  DMA             0 ->   196608.
<4>  Normal     196608 ->   196608.
<4>  HighMem    196608 ->   393216.

<4>Movable zone start PFN for each node.
<4>early_node_map[1] active PFN ranges.
<4> 0: 0 -> 393216.
<7>On node 0 totalpages: 393216.

<7>  DMA zone: 1536 pages used for memmap.
<7>  DMA zone: 0 pages reserved.
<7>  DMA zone: 195072 pages, LIFO batch:31.
<7>  Normal zone: 0 pages used for memmap.
<7>  HighMem zone: 1536 pages used for memmap.
<7>  HighMem zone: 195072 pages, LIFO batch:31.
<7>  Movable zone: 0 pages used for memmap.

<4>Built 1 zonelists in Zone order. Total pages: 390144.
<5>Kernel command line: root=/dev/hda11 console=udbg0 console=/dev/ttyS0,115200n8. <7>i8259_host_map(1, 0x1).
<7>i8259_host_map(2, 0x2).
<7>i8259_host_map(3, 0x3).
<7>i8259_host_map(4, 0x4).
<7>i8259_host_map(5, 0x5).
<7>i8259_host_map(6, 0x6).
<7>i8259_host_map(7, 0x7).
<7>i8259_host_map(8, 0x8).
<7>i8259_host_map(9, 0x9).
<7>i8259_host_map(10, 0xa).
<7>i8259_host_map(11, 0xb).
<7>i8259_host_map(12, 0xc).
<7>i8259_host_map(13, 0xd).
<7>i8259_host_map(14, 0xe).
<7>i8259_host_map(15, 0xf).
<7>irq: Allocated host of type 0 @0xc04b5080.
<6>i8259 legacy interrupt controller initialized.
<7>irq: Default host set to @0xc04b5080.
<4>PID hash table entries: 4096 (order: 12, 16384 bytes).
<7>time_init: decrementer frequency = 33.333333 MHz.
<7>time_init: processor frequency = 800.000000 MHz.
<4> -> check_legacy_serial_console().
<4> console was specified !.
<4>Console: colour dummy device 80x25.
<6>Dentry cache hash table entries: 131072 (order: 7, 524288 bytes).
<6>Inode-cache hash table entries: 65536 (order: 6, 262144 bytes).
<7>High memory: 786432k.
<6>Memory: 1549564k/1572864k available (3416k kernel code, 808700k reserved, 152k data, 1182k bss, 176k init). <7>Calibrating delay loop... 66.56 BogoMIPS (lpj=133120).
<6>Security Framework v1.0.0 initialized.
<6>SELinux: Disabled at boot..
<6>Capability LSM initialized.
<4>Mount-cache hash table entries: 512.
<4>khelper used greatest stack depth: 7316 bytes left.
<6>NET: Registered protocol family 16.
...
...4 bytes left.
<6>PCI: Probing PCI hardware.
<7>PCI: Scanning bus 0...
...00:00:07.0.
<7>PCI: Calling quirk...
...CI: Found 0000:00:07.2 [1106/303...

#1 lore raw
Quoted 3 lines · Gerhard Pircher

Hi,

I'm working on a 2.6.23 kernel for the AmigaOne.

[...]

Quoted 5 lines

<6>PCI: Probing PCI hardware.
<7>PCI: Scanning bus 0...
...00:00:07.0.
<7>PCI: Calling quirk...
...CI: Found 0000:00:07.2 [1106/303...

Any chance that this thing has an e100 ethernet card in it? If so, edit drivers/pci/quirks.c and ifdef out the readb() in the e100_quirk routine.

We're debating the proper fix on the pci mailing list now.

--linas

#2 lore raw

-------- Original-Nachricht --------

Quoted 20 lines

Datum: Thu, 27 Sep 2007 14:25:51 -0500
Von: [email protected]
An: Gerhard Pircher <[email protected]>
CC: [email protected]
Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

Quoted 3 lines · Gerhard Pircher

Hi,

I'm working on a 2.6.23 kernel for the AmigaOne.

[...]

Quoted 5 lines

<6>PCI: Probing PCI hardware.
<7>PCI: Scanning bus 0...
...00:00:07.0.
<7>PCI: Calling quirk...
...CI: Found 0000:00:07.2 [1106/303...

Quoted 3 lines

Any chance that this thing has an e100 ethernet card in it? If so, edit drivers/pci/quirks.c and ifdef out the readb() in the e100_quirk routine.

No, it has a 3Com 3c905C/3c920 10/100Mbit controller.

Gerhard

Signature · 2 lines
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
#3 lore raw
Quoted 4 lines · Gerhard Pircher
Quoted 4 lines

Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

Quoted 2 lines

I'm working on a 2.6.23 kernel for the AmigaOne.

Have you tried 2.6.22, or does that fail also?

--linas

#4 lore raw

-------- Original-Nachricht --------

Quoted 8 lines

Datum: Thu, 27 Sep 2007 15:50:12 -0500
Von: [email protected]
An: Gerhard Pircher <[email protected]>
CC: [email protected]
Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

Quoted 1 line · Gerhard Pircher
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

Quoted 2 lines

I'm working on a 2.6.23 kernel for the AmigaOne.

Have you tried 2.6.22, or does that fail also?

--linas

No, not yet. The last kernel that is working on the AmigaOne is a 2.6.16.x kernel (still arch/ppc). All further kernels (2.6.17 and 2.6.18) that I compiled with the old platform code for arch/ppc showed a similar behavior. I hoped that this would only be a side effect of the ppc -> powerpc transition. I also tried to search through the changelog files to find an indication for the problem.

Do you have an idea how to debug it?
I guess it would be possible with a JTAG debugger, but the AmigaOne is a desktop system and I don't know, if the JTAG pins of the CPU are accessible on the board.

Gerhard

Signature · 2 lines
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
#5 lore raw
Quoted 3 lines · Gerhard Pircher
Quoted 1 line

Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

Do you have an idea how to debug it?

Not particularly. What caught my eye was the failure right near the PCI quirk stuff, as I was having problems there as well (but apearntly, for very different reasons). Based on your boot messages, it looks like you are failing somewhere in pci probe. My olde-fashioned, slow, but-usually-works method is to sprinkle enough printk's into the code to catch it in the act.

--linas

#6 lore raw

-------- Original-Nachricht --------

Quoted 6 lines

Datum: Thu, 27 Sep 2007 16:35:03 -0500
Von: [email protected]
An: Gerhard Pircher <[email protected]>
CC: [email protected]
Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

Quoted 8 lines
Quoted 3 lines · Gerhard Pircher
Quoted 1 line

Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

Do you have an idea how to debug it?

Not particularly. What caught my eye was the failure right near the PCI quirk stuff, as I was having problems there as well (but apearntly, for very different reasons).

Yes, I also suspect the PCI code. The AmigaOne has a VIA southbridge. AFAIK there were some changes in the PCI quirks for VIA chipsets, but so far I couldn't see any significant changes in the code.

Quoted 3 lines

Based on your boot messages, it looks like you are failing somewhere in pci probe. My olde-fashioned, slow, but-usually-works method is to sprinkle enough printk's into the code to catch it in the act.

I guess the code in arch/powerpc/pci*.c is the right place to sprinkle some printk's into the code?

Gerhard

Signature · 2 lines
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
#7 lore raw
Quoted 6 lines · Gerhard Pircher
Quoted 4 lines

Based on your boot messages, it looks like you are failing somewhere in pci probe. My olde-fashioned, slow, but-usually-works method is to sprinkle enough printk's into the code to catch it in the act.

I guess the code in arch/powerpc/pci*.c is the right place to sprinkle some printk's into the code?

The last identifiable message I was

<7>PCI: Calling quirk...

which is from drivers/pci/quirks.c

...CI: Found 0000:00:07.2 [1106/303...

and this is from pci_setup_device() in drivers/pci/probe.c So I'd look to see if pci_setup_device() ever returned, and then I'd look to see what happened next.

--linas

#8 lore raw

-------- Original-Nachricht --------

Quoted 12 lines

Datum: Thu, 27 Sep 2007 17:20:07 -0500
Von: [email protected]
An: Gerhard Pircher <[email protected]>
CC: [email protected]
Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

On Thu, Sep 27, 2007 at 11:57:35PM +0200, Gerhard Pircher wrote:

The last identifiable message I was

<7>PCI: Calling quirk...

Quoted 7 lines

which is from drivers/pci/quirks.c

...CI: Found 0000:00:07.2 [1106/303...

and this is from pci_setup_device() in drivers/pci/probe.c So I'd look to see if pci_setup_device() ever returned, and then I'd look to see what happened next.

Ah, I thought probing is done in the architecture's PCI code. I'll take a look at pci_setup_device() function.

Thanks!

Gerhard

Signature · 2 lines
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
#9 lore raw
Quoted 15 lines · Gerhard Pircher

-------- Original-Nachricht --------

Quoted 14 lines

Datum: Thu, 27 Sep 2007 17:20:07 -0500
Von: [email protected]
An: Gerhard Pircher <[email protected]>
CC: [email protected]
Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

On Thu, Sep 27, 2007 at 11:57:35PM +0200, Gerhard Pircher wrote:

The last identifiable message I was

<7>PCI: Calling quirk...

which is from drivers/pci/quirks.c

Quoted 7 lines
Quoted 5 lines

...CI: Found 0000:00:07.2 [1106/303...

and this is from pci_setup_device() in drivers/pci/probe.c So I'd look to see if pci_setup_device() ever returned, and then I'd look to see what happened next.

Ah, I thought probing is done in the architecture's PCI code. I'll take a look at pci_setup_device() function.

It's one of the quirks I suppose. Those are often full of x86 only bogoziness that hurts everybody else if you happen to hit them.

The "late" quirks are called at pci_enable_device() time.

Ben

#10 lore raw
In reply to Gerhard Pircher
Quoted 7 lines · Gerhard Pircher

I'm working on a 2.6.23 kernel for the AmigaOne. I implemented the device tree and the platform setup code, which all compiles fine. I built a cuImage target, loaded it on my target machine with TFTP and booted it. The kernel passes the platform setup code and then dies somewhere in the driver init code (AFAICT), but before the keyboard driver is initialized (thus magic sysrq key doesn't work). Can somebody help me to track down this problem?

You appear to have a working 16550-style serial port which the udbg infrastructure sees. Thus you should be able to use xmon, talking to it via the serial port. Put "xmon" on the kernel command line and the kernel will drop into xmon early in the boot process (in setup_arch). Then, either the kernel will oops at some point and drop into xmon, and you can then inspect memory and registers and get a stack trace, or it will hang at some point. If it hangs, you can work out where it hangs by putting in breakpoints at various points and seeing which breakpoints you get to (this might take several boots).

Paul.

#11 lore raw

-------- Original-Nachricht --------

Quoted 8 lines

Datum: Fri, 28 Sep 2007 09:31:31 +1000
Von: Paul Mackerras <[email protected]>
An: "Gerhard Pircher" <[email protected]>
CC: [email protected]
Betreff: Re: 2.6.23-rc8 dies somewhere during boot!?

You appear to have a working 16550-style serial port which the udbg infrastructure sees. Thus you should be able to use xmon, talking to

I couldn't get udbg running yet. Maybe i didn't specify a proper kernel boot argument.

Quoted 7 lines

it via the serial port. Put "xmon" on the kernel command line and the kernel will drop into xmon early in the boot process (in setup_arch). Then, either the kernel will oops at some point and drop into xmon, and you can then inspect memory and registers and get a stack trace, or it will hang at some point. If it hangs, you can work out where it hangs by putting in breakpoints at various points and seeing which breakpoints you get to (this might take several boots).

Okay, I'll investigate it. Is there a documentation for xmon (Google wasn't really helpful in this case).

Thanks!

regards,

Gerhard

Signature · 2 lines
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer