0
我正在將Linux移植到使用ARM Primecell pl011串行IP內核的定製板上。linux pl011串行驅動程序:打開/ dev/console後不輸出
- Linux版本是4.7.0-rc1 +。
- 我沒有使用DMA引擎。
- 我使用
- 我指定
- 啓動日誌打開/ dev之前以及輸出引導參數「控制檯= ttyAMA0」 /控制檯
- 打開/ dev後輸出將停止/控制檯devtmpfs
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
[...]
任何提示被理解...