⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 linux环境在终端打印出所有smbios信息的代码
💻
字号:
** INTRODUCTION **Dmidecode reports information about your system's hardware as described inyour system BIOS according to the SMBIOS/DMI standard. This informationtypically includes system manufacturer, model name, serial number, BIOSversion, asset tag as well as a lot of other details of varying level ofinterest and reliability depending on the manufacturer. This will ofteninclude usage status for the CPU sockets, expansion slots (e.g. AGP, PCI,ISA) and memory module slots, and the list of I/O ports (e.g. serial,parallel, USB).Part of the dmidecode code can be found in the Linux kernel, where DMI datais used to enable or disable specific portions of code depending on thespecific hardware. Thus, one use of dmidecode is for kernel developers todetect system "signatures" and add them to the kernel source code whenneeded.Beware that DMI data have proven to be too unreliable to be blindly trusted.Dmidecode does not scan your hardware, it only reports what the BIOS told itto.** INSTALLATION **The home web page for dmidecode is hosted on Savannah:  http://www.nongnu.org/dmidecode/You will find the latest version (including CVS) there, as well as fresh newsand other interesting material, such as a list of related projects andarticles.This program was first written for Linux, and has since been reported to workon FreeBSD, NetBSD, BeOS and Cygwin as well.There's no configure script, so simply run "make" to build dmidecode, and"make install" to install it. You also can use "make uninstall" to removeall files you installed. By default, files are installed in /usr/local butyou can change this behavior by editing the Makefile file and setting prefixto wherever you want. You may change the C compiler and the compilationflags as well.Optionally, you can run "make strip" prior to "make install" if you wantsmaller binaries. However, know that this will prevent any furtherattempt to debug programs.Two parameters can be set in the Makefile file to make dmidecode work onnon-i386 systems. They should be used if your system uses the big endianbyte ordering (Motorola) or doesn't support unaligned memory accesses,respectively. For example, compiling for a SPARC processor would requireboth. Note that this hasn't been much tested though, because the datamanipulated by dmidecode and the other tools is only found on i386 andneighbour architectures (x86_64, ia64) anyway.** DOCUMENTATION **Each tool has a manual page, found in the "man" subdirectory. Manual pagesare installed by "make install". See these manual pages for command lineinterface details and tool specific information.For an history of the changes made to dmidecode, see the CHANGELOG file.If you need help, your best chances are to visit the web page (see theINSTALLATION section above) or to get in touch with the developers directly.Have a look at the AUTHORS file and contact one of the maintainers.If you want to help with the development of dmidecode, please considerjoining the dmidecode-devel discussion list:http://lists.nongnu.org/mailman/listinfo/dmidecode-develThe most common problems are detailed in the COMMON PROBLEMS section rightbelow.** COMMON PROBLEMS **MODEL SPECIFIC ISSUESDmidecode used not to work on IBM T-series laptops nor on Fujitsu-SiemensS-series laptops under Linux. This was due to the fact that the DMI tableis at a memory location we couldn't seem to reach through /dev/mem. AlthoughI believe this reveals a problem in the Linux kernel, which should be fixed,a workaround was found by Chad Smith, and we are using it for now. See theIA-64 subsection below for more details. I posted about this problem on theLKML but did not have any answer. Since then, the list of affected systemswas extended to IBM X-series laptops and xSeries x445 servers.IA-64Dmidecode used to have problems on IA-64 systems. The first reason forthis is that dmidecode accesses the DMI table through /dev/mem, and readingthis file on an IA-64 system sometimes leads to a crash. A second reason isthat the method for locating the above-mentioned table differs on IA-64(compared to x86), so dmidecode was likely to miss the table entry point.This complex issue was reported by Glen Foster and Chad Smith from HP. Wehave since been working on a solution, and dmidecode now supports IA-64systems. Chad Smith noticed that, for some obscure reason, accessing the/dev/mem file using mmap() instead of read() would work. Then, he wrote apatch to export the DMI table address from the internal EFI table to /proc,so dmidecode doesn't have to scan /dev/mem for it anymore. This patch wassince integrated into the main ia64 patch. Finally, I added the requiredcode to make it all work. So, in order to have dmidecode work on your IA-64system, you need two things: - dmidecode version 2.2 or later; - an ia64 patched kernel, using linux-2.4.21-ia64-030702.diff or any later   version.Chad Smith tested dmidecode successfully on two different IA-64 systems, andsuccesses have been reported by other users too.MMAPNote that mmap() is now used by default wherever possible, since this seemsto solve a number of problems. This default behavior can be changed inconfig.h. Just to make sure this is clear, mmap() is not used for performancereasons but to increase the number of systems on which dmidecode can besuccessfully run. See the IA-64 subsection above for details.CYGWINDmidecode was reported to work under Cygwin. It seems that /dev/mem doesn'twork properly before version 1.5.10 though, so you will need to use at leastthis version.** MISCELLANEOUS TOOLS **Three other tools come along with dmidecode: biosdecode, ownership andvpddecode.BIOSDECODEThis one prints all BIOS related information it can find in /dev/mem.It used to be part of dmidecode itself, but as dmidecode was growing,we felt that the non-DMI part had to be moved to a separate tool.OWNERSHIPThis tool was written on a request by Luc Van de Velde for use with Novelltools in his company. It retrieves the "ownership tag" that can be set onmost Compaq computers. Since it uses the same mechanisms dmidecode andbiosdecode use, and could be of some use for other people as well, wedecided to make it part of the project.VPDDECODEThis tool prints the contents of the "vital product data" structure asfound in most IBM computers. It roughly shows the same information asbiosdecode does with regard to this structure, but has an additionallookup table for the machine name.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -