天嵌 ARM开发社区

 找回密码
 注册
查看: 1919|回复: 2

请教亚瑟王linux内核移植调试问题!!!

[复制链接]
wanjunking 发表于 2010-9-24 15:36:37 | 显示全部楼层 |阅读模式
自己下载linux2.6.34新的内核编译好了,从norflash启动,采用uboot命令调试
错误如下:
..........(前面启动代码和天嵌公司以前linux2.6.30.4的代码大致一样)
Partially written block 229 detected
Partially written block 229 detected
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 136K
cannot run '/etc/init.d/rcS': No such file or director
can't open /dev/tq2440_serial0: No such file or director
can't open /dev/tq2440_serial0: No such file or director
注:uboot和根文件yaffs是天嵌公司以前烧好了的,
不知道是串口驱动没有移植好,还是得重新烧yaffs根文件
天嵌_support1 发表于 2010-9-24 19:18:02 | 显示全部楼层
1# wanjunking


你的内核已经启动了文件系统。
文件系统有 /etc/init.d/rcS 这个文件没有?
你的串口驱动移植不完善了。没有创建字符设备阿....
 楼主| wanjunking 发表于 2010-9-26 21:27:08 | 显示全部楼层
2# embedsky_lxt

yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 136K
cannot run '/etc/init.d/rcS': No such file or director
can't open /dev/tq2440_serial0: No such file or director


您好 !我的文件系统是天嵌原来已经烧好的根文件系统!!
串口移植按照手册改了如下:
1./arch/arm/mach-s3c2440/mach-smdk2440.c
.ucln=0x03
2./drivers/serial/samsung.c
if (port->line == 2) {
s3c2410_gpio_cfgpin(S3C2410_GPH(6), S3C2410_GPH6_TXD2);
s3c2410_gpio_pullup(S3C2410_GPH(6), 1);
s3c2410_gpio_cfgpin(S3C2410_GPH(7), S3C2410_GPH7_RXD2);
s3c2410_gpio_pullup(S3C2410_GPH(7), 1);
}

.dev_name="tq2440_serial"
不知道是linux2.6.34内核与linux2.6.30.4内核串口移植不同问题
还是我直接将编译好的内核运行在sdram中调试这个方法存在 问题!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2024-9-18 04:34 , Processed in 1.024349 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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