- 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));
所以注释掉上面绿色部分,再编译启动后,就没有打印问题了。