[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Grub2 with sparc64 patches



> On Jan 26, 2017, at 9:52 AM, louis ayotte <pocketpc2004@live.ca> wrote:
> 
> On 2017-01-25 03:02 PM, John Paul Adrian Glaubitz wrote:
>> On 01/25/2017 08:21 PM, Eric Snowberg wrote:
>>> I believe you are running out of memory here because grub is trying to load all those frame buffer modules within your config.
>>> 
>>>> error: no suitable video mode found.
>>> And then it didn’t find one that worked.
>>> 
>>> For this, I believe you are having the same problem as Frans.  Could you add the following to /etc/default/grub:
>>> 
>>> GRUB_TERMINAL_OUTPUT="console"
>>> GRUB_DISABLE_RECOVERY="true"
>>> GRUB_PRELOAD_MODULES=“iso9660"
>>> 
>>> and then regenerate your grub.cfg with grub-mkconfig.
>>> 
>>> Adrian,
>>> 
>>> I don’t plan on adding frame buffer support since newer systems don’t have them.  Would it be possible to change your grub package to include a /etc/default/grub file for SPARC with the changes above?  We do the same thing with our grub rpm.
>> Oh, absolutely. Thanks for the suggestion. This was just the first package and I'm happy to include
>> all improvements that are necessary.
>> 
>> Adrian
>> 
> 
> K applied these changes, in chroot
> 
>  GNU nano 2.7.4               File:
> /etc/default/grub                         
> 
> # note that you can use only modes which your graphic card supports via VBE
> # you can see them in real GRUB with the command `vbeinfo'
> #GRUB_GFXMODE=640x480
> 
> # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to
> Linux
> #GRUB_DISABLE_LINUX_UUID=true
> 
> # Uncomment to disable generation of recovery mode menu entries
> #GRUB_DISABLE_RECOVERY="true"
> 
> # Uncomment to get a beep at grub start
> #GRUB_INIT_TUNE="480 440 1"
> 
> GRUB_TERMINAL_OUTPUT="console"
> GRUB_DISABLE_RECOVERY="true"
> GRUB_PRELOAD_MODULES="iso9660"
> 
> 
> Saved and exited
> 
> 
> # grub-mkconfig

Is this the command you ran?  If so, it would not have saved the change.  You either need to redirect the output to your grub.cfg file or run it with the -o option like this:

# grub-mkconfig -o /boot/grub/grub.cfg

Currently I don’t have a Debian distro installed on SPARC. I think I need to spend some time and set one up.  So I'm assuming that is where your grub.cfg should be saved.

I also see some things below that are not in my code that probably got changed when grub was packaged up.


> Generating grub configuration file ...
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by grub-mkconfig using templates
> # from /etc/grub.d and settings from /etc/default/grub
> #
> 
> #
> ### END /etc/grub.d/00_header ###
> 
> ### BEGIN /etc/grub.d/05_debian_theme ###
> set menu_color_normal=cyan/blue
> set menu_color_highlight=white/blue

For example there is no need for colors

> ### END /etc/grub.d/05_debian_theme ###
> 
> ### BEGIN /etc/grub.d/10_linux ###
> function gfxmode {
>    set gfxpayload="${1}”
> }
> set linux_gfx_mode=
> export linux_gfx_mode

And I don’t think this should be here.

Reply to: