如何增加控制台字体大小并在 Yocto 中启用颜色输出 Linux
How to increase the console font size and to enable color output in Yocto Linux
我想增加字体大小并在早期启动期间为 Linux 控制台启用颜色输出。目前是使用显卡(即i915连接HDMI显示器)打印出来的,字体很难看,打印了很多[0;1;Xm[
,我认为是颜色的变化。
我正在使用 Yocto 构建我的系统,但无法在 mega 手册中找到关于此的任何信息。我能够找到 this bitbake recipe (console-tools 0.3.2) 这似乎与我想要实现的目标相关,但我不知道我是否还需要更改内核配置中的某些内容或者可能以某种方式配置图形驱动程序。
如有任何建议,我们将不胜感激!
内核自带fonts built into it. You will need to check the defconfig
you are using in the bitbake recipe to figure out which are built into yours. Assuming you already have one in there that is bigger (higher AxB values), you should just need to pass that value to the boot arguments the kernel takes when it is launched by the boot-loader. You do this via the fbcon
parameter:
fbcon=font:
Select the initial font to use. The value 'name' can be any of the
compiled-in fonts: 10x18, 6x10, 7x14, Acorn8x8, MINI4x6,
PEARL8x8, ProFont6x11, SUN12x22, SUN8x16, TER16x32, VGA8x16, VGA8x8.
Note, not all drivers can handle font with widths not divisible by 8,
such as vga16fb.
我想增加字体大小并在早期启动期间为 Linux 控制台启用颜色输出。目前是使用显卡(即i915连接HDMI显示器)打印出来的,字体很难看,打印了很多[0;1;Xm[
,我认为是颜色的变化。
我正在使用 Yocto 构建我的系统,但无法在 mega 手册中找到关于此的任何信息。我能够找到 this bitbake recipe (console-tools 0.3.2) 这似乎与我想要实现的目标相关,但我不知道我是否还需要更改内核配置中的某些内容或者可能以某种方式配置图形驱动程序。
如有任何建议,我们将不胜感激!
内核自带fonts built into it. You will need to check the defconfig
you are using in the bitbake recipe to figure out which are built into yours. Assuming you already have one in there that is bigger (higher AxB values), you should just need to pass that value to the boot arguments the kernel takes when it is launched by the boot-loader. You do this via the fbcon
parameter:
fbcon=font:
Select the initial font to use. The value 'name' can be any of the compiled-in fonts: 10x18, 6x10, 7x14, Acorn8x8, MINI4x6, PEARL8x8, ProFont6x11, SUN12x22, SUN8x16, TER16x32, VGA8x16, VGA8x8.
Note, not all drivers can handle font with widths not divisible by 8, such as vga16fb.