QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2684|回复: 1

基于PowerPC内核移植的奇怪问题

[复制链接]
发表于 2007-1-24 12:08:40 | 显示全部楼层 |阅读模式
基于PowerPC内核移植的奇怪问题

我的系统是基于MPC8247,内核用的是linux-2.6.10,u-boot版本为1.1.5,
用tftp将 uImage 下载到目标板,解压缩后串口没有打印,显示内容如下:

=>bootm 0x400000
Using FCC1 ETHERNET device
TFTP from server 192.168.0.48; our IP address is 192.168.0.49
Filename 'uImage'.
Load address: 0x400000
Loading: *#################################################################
         ###################################
done
Bytes transferred = 511300 (7cd44 hex)
## Booting image at 00400000 ...
   Image Name:   Linux-2.6.10
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    511236 Bytes = 499.3 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

之后就没有动静了。用点灯的方法跟到head.s中,在bl call_setup_cpu (line 189附件)之前灯都可以亮,但是之后再点灯就会引起机器重启。我的点灯代码如下:

void led()
{
        *(unsigned int *)(IMMR_ADDR+0x10d10) &= ~(0x003c0000 & (3<<1);
        return;
}
IMMR_ADDR是0xf0000000

打印串口用的是SCC1,请问各位是否遇到这样的问题,怎么解决的呢?
需要修改哪些代码才能用SCC1打印?怎么用点灯继续跟踪下去呢?

郁闷了一个多礼拜,望各位相助啊!
发表于 2007-1-25 00:25:28 | 显示全部楼层
MPC没有用过,不太清楚
通过修改内核启动参数好像可以输出打印信息吧
好像是有个cmdline的参数
试试看吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-23 17:30 , Processed in 0.071006 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表