Re: How to set up a debugging environment.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi Viral:

2010/7/8 Viral Mehta <Viral.Mehta@xxxxxxxxxxxxxxx>:
>
>>2010/3/8 Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx>:
>>> Hi...
>
>>sorry for interrupting your conversation :)
> Start a new thread then
>>I recently try to use kgdb to debug kernel.
>>my questions are:
>>1. there are 2 uart under my plarform, I intent to let one for console
>>one for kgdb.
>>    how coudl I tell kernel which one is for console and which one is for kgdb?
> Give it as kernel parameters...
> http://www.linuxquestions.org/questions/programming-9/kgdb-module-debugging-question-657611/
>
>>2. do I need to compile my kernel with any additionally CFLAG ?
>>appreciate your help,
>>miloody
>
I follow the instructions on the website but the target machine will
not wait for me.
I append the dmesg at the end of letter.
appreciate your help,
miloody


LINUX started...
CMDLINE:console=ttyS0,115200n8 memsize=192M kgddbwait kgdboc=ttyS1,115200
console [early0] enabled
CPU revision is: 00019655 (MIPS 24Kc)
hclk = 99937500
Determined physical RAM map:
 memory: 00001000 @ 00000000 (reserved)
 memory: 000ff000 @ 00001000 (ROM data)
 memory: 0075b000 @ 00100000 (reserved)
 memory: 0b7a5000 @ 0085b000 (usable)
Wasting 68448 bytes for tracking 2139 unused pages
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x0000c000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x0000c000
On node 0 totalpages: 49152
free_area_init_node: node 0, pgdat 8045c260, node_mem_map 81000000
  Normal zone: 384 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 48768 pages, LIFO batch:15
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 48768
Kernel command line: console=ttyS0,115200n8 memsize=192M kgddbwait
kgdboc=ttyS1,115200
Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
Writing ErrCtl register=0007f9e0
Readback ErrCtl register=0007f9e0
NR_IRQS:64
PID hash table entries: 1024 (order: 10, 4096 bytes)
CPU frequency 399.75 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 186052k/188052k available (2652k kernel code, 1780k reserved,
799k data, 3944k init, 0k highmem)
Calibrating delay loop... 264.19 BogoMIPS (lpj=132096)
Mount-cache hash table entries: 512
Brought up 1 CPUs
CPU0 attaching NULL sched-domain.
net_namespace: 332 bytes
NET: Registered protocol family 16
FPU Affinity set after 528 emulations
bio: create slab <bio-0> at 0
SCSI subsystem initialized
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
initramfs_start:0x88000008, initramfs_end:0x883AF5A1
NTFS driver 2.1.29 [Flags: R/O].
msgmni has been set to 363
alg: No test for stdrng (krng)
io scheduler noop registered (default)
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xbd090000 (irq = 25) is a 16550A
console handover: boot [early0] -> real [ttyS0]
serial8250.0: ttyS1 at MMIO 0xbd091000 (irq = 39) is a 16550A
kgdb: Registered I/O driver kgdboc.
brd: module loaded
loop: module loaded
Driver 'sd' needs updating - please use bus_type methods
SCSI Media Changer driver v0.25
Driver 'ch' needs updating - please use bus_type methods
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
mice: PS/2 mouse device common for all mice
Linux video capture interface: v2.00
NET: Registered protocol family 26
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
Freeing prom memory: 1020k freed
Freeing unused kernel memory: 3944k freed
#

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux