diff options
Diffstat (limited to 'docs/grub')
-rw-r--r-- | docs/grub/index.texi | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/docs/grub/index.texi b/docs/grub/index.texi deleted file mode 100644 index afa1dc44..00000000 --- a/docs/grub/index.texi +++ /dev/null @@ -1,116 +0,0 @@ -\input texinfo -@documentencoding UTF-8 - -@ifnottex -@paragraphindent 0 -@end ifnottex -@titlepage -@title GRUB payload -@end titlepage - -@node Top -@top GRUB payload - -@menu -* GRUB payload:: -* Changing the background image in GRUB:: -* Setting font in GRUB for reference:: -* GRUB keyboard layouts for reference:: -@end menu - -@node GRUB payload -@chapter GRUB payload -@anchor{#grub-payload} -This section relates to the GRUB payload used in libreboot. - -Or @uref{../index.html,Back to main index}. - -@itemize -@item -@ref{#grub_background,Changing the background image in GRUB} -@item -@ref{#grub_font,Setting font in GRUB} -@item -@ref{#grub_keyboard,GRUB keyboard layouts} -@itemize -@item -@ref{#grub_custom_keyboard,Custom keyboard layout in GRUB} -@item -@ref{#grub_ukdvorak_keyboard,UK Dvorak keyboard layout in GRUB} -@end itemize - -@end itemize - -@node Changing the background image in GRUB -@chapter Changing the background image in GRUB -@anchor{#changing-the-background-image-in-grub} -Use cbfstool from libreboot_util, or libreboot_src/coreboot/util/cbfstool/ if you want to build from source. - -./cbfstool yourrom.rom remove background.png -n background.png@* ./cbfstool yourrom.rom add -f background.png -n background.png -t raw - -When you've done this, re-flash your ROM and you should have a new background at boot time. - -@node Setting font in GRUB for reference -@chapter Setting font in GRUB (for reference) -@anchor{#setting-font-in-grub-for-reference} -You don't need to do this unless you would like to change the default font yourself. (this is just for reference. It has already been done for you) - -The old font used was Unifont, and this had some missing characters: for instance, the border showed ??? characters instead of lines. - -I tried DeJavu Sans Mono from this website: @uref{http://dejavu-fonts.org/wiki/Download,dejavu-fonts.org} - -Specifically, the version that I chose was the latest at the time of writing (Saturday 21 June 2014): @uref{http://sourceforge.net/projects/dejavu/files/dejavu/2.34/dejavu-fonts-ttf-2.34.tar.bz2,this one} - -This is a free font that is also contained in GNU/Linux distributions like Trisquel or Parabola. - -@strong{$ cd libreboot_src/grub}@* compile grub (the build scripts info on how to do this)@* come back out into libreboot_src/resources/grub:@* @strong{$ cd ../libreboot_src/resources/grub/font} - -I took Dejavu Sans Mono from dejavu (included in this version of libreboot) and did:@* @strong{$ ../../../grub/grub-mkfont -o dejavusansmono.pf2 dejavu-fonts-ttf-2.34/ttf/DejaVuSansMono.ttf} - -I then added the instructions to 'gen.sh' script in grub-assemble to include resources/grub/dejavusansmono.pf2 in all of the ROM images, at the root of the GRUB memdisk.@* I then added that instructions to the grub.cfg files (to load the font):@* @strong{loadfont (memdisk)/dejavusansmono.pf2} - -@ref{#pagetop,Back to top of page} - -@node GRUB keyboard layouts for reference -@chapter GRUB keyboard layouts (for reference) -@anchor{#grub-keyboard-layouts-for-reference} -@menu -* Custom keyboard layout in GRUB for reference:: -* UK Dvorak keyboard layout in GRUB for reference:: -@end menu - -@node Custom keyboard layout in GRUB for reference -@section Custom keyboard layout in GRUB (for reference) -@anchor{#custom-keyboard-layout-in-grub-for-reference} -Keymaps are stored in resources/utilities/grub-assemble/keymap/. - -Example (French Azerty):@* @strong{$ ckbcomp fr > frazerty}@*@* Go in grub directory:@* @strong{cat frazerty | ./grub/grub-mklayout -o frazerty.gkb} - -You must make sure that the files are named keymap and keymap.gkb (where 'keymap' can be whatever you want). - -Then from the above example, you would put @strong{frazerty} in @strong{resources/utilities/grub-assemble/keymap/original/} and the @strong{frazerty.gkb} file goes under @strong{resources/utilities/grub-assemble/keymap/} - -The build scripts will automatically see this, and automatically build ROM images with your custom layout (given the name) and include them under bin. Example: @strong{libreboot_frazerty.rom}. - -@ref{#pagetop,Back to top of page} - -@node UK Dvorak keyboard layout in GRUB for reference -@section UK Dvorak keyboard layout in GRUB (for reference) -@anchor{#uk-dvorak-keyboard-layout-in-grub-for-reference} -ukdvorak had to be created manually, based on usdvorak. diff them (under resources/utilities/grub-assemble/keymap/original) to see how ukdvorak file was created - -@strong{$ cat ukdvorak | ./grub/grub-mklayout -o ukdvorak.gkb} - -@ref{#pagetop,Back to top of page} - -Copyright © 2014 Francis Rowe <info@@gluglug.org.uk>@* Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at @uref{../gfdl-1.3.txt,../gfdl-1.3.txt} - -Updated versions of the license (when available) can be found at @uref{https://www.gnu.org/licenses/licenses.html,https://www.gnu.org/licenses/licenses.html} - -UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - -TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - -The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. - -@bye |