免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3019 | 回复: 11

linux-2.6.28 compile problem [复制链接]

论坛徽章:
0
发表于 2009-10-15 10:43 |显示全部楼层
there not is config file of S3C2440 ,how to compile a kernel to run on the S3C2440 platform, can i use S3C2410 config  file

论坛徽章:
0
发表于 2009-10-15 11:45 |显示全部楼层
kernel编译出错问题,编译步骤
1.make ARCH=arm CROSS_COMPILE=arm-maxwit-linux-gnueabi- s3c2410_defconfig
2.make ARCH=arm CROSS_COMPILE=arm-maxwit-linux-gnueabi- menuconfig
*use the ARM EABI to compile the kernel
*nfs
(1)problem: arm-maxwit-linux-gnueabi-ld: no machine record defined.
How to deal

论坛徽章:
0
发表于 2009-10-15 12:21 |显示全部楼层
按照g-bios的datasheet启动kernel后,Error: unrecognized/unsupported machine ID (r1 = 0x0000090e).问题可能是bootloader的machine ID跟kernel传入的machine ID不一致;

论坛徽章:
0
发表于 2009-10-15 12:23 |显示全部楼层
是不是之前编译了其他板子的kernel?编译之前先make distclean,再重新配置编译

论坛徽章:
0
发表于 2009-10-15 12:49 |显示全部楼层
先在kernel源码里arch/arm/tools/machi_types文件里查找到你编译的板子的MACH_ID,再看BootLoader启动kernel时第二个参数是不是板子的MACHI_ID

论坛徽章:
0
发表于 2009-10-15 12:58 |显示全部楼层
如果你使用的bootloader是g-bios,启动kernel的代码在g-bios目录下的app/boot/boot.c文件里

pfExecKernel(0, MACH_ID, ATAG_BASE);

论坛徽章:
0
发表于 2009-10-15 13:46 |显示全部楼层
把在g-bios/app/boot/boot_linux.c的,MACH_ID修改为surpport的ID(0x16a),出错为大量乱码。原因分析是不是kernel编译出问题。

论坛徽章:
0
发表于 2009-10-15 13:52 |显示全部楼层
应该是Clock没设对!

论坛徽章:
0
发表于 2009-10-15 14:06 |显示全部楼层
如果你编译的是smdk2440的kernel,那对应的MACH_ID 是1008
linux源码目录下的arch/arm/mach-s3c2440/mach-smdk2440.c 文件中 smdk2440_map_io()函数里设置的clock为163934400
s3c24xx_init_clocks(163934400);

论坛徽章:
0
发表于 2009-10-15 14:08 |显示全部楼层
how to init system clock,修改kernel的system clock.是linux2.6.28/arch/arm/kernel/time.c文件吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP