【发布时间】:2017-03-23 23:18:14
【问题描述】:
我正在将 linux 移植到使用 ARM Primecell pl011 串行 IP 内核的定制板上。
- Linux 版本为 4.7.0-rc1+。
- 我没有使用 DMA 引擎。
- 我正在使用 devtmpfs
- 我指定了启动参数“console=ttyAMA0”
- 在打开/dev/console之前就输出了启动日志
- 打开 /dev/console 后将停止输出
init/main.c:kernel_init_freeable()
[...]
printk("open /dev/console\n"); // <- this will be outputted
/* Open the /dev/console on the rootfs, this should never fail */
if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
pr_err("Warning: unable to open an initial console.\n");
printk("opened /dev/console\n"); // <- this will not be outputted
[...]
感谢任何提示...
【问题讨论】:
标签: linux serial-port arm kernel