[Lunar-commits] r25818 - in moonbase/trunk/zbeta: . microcode_ctl microcode_ctl/init.d
Auke Kok
sofar at lunar-linux.org
Mon Sep 17 03:40:22 CEST 2007
Author: sofar
Date: 2007-09-17 03:40:22 +0200 (Mon, 17 Sep 2007)
New Revision: 25818
Added:
moonbase/trunk/zbeta/microcode_ctl/
moonbase/trunk/zbeta/microcode_ctl/BUILD
moonbase/trunk/zbeta/microcode_ctl/DEPENDS
moonbase/trunk/zbeta/microcode_ctl/DETAILS
moonbase/trunk/zbeta/microcode_ctl/init.d/
moonbase/trunk/zbeta/microcode_ctl/init.d/microcode
Log:
Intel microcode update tool
From: sofar at foo-projects.org
Added: moonbase/trunk/zbeta/microcode_ctl/BUILD
===================================================================
--- moonbase/trunk/zbeta/microcode_ctl/BUILD (rev 0)
+++ moonbase/trunk/zbeta/microcode_ctl/BUILD 2007-09-17 01:40:22 UTC (rev 25818)
@@ -0,0 +1,9 @@
+(
+
+ make PREFIX=/usr &&
+ gzip -9f microcode_ctl.8 &&
+ prepare_install &&
+ install -s -m 755 microcode_ctl /usr/sbin &&
+ install -m 644 microcode_ctl.8.gz /usr/man/man8
+
+) > $C_FIFO 2>&1
Added: moonbase/trunk/zbeta/microcode_ctl/DEPENDS
===================================================================
--- moonbase/trunk/zbeta/microcode_ctl/DEPENDS (rev 0)
+++ moonbase/trunk/zbeta/microcode_ctl/DEPENDS 2007-09-17 01:40:22 UTC (rev 25818)
@@ -0,0 +1 @@
+depends microcode
Added: moonbase/trunk/zbeta/microcode_ctl/DETAILS
===================================================================
--- moonbase/trunk/zbeta/microcode_ctl/DETAILS (rev 0)
+++ moonbase/trunk/zbeta/microcode_ctl/DETAILS 2007-09-17 01:40:22 UTC (rev 25818)
@@ -0,0 +1,26 @@
+ MODULE=microcode_ctl
+ VERSION=1.17
+ SOURCE=${MODULE}-${VERSION}.tar.gz
+ SOURCE_URL=http://www.urbanmyth.org/microcode/
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+ SOURCE_VFY=sha1:3c32cf0b3658018a4d0de203aebdb96dce6f68d6
+ WEB_SITE="http://www.urbanmyth.org/microcode/"
+ ENTERED=20070916
+ UPDATED=20070916
+ SHORT="Intel processor microcode update utility"
+cat <<EOF
+The microcode_ctl utility is a companion to the IA32 microcode driver
+written by Tigran Aivazian <tigran at aivazian.fsnet.co.uk>. The utility
+has two uses:
+
+ * it decodes and sends new microcode to the kernel driver to
+ be uploaded to Intel IA32 processors. (Pentium Pro, PII, PIII,
+ Pentium 4, Celeron, Xeon etc - all P6 and above, which does NOT
+ include pentium classics). It also supports processors of the
+ x86_64 architecture. * it signals the kernel driver to release
+ any buffers it may hold
+
+The microcode update is volatile and needs to be uploaded on each
+system boot i.e. it doesn't reflash your cpu permanently, reboot and
+it reverts back to the old microcode.
+EOF
Added: moonbase/trunk/zbeta/microcode_ctl/init.d/microcode
===================================================================
--- moonbase/trunk/zbeta/microcode_ctl/init.d/microcode (rev 0)
+++ moonbase/trunk/zbeta/microcode_ctl/init.d/microcode 2007-09-17 01:40:22 UTC (rev 25818)
@@ -0,0 +1,27 @@
+#!/bin/bash -x
+#
+# Update intel microcode
+#
+# chkconfig: 2345 20 80
+# description: Updates the intel processor microcode
+#
+
+ARGS="-Qu"
+
+start()
+{
+ echo -n "Loading Intel microcode: "
+ [ -e /dev/cpu/microcode ] &&
+ /usr/sbin/microcode_ctl -Qu &&
+ echo -e $RESULT_OK ||
+ echo -e $RESULT_FAIL
+sleep 10
+}
+
+stop()
+{
+ :
+}
+
+. /lib/lsb/init-functions
+
More information about the Lunar-commits
mailing list