I've compiled riscv-linux (riscv-next branch) with the suggested
config options:
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_OF_PLATFORM=y
after adding the extra file arch/riscv/include/asm/serial.h.
But using the latest riscv-qemu (master branch) I get no output at all.
The command line I'm using is:
./riscv64-softmmu/qemu-system-riscv64 -m 4G -kernel /home/rjones/tmp/riscv-tools/riscv64-unknown-elf/bin/bbl -append /home/rjones/d/riscv-linux/vmlinux -serial stdio
Do you have a command line that works, or any suggestions what might
be wrong?
[This brings me back to a rant I have about ARM. Wouldn't it be great
if every single RISC-V had a simple, standard UART at a fixed address?
No exceptions. It should be written into the privspec as a
non-optional feature.]
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html