openhwgroup / cva6-sdk

CVA6 SDK containing RISC-V tools and Buildroot
59 stars 64 forks source link

A kernel message log is output twice through the serial port #42

Closed MrHaiCoder closed 3 years ago

MrHaiCoder commented 3 years ago

A message log is output twice through the serial port

image

zarubaf commented 3 years ago

I guess this is because the UART driver is being loaded relatively late in the boot process, therefore duplicating any earlier messages. dmesq should just show you a single entry.

MrHaiCoder commented 3 years ago

我猜这是因为UART驱动程序在启动过程中相对较晚地加载,因此会复制任何较早的消息。dmesq应该只显示一个条目。

dmesg does display only one entry and the application outputs an entry; but The same is true when loading Ko driver files manually; What could be the reason for this?

I am use gensys2 fpga board.

image

MrHaiCoder commented 3 years ago

我猜这是因为UART驱动程序在启动过程中相对较晚地加载,因此会复制任何较早的消息。dmesq应该只显示一个条目。

The printk in the later driver will be like this. Can you fix it?