CCS v4 Linux Aware Debugging
Below are the steps for debugging linux running on beagleboard using CCS v4.
My target Environment:
MMC Card: U-boot.bin, uImage, ramdisk,gz, MLO, noraml.src
After compiling the kernel do a objdump with the linux image i.e.vmlinux
arm-none-guneabi-objdump -D vmlinux >> vmlinux.obj
Insert MMC card and power on the target board. Now the target board is up with linux
Open CCS v4
Tools-> New target configuration
After configuring the debugger and target go to Advanced tab and under each core delete "initialization script" whihc is a GEL file.
Target->Launch TI debugger
Target->Load Symbols (browse to vmlinux)
On the debug tag right click on the emulator -> Edit Source lookup (browse to vmlinux.obj and add the linux source dir)
Now the various process and threads appear on the debug window.
To tarace the kernel flow from boot apply breakpoint at 0x80008000 and Target->Reset->System Reset