首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何“编辑grub以添加iomem=relaxed"?

如何“编辑grub以添加iomem=relaxed"?
EN

Ask Ubuntu用户
提问于 2019-02-23 10:00:29
回答 1查看 11.3K关注 0票数 2
  • Ubuntu 18.04 64位
  • 利布靴
  • 闪光灯0.99

这件事超出了我的能力。

我想在千兆字节主板上的闪存libreboot

我得到了ROM文件,并将其重命名为libreboot.rom,并将其命名为tnstalled。

然后我运行命令

代码语言:javascript
复制
flashrom -p internal:dualbiosindex=0 -w libreboot.rom

但这不起作用。

有人告诉我编辑grub以添加iomem=relaxed

在> etc > default > grub中,grub文件有:

代码语言:javascript
复制
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# 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"

我要编辑吗?

代码语言:javascript
复制
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

转到

代码语言:javascript
复制
GRUB_CMDLINE_LINUX_DEFAULT="iomem=relaxed quiet splash"

用奈诺?

EN

回答 1

Ask Ubuntu用户

发布于 2019-08-02 01:32:32

您可以使用nano,但就我个人而言,无论是在我的常规用户帐户中还是在sudo中,我都可以使用gedit做任何事情。在这种情况下,需要sudo,所以应该是:

代码语言:javascript
复制
sudo -H gedit /etc/default/grub

然后改变:

代码语言:javascript
复制
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

至:

代码语言:javascript
复制
GRUB_CMDLINE_LINUX_DEFAULT="iomem=relaxed quiet splash"
  • 保存文件
  • 出口gedit
  • 运行sudo update-grub
  • reboot

重新启动类型:

代码语言:javascript
复制
cat /proc/cmdline

您将看到您的更改生效。无论一切是否正常,都是另一回事:)

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1120578

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档