kgdb问题
时间:2010-07-17
来源:互联网
同学们在bootloader里配置好关于kgdb的启动参数后,内核启动都是停止在什么地方等待remote gdb connection啊?
kgbdoc=ttyS0,kgdbwait
我的是要等uart完全启动后,即就是tty layer启动后才停下来,Log如下:
Linux version 2.6.31-1.2 (leon@leon) (gcc version 4.2.0 20070124 (prerelease) - BRCM 11ts-2009050
#7 Mon May 3 14:24:41 CST 2010
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 (0x05a00000@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=90M@38M 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 (3613k kernel code, 100476k reserved, 743k data, 172k init, 0k highmem)
NR_IRQS:128
Detected MIPS clock frequency: 185 MHz (92.574 MHz counter)
Calibrating delay loop... 184.83 BogoMIPS (lpj=92416)
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
-----stop here
看文档应该是在更早些时候就能停下来的吧???
kgbdoc=ttyS0,kgdbwait
我的是要等uart完全启动后,即就是tty layer启动后才停下来,Log如下:
Linux version 2.6.31-1.2 (leon@leon) (gcc version 4.2.0 20070124 (prerelease) - BRCM 11ts-2009050

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 (0x05a00000@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=90M@38M 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 (3613k kernel code, 100476k reserved, 743k data, 172k init, 0k highmem)
NR_IRQS:128
Detected MIPS clock frequency: 185 MHz (92.574 MHz counter)
Calibrating delay loop... 184.83 BogoMIPS (lpj=92416)
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
-----stop here
看文档应该是在更早些时候就能停下来的吧???
作者: heberthe 发布时间: 2010-07-17
这个停在哪是你bootloader里配置的
作者: 0vk0 发布时间: 2010-07-17
我用的参数是kgdboc=ttyS0, kgdbwait
bootloader里还能怎么配???
回复 0vk0
bootloader里还能怎么配???
回复 0vk0
作者: heberthe 发布时间: 2010-07-17
移殖bootloader的时候就有相关的配置
作者: 0vk0 发布时间: 2010-07-17
移殖bootloader的时候就有相关的配置
作者: 0vk0 发布时间: 2010-07-17
在bootloader里不就是主要设置关于kgdb的启动参数嘛? kgdboc=ttyS0, kgdbwait
你能告诉我你的是在什么地方就stop下来的么?我就想知道是不是一定要等tty layer起来,等uart注册成功后才能stop?
回复 0vk0
你能告诉我你的是在什么地方就stop下来的么?我就想知道是不是一定要等tty layer起来,等uart注册成功后才能stop?
回复 0vk0
作者: heberthe 发布时间: 2010-07-17
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28