New display device for MIPS
Hi,
the latest Linux kernels contain a driver for an ASCII display (arch/mips/mips-boards/generic/display.c).
Because this display is used by code I'm currently testing, I implemented an emulation for QEMU (code is added to this mail).
hw/mips_display.c - implementationhw/mips_display.h - interface
I prefer to have the interface in a dedicated header file instead of adding it to vl.h (which is already overloaded).
An emulated MIPS machine can add the new device like this:
...
#include "mips_display.h"
...mips_display_init(env, "vc");
...
Regards
Stefan Weil
Quoted 4 lines · Stefan Weil
Hi,
the latest Linux kernels contain a driver for an ASCII display (
arch/mips/mips-boards/generic/display.c).
This is the driver for the ASCII display of a MIPS MALTA board.
Quoted 5 lines
Because this display is used by code I'm currently testing, I implemented an emulation for QEMU (code is added to this mail).
hw/mips_display.c- implementationhw/mips_display.h- interface
AFAICS the output interferes with the serial console output. I wonder how the typical scrolling text "Linux on MALTA" would look like in that case. :-)
Quoted 2 lines
I prefer to have the interface in a dedicated header file instead of adding it to
vl.h(which is already overloaded).
OTOH, a file for a single prototype which still has to include vl.h makes not much sense either.
Thiemo
Quoted 5 lines
AFAICS the output interferes with the serial console output. I wonder how the typical scrolling text "Linux on MALTA" would look like in that case. :-)
Believe me, it won't interfere (because it creates an additional virtual console, like 2nd serial console, parallel port, ...).
And you will see the typical scrolling text, just try it!
Stefan
Quoted 9 lines · Stefan Weil
Quoted 5 lines
AFAICS the output interferes with the serial console output. I wonder how the typical scrolling text "Linux on MALTA" would look like in that case. :-)
Believe me, it won't interfere (because it creates an additional virtual console, like 2nd serial console, parallel port, ...).
And you will see the typical scrolling text, just try it!
Trying would be much easier if there was a machine to test with. :-) What about starting with the core of the new machine description before submitting the unconnected peripherals?
Thiemo
Quoted 5 lines · Thiemo Seufer
Quoted 3 lines
Quoted 3 lines
AFAICS the output interferes with the serial console output. I wonder how the typical scrolling text "Linux on MALTA" would look like in that case. :-)
What about starting with the core of the new machine description before submitting the unconnected peripherals?
The Malta-LED is a part of the Malta-FPGA device wich also contains
- DIP-Switch block, including BIGEND switch
- NMI status register
- Software reset
- GPIO registers
- I2C registers
Is should be better to implement all this devices as one "Malta FPGA" driver.
P.S. AFAIK, Virtio VPMM emulates Malta LED in the separate graphic window, not on the serial port.
--
-=AV=-