osdir.com
mailing list archive

Subject: [Bug #522] different terminal emulations for serial consoles - msg#00089

List: boot-loaders.grub.bugs

Date: Prev Next Index Thread: Prev Next Index

=================== BUG #522: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=522&group_id=68

Changes by: Dr. Tilmann Bubeck <bubeck@xxxxxxxxxxxxxxxx>
Date: 2002-Nov-22 21:21 (Europe/Berlin)

------------------ Additional Follow-up Comments ----------------------------
Have you had time to apply the patch? It's nearly half a year now... It would
save me some time, if I don't have to patch any new redhat version, because my
patch is not found in there...

Thanks!
Till



=================== BUG #522: FULL BUG SNAPSHOT ===================


Submitted by: bubeck Project: GNU GRUB
Submitted on: 2002-Jun-01 18:04
Category: Terminal Severity: Major
Priority: Later Bug Group: Feature Request
Resolution: None Assigned to: okuji
Status: Accepted Release: 0.92
Reproducibility: None Planned Release: 0.93

Summary: different terminal emulations for serial consoles

Original Submission: please find enclosed a patch to enable grub to work with
any kind of
serial console, not just vt100. This is realized by a new builtin command
called "terminfo" which could be used to set the 6 different escape
sequences used by grub to their correct value. E.g. you would say for a
ibm3161 terminal:

terminfo --name=ibm3161 --cursor_left=\ED --cursor_right=\EC
--cursor_address=\EY%p1%{32}%+%c%p2%{32}%+%c --clear_screen=\EH\EJ
--enter_standout_mode=\E4A --exit_standout_mode=\E4@\E<@

Then I changed a few lines of grub, so that the hard coded escape
sequences of vt100 are replaced by the given variables. The default of
grub is still vt100, so if the user will not use the new builtin command,
then grub will behave as before.

The user can get the above terminfo command line by using the infocmp(1)
command under linux or by using the shell skript
util/make-terminfo-command which is also included in this patch. This
shell skript will print out the correct command line for a given terminal
by asking ncurses for the right escape sequences. The above command line
is generated by "make-terminfo-command".

The most complicated thing of this terminal emulation was the
"cursor_address" command, because every terminal uses its own way to
specify the X/Y position of the cursor. Therefore I decided to include the
file "tparm.c" from ncurses-5.2 and modify it slightly, so that it can be
used within grub. The main thing was to change the memory allocation from
dynamic to static. Ncurses-5.2 is (C) by FSF and inclusion should be no
problem. The license is more "weak" than GPL, its basically BSD-like.


Follow-up Comments
*******************

-------------------------------------------------------
Date: 2002-Nov-22 21:21 By: bubeck
Have you had time to apply the patch? It's nearly half a year now... It would
save me some time, if I don't have to patch any new redhat version, because my
patch is not found in there...

Thanks!
Till

-------------------------------------------------------
Date: 2002-Jul-04 23:00 By: okuji
Now your copyright assignment has been accepted, so
I'll incorporate your patch, once other tasks are finished.
That would take a while. Be patient, please.

Okuji

-------------------------------------------------------
Date: 2002-Jun-13 21:44 By: bubeck
Your changes to the code are _very_ good! Enclosed you find a new patch based
upon the current CVS.

Thanks,
Till

-------------------------------------------------------
Date: 2002-Jun-11 18:44 By: okuji
Your patch cannot be applied cleanly any longer, because
I've rewritten the terminal handling code heavily.

Because the terminal code now looks good, I'd like to apply
your patch, if possible. Would you like to adapt your patch
to the current CVS?

Thanks,
Okuji


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: 2002-Jun-13 21:44 Name: grub-terminal-emulation-v2.patch Size: 41KB
By: bubeck
New patch based upon CVS after changed thru okuji
http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=522&amp;bug_file_id=32

-------------------------------------------------------
Date: 2002-Jun-01 18:04 Name: grub-terminal-emulation.patch Size: 41KB By:
bubeck
patch
http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=522&amp;bug_file_id=21


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=522&group_id=68


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

[Bug #567] Print loaded Linux kernel version

=================== BUG #567: LATEST MODIFICATIONS ================== http://savannah.gnu.org/bugs/?func=detailbug&bug_id=567&group_id=68 Changes by: Dr. Tilmann Bubeck <bubeck@xxxxxxxxxxxxxxxx> Date: 2002-Nov-22 21:19 (Europe/Berlin) ------------------ Additional Follow-up Comments ---------------------------- I like the patch, because any information from within a boot loader is interesting and could be useful. If a system is in a critical stage (does not boot anymore), ANY information is probably welcome. Apart from that, why not? Do we have a memory or disk limit? =================== BUG #567: FULL BUG SNAPSHOT =================== Submitted by: hno Project: GNU GRUB Submitted on: 2002-Jun-09 17:35 Category: User Interface Severity: Major Priority: None Bug Group: Feature Request Resolution: None Assigned to: None Status: Open Release: CVS Reproducibility: None Planned Release: Summary: Print loaded Linux kernel version Original Submission: It would be nice if the loaded Linux kernel version was printed in the kernel blurb. Patch suggestion attached. grub> kernel /vmlinuz [Linux-bzImage 2.4.18-3 (bhcompile@xxxxxxxxxxxxxxxxxxxxx) #1 Thu Apr 18 07:3 7:53 EDT 2002, setup=0x1400, size=0xfa203] The patch also moves the printout of the kernel blurb before the zImage validation, allowing one to see what it was that did not fit.. Follow-up Comments ******************* ------------------------------------------------------- Date: 2002-Nov-22 21:19 By: bubeck I like the patch, because any information from within a boot loader is interesting and could be useful. If a system is in a critical stage (does not boot anymore), ANY information is probably welcome. Apart from that, why not? Do we have a memory or disk limit? ------------------------------------------------------- Date: 2002-Sep-13 07:04 By: okuji I don't see why it is so useful, because I always name kernel images with version numbers. Also, I feel it too verbose. Of course, that's my subjectivity. So I don't object, if many people agree with you. Thanks, Okuji ------------------------------------------------------- Date: 2002-Sep-11 17:49 By: hno No comments on this one? Still using it and find it quite helpful when dealing with different kernel versions etc.. CC list is empty File Attachments **************** ------------------------------------------------------- Date: 2002-Nov-22 18:23 Name: grub-linux-version.patch Size: 2KB By: hno patch to print loaded Linux kernel version (updated to apply to current CVS) http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=567&amp;bug_file_id=163 ------------------------------------------------------- Date: 2002-Jun-09 17:35 Name: grub_linux_version.patch Size: 2KB By: hno patch to print loaded Linux kernel version http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=567&amp;bug_file_id=27 For detailed info, follow this link: http://savannah.gnu.org/bugs/?func=detailbug&bug_id=567&group_id=68

Next Message by Date: click to view message preview

[Bug #522] different terminal emulations for serial consoles

=================== BUG #522: LATEST MODIFICATIONS ================== http://savannah.gnu.org/bugs/?func=detailbug&bug_id=522&group_id=68 Changes by: Dr. Tilmann Bubeck <bubeck@xxxxxxxxxxxxxxxx> Date: 2002-Nov-22 21:22 (Europe/Berlin) ------------------ Additional Follow-up Comments ---------------------------- Have you had time to apply the patch? It's nearly half a year now... It would save me some time, if I don't have to patch any new redhat version, because my patch is not found in there... Thanks! Till =================== BUG #522: FULL BUG SNAPSHOT =================== Submitted by: bubeck Project: GNU GRUB Submitted on: 2002-Jun-01 18:04 Category: Terminal Severity: Major Priority: Later Bug Group: Feature Request Resolution: None Assigned to: okuji Status: Accepted Release: 0.92 Reproducibility: None Planned Release: 0.93 Summary: different terminal emulations for serial consoles Original Submission: please find enclosed a patch to enable grub to work with any kind of serial console, not just vt100. This is realized by a new builtin command called "terminfo" which could be used to set the 6 different escape sequences used by grub to their correct value. E.g. you would say for a ibm3161 terminal: terminfo --name=ibm3161 --cursor_left=\ED --cursor_right=\EC --cursor_address=\EY%p1%{32}%+%c%p2%{32}%+%c --clear_screen=\EH\EJ --enter_standout_mode=\E4A --exit_standout_mode=\E4@\E<@ Then I changed a few lines of grub, so that the hard coded escape sequences of vt100 are replaced by the given variables. The default of grub is still vt100, so if the user will not use the new builtin command, then grub will behave as before. The user can get the above terminfo command line by using the infocmp(1) command under linux or by using the shell skript util/make-terminfo-command which is also included in this patch. This shell skript will print out the correct command line for a given terminal by asking ncurses for the right escape sequences. The above command line is generated by "make-terminfo-command". The most complicated thing of this terminal emulation was the "cursor_address" command, because every terminal uses its own way to specify the X/Y position of the cursor. Therefore I decided to include the file "tparm.c" from ncurses-5.2 and modify it slightly, so that it can be used within grub. The main thing was to change the memory allocation from dynamic to static. Ncurses-5.2 is (C) by FSF and inclusion should be no problem. The license is more "weak" than GPL, its basically BSD-like. Follow-up Comments ******************* ------------------------------------------------------- Date: 2002-Nov-22 21:22 By: bubeck Have you had time to apply the patch? It's nearly half a year now... It would save me some time, if I don't have to patch any new redhat version, because my patch is not found in there... Thanks! Till ------------------------------------------------------- Date: 2002-Nov-22 21:21 By: bubeck Have you had time to apply the patch? It's nearly half a year now... It would save me some time, if I don't have to patch any new redhat version, because my patch is not found in there... Thanks! Till ------------------------------------------------------- Date: 2002-Jul-04 23:00 By: okuji Now your copyright assignment has been accepted, so I'll incorporate your patch, once other tasks are finished. That would take a while. Be patient, please. Okuji ------------------------------------------------------- Date: 2002-Jun-13 21:44 By: bubeck Your changes to the code are _very_ good! Enclosed you find a new patch based upon the current CVS. Thanks, Till ------------------------------------------------------- Date: 2002-Jun-11 18:44 By: okuji Your patch cannot be applied cleanly any longer, because I've rewritten the terminal handling code heavily. Because the terminal code now looks good, I'd like to apply your patch, if possible. Would you like to adapt your patch to the current CVS? Thanks, Okuji CC list is empty File Attachments **************** ------------------------------------------------------- Date: 2002-Jun-13 21:44 Name: grub-terminal-emulation-v2.patch Size: 41KB By: bubeck New patch based upon CVS after changed thru okuji http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=522&amp;bug_file_id=32 ------------------------------------------------------- Date: 2002-Jun-01 18:04 Name: grub-terminal-emulation.patch Size: 41KB By: bubeck patch http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=522&amp;bug_file_id=21 For detailed info, follow this link: http://savannah.gnu.org/bugs/?func=detailbug&bug_id=522&group_id=68

Previous Message by Thread: click to view message preview

[Bug #864] cramfs & romfs?

=================== BUG #864: LATEST MODIFICATIONS ================== http://savannah.gnu.org/bugs/?func=detailbug&bug_id=864&group_id=68 Changes by: Henrik Nordstrom <hno@xxxxxxxxxxxxxxx> Date: 2002-Nov-22 17:45 (GMT) ------------------ Additional Follow-up Comments ---------------------------- Slightly fixed version of Rus Dills patch http://mail.gnu.org/pipermail/bug-grub/2002-April/007105.html =================== BUG #864: FULL BUG SNAPSHOT =================== Submitted by: None Project: GNU GRUB Submitted on: 2002-Jul-17 13:23 Category: Filesystem Severity: Major Priority: None Bug Group: Feature Request Resolution: None Assigned to: None Status: Open Release: Reproducibility: None Planned Release: Summary: cramfs & romfs? Original Submission: Support for read-only filesystems cramfs and romfs would be nice. These are used a lot with embedded systems. Both have support in vanilla Linux kernel 2.4. http://romfs.sourceforge.net/ http://sourceforge.net/projects/cramfs/ Follow-up Comments ******************* ------------------------------------------------------- Date: 2002-Nov-22 17:45 By: hno Slightly fixed version of Rus Dills patch http://mail.gnu.org/pipermail/bug-grub/2002-April/007105.html ------------------------------------------------------- Date: 2002-Oct-01 12:39 By: hno Original submission: http://mail.gnu.org/pipermail/bug-grub/2002-April/007086.html ------------------------------------------------------- Date: 2002-Oct-01 12:31 By: hno There is a cramfs patch posted to grub-bug, originally by Russ Dill. http://mail.gnu.org/pipermail/bug-grub/2002-May/007136.html ------------------------------------------------------- Date: 2002-Sep-21 20:12 By: None Here's a patch that implements romfs support for grub. It's nowhere near perfect, but does boot. tv@xxxxxxxxxx ------------------------------------------------------- Date: 2002-Sep-11 15:52 By: hno I'll second this one. Writing drivers for the two is on my very long todo, but for some reasons I never seem to get there.. Both use relatively simple structures, but cramfs requires parts of zlib.. (included in grub). CC list is empty File Attachments **************** ------------------------------------------------------- Date: 2002-Sep-21 20:12 Name: grub-romfs.patch Size: 10KB By: None Patch that implements romfs support in grub http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=864&amp;bug_file_id=94 For detailed info, follow this link: http://savannah.gnu.org/bugs/?func=detailbug&bug_id=864&group_id=68

Next Message by Thread: click to view message preview

[Bug #522] different terminal emulations for serial consoles

=================== BUG #522: LATEST MODIFICATIONS ================== http://savannah.gnu.org/bugs/?func=detailbug&bug_id=522&group_id=68 Changes by: Dr. Tilmann Bubeck <bubeck@xxxxxxxxxxxxxxxx> Date: 2002-Nov-22 21:22 (Europe/Berlin) ------------------ Additional Follow-up Comments ---------------------------- Have you had time to apply the patch? It's nearly half a year now... It would save me some time, if I don't have to patch any new redhat version, because my patch is not found in there... Thanks! Till =================== BUG #522: FULL BUG SNAPSHOT =================== Submitted by: bubeck Project: GNU GRUB Submitted on: 2002-Jun-01 18:04 Category: Terminal Severity: Major Priority: Later Bug Group: Feature Request Resolution: None Assigned to: okuji Status: Accepted Release: 0.92 Reproducibility: None Planned Release: 0.93 Summary: different terminal emulations for serial consoles Original Submission: please find enclosed a patch to enable grub to work with any kind of serial console, not just vt100. This is realized by a new builtin command called "terminfo" which could be used to set the 6 different escape sequences used by grub to their correct value. E.g. you would say for a ibm3161 terminal: terminfo --name=ibm3161 --cursor_left=\ED --cursor_right=\EC --cursor_address=\EY%p1%{32}%+%c%p2%{32}%+%c --clear_screen=\EH\EJ --enter_standout_mode=\E4A --exit_standout_mode=\E4@\E<@ Then I changed a few lines of grub, so that the hard coded escape sequences of vt100 are replaced by the given variables. The default of grub is still vt100, so if the user will not use the new builtin command, then grub will behave as before. The user can get the above terminfo command line by using the infocmp(1) command under linux or by using the shell skript util/make-terminfo-command which is also included in this patch. This shell skript will print out the correct command line for a given terminal by asking ncurses for the right escape sequences. The above command line is generated by "make-terminfo-command". The most complicated thing of this terminal emulation was the "cursor_address" command, because every terminal uses its own way to specify the X/Y position of the cursor. Therefore I decided to include the file "tparm.c" from ncurses-5.2 and modify it slightly, so that it can be used within grub. The main thing was to change the memory allocation from dynamic to static. Ncurses-5.2 is (C) by FSF and inclusion should be no problem. The license is more "weak" than GPL, its basically BSD-like. Follow-up Comments ******************* ------------------------------------------------------- Date: 2002-Nov-22 21:22 By: bubeck Have you had time to apply the patch? It's nearly half a year now... It would save me some time, if I don't have to patch any new redhat version, because my patch is not found in there... Thanks! Till ------------------------------------------------------- Date: 2002-Nov-22 21:21 By: bubeck Have you had time to apply the patch? It's nearly half a year now... It would save me some time, if I don't have to patch any new redhat version, because my patch is not found in there... Thanks! Till ------------------------------------------------------- Date: 2002-Jul-04 23:00 By: okuji Now your copyright assignment has been accepted, so I'll incorporate your patch, once other tasks are finished. That would take a while. Be patient, please. Okuji ------------------------------------------------------- Date: 2002-Jun-13 21:44 By: bubeck Your changes to the code are _very_ good! Enclosed you find a new patch based upon the current CVS. Thanks, Till ------------------------------------------------------- Date: 2002-Jun-11 18:44 By: okuji Your patch cannot be applied cleanly any longer, because I've rewritten the terminal handling code heavily. Because the terminal code now looks good, I'd like to apply your patch, if possible. Would you like to adapt your patch to the current CVS? Thanks, Okuji CC list is empty File Attachments **************** ------------------------------------------------------- Date: 2002-Jun-13 21:44 Name: grub-terminal-emulation-v2.patch Size: 41KB By: bubeck New patch based upon CVS after changed thru okuji http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=522&amp;bug_file_id=32 ------------------------------------------------------- Date: 2002-Jun-01 18:04 Name: grub-terminal-emulation.patch Size: 41KB By: bubeck patch http://savannah.gnu.org/bugs/download.php?group_id=68&amp;bug_id=522&amp;bug_file_id=21 For detailed info, follow this link: http://savannah.gnu.org/bugs/?func=detailbug&bug_id=522&group_id=68
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by