# Size of grub menu?

**URL:** <https://forums.sifive.com/t/size-of-grub-menu/6860>\
**Category:** HiFive Premier P550\
**Created:** [December 30, 2024, 1:08pm UTC](https://forums.sifive.com/t/size-of-grub-menu/6860 "2024-12-30T13:08:41Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcus](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/marcus/32/939_2.png) [@marcus](https://forums.sifive.com/u/marcus)\
**Post date:** [December 30, 2024, 1:08pm UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/1 "2024-12-30T13:08:41Z")

</div>

I’m running my P550 headless and accessing the console serial port through the MCU telnet function.  
For some reason the grub menu is very large and doesn’t fit in my 80x25 terminal emulator window, making the menu look very ugly.  
The terminal output is set to “console”, which I assume means that grub uses EFI calls to U-Boot to access the serial port.  
Where am I supposed to change something to get a 80x25 sized grub menu that fits in my terminal? The `GRUB_GFXMODE` setting has no effect, which makes sense since the console is not graphical…  
Thanks.

---

<div class="post-metadata">

**Author:** ![marcus](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/marcus/32/939_2.png) [@marcus](https://forums.sifive.com/u/marcus)\
**Post date:** [December 31, 2024, 10:56am UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/2 "2024-12-31T10:56:59Z")

</div>

After much digging through both the grub and u-boot codebase, I was finally able to find the answer myself.

At the U-Boot prompt:

```auto
setenv stdout serial
setenv stderr serial
saveenv

```

This gives you a standard 80x25 menu. Weird that you can’t just set whatever window size you want…

---

<div class="post-metadata">

**Author:** ![xypron](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/xypron/32/1400_2.png) [@xypron](https://forums.sifive.com/u/xypron)\
**Post date:** [January 17, 2025, 6:26pm UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/3 "2025-01-17T18:26:52Z")

</div>

If stdout starts with ‘vidconsole’, the size of the video output window is used.

If stedout does not start with ‘vidconsole’ or the video console does not exist, U-Boot sends a query to the terminal which should respond with the screen size. If no response is received, the default is 80x25.

As most terminal emulators respond with their screen size, there is not need for a command to set the screen size in U-Boot explicitly.

---

<div class="post-metadata">

**Author:** ![marcus](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/marcus/32/939_2.png) [@marcus](https://forums.sifive.com/u/marcus)\
**Post date:** [January 17, 2025, 6:45pm UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/4 "2025-01-17T18:45:30Z")

</div>

Well, “video console does not exist” must mean something other than that there is no actual video display connected, because I’m running the system headless in a rack and it still picks the too large size as long as ‘vidconsole’ is in stdout.

The query for terminal size does not seem to work through the MCU:s telnet bridge (which doesn’t seem to actually implement the telnet protocol (RFC854) either, I had to disable local echo manually)…

---

<div class="post-metadata">

**Author:** ![RahulMoorkoth](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@RahulMoorkoth](https://forums.sifive.com/u/RahulMoorkoth)\
**Post date:** [January 23, 2025, 12:44pm UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/5 "2025-01-23T12:44:11Z")

</div>

Hi @marcus,  
Could you please share the software details which you are using to open console of serial port. I believe you are using same software for processor and MCU console.

---

<div class="post-metadata">

**Author:** ![marcus](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/marcus/32/939_2.png) [@marcus](https://forums.sifive.com/u/marcus)\
**Post date:** [January 23, 2025, 9:06pm UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/6 "2025-01-23T21:06:59Z")

</div>

Sure.

MCU firmware:  
BMC Version:2.6

SOM firmware:  
Firmware version:1.2  
OpenSBI v1.4  
U-Boot 2024.01 (Nov 06 2024 - 05:26:46 +0000)  
GNU GRUB version 2.12

This is all as it was installed on delivery. I have not changed the SPI or eMMC flash contents, just added a SATA disk for my own OS install.

---

<div class="post-metadata">

**Author:** ![RahulMoorkoth](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@RahulMoorkoth](https://forums.sifive.com/u/RahulMoorkoth)\
**Post date:** [January 24, 2025, 9:52am UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/7 "2025-01-24T09:52:29Z")

</div>

@marcus Could you let me know which terminal emulator you’re using? For example, Minicom or PuTTY?

---

<div class="post-metadata">

**Author:** ![marcus](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/marcus/32/939_2.png) [@marcus](https://forums.sifive.com/u/marcus)\
**Post date:** [January 24, 2025, 10:45am UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/8 "2025-01-24T10:45:01Z")

</div>

XTerm(396)

Minicom is for directly using serial ports, but as I said I’m using telnet to the MCU to access the SOM console port.

---

<div class="post-metadata">

**Author:** ![RahulMoorkoth](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@RahulMoorkoth](https://forums.sifive.com/u/RahulMoorkoth)\
**Post date:** [January 28, 2025, 9:15am UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/10 "2025-01-28T09:15:32Z")

</div>

Hi @marcus

We have reproduced the issue and need to verify the MCU firmware. Our firmware team is currently on vacation, and we will get back to you once they return.

---

<div class="post-metadata">

**Author:** ![marcus](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.sifive.com/marcus/32/939_2.png) [@marcus](https://forums.sifive.com/u/marcus)\
**Post date:** [January 28, 2025, 9:30am UTC](https://forums.sifive.com/t/size-of-grub-menu/6860/11 "2025-01-28T09:30:02Z")

</div>

@RahulMoorkoth No worries, the workaround of removing vidconsole from stdout/stderr to get 80x25 is good enough for me at the moment. 😀
