Skip to contentSkip to conversation

Console output stopped working in Mini-OS

DISCUSSION Melvin Anderson 3 participants 4 messages Sep 11, 2006 – Sep 14, 2006

lore
Share & tools
lore
#0 lore raw

Console output has stopped working in mini-os (architecture i386, changeset 11440:bfd00b317815), although output to the serial line using the console_io hypercall still works.

Setting XEN_INTERFACE_VERSION to 0x00030201 in the Mini-OS makefile gets console output working again, although I don't guarantee it doesn't break other things.

The update from 0x00030201 to 0x00030202 introduced a change in the event_channel_op hypercall. The Mini-OS console driver raises an event to indicate data has been written into the console ring. Is it possible that the Mini-OS console driver isn't using the new event channel hypercall interface correctly?

Regards,

Melvin Anderson.

#1 lore raw
Quoted 5 lines · Melvin Anderson

The update from 0x00030201 to 0x00030202 introduced a change in the event_channel_op hypercall. The Mini-OS console driver raises an event to indicate data has been written into the console ring. Is it possible that the Mini-OS console driver isn't using the new event channel hypercall interface correctly?

Yes. That hypercall now has an ioctl-style interface: event_channel_op(int cmd, void *arg). Take a look in the Linux sparse tree for examples of the new usage.

-- Keir

#2 lore raw
In reply to Melvin Anderson
Quoted 9 lines

Setting XEN_INTERFACE_VERSION to 0x00030201 in the Mini-OS makefile gets console output working again, although I don't guarantee it doesn't break other things.

The update from 0x00030201 to 0x00030202 introduced a change in the event_channel_op hypercall. The Mini-OS console driver raises an event to indicate data has been written into the console ring. Is it possible that the Mini-OS console driver isn't using the new event channel hypercall interface correctly?

I discovered the event channel problem before I read this e-mail and have just posted a patch to fix it.

For me, console output is still not work properly though, so some more digging may be required.

Cheers,
Mark

Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!
#3 lore raw

Oops, I tell a lie :-)

I missed converting one structure in my original patch. Fixed that, now console works fine. I'm sending the patch in a separate e-mail.

Cheers,
Mark

Quoted 18 lines · Mark Williamson
Quoted 9 lines

Setting XEN_INTERFACE_VERSION to 0x00030201 in the Mini-OS makefile gets console output working again, although I don't guarantee it doesn't break other things.

The update from 0x00030201 to 0x00030202 introduced a change in the event_channel_op hypercall. The Mini-OS console driver raises an event to indicate data has been written into the console ring. Is it possible that the Mini-OS console driver isn't using the new event channel hypercall interface correctly?

I discovered the event channel problem before I read this e-mail and have just posted a patch to fix it.

For me, console output is still not work properly though, so some more digging may be required.

Cheers,
Mark

Signature · 4 lines
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!