通过dump内存中printk的__log_buf地址查看Linux启动部分的错误


已经将u-boot移植到了自己做的demo板上,现在开始移植linux PowerPC内核,前两天用bootm引导内核,当执行到:
  1.         /*
  2.          * Linux Kernel Parameters (passing board info data):
  3.          *   r3: ptr to board info data
  4.          *   r4: initrd_start or 0 if no initrd
  5.          *   r5: initrd_end - unused if r4 is 0
  6.          *   r6: Start of command line string
  7.          *   r7: End   of command line string
  8.          */
  9.         debug ("   Booting using board info.../n");
  10.         (*kernel) (kbd, initrd_start, initrd_end, cmd_start, cmd_end);
内核开始执行,但直接就挂起,串口没有输出:
  1. #> bootm 0xffd00000 - 0xa000000
  2. *  kernel: cmdline image address = 0xffd00000
  3. ## Booting kernel from Legacy Image at ffd00000 ...
  4.    Image Name:   Linux-2.6.26.3
  5.    Created:      2008-09-08  15:40:26 UTC
  6.    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
  7.    Data Size:    1199265 Bytes =  1.1 MB
  8.    Load Address: 00000000
  9.    Entry Point:  00000000
  10.    Verifying Checksum ... OK
  11.    kernel data at 0xffd00040, len = 0x00124ca1 (1199265)
  12. ## Skipping init Ramdisk
  13. ## No init Ramdisk
  14.    ramdisk start = 0x00000000, ramdisk end = 0x00000000
  15. *  fdt: cmdline image address = 0x0a000000
  16. ## Checking for 'FDT'/'FDT Image' at 0a000000
  17. *  fdt: raw FDT blob
  18. ## Flattened Device Tree blob at 0a000000
  19.    Booting using the fdt blob at 0xa000000
  20.    of_flat_tree at 0x0a000000 size 0x00002cdc
  21.    Uncompressing Kernel Image ... OK
  22.    kernel loaded at 0x00000000, end = 0x1fe9fcf8
  23. ## Current stack ends at 0x1fe9fca8
  24. ## device tree at 0x0A000000 ... 0x0A002CDB (len=23772=0x5CDC)
  25.    Loading Device Tree to 007fa000, end 007ffcdb ... OK
  26. Updating property 'timebase-frequency' =  1d cd 65 02
  27. Updating property 'clock-frequency' =  1d cd 65 02
  28. Updating property '/plb/clock-frequency' =  09 ef 21 ab
  29. Updating property '/plb/opb/clock-frequency' =  04 f7 90 d5
  30. Updating property '/plb/opb/ebc/clock-frequency' =  04 f7 90 d5
  31. Updating property 'clock-frequency' =  00 54 c5 63
  32. Updati
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值