LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-16-2017, 09:03 AM   #1
lagavulin16
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Rep: Reputation: Disabled
Is it possible to update intel microcode using kernel-huge and grub2, without initrd?


Hi to all respectable Slackers! I'm new here and I have a simple (at first sight) question: how can it possible to update intel microcode when kernel-huge and grub2 are in use? I don't have an initrd, but available instructions keep in mind that you must have it. I'm using iucode_tool and intel-microcode from SBo and looks like GRUB2 can't handle intel-ucode.cpio file by yourself. How can I fix it? Switch to generic kernel or use lilo?)) Thanks a lot in advance.
 
Old 08-16-2017, 10:36 AM   #2
hendrickxm
Member
 
Registered: Feb 2014
Posts: 255

Rep: Reputation: Disabled
If you install the latest kernel-huge (without initrd) and you use grub2 as bootloader you should update your /boot/grub/grub.cfg or use grub-mkconfig.
Code:
grub-mkconfig -o /boot/grub/grub.cfg
 
Old 08-16-2017, 02:38 PM   #3
Loomx
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 77

Rep: Reputation: Disabled
This might not be quite the answer you want, but the 'intel_ucode.cpio' file *is* an initrd file already.

I don't use grub, but you *should* be able to just point grub's config to it and it will load before the kernel.
 
Old 08-16-2017, 08:14 PM   #4
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 14.2 + Multilib
Posts: 1,484

Rep: Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921Reputation: 921
Quote:
Originally Posted by lagavulin16 View Post
Hi to all respectable Slackers! I'm new here and I have a simple (at first sight) question: how can it possible to update intel microcode when kernel-huge and grub2 are in use? I don't have an initrd, but available instructions keep in mind that you must have it. I'm using iucode_tool and intel-microcode from SBo and looks like GRUB2 can't handle intel-ucode.cpio file by yourself. How can I fix it? Switch to generic kernel or use lilo?)) Thanks a lot in advance.
lagavulin16 --

I run lilo, not grub but I do use the two SBo Packages iucode_tool and intel-microcode on my i7 6700k Skylake System.

As Loomx said, /boot/intel-ucode.cpio as provided by intel-microcode-20170707-noarch-1_SBo *_IS_* an initrd file.

I imagine that grub, like lilo will accept the /boot/intel-ucode.cpio file as an initrd file because that's what it truly is.

Below are the stanzas from /etc/lilo.conf for the latest 4.4.83 kernel that I just now booted.

Note that for the HUGE Kernel, I set the initrd to /boot/intel-ucode.cpio

HTH ... Works great for me !

-- kjh

# these are the pair of lilo stanzas for 4.4.83.kjh HUGE and GENERIC

Code:
image    = /boot/vmlinuz-huge-4.4.83.kjh
  root   = /dev/sda3
  initrd = /boot/intel-ucode.cpio
  label  = Linux4483H.kjh
  read-only
image    = /boot/vmlinuz-generic-4.4.83.kjh
  root   = /dev/sda3
  initrd = /boot/initrd-generic-4.4.83.kjh-ucode.gz
  label  = Linux4483G.kjh
  read-only
 
1 members found this post helpful.
Old 08-16-2017, 11:50 PM   #5
elcore
Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 662

Rep: Reputation: Disabled
There's a reload feature, where you can load the correct ucode from /lib/firmware even if you boot without including early microcode to initrd.
I'd just add this line to runlevel 3 and check dmesg to see if it worked.

Code:
echo 1 > /sys/devices/system/cpu/microcode/reload
 
5 members found this post helpful.
Old 01-03-2018, 09:27 AM   #6
lagavulin16
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by elcore View Post
There's a reload feature, where you can load the correct ucode from /lib/firmware even if you boot without including early microcode to initrd.
I'd just add this line to runlevel 3 and check dmesg to see if it worked.

Code:
echo 1 > /sys/devices/system/cpu/microcode/reload
Thanks, this works flawlessly!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
intel-microcode-20170707 kjhambrick Slackware 1 07-15-2017 08:04 AM
[SOLVED] 14.2/64 win not boot huge kernel after update to 4.4.19 kernel camorri Slackware 10 08-27-2016 05:18 AM
[SOLVED] initrd vmlinuz > huge kernel ? ghartl1 Slackware - Installation 5 10-01-2015 05:23 PM
[SOLVED] setting up initrd / generic kernel in Grub2...can't load generic Ubunoob001 Slackware 12 03-20-2015 07:32 AM
booting with initrd vs huge kernel mariner53 Slackware 10 11-24-2013 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration