[ipxe-devel] serial arrow keys broken

Peter Pickford peter at netremedies.ca
Tue Apr 22 23:25:42 UTC 2014


looks like the duplication is due to using the serial console define if I
remove it and rebuild it goes away

in kvm/sebios the bios output routine write to the serial console too hence
the duplication.

how do I build one ipxe.pxe that will work with kvm vm and serial on
hardware?


On 22 April 2014 16:13, Peter Pickford <peter at netremedies.ca> wrote:

> Just done a git pull and rebuild
>
> no patches only
> #define       CONSOLE_SERIAL
> in config/local/console.h
>
> This is what I get on kvm with serial console
>
> http://pastie.org/9101958
>
> virt-manager was use on the client side
> [peter at intel-ion ~]$ pacman -Q virt-manager libvirt
> virt-manager 1.0.1-1
> libvirt 1.2.3-4
> on server
> [root at station30 ~]# rpm -qa qemu-kvm qemu-img gpxe-roms-qemu libvirt
> qemu-kvm-0.12.1.2-2.415.el6_5.8.x86_64
> gpxe-roms-qemu-0.9.7-6.10.el6.noarch
> qemu-img-0.12.1.2-2.415.el6_5.8.x86_64
> libvirt-0.10.2-29.el6_5.7.x86_64
>
>
> vm has no video drivers and uses controller virtio  serial and serial 1 as
> primary console
>
> ipxe is loaded via gpxe from tftp ipxe.pxe
>
> as you can see double chars
>
> holding down a yes has about a second pause between groups of chars being
> output (2-4 at a time)
>
> arrow keys are somewhat working but unreliable
>
> typing aaaaaaaaaa then backarrowing by holding down the arrow key gets
> iiPPXXEE>>
>  aaaaaaaaaaaaaaaaaaDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDaa
>
>
> Thanks
>
> Peter
>
>
> On 22 April 2014 15:24, Ben Hildred <42656e at gmail.com> wrote:
>
>> OK, I have an intel box on the bench and loaded ipxe that was compiled
>> with both serial and video consoles, and note behaviors
>>
>> starting with my current version:
>>
>> show version reorts:
>> builtin/version:string = 1.0.0+ (2d6d)
>> there are some patches applied to the local version
>>
>> echo ${esc:string}[2J  clears the screen both vga and serial, but on the
>> serial it leaves the prompt on the second line (due to trailing newline)
>> and on vga it leaves the prompt on the bottom of the screen. fast white on
>> black.
>>
>> the login screen is color on vga; no color, some bold on serial does not
>> draw background so fast.
>>
>> config and menu are color on vga; no color some bold on serial and draw
>> the background on both so slow,
>>
>> arrow keys and paste from serial do not work as documented.
>>
>> Now grabbing and merging today's git:
>> From git://git.ipxe.org/ipxe
>>    93acb5d..d644ad4  master     -> origin/master
>>
>> show version now reports:
>> builtin/version:string = 1.0.0+ (e97ca)
>>
>> Arrow keys now work, but paste only partialy works upto 16 characters are
>> ok then garbage.
>> All other behavior unchanged.
>>
>> and  just for completeness, recompiling with today's master:
>> builtin/version:string = 1.0.0+ (d644a)
>> no other changes, all tests repeated.
>>
>>
>>
>> On Tue, Apr 22, 2014 at 11:41 AM, Michael Brown <mcb30 at ipxe.org> wrote:
>>
>>> On 22/04/14 18:07, Ben Hildred wrote:
>>>
>>>> yep, the machine I have been testing on does not have bios serial
>>>> support, and when serial console is compiled in you can watch the cursor
>>>> flicker over every character on the screen when changing menus, on both
>>>> the serial port and vga. by the way the background is blue. This does
>>>> not seem to affect the shell, just the menus.
>>>>
>>>
>>> Over every character including the empty spaces, or just every non-space
>>> character?
>>>
>>> If it's just the non-space characters then that's expected: the output
>>> will limit itself to your serial port baud rate and you would need to use a
>>> faster baud rate to minimise the visible effects.
>>>
>>> If it's every character including the spaces, then please try the
>>> following:
>>>
>>>   set esc:hex 1b
>>>   echo ${esc:string}[2J
>>>   show version
>>>
>>> Michael
>>>
>>
>>
>>
>> --
>> --
>> Ben Hildred
>> Automation Support Services
>> 303 815 6721
>>
>> _______________________________________________
>> ipxe-devel mailing list
>> ipxe-devel at lists.ipxe.org
>> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20140422/c9878544/attachment.htm>


More information about the ipxe-devel mailing list