- static struct mtd_partition smdk_default_nand_part[] = {
- [0] = {
- .name = "Boot",
- .size = 0x00100000,
- .offset = 0
- },
- [1] = {
- .name = "MyApp",
- .size = 0x003c0000,
- .offset = 0x00140000,
- },
- [2] = {
- .name = "Kernel",
- .size = 0x00300000,
- .offset = 0x00500000,
- },
- [3] = {
- .name = "fs_yaffs",
- .size = 0x03c00000, //30M
- .offset = 0x00800000,
- },
- [4] = {
- .name = "WINCE",
- .size = 0x03c00000,
- .offset = 0x04400000,
- }
- };
- /*chip->ecc.mode = NAND_ECC_SOFT; */ chip->ecc.mode = NAND_ECC_NONE;
执行到这个文件:/drivers/tty/serial/samsung.c
spin_lock_irqsave(&port->lock, flags);
/* 在下面是 */
/*
dbg("setting ulcon to %08x, brddiv to %d, udivslot %08x\n",
ulcon, quot, udivslot); /* 这一句打印了 */
wr_regl(port, S3C2410_ULCON, ulcon);
wr_regl(port, S3C2410_UBRDIV, quot);
wr_regl(port, S3C2410_UMCON, umcon);
if (ourport->info->has_divslot)
wr_regl(port, S3C2443_DIVSLOT, udivslot);
*/
dbg("uart: ulcon = 0x%08x, ucon = 0x%08x, ufcon = 0x%08x\n", /* 打印这一句就乱码了 */
rd_regl(port, S3C2410_ULCON),
rd_regl(port, S3C2410_UCON),
rd_regl(port, S3C2410_UFCON));
所以注释掉上面绿色部分,再编译启动后,就没有打印问题了。
在Ubuntu 12.04上移植并优化S3C2440内核
本文详细介绍了如何在Ubuntu 12.04上获取、解压、编译并移植S3C2440内核,包括解决启动错误、修改机器码、时钟源频率、MTD分区、关闭ECC校验、修复串口打印乱码等问题,以及最终成功启动开发板的过程。
814

被折叠的 条评论
为什么被折叠?



