On 07/20/2010 02:33 AM, penglaizhike wrote:
> Hi, 
>  
> My kernel version is 2.6.31, after rebuild it with kgbd, kgdboc etc enabled 
> and set extra boot agrs "......kgdboc=ttyS0, 115200 kgdbwait", then boot the 
> kernel, the kgdb will stop the booting and "wait for connection from remote 
> gdb.....", however, this message shows during late stage of kernel booting 
> other than early booting stage like the following:
> /************************************************************************************/
> Linux version 2.6.31-1.3 ([email protected]) (gcc version 4.2.0 
> 20070124 (prerelease) - BRCM 11ts-20090508) #6 Mon Jul 19 0
> Fetching vars from bootloader... found 7 vars.
> Early serial console at MMIO 0x10406b00 (options '115200n8')
> console [uart0] enabled
> Options: sata=0 enet=1 emac_1=0 no_mdio=0 docsis=0 pci=0 smp=0 moca=0 usb=1
> Probing system memory size... found 128 MB
> CPU revision is: 00029041 (Broadcom BMIPS3300)
> Determined physical RAM map:
>  memory: 08000000 @ 00000000 (usable)
> bmem: adding 90 MB RESERVED region at 38 MB (0x05a00...@0x02600000)
> Initrd not found or empty - disabling initrd
> Zone PFN ranges:
>   Normal   0x00000000 -> 0x00008000
> Movable zone start PFN for each node
> early_node_map[1] active PFN ranges
>     0: 0x00000000 -> 0x00008000
> Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
> Kernel command line: ubiroot bmem=...@38m kgdboc=ttyS0,115200 kgdbwait 
> ubi.mtd=rootfs rootfstype=ubifs root=ubi0:rootfs
> PID hash table entries: 512 (order: 9, 2048 bytes)
> Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
> Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
> Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
> Memory: 30436k/131072k available (3660k kernel code, 100556k reserved, 752k 
> data, 172k init, 0k highmem)
> NR_IRQS:128
> Detected MIPS clock frequency: 185 MHz (92.571 MHz counter)
> Calibrating delay loop... 184.32 BogoMIPS (lpj=92160)
> Mount-cache hash table entries: 512
> NET: Registered protocol family 16
> bio: create slab <bio-0> at 0
> SCSI subsystem initialized
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> NET: Registered protocol family 2
> IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
> TCP established hash table entries: 4096 (order: 3, 32768 bytes)
> TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
> TCP: Hash tables configured (established 4096 bind 4096)
> TCP reno registered
> NET: Registered protocol family 1
> squashfs: version 4.0 (2009/01/31) Phillip Lougher
> JFFS2 version 2.2. (NAND) .. 2001-2006 Red Hat, Inc.
> fuse init (API version 7.12)
> msgmni has been set to 59
> io scheduler noop registered
> io scheduler cfq registered (default)
> Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
> serial8250.0: ttyS0 at MMIO 0x10406b00 (irq = 21) is a 16550A
> console handover: boot [uart0] -> real [ttyS0]
> serial8250.0: ttyS1 at MMIO 0x10406b40 (irq = 65) is a 16550A
> serial8250.0: ttyS2 at MMIO 0x10406b80 (irq = 66) is a 16550A
> kgdb: Registered I/O driver kgdboc.
> kgdb: Waiting for connection from remote gdb...
> /************************************************************************************/
>  
> Could you tell me where the issue is and what need to be changed for let the 
> kgdb stop the booting in the early stage?
>  
>   

In the 2.6.31, kgdboc did not support debugging before the tty layer is
initialized.   You would have to add some patches to your kernel to use
the kgdb8250 driver.

I believe the 2.6.30 kgdb patches would apply to the 2.6.31 kernel which
have the kgdb8250 driver.

http://kernel.org/pub/linux/kernel/people/jwessel/branches/kgdb_2.6.30.tar.gz

Jason.



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to