All right. With the patches that I sent for Serengeti Cheetah support
and Jordan's snserial tool
+ a simple patch for making it compile on my compiler (attached)...
It works! I can run SimNOW with a SerialICE, snserial to make it go
to /dev/pts/13, and qemu with the serialice patches. It looks like I
need to update the lua script so that I don't kill the serial port,
since this is the last thing I get:
MEM: writel fee00380 <= 00000033 *
IO: outb 002e <= 87
IO: outb 002e <= 87
IO: outb 002e <= 07
IO: outb 002f <= 02
IO: outb 002e <= 30
IO: outb 002f <= 00
IO: outb 002e <= 60
I thought I'd use gdb to skip over those, but when I use gdb to
connect (adding -s -S to the qemu command line), I get a lot of these
MEM: readl 000c9900 => ffffffff *
Readback error! 38/39
Readback error! 63/34
Any ideas of why connecting gdb would cause readback errors on the port?
I'd like to have SerialICE working on my Tyan boards, but I don't see
any output from the serial port after my porting attempt.
I took a step back and tried Qemu and SimNOW. I see the SerialICE
prompt, but I don't know how to test that interface.
SerialICE v1.5 (Jun 21 2010)
I was expecting to be able to enter some commands at the prompt, to
read/write memory locations and registers.
I'm attaching the patches I am working with:
emulators.diff: Add trivial support for qemu and copy support for
SimNOW from Tyan s2912 since they use the same SuperIO chip.
pci_read.diff: Add pci_read functions, since my Tyan s2895 Serial init
code uses them (copied from Coreboot)
tyan.diff: Add code for s2895 (s2892 is just a copy of s2895 right now)
debug_romstrap.diff: Make the romstrap end up looking like Coreboot's romstrap.
Qemu & SimNOW give me a prompt, but I don't know how to interact with it.
Tyan s2895 - No output.
Signed-off-by: Myles Watson <mylesgw(a)gmail.com>
My s2895 doesn't do a soft reset correctly with the coreboot image,
but it does with the factory image. Have you seen that problem? It
seems strange, because the "Reset triggered" message still shows up,
along with "Rebooting the emulated CPU", but then I get Readback
errors. I patched SerialICE to redo the handshake on reset, but that
I think I'm getting closer, but if someone has already seen something
similar or has suggestions...
> > Yes. Something is severely wrong with your SerialICE. Start from scratch
> > with a fresh checkout and use the Qemu in the tree instead of the patch.
> I just wanted to report this worked :-)
> I still had to add --extra-ldflags=-lm and --disable-kqemu to build.sh but
> at least it is running :-)
> I don't know why the
> Is not working though....
What does "use the Qemu in the tree" mean? I'm seeing some strange
behavior, and want to try what works :)