- 积分
- 368
贡献137
飞刀6 FD
注册时间2010-5-27
在线时间304 小时
|
发表于 2011-11-6 10:49:32
|
显示全部楼层
看看你的ttyS0 是不是用做console了,如果是的话,换另外一个口调试。另外,在samsung的linux内核里,串口设备默认是/dev/ttySAC,你可以把他修改为ttyS:
diff -Nuar linux-3.0/drivers/tty/serial/samsung.c linux-3.0-s3c2440/drivers/tty/serial/samsung.c
--- linux-3.0/drivers/tty/serial/samsung.c 2011-07-22 10:17:23.000000000 +0800
+++ linux-3.0-s3c2440/drivers/tty/serial/samsung.c 2011-09-06 11:23:01.000000000 +0800
@@ -54,7 +54,7 @@
/* UART name and device definitions */
-#define S3C24XX_SERIAL_NAME "ttySAC"
+#define S3C24XX_SERIAL_NAME "ttyS" /*Modified by guowenxue, 2011.08.30*/
#define S3C24XX_SERIAL_MAJOR 204
#define S3C24XX_SERIAL_MINOR 64
@@ -882,7 +882,7 @@
static struct uart_driver s3c24xx_uart_drv = {
.owner = THIS_MODULE,
- .driver_name = "s3c2410_serial",
+ .driver_name = "ttyS", /*Modified by guowenxue, 2011.08.30*/
.nr = CONFIG_SERIAL_SAMSUNG_UARTS,
.cons = S3C24XX_SERIAL_CONSOLE,
.dev_name = S3C24XX_SERIAL_NAME, |
|