diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/devcpu/Makefile | 59 | ||||
-rw-r--r-- | sysutils/devcpu/distinfo | 3 | ||||
-rw-r--r-- | sysutils/devcpu/pkg-descr | 10 | ||||
-rw-r--r-- | sysutils/devcpu/pkg-message | 17 | ||||
-rw-r--r-- | sysutils/devcpu/pkg-plist | 122 |
6 files changed, 212 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 751ac5f1e1b3..fed006a9fd30 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -119,6 +119,7 @@ SUBDIR += desktopbsd-tools SUBDIR += detach SUBDIR += detox + SUBDIR += devcpu SUBDIR += di SUBDIR += dim SUBDIR += dircomp diff --git a/sysutils/devcpu/Makefile b/sysutils/devcpu/Makefile new file mode 100644 index 000000000000..f3924e198e5a --- /dev/null +++ b/sysutils/devcpu/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: devcpu +# Date created: 2006-08-16 +# Whom: stas +# +# $FreeBSD$ +# + +PORTNAME= devcpu +PORTVERSION= 0.6 +CATEGORIES= sysutils +MASTER_SITES= http://mbsd.msk.ru/dist/ + +MAINTAINER= stas@FreeBSD.org +COMMENT= Kernel module that provides access to i386 MSRs and cpuid info + +USE_BZIP2= yes + +ONLY_FOR_ARCHS= i386 amd64 +NO_PACKAGE= depends on kernel + +PLIST_SUB= KMODDIR="${KMODDIR:C,^/,,}" + +MAN4= cpu.4 +MAN8= cpu_microcode_tool.8 + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 601000 +IGNORE= not supported +.endif + +MAKE_ENV+= KMODDIR="${KMODDIR}" \ + BINDIR="${PREFIX}/bin" + +.if !exists(${SRC_BASE}/sys/Makefile) +IGNORE= requires kernel source to be installed +.endif + +post-patch: + ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \ + ${WRKSRC}/cpu_microcode_tool/cpu_microcode_tool.8 + +post-install: + ${INSTALL_DATA} ${WRKSRC}/cpu/cpu.h ${PREFIX}/include/ + ${INSTALL_MAN} ${WRKSRC}/cpu/cpu.4 ${PREFIX}/man/man4/ + ${INSTALL_MAN} ${WRKSRC}/cpu_microcode_tool/cpu_microcode_tool.8 \ + ${PREFIX}/man/man8/ + + ${MKDIR} ${DATADIR}/ + ${INSTALL_DATA} ${WRKSRC}/mcodes/* ${DATADIR}/ + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ +.endif + + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/sysutils/devcpu/distinfo b/sysutils/devcpu/distinfo new file mode 100644 index 000000000000..d2a4aa0657d2 --- /dev/null +++ b/sysutils/devcpu/distinfo @@ -0,0 +1,3 @@ +MD5 (devcpu-0.6.tar.bz2) = e4df17daf959f143aff27780b16380e7 +SHA256 (devcpu-0.6.tar.bz2) = 99cd95463e8401485b6a29e96bb96ca2499aaeafc1c10bfc6e1e690f8e0ea7d0 +SIZE (devcpu-0.6.tar.bz2) = 424255 diff --git a/sysutils/devcpu/pkg-descr b/sysutils/devcpu/pkg-descr new file mode 100644 index 000000000000..9f6b3a2e3acf --- /dev/null +++ b/sysutils/devcpu/pkg-descr @@ -0,0 +1,10 @@ +This kernel module provides access to i386/amd64 CPUs MSR (Model Specific +Register) registers and cpuid info through /dev/cpu%d devices, where %d +corresponds to cpu number. + +It can be used with x86info to retrive information available from MSR registers. + +Additionally, this module can be used to update/replace microcode of cpus. + +Author: Stanislav Sedov <stas@FreeBSD.org> +WWW: http://mbsd.msk.ru/stas/devcpu.html diff --git a/sysutils/devcpu/pkg-message b/sysutils/devcpu/pkg-message new file mode 100644 index 000000000000..0e4b3b99955b --- /dev/null +++ b/sysutils/devcpu/pkg-message @@ -0,0 +1,17 @@ +============================================================================= + +CPU kernel module was installed. + +To load it, issue + +% kldload cpu + +Then you can access MSR registers or cpuid info via /dev/cpu%d or using +3d-party programs, e.g. x86info. + +For information regarding microcode update feature refer to +cpu_mictocode_tool(4) manpage. + +Please, report any problems to maintainer. Thanks! + +============================================================================= diff --git a/sysutils/devcpu/pkg-plist b/sysutils/devcpu/pkg-plist new file mode 100644 index 000000000000..7388892f9eca --- /dev/null +++ b/sysutils/devcpu/pkg-plist @@ -0,0 +1,122 @@ +bin/cpu_microcode_tool +include/cpu.h +%%DATADIR%%/2f0708.fw +%%DATADIR%%/B_c6_612.fw +%%DATADIR%%/B_c6_616.fw +%%DATADIR%%/B_c6_617.fw +%%DATADIR%%/MU163202.fw +%%DATADIR%%/MU163336.fw +%%DATADIR%%/MU163437.fw +%%DATADIR%%/MU16502e.fw +%%DATADIR%%/MU16502f.fw +%%DATADIR%%/MU165040.fw +%%DATADIR%%/MU165041.fw +%%DATADIR%%/MU165045.fw +%%DATADIR%%/MU165140.fw +%%DATADIR%%/MU165141.fw +%%DATADIR%%/MU165142.fw +%%DATADIR%%/MU16522a.fw +%%DATADIR%%/MU16522c.fw +%%DATADIR%%/MU16522d.fw +%%DATADIR%%/MU16530c.fw +%%DATADIR%%/MU16530d.fw +%%DATADIR%%/MU165310.fw +%%DATADIR%%/MU16600a.fw +%%DATADIR%%/MU166503.fw +%%DATADIR%%/MU166a0b.fw +%%DATADIR%%/MU166a0c.fw +%%DATADIR%%/MU166a0d.fw +%%DATADIR%%/MU166d05.fw +%%DATADIR%%/MU166d06.fw +%%DATADIR%%/MU166d07.fw +%%DATADIR%%/MU16800c.fw +%%DATADIR%%/MU16800d.fw +%%DATADIR%%/MU16810d.fw +%%DATADIR%%/MU16810e.fw +%%DATADIR%%/MU16810f.fw +%%DATADIR%%/MU168111.fw +%%DATADIR%%/MU168307.fw +%%DATADIR%%/MU168308.fw +%%DATADIR%%/MU168313.fw +%%DATADIR%%/MU168314.fw +%%DATADIR%%/MU168607.fw +%%DATADIR%%/MU168608.fw +%%DATADIR%%/MU16860a.fw +%%DATADIR%%/MU16860c.fw +%%DATADIR%%/MU168a01.fw +%%DATADIR%%/MU168a04.fw +%%DATADIR%%/MU168a05.fw +%%DATADIR%%/MU16b11c.fw +%%DATADIR%%/MU16b11d.fw +%%DATADIR%%/MU16b401.fw +%%DATADIR%%/MU16b402.fw +%%DATADIR%%/MU265019.fw +%%DATADIR%%/MU26522b.fw +%%DATADIR%%/MU26530b.fw +%%DATADIR%%/MU268110.fw +%%DATADIR%%/MU268310.fw +%%DATADIR%%/MU268602.fw +%%DATADIR%%/MU26a401.fw +%%DATADIR%%/bu27_fb.fw +%%DATADIR%%/d2_619.fw +%%DATADIR%%/k8_ucode_0f48.fw +%%DATADIR%%/k8_ucode_0f4a.fw +%%DATADIR%%/k8_ucode_0f50.fw +%%DATADIR%%/m01f0712.fw +%%DATADIR%%/m01f0a13.fw +%%DATADIR%%/m01f122d.fw +%%DATADIR%%/m01f2529.fw +%%DATADIR%%/m02f0a15.fw +%%DATADIR%%/m02f122f.fw +%%DATADIR%%/m02f241f.fw +%%DATADIR%%/m02f252a.fw +%%DATADIR%%/m02f2610.fw +%%DATADIR%%/m02f2738.fw +%%DATADIR%%/m02f292d.fw +%%DATADIR%%/m02f4116.fw +%%DATADIR%%/m02f4808.fw +%%DATADIR%%/m04f0a14.fw +%%DATADIR%%/m04f122e.fw +%%DATADIR%%/m04f1305.fw +%%DATADIR%%/m04f241e.fw +%%DATADIR%%/m04f252b.fw +%%DATADIR%%/m04f2737.fw +%%DATADIR%%/m04f292e.fw +%%DATADIR%%/m04f620d.fw +%%DATADIR%%/m08f2420.fw +%%DATADIR%%/m08f2739.fw +%%DATADIR%%/m08f292f.fw +%%DATADIR%%/m0df320a.fw +%%DATADIR%%/m0df330c.fw +%%DATADIR%%/m1069507.fw +%%DATADIR%%/m10f2421.fw +%%DATADIR%%/m10f252c.fw +%%DATADIR%%/m1df3417.fw +%%DATADIR%%/m2069507.fw +%%DATADIR%%/m206d618.fw +%%DATADIR%%/m206d820.fw +%%DATADIR%%/m20f4111.fw +%%DATADIR%%/m34f6404.fw +%%DATADIR%%/m5cf4a04.fw +%%DATADIR%%/m5df4a02.fw +%%DATADIR%%/m5ff4807.fw +%%DATADIR%%/m8069547.fw +%%DATADIR%%/m9df4112.fw +%%DATADIR%%/m9df4305.fw +%%DATADIR%%/m9df4406.fw +%%DATADIR%%/m9df4703.fw +%%DATADIR%%/mbdf4117.fw +%%DATADIR%%/mbdf4903.fw +%%DATADIR%%/mu167210.fw +%%DATADIR%%/mu16730e.fw +%%DATADIR%%/mu169601.fw +%%DATADIR%%/mu267114.fw +%%DATADIR%%/mu267238.fw +%%DATADIR%%/mu26732e.fw +%%DATADIR%%/mu26a003.fw +%%DATADIR%%/mu26a101.fw +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%DATADIR%% +@cwd / +%%KMODDIR%%/cpu.ko |