📄 readme
字号:
** INTRODUCTION **Dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) tablecontents in a human-readable format. This table contains a description of thesystem's hardware components, as well as other useful pieces of informationsuch as serial numbers and BIOS revision. Part of its code can be found inthe Linux kernel, because DMI data may be used to enable or disable specificportions of code depending on the hardware vendor. Thus, dmidecode is mainlyused to detect system "signatures" and add them to the kernel source codewhen needed.Apart from that, dmidecode is only scarcely used. It is said to be used as aback-end by some hardware detection programs, but DMI data have proven to betoo unreliable to be blindly trusted.** INSTALLATION **Dmidecode's home page is hosted on Savannah: https://savannah.nongnu.org/projects/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.There's no configure script yet, 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.Four parameters can be set in the Makefile to make dmidecode work onnon-i386 systems. The first two (BIGENDIAN and ALIGNMENT_WORKAROND) shouldbe used if your system uses the big endian byte ordering (Motorola) ordoesn't support unaligned memory accesses, respectively. For example,compiling for a SPARC processor would require both. The third parameter(TABLE_LITTLEENDIAN) is there for debugging purposes only and shouldn't beset by users. And finally, the __IA64__ parameter should be set forcompilation on IA-64 systems. See the COMMON PROBLEMS section below formore details about compilation on IA-64 systems.** DOCUMENTATION **There's no man page nor info page at this time. I don't know if there everwill be one. I don't really feel a need for it.This program was first written for Linux, and has since be reported to workon FreeBSD as well.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 developpersdirectly. Have a look at the AUTHORS file and contact one of the maintainers(or less likely someone else, but you'd need to have a good reason for doingso).The 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 and 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 Smith Chad. See the IA-64 subsection below formore details. I posted about this problem on the LKML but did not haveany answer.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 IA-32), so dmidecode was likely to miss the table entry point.This complex issue was reported by Glen Foster and Smith Chad from HP. Wehave since been working on a solution, and dmidecode now supports IA-64systems. Smith Chad 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 add the requied codeto make it all work. So, in order to have dmidecode work on your IA-64system, you need three things: - dmidecode version 2.2 or later; - an ia64 patched kernel, using linux-2.4.21-ia64-030702.diff or any later version; - the -D__IA64__ compilation flag set in the Makefile.Chad Smith tested dmidecode successfully on two different IA-64 systems.MMAPNote that mmap() is now used by default on all systems, since this seems tosolve a number of problems. If your system does not have the mmap() function,edit the Makefile and unset USE_MMAP.** MISCELLANEOUS TOOLS **Two other tools come along with dmidecode: biosdecode and ownership.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 our project.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -