QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 770|回复: 1

用SkyEye运行μClinux内核

[复制链接]
发表于 2004-11-24 19:03:23 | 显示全部楼层 |阅读模式
谢谢斑竹下午的解答,现在已经顺利安装上了SkyEye。
同时我用下载的uClinux源文件顺利编译了for atmel的romfs。
然后启动skyeye
(SkyEye) target sim

(SkyEye) load

都没有出现问题。
最后在run的时候出现
Starting program: /usr/src/uClinux-dist/linux-2.4.x/linux
就停住了
等了很久都没有反应,最后我按了Ctrl+c中断了执行
此时显示了如下信息:
Program received signal SIGINT, Interrupt.
setup_processor () at setup.c:142
142                     while (1);

这明显是一个死循环,难道uClinux的源代码中有这样的错误吗?
我用的uClinux-dist是20020927发布的版本。不知道那位遇到过这个问题。
 楼主| 发表于 2004-11-24 19:21:32 | 显示全部楼层
发现为什么出这个问题了
请看源代码
(SkyEye) list setup_processor
126             /*
127              * locate processor in the list of supported processor
128              * types.  The linker builds this table for us from the
129              * entries in arch/arm/mm/proc-*.S
130              */
131             for (list = &__proc_info_begin; list < &__proc_info_end ; list++)
132                     if ((processor_id & list->cpu_mask) == list->cpu_val)
133                             break;
134
135             /*
(SkyEye) list
136              * If processor type is unrecognised, then we
137              * can do nothing...
138              */
139             if (list >= &__proc_info_end) {
140                     printk("CPU configuration botched (ID %08x), unable "
141                            "to continue.\n", processor_id);
142                     while (1);
143             }
144
145             proc_info = *list->info;
也就是说我在skyeye.conf中的mach设置错了
检查了这个文件果然如此
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-20 14:20 , Processed in 0.267272 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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