Question about Linux kernel debug

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Question about Linux kernel debug

2,288 Views
termita
Contributor I
Good morning:
 
i'm working on multiples boards simultaneously(an 860 and a 8272ADS).
Actually, i'm using u-boot to initialize boards. At this point, i start codewarrior 2.5.
 
Now, i speak only about MPC8272ADS. BSP installed is a linux-2.6.x kernel based. BSP id is CWB-MPC8272ADS-2-6-k.
 
In codewarrior, kernel is open using File->Open. Open file is vmlinux, non-compressed kernel image in elf format. Kernel was build with -g -ggdb at CFLAGS and -gdwarf2 at AFLAGS using PCS. I'm using an USBTap upgraded to version 1.6.
 
When kernel file is open, codewarrior shows an alert about hoy many files vmlinux reference.
 
Vmlinux.mcp window appear and all files contained are showed. Now, start to configure debugger.
 
Remote Debugging: USBTap with factory settings, no more options checked.
 
Debugger Settings: Stop on aplication launch -> program entry point. Other options at factory settings value.
 
Debugger Pic Settings: Alternate Load Address unchecked.
 
EPPC Debugger Settings: target processor 8272, target os Linux, Program
Download Options unckecked and verify memory writes unchecked.
 
EppcExceptions: all checked.
 
Linux kernel boot parameters: all unchecked.
 
Linux kernel debug settings: All ckeched, physical base address 0x00000000, virtual 0xc0000000, memory size 0x04000000.
 
Residual data unchecked.
 
 
With this configuration, i download kernel to target using u-boot tftpboot command. At this point, with cw, debug->attach to process is done.
 
Breakpoint window show an event point at start kernel. But cw hangs if i don't stablish a breakpoint at start_kernel too. If i stablish this breakpoint, repeated stops at start_kernel appear.
 
What's wrong?
 
Thanks in advice.
 
Labels (1)
0 Kudos
Reply
1 Reply

673 Views
termita
Contributor I
In addition to previous message:
 
System Browser -> Codewarrior USBTap shows Processes tab, with a EPPC LINUX KERNEL tab contained in. This last tab shows and 0x00000000 id and a threads unavailable state.
 
 
Al Linux->Display Modules, window show Error Displaying OS info and Cannot display requested information.
 
 
I readed on this forum about linux kernel 2.6.x.
 
 
I downloaded package but i didn't received yet a license.
 
Any other ideas?
 
thanks in advice.
0 Kudos
Reply