【问题标题】:JTAG + openocd + kernel debugging (no debug information in vmlinux ?)JTAG + openocd + 内核调试(vmlinux 中没有调试信息?)
【发布时间】:2012-10-26 09:14:12
【问题描述】:

当我从 Eclipse 连接到目标时,我收到以下消息:

symbol-file /opt/Tixi_Repos/KiwiG6v2/buildroot-2011.05/package_tixi/linux-2.6.39/arch/arm/boot/compressed/vmlinux
target remote localhost:3333
start () at arch/arm/boot/compressed/head.S:108
108         kphex   r5, 8       /* end of kernel */

但是之后当我停止正在运行的内核时: 0xc06f2674
“”没有可用的来源

当我尝试踩踏时: 目标请求失败:找不到当前函数的边界。

vmlinux中好像没有符号。但是内核是重建的,同时设置了 DEBUG_KERNEL 和 DEBUG_INFO。

内核 2.6.39 CPU AT91SAM9G25

openocd -f /usr/share/openocd/scripts/interface/jtagkey2.cfg -f /usr/share/openocd/scripts/board/at91sam9g20-ek.cfg


TapName            | Enabled |   IdCode      Expected    IrLen IrCap  IrMask   Instr     
---|--------------------|---------|------------|------------|------|------|------|---------
 0 | at91sam9g20.cpu    |    Y    | 0x00000000 | 0x0792603f | 0x04 | 0x01 | 0x0f | 0x0f
Info : max TCK change to: 30000 kHz
Info : RCLK (adaptive clock speed)
Info : JTAG tap: at91sam9g20.cpu tap/device found: 0x0792603f (mfg: 0x01f, part:0x7926, ver: 0x0)
Info : Embedded ICE version 6
Info : accepting 'gdb' connection from 0
Warn : acknowledgment received, but no packet pending

【问题讨论】:

    标签: kernel jtag openocd


    【解决方案1】:

    我的系统中编译了2个不同的vmlinux文件:一个在根文件夹,第二个在arch/arm/boot/compressed/vmlinux

    https://stackoverflow.com/questions/13155885/two-differend-vmlinux-files

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-01
      相关资源
      最近更新 更多