diff options
author | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2009-03-31 11:42:38 +0000 |
---|---|---|
committer | nima <nima@abc39116-655e-4be6-ad55-d661dc543056> | 2009-03-31 11:42:38 +0000 |
commit | d7200d96d5b90bcd0013c84ec1b053acbcca86c9 (patch) | |
tree | 76b63b8b927bdbb544fa2de66747baa5cd3da058 /doc | |
parent | 37d1a8117cd212ee9e47bbd4225ba76dece7dad7 (diff) | |
download | python-dmidecode-d7200d96d5b90bcd0013c84ec1b053acbcca86c9.tar.gz python-dmidecode-d7200d96d5b90bcd0013c84ec1b053acbcca86c9.tar.xz python-dmidecode-d7200d96d5b90bcd0013c84ec1b053acbcca86c9.zip |
Reverting recent (pointless) change.
git-svn-id: svn://svn.autonomy.net.au/python-dmidecode@180 abc39116-655e-4be6-ad55-d661dc543056
Diffstat (limited to 'doc')
-rw-r--r-- | doc/AUTHORS | 15 | ||||
-rw-r--r-- | doc/AUTHORS.upstream | 70 | ||||
-rw-r--r-- | doc/LICENSE | 621 | ||||
-rw-r--r-- | doc/README.types | 55 | ||||
-rw-r--r-- | doc/README.upstream | 116 | ||||
-rw-r--r-- | doc/changelog | 1009 | ||||
-rwxr-xr-x | doc/dmidump.py | 54 |
7 files changed, 1940 insertions, 0 deletions
diff --git a/doc/AUTHORS b/doc/AUTHORS new file mode 100644 index 0000000..05475b7 --- /dev/null +++ b/doc/AUTHORS @@ -0,0 +1,15 @@ +DEVELOPER AND MAINTAINER OF PYTHON MODULE (http://projects.autonomy.net.au/dmidecode) +Nima Talebi <nima@it.net.au> + +DEVELOPER AND MAINTAINER OF DMIDECODE (Please see http://www.nongnu.org/dmidecode) +Jean Delvare <khali@linux-fr.org> + +ORIGINAL AUTHOR +Alan Cox <alan@redhat.com> + +MANY THANKS TO (IN CHRONOLOGICAL ORDER) +Jean Delvare <khali@linux-fr.org> +Stephen Darragh <srd@it.net.au> +Joel Heenan <joel.heenan@det.nsw.edu.au> +Vaughan Whitteron <vaughan.whitteron@det.nsw.edu.au> +Justin Cook diff --git a/doc/AUTHORS.upstream b/doc/AUTHORS.upstream new file mode 100644 index 0000000..1ad50db --- /dev/null +++ b/doc/AUTHORS.upstream @@ -0,0 +1,70 @@ +DEVELOPER AND MAINTAINER +Jean Delvare <khali@linux-fr.org> + +ORIGINAL AUTHOR +Alan Cox <alan@redhat.com> + +CODE CONTRIBUTORS (IN CHRONOLOGICAL ORDER) +Matt Domsch <Matt_Domsch@dell.com> +Arjan van de Ven <arjanv@redhat.com> +Mark D. Studebaker <mds@paradyne.com> +Larry Lile <llile@dreamworks.com> +Dave Johnson <ddj@cascv.brown.edu> +Petter Reinholdtsen <pere@hungry.com> +Roberto Nibali <ratz@tac.ch> +John Cagle <jcagle@kernel.org> +Jens Elkner <elkner@linofee.org> + +MANY THANKS TO (IN CHRONOLOGICAL ORDER) +Werner Heuser +Alexandre Duret-Lutz +Xavier Roche +Pamela Huntley +Gael Stephan +Sebastian Henschel +Richard Sharpe +David Wilson +Glen Foster +Chad Smith +Joshua Goldenhar +Luc Van de Velde +Mario Lang +Hugues Lepesant +Sergey Leonovich +Mike Cooper +Marc Rieffel +Jeff Moyer +Josef Moellers +Zing Zing Shishak +Rafael Avila de Espindola +Roger Koot +Martin Pool +Doug Brenner +Alex Williamson +Durval Menezes +Raphael Raimbault +Raul Nunez de Arenas Coronado +Francois Revol +Dominik Klein +Erwan Velu +Don Howard +Frans Pop +Tomek Mateja +Myke Olson +Torsten Seemann +Garry Belka +Klaus Muth +Antoine Fuselier +Matthew Garrett +Landry Breuil +Luke Suchocki +Attila Nagy +Alex Iribarren +Sebastien Douche +William Lallemand +Olivier Guerrier +Pascal Terjan +Stuart Hayes +Sofian Brabez +Vincent Pelletier +Andreas Gruenbacher diff --git a/doc/LICENSE b/doc/LICENSE new file mode 100644 index 0000000..94a0453 --- /dev/null +++ b/doc/LICENSE @@ -0,0 +1,621 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS diff --git a/doc/README.types b/doc/README.types new file mode 100644 index 0000000..5d65a3a --- /dev/null +++ b/doc/README.types @@ -0,0 +1,55 @@ + Type Information + ---------------------------------------- + 0 BIOS + 1 System + 2 Base Board + 3 Chassis + 4 Processor + 5 Memory Controller + 6 Memory Module + 7 Cache + 8 Port Connector + 9 System Slots + 10 On Board Devices + 11 OEM Strings + 12 System Configuration Options + 13 BIOS Language + 14 Group Associations + 15 System Event Log + 16 Physical Memory Array + 17 Memory Device + 18 32-bit Memory Error + 19 Memory Array Mapped Address + 20 Memory Device Mapped Address + 21 Built-in Pointing Device + 22 Portable Battery + 23 System Reset + 24 Hardware Security + 25 System Power Controls + 26 Voltage Probe + 27 Cooling Device + 28 Temperature Probe + 29 Electrical Current Probe + 30 Out-of-band Remote Access + 31 Boot Integrity Services + 32 System Boot + 33 64-bit Memory Error + 34 Management Device + 35 Management Device Component + 36 Management Device Threshold Data + 37 Memory Channel + 38 IPMI Device + 39 Power Supply + + + Keyword Types + ------------------------------ + bios 0, 13 + system 1, 12, 15, 23, 32 + baseboard 2, 10 + chassis 3 + processor 4 + memory 5, 6, 16, 17 + cache 7 + connector 8 + slot 9 diff --git a/doc/README.upstream b/doc/README.upstream new file mode 100644 index 0000000..391a5cb --- /dev/null +++ b/doc/README.upstream @@ -0,0 +1,116 @@ +** INTRODUCTION ** + +Dmidecode reports information about your system's hardware as described in +your system BIOS according to the SMBIOS/DMI standard. This information +typically includes system manufacturer, model name, serial number, BIOS +version, asset tag as well as a lot of other details of varying level of +interest and reliability depending on the manufacturer. This will often +include 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). + +DMI data can be used to enable or disable specific portions of kernel code +depending on the specific hardware. Thus, one use of dmidecode is for kernel +developers to detect system "signatures" and add them to the kernel source +code when needed. + +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 it +to. + + +** 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 news +and other interesting material, such as a list of related projects and +articles. + +This program was first written for Linux, and has since been reported to work +on FreeBSD, NetBSD, OpenBSD, BeOS, Cygwin and Solaris 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 remove +all the files you installed. By default, files are installed in /usr/local +but you can change this behavior by editing the Makefile file and setting +prefix to wherever you want. You may change the C compiler and the +compilation flags as well. + +Optionally, you can run "make strip" prior to "make install" if you want +smaller binaries. However, be aware that this will prevent any further +attempt to debug the programs. + +Two parameters can be set in the Makefile file to make dmidecode work on +non-i386 systems. They should be used if your system uses the big endian +byte ordering (Motorola) or doesn't support unaligned memory accesses, +respectively. For example, compiling for a SPARC processor would require +both (but I am not aware of SPARC-based systems implementing SMBIOS). +Compiling for an IA64 processor requires the memory alignment workaround, +and it is enabled automatically. + + +** DOCUMENTATION ** + +Each tool has a manual page, found in the "man" subdirectory. Manual pages +are installed by "make install". See these manual pages for command line +interface 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 the +INSTALLATION 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 consider +joining the dmidecode-devel discussion list: + http://lists.nongnu.org/mailman/listinfo/dmidecode-devel + + +** COMMON PROBLEMS ** + +IA-64 + +Non-Linux systems are not yet supported. + +MMAP + +Note that mmap() is now used by default wherever possible, since this seems +to solve a number of problems. This default behavior can be changed in +config.h. Just to make sure this is clear, mmap() is not used for performance +reasons but to increase the number of systems on which dmidecode can be +successfully run. + +CYGWIN + +Dmidecode was reported to work under Cygwin. It seems that /dev/mem doesn't +work properly before version 1.5.10 though, so you will need to use at least +this version. + + +** MISCELLANEOUS TOOLS ** + +Three other tools come along with dmidecode: biosdecode, ownership and +vpddecode. These tools are only useful on systems with a BIOS, so they +are not built on IA-64 by default. + +BIOSDECODE + +This 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. + +OWNERSHIP + +This tool was written on a request by Luc Van de Velde for use with Novell +tools in his company. It retrieves the "ownership tag" that can be set on +most Compaq computers. Since it uses the same mechanisms dmidecode and +biosdecode use, and could be of some use for other people as well, we +decided to make it part of the project. + +VPDDECODE + +This tool prints the contents of the "vital product data" structure as +found in most IBM and Lenovo computers. It used to have a lookup table +for the machine name, but it was unreliable and hard to maintain so it +was ultimately dropped. It has a command line interface. diff --git a/doc/changelog b/doc/changelog new file mode 100644 index 0000000..476de63 --- /dev/null +++ b/doc/changelog @@ -0,0 +1,1009 @@ +------------------------------------------------------------------------ +r177 | nima | 2009-03-09 00:49:21 +1100 (Mon, 09 Mar 2009) | 2 lines + +Releasing v2.10.4. + +------------------------------------------------------------------------ +r176 | nima | 2009-03-08 22:32:42 +1100 (Sun, 08 Mar 2009) | 2 lines + +Adding spec file supplied by Clark Williams <williams at redhat.com>. + +------------------------------------------------------------------------ +r175 | nima | 2009-03-08 22:31:31 +1100 (Sun, 08 Mar 2009) | 3 lines + +Applied patch submitted by Clark Williams <williams at redhat.com>. + + +------------------------------------------------------------------------ +r174 | nima | 2009-02-23 00:34:24 +1100 (Mon, 23 Feb 2009) | 2 lines + +Fixed bug reported by Ralf Treinen. + +------------------------------------------------------------------------ +r173 | nima | 2009-02-14 01:39:23 +1100 (Sat, 14 Feb 2009) | 2 lines + +Removing spec file from upstream. + +------------------------------------------------------------------------ +r172 | nima | 2009-02-14 01:36:16 +1100 (Sat, 14 Feb 2009) | 2 lines + +Upped sub-version. + +------------------------------------------------------------------------ +r171 | nima | 2009-02-14 01:32:06 +1100 (Sat, 14 Feb 2009) | 2 lines + +Small changes - final touches for 2.10.1. + +------------------------------------------------------------------------ +r170 | nima | 2009-02-14 01:30:37 +1100 (Sat, 14 Feb 2009) | 3 lines + +Versioning now chagned to reflect the version of the upstream (dmidecode) +version with which python-dmidecode is in sync with. + +------------------------------------------------------------------------ +r169 | nima | 2009-01-13 23:48:28 +1100 (Tue, 13 Jan 2009) | 2 lines + +Fixed watch file. + +------------------------------------------------------------------------ +r168 | nima | 2009-01-13 00:06:34 +1100 (Tue, 13 Jan 2009) | 2 lines + +Debian changes completely separated from upstream. + +------------------------------------------------------------------------ +r167 | nima | 2009-01-13 00:04:52 +1100 (Tue, 13 Jan 2009) | 2 lines + +Removed Debian-specific targets from the makefile. + +------------------------------------------------------------------------ +r166 | nima | 2008-12-23 10:02:00 +1100 (Tue, 23 Dec 2008) | 2 lines + +Source file name change. + +------------------------------------------------------------------------ +r165 | nima | 2008-12-23 10:01:22 +1100 (Tue, 23 Dec 2008) | 2 lines + +A more complete dmidecode example. + +------------------------------------------------------------------------ +r164 | nima | 2008-12-23 09:40:51 +1100 (Tue, 23 Dec 2008) | 2 lines + +Applied the nice changes suggested by Piotr Ożarowsk. + +------------------------------------------------------------------------ +r163 | nima | 2008-12-23 00:37:43 +1100 (Tue, 23 Dec 2008) | 6 lines + +Cleaned up the fix for type(127). + +Added the second type of stuffed bios (upstream). + +Integrated dmidecode the binary into the test case for a more objective result. + +------------------------------------------------------------------------ +r162 | nima | 2008-12-22 20:06:43 +1100 (Mon, 22 Dec 2008) | 2 lines + +Fixed the type(127) problem (at least on this machine) - again. + +------------------------------------------------------------------------ +r161 | nima | 2008-12-21 23:52:51 +1100 (Sun, 21 Dec 2008) | 4 lines + +Removed unnecessay manpage. + +Spell my own name correctly. + +------------------------------------------------------------------------ +r160 | nima | 2008-12-21 22:31:36 +1100 (Sun, 21 Dec 2008) | 2 lines + +Added an upload into src.autonomy.net.au after source build. + +------------------------------------------------------------------------ +r159 | nima | 2008-12-21 22:27:52 +1100 (Sun, 21 Dec 2008) | 2 lines + +Fixed sample. + +------------------------------------------------------------------------ +r158 | nima | 2008-12-21 21:22:06 +1100 (Sun, 21 Dec 2008) | 6 lines + +Cleanup copyright. + +Cleanup debian/rules. + +Adding test.py to examples. + +------------------------------------------------------------------------ +r157 | nima | 2008-12-21 21:04:03 +1100 (Sun, 21 Dec 2008) | 2 lines + +Remove README.Debian - no point. + +------------------------------------------------------------------------ +r156 | nima | 2008-12-21 18:57:49 +1100 (Sun, 21 Dec 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r155 | nima | 2008-12-21 18:53:54 +1100 (Sun, 21 Dec 2008) | 3 lines + +Handle cases where user does not have appropriate permission to access the +memory file or device. + +------------------------------------------------------------------------ +r154 | nima | 2008-12-21 16:44:04 +1100 (Sun, 21 Dec 2008) | 2 lines + +Names. + +------------------------------------------------------------------------ +r153 | nima | 2008-12-21 16:43:06 +1100 (Sun, 21 Dec 2008) | 2 lines + +Better naming. + +------------------------------------------------------------------------ +r152 | nima | 2008-12-21 15:41:39 +1100 (Sun, 21 Dec 2008) | 4 lines + +Upped debhelper build-required version from 5 to 7. + +Final cleanups. + +------------------------------------------------------------------------ +r151 | nima | 2008-12-21 13:55:19 +1100 (Sun, 21 Dec 2008) | 2 lines + +Cleaned up and Lintian-approved. + +------------------------------------------------------------------------ +r150 | nima | 2008-12-21 13:48:05 +1100 (Sun, 21 Dec 2008) | 2 lines + +Email address fixed. + +------------------------------------------------------------------------ +r149 | nima | 2008-12-21 13:39:16 +1100 (Sun, 21 Dec 2008) | 2 lines + +Sigh. + +------------------------------------------------------------------------ +r148 | nima | 2008-12-21 13:38:35 +1100 (Sun, 21 Dec 2008) | 2 lines + +Changing to svn-buildpackage. + +------------------------------------------------------------------------ +r147 | nima | 2008-12-21 13:22:20 +1100 (Sun, 21 Dec 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r146 | nima | 2008-12-21 13:07:56 +1100 (Sun, 21 Dec 2008) | 2 lines + +Source generation. + +------------------------------------------------------------------------ +r145 | nima | 2008-12-21 12:41:57 +1100 (Sun, 21 Dec 2008) | 6 lines + +Fixed watchfile now that I've created a src (orig.tar.gz) repository. + +Added more copyright/lisencing information. + +More debianizing. + +------------------------------------------------------------------------ +r144 | nima | 2008-12-21 04:00:56 +1100 (Sun, 21 Dec 2008) | 2 lines + +Required for dh_installdocs. + +------------------------------------------------------------------------ +r143 | nima | 2008-12-21 03:54:32 +1100 (Sun, 21 Dec 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r142 | nima | 2008-12-21 03:52:15 +1100 (Sun, 21 Dec 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r141 | nima | 2008-12-21 03:49:40 +1100 (Sun, 21 Dec 2008) | 2 lines + +Removed out-of-place README. + +------------------------------------------------------------------------ +r140 | nima | 2008-12-21 03:47:18 +1100 (Sun, 21 Dec 2008) | 2 lines + +Hide private data from subversion. + +------------------------------------------------------------------------ +r139 | nima | 2008-12-21 03:46:37 +1100 (Sun, 21 Dec 2008) | 2 lines + +Remove private memory dumps. + +------------------------------------------------------------------------ +r138 | nima | 2008-12-21 03:45:39 +1100 (Sun, 21 Dec 2008) | 4 lines + +Added missing info to copyright file. + +Source creation target. + +------------------------------------------------------------------------ +r137 | nima | 2008-12-21 03:26:43 +1100 (Sun, 21 Dec 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r136 | nima | 2008-12-21 02:49:18 +1100 (Sun, 21 Dec 2008) | 4 lines + +Handle cases where user asks for invalid types. + +Updated test cases to test for this too. + +------------------------------------------------------------------------ +r135 | nima | 2008-12-21 02:32:30 +1100 (Sun, 21 Dec 2008) | 6 lines + +Version information now set once during init(). + +Bettered test cases. + +Case 127 magically fixed. + +------------------------------------------------------------------------ +r134 | nima | 2008-12-20 12:46:42 +1100 (Sat, 20 Dec 2008) | 2 lines + +Debian specific target. + +------------------------------------------------------------------------ +r133 | nima | 2008-12-20 12:44:55 +1100 (Sat, 20 Dec 2008) | 8 lines + +Removed "detected" from appearing in every single function call. TODO: An ivar +should be implemented to return this string, so further cleanup is still +required; as it stands, there is no access to this information anymore! + +Updated test case. + +Further general cleanup. + +------------------------------------------------------------------------ +r132 | nima | 2008-12-20 10:55:53 +1100 (Sat, 20 Dec 2008) | 4 lines + +Further testing shows that the segfault does not occur when the device is +/dev/mem, but does so for all images (where requested type is 127), suggesting +that the problem could be with the image or surrounding processes. + +------------------------------------------------------------------------ +r131 | nima | 2008-12-20 10:46:46 +1100 (Sat, 20 Dec 2008) | 2 lines + +Oops - fixed. + +------------------------------------------------------------------------ +r130 | nima | 2008-12-20 10:45:55 +1100 (Sat, 20 Dec 2008) | 3 lines + +Test case is close to complete, type 127 results in a segfault - (test case +is serving its purpose). + +------------------------------------------------------------------------ +r129 | nima | 2008-12-20 10:29:50 +1100 (Sat, 20 Dec 2008) | 3 lines + +Adding an image from parallel's desktop running Debian lenny, and another for +a physical server also running Debian. Both are intel 32 bit. + +------------------------------------------------------------------------ +r128 | nima | 2008-12-20 10:27:10 +1100 (Sat, 20 Dec 2008) | 4 lines + +More work on test case. + +Updated setup.py to reflect new version. + +------------------------------------------------------------------------ +r127 | nima | 2008-12-20 00:49:19 +1100 (Sat, 20 Dec 2008) | 2 lines + +More testing and fixes. + +------------------------------------------------------------------------ +r126 | nima | 2008-12-20 00:42:10 +1100 (Sat, 20 Dec 2008) | 2 lines + +Improved test case. + +------------------------------------------------------------------------ +r125 | nima | 2008-12-20 00:32:35 +1100 (Sat, 20 Dec 2008) | 2 lines + +Removed a printf() comment. + +------------------------------------------------------------------------ +r124 | nima | 2008-12-20 00:21:24 +1100 (Sat, 20 Dec 2008) | 6 lines + +Check that the path given with set_dev() is writeable. + +Don't crash when writing to a read-only file, return False instead. + +Missing an INCREF in get_dev() fixed. + +------------------------------------------------------------------------ +r123 | nima | 2008-12-19 22:56:39 +1100 (Fri, 19 Dec 2008) | 2 lines + +Test for write permission prior to write attempts. + +------------------------------------------------------------------------ +r122 | nima | 2008-12-19 20:02:52 +1100 (Fri, 19 Dec 2008) | 2 lines + +Fixed watch file. + +------------------------------------------------------------------------ +r121 | nima | 2008-12-19 16:05:38 +1100 (Fri, 19 Dec 2008) | 4 lines + +Received ITP auto-ack: #509169. + +More debianizing cleanup. + +------------------------------------------------------------------------ +r120 | nima | 2008-12-19 15:13:24 +1100 (Fri, 19 Dec 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r119 | nima | 2008-12-19 15:07:06 +1100 (Fri, 19 Dec 2008) | 3 lines + +Further work in enforcing the Debian policy in package based on advice from +`POX' and the documentation. + +------------------------------------------------------------------------ +r118 | nima | 2008-12-19 13:23:32 +1100 (Fri, 19 Dec 2008) | 2 lines + +Removed junk and doing more debianizing - WIP. + +------------------------------------------------------------------------ +r117 | nima | 2008-12-19 00:49:57 +1100 (Fri, 19 Dec 2008) | 2 lines + +Updated. + +------------------------------------------------------------------------ +r116 | nima | 2008-12-19 00:48:52 +1100 (Fri, 19 Dec 2008) | 6 lines + +The dmidecode.type() call not takes ints, not strings. + +Adding an example directory. + +Adding test case. + +------------------------------------------------------------------------ +r115 | nima | 2008-12-19 00:45:37 +1100 (Fri, 19 Dec 2008) | 4 lines + +The dmidecode.type() call not takes ints, not strings. + +Adding an example directory. + +------------------------------------------------------------------------ +r114 | nima | 2008-12-18 12:12:50 +1100 (Thu, 18 Dec 2008) | 5 lines + +More upstream changes implemented, see CHANGELOG by Jean Delvare from the +period 2008-02-16 to 2008-11-23. + +These changes have been made, but not yet fully tested. + +------------------------------------------------------------------------ +r113 | nima | 2008-12-18 00:26:57 +1100 (Thu, 18 Dec 2008) | 5 lines + +Claim to support revision 32 of Intel AP-485 (CPUID). No relevant change since +revision 31. + +Update reference to AMD CPUID document. + +------------------------------------------------------------------------ +r112 | nima | 2008-12-18 00:11:35 +1100 (Thu, 18 Dec 2008) | 2 lines + +Handle chassis information records of size 19 (DMI type 3). + +------------------------------------------------------------------------ +r111 | nima | 2008-12-18 00:00:12 +1100 (Thu, 18 Dec 2008) | 2 lines + +And the debian subfolder itself... + +------------------------------------------------------------------------ +r110 | nima | 2008-12-17 23:59:32 +1100 (Wed, 17 Dec 2008) | 2 lines + +Debianizing dmidecode. + +------------------------------------------------------------------------ +r109 | nima | 2008-12-17 18:30:04 +1100 (Wed, 17 Dec 2008) | 2 lines + +Adding spec file written by Joel Heenan. + +------------------------------------------------------------------------ +r108 | nima | 2008-12-17 18:20:56 +1100 (Wed, 17 Dec 2008) | 2 lines + +Cleaning up source area, ready for debianizing, and rpm after that. + +------------------------------------------------------------------------ +r107 | nima | 2008-11-01 01:45:34 +1100 (Sat, 01 Nov 2008) | 2 lines + +Changed default target of Makefile back to `setup.py' method of installation. + +------------------------------------------------------------------------ +r106 | nima | 2008-11-01 01:41:02 +1100 (Sat, 01 Nov 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r105 | nima | 2008-11-01 01:33:03 +1100 (Sat, 01 Nov 2008) | 3 lines + +This commit closes #2 reported by Justin Cook, the ticket will remain open +until Justin confirms this however. + +------------------------------------------------------------------------ +r104 | nima | 2008-11-01 01:07:22 +1100 (Sat, 01 Nov 2008) | 6 lines + +Implemented reading a dump to - this concludes syncing to the upstream release. + +Next, exceptions should be thrown in certain places, more error checking in the +python side of things, and also in relation to setting and unsetting of the +alternate memory file. + +------------------------------------------------------------------------ +r103 | nima | 2008-11-01 00:42:35 +1100 (Sat, 01 Nov 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r102 | nima | 2008-11-01 00:38:24 +1100 (Sat, 01 Nov 2008) | 3 lines + +Fixed dump. The `offset' problem was not really an offset problem - it was a +silly typo. + +------------------------------------------------------------------------ +r101 | nima | 2008-11-01 00:24:04 +1100 (Sat, 01 Nov 2008) | 2 lines + +Missed two lines. + +------------------------------------------------------------------------ +r100 | nima | 2008-11-01 00:19:50 +1100 (Sat, 01 Nov 2008) | 3 lines + +Dump-to-file is almost working, there seems to be a 4-byte misalignment in the +produced file though for now - needs to be fixed. + +------------------------------------------------------------------------ +r99 | nima | 2008-10-31 22:43:15 +1100 (Fri, 31 Oct 2008) | 2 lines + +Removed junk comments. + +------------------------------------------------------------------------ +r98 | nima | 2008-10-31 22:21:24 +1100 (Fri, 31 Oct 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r97 | nima | 2008-10-31 22:15:19 +1100 (Fri, 31 Oct 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r96 | nima | 2008-10-31 21:24:41 +1100 (Fri, 31 Oct 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r95 | nima | 2008-10-31 20:05:23 +1100 (Fri, 31 Oct 2008) | 6 lines + +Integration of required `dmiopt.h' bits. +Removed QUIETness code. +Other cleanups. +Added get/set methods for changinf the default /dev/mem device. + + +------------------------------------------------------------------------ +r94 | nima | 2008-10-31 20:02:21 +1100 (Fri, 31 Oct 2008) | 2 lines + +Removed traces of `_' and integrating required bits from dmiopt.h. + +------------------------------------------------------------------------ +r93 | nima | 2008-10-31 20:01:41 +1100 (Fri, 31 Oct 2008) | 2 lines + +Removed traces of `_'. + +------------------------------------------------------------------------ +r92 | nima | 2008-10-31 20:00:26 +1100 (Fri, 31 Oct 2008) | 2 lines + +Integrating the required bits from dmiopt into dmihelper. + +------------------------------------------------------------------------ +r91 | nima | 2008-10-31 19:39:12 +1100 (Fri, 31 Oct 2008) | 4 lines + +Removed `_' buffer. +Removed use of `FLAGS_QUIET' as it makes no sense for a module. +Removed the `submain()' function. + +------------------------------------------------------------------------ +r90 | nima | 2008-10-31 19:30:00 +1100 (Fri, 31 Oct 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r89 | nima | 2008-10-31 19:29:06 +1100 (Fri, 31 Oct 2008) | 2 lines + +Removed dependency on dmiopt. + +------------------------------------------------------------------------ +r88 | nima | 2008-10-31 19:28:33 +1100 (Fri, 31 Oct 2008) | 2 lines + +Removed verbose printout. + +------------------------------------------------------------------------ +r87 | nima | 2008-10-30 21:14:24 +1100 (Thu, 30 Oct 2008) | 2 lines + +Removed final traces of the `_' buffer. + +------------------------------------------------------------------------ +r86 | nima | 2008-10-30 13:11:56 +1100 (Thu, 30 Oct 2008) | 2 lines + +Implementing (incomplete) upstream changes. + +------------------------------------------------------------------------ +r85 | nima | 2008-10-29 18:15:35 +1100 (Wed, 29 Oct 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r84 | nima | 2008-10-29 18:13:49 +1100 (Wed, 29 Oct 2008) | 5 lines + +Adding man pages from upstream. Sooner or later, these will be removed, as will +all other work that's simply replicating the demidecode binary. All this +package should provide is the python module, and some py-module-specific man +pages. + +------------------------------------------------------------------------ +r83 | nima | 2008-10-29 18:10:24 +1100 (Wed, 29 Oct 2008) | 4 lines + +Recoded the new work from upstream into these (main) files. The options to +dump the memory image onto file, and read back from it has not yet been +worked in, but the underlying work has been completed. + +------------------------------------------------------------------------ +r82 | nima | 2008-10-29 18:09:10 +1100 (Wed, 29 Oct 2008) | 3 lines + +Tested new dmidecode python module with this example file. A real test case +will be implemented sometime in future. + +------------------------------------------------------------------------ +r81 | nima | 2008-10-29 18:07:56 +1100 (Wed, 29 Oct 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r80 | nima | 2008-10-29 18:07:13 +1100 (Wed, 29 Oct 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r79 | nima | 2008-10-29 18:06:47 +1100 (Wed, 29 Oct 2008) | 2 lines + +Using dmihelper now. + +------------------------------------------------------------------------ +r78 | nima | 2008-10-29 18:05:58 +1100 (Wed, 29 Oct 2008) | 2 lines + +Upstream. + +------------------------------------------------------------------------ +r77 | nima | 2008-10-29 18:04:19 +1100 (Wed, 29 Oct 2008) | 2 lines + +Upstream. + +------------------------------------------------------------------------ +r76 | nima | 2008-10-29 18:04:03 +1100 (Wed, 29 Oct 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r75 | nima | 2008-10-29 17:36:23 +1100 (Wed, 29 Oct 2008) | 2 lines + +Renamed to a more appropriate name. + +------------------------------------------------------------------------ +r74 | nima | 2008-10-29 17:35:21 +1100 (Wed, 29 Oct 2008) | 3 lines + +Committing new dmidecode helper functions, and next, renaming it to a +meaningful name. + +------------------------------------------------------------------------ +r73 | nima | 2008-10-29 17:27:31 +1100 (Wed, 29 Oct 2008) | 3 lines + +Synced to the latest from upstream, with a light modification required for the +module. + +------------------------------------------------------------------------ +r72 | nima | 2008-10-18 20:34:09 +1100 (Sat, 18 Oct 2008) | 5 lines + +Python does not have unsigned integers, hence %u and %lu in printf style +strings are taken to be literal strings, not space-holders. All occurences +of '%u' (78) have been amended to '%i', there was no '%lu'. + + +------------------------------------------------------------------------ +r71 | nima | 2008-10-18 20:28:46 +1100 (Sat, 18 Oct 2008) | 4 lines + +Fixed bug reported by by Justin Cook, where dmidecode.type() would segfault. +It turned out to be some code that was forgotten about during the conversion, or +at least very incomplete and wrong. + +------------------------------------------------------------------------ +r70 | nima | 2008-10-17 02:52:48 +1100 (Fri, 17 Oct 2008) | 2 lines + +Remove efence. + +------------------------------------------------------------------------ +r69 | nima | 2008-09-05 13:08:02 +1000 (Fri, 05 Sep 2008) | 2 lines + +Fixed a bug that crashed dmidecode.slot(). + +------------------------------------------------------------------------ +r68 | nima | 2008-09-04 16:09:55 +1000 (Thu, 04 Sep 2008) | 5 lines + +Cleaning up of the dmidecode module, mostly conversion of things that can be +Python `None's or `Int's but were `String'. + +Replaced a meaningless int dictionary key to `data'. + +------------------------------------------------------------------------ +r67 | nima | 2008-09-04 12:26:09 +1000 (Thu, 04 Sep 2008) | 3 lines + +Work on CPU details - seemed to been a bug with appending to a string rather +than rewriting it. + +------------------------------------------------------------------------ +r66 | nima | 2008-08-09 00:15:47 +1000 (Sat, 09 Aug 2008) | 4 lines + +Replaced `%X' with `%x'. + +Logic cleanup - Put the `Handle' info back into the dictionary. + +------------------------------------------------------------------------ +r65 | nima | 2008-08-08 17:57:44 +1000 (Fri, 08 Aug 2008) | 2 lines + +Anoher bug fix, this time in baseboard. + +------------------------------------------------------------------------ +r64 | nima | 2008-08-08 17:27:36 +1000 (Fri, 08 Aug 2008) | 3 lines + +Fixed many major bugs (all of which were expected based on the way we mass +converted all the `case' blocks. + +------------------------------------------------------------------------ +r63 | nima | 2008-08-07 22:32:39 +1000 (Thu, 07 Aug 2008) | 2 lines + +Cleaned up a little. + +------------------------------------------------------------------------ +r62 | nima | 2008-08-07 11:34:15 +1000 (Thu, 07 Aug 2008) | 2 lines + +Fixed some conversion bits missed during last night. + +------------------------------------------------------------------------ +r61 | nima | 2008-08-06 23:32:37 +1000 (Wed, 06 Aug 2008) | 2 lines + +Updated authors file with developers of the dmidecode python module. + +------------------------------------------------------------------------ +r60 | nima | 2008-08-06 23:27:26 +1000 (Wed, 06 Aug 2008) | 2 lines + +Changed to GNU GPL v3 License. + +------------------------------------------------------------------------ +r59 | nima | 2008-08-06 22:59:03 +1000 (Wed, 06 Aug 2008) | 2 lines + +Removed `sudo'. + +------------------------------------------------------------------------ +r58 | nima | 2008-08-06 22:52:46 +1000 (Wed, 06 Aug 2008) | 4 lines + +Completed `case 126', thought to have been completed in previous commit. + +Some housekeeping elsewhere. + +------------------------------------------------------------------------ +r57 | nima | 2008-08-06 18:51:05 +1000 (Wed, 06 Aug 2008) | 4 lines + +Completed all conversions! Only problem now is of course finding all the memory +leaks and introduced logic errors which (confirmed) do exists - use valgrind and +see. + +------------------------------------------------------------------------ +r56 | vwhitteron | 2008-08-06 18:29:18 +1000 (Wed, 06 Aug 2008) | 1 line + +Completed `Case 34' through `Case 39' +------------------------------------------------------------------------ +r55 | nima | 2008-08-06 18:12:43 +1000 (Wed, 06 Aug 2008) | 2 lines + +Almost there! + +------------------------------------------------------------------------ +r54 | vwhitteron | 2008-08-06 17:49:23 +1000 (Wed, 06 Aug 2008) | 1 line + +Completed `Case 29' and `Case 32' +------------------------------------------------------------------------ +r53 | nima | 2008-08-06 17:42:34 +1000 (Wed, 06 Aug 2008) | 2 lines + +Converted `case 30'. + +------------------------------------------------------------------------ +r52 | vwhitteron | 2008-08-06 17:40:42 +1000 (Wed, 06 Aug 2008) | 1 line + +Completed `Case 26', `Case 27' and `Case 28' +------------------------------------------------------------------------ +r51 | nima | 2008-08-06 17:30:41 +1000 (Wed, 06 Aug 2008) | 3 lines + +Added `PyObject *data;' to all remaining functions which will generate a warning +as to indicate these need to be converted. + +------------------------------------------------------------------------ +r50 | nima | 2008-08-06 17:27:30 +1000 (Wed, 06 Aug 2008) | 2 lines + +Completed functions for `csae 28'. + +------------------------------------------------------------------------ +r49 | nima | 2008-08-06 17:23:35 +1000 (Wed, 06 Aug 2008) | 2 lines + +Completed functions for `case 27', and fixed error in last commit for `case 26'. + +------------------------------------------------------------------------ +r48 | nima | 2008-08-06 17:19:27 +1000 (Wed, 06 Aug 2008) | 2 lines + +Completed functions for `case 26'. + +------------------------------------------------------------------------ +r47 | vwhitteron | 2008-08-06 17:09:11 +1000 (Wed, 06 Aug 2008) | 1 line + +Completed `Case 23', `Case 24', `Case24' and `Case 25' +------------------------------------------------------------------------ +r46 | nima | 2008-08-06 17:07:20 +1000 (Wed, 06 Aug 2008) | 2 lines + +Completed functions for `case 25'. + +------------------------------------------------------------------------ +r45 | nima | 2008-08-06 17:00:41 +1000 (Wed, 06 Aug 2008) | 2 lines + +Converted function for `case 24'. + +------------------------------------------------------------------------ +r44 | nima | 2008-08-06 16:59:35 +1000 (Wed, 06 Aug 2008) | 2 lines + +More fixes on recent commits (by me), and more conversions on functions. + +------------------------------------------------------------------------ +r43 | vwhitteron | 2008-08-06 16:57:13 +1000 (Wed, 06 Aug 2008) | 1 line + +Completed `Case 22' +------------------------------------------------------------------------ +r42 | nima | 2008-08-06 16:53:24 +1000 (Wed, 06 Aug 2008) | 2 lines + +Oops. Fixed stupidity on last commit. + +------------------------------------------------------------------------ +r41 | nima | 2008-08-06 16:52:01 +1000 (Wed, 06 Aug 2008) | 2 lines + +Completed functions called by `case 21' and `case 22'. + +------------------------------------------------------------------------ +r40 | nima | 2008-08-06 16:42:54 +1000 (Wed, 06 Aug 2008) | 3 lines + +Completed `case 21' functions. +Cleanup. + +------------------------------------------------------------------------ +r39 | vwhitteron | 2008-08-06 16:39:53 +1000 (Wed, 06 Aug 2008) | 2 lines + +Completed `case 19' and `case 20'. + +------------------------------------------------------------------------ +r38 | nima | 2008-08-06 16:17:21 +1000 (Wed, 06 Aug 2008) | 2 lines + +Started on `case 19'. + +------------------------------------------------------------------------ +r37 | nima | 2008-08-06 15:43:05 +1000 (Wed, 06 Aug 2008) | 2 lines + +Completed `case 18' and `case 19'. + +------------------------------------------------------------------------ +r36 | nima | 2008-08-06 15:06:03 +1000 (Wed, 06 Aug 2008) | 2 lines + +Added `case 16' and `case 17'. + +------------------------------------------------------------------------ +r35 | nima | 2008-08-06 14:26:45 +1000 (Wed, 06 Aug 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r34 | nima | 2008-08-06 14:05:06 +1000 (Wed, 06 Aug 2008) | 2 lines + +Converted `case 5', `case 6', and `case 7'. + +------------------------------------------------------------------------ +r33 | nima | 2008-08-01 17:59:51 +1000 (Fri, 01 Aug 2008) | 2 lines + +Default case set to return python's `None'. + +------------------------------------------------------------------------ +r32 | nima | 2008-08-01 17:58:24 +1000 (Fri, 01 Aug 2008) | 2 lines + +Completed `case 15'. + +------------------------------------------------------------------------ +r31 | nima | 2008-07-29 14:33:59 +1000 (Tue, 29 Jul 2008) | 2 lines + +Completed `case 9' and case `8'. + +------------------------------------------------------------------------ +r30 | nima | 2008-07-29 11:31:21 +1000 (Tue, 29 Jul 2008) | 2 lines + +Completed `case 11'. + +------------------------------------------------------------------------ +r29 | nima | 2008-07-29 11:28:04 +1000 (Tue, 29 Jul 2008) | 2 lines + +Completed `case 12' and `case 14'. + +------------------------------------------------------------------------ +r28 | nima | 2008-07-29 10:29:05 +1000 (Tue, 29 Jul 2008) | 6 lines + +Bug fix (removed unnecessary breakr). + +Changed %i back to %u for now, even though it does not work with Python. +Better to do the change globally - later. + + +------------------------------------------------------------------------ +r27 | nima | 2008-07-28 20:14:38 +1000 (Mon, 28 Jul 2008) | 2 lines + +Try and determine python version dynamically. + +------------------------------------------------------------------------ +r26 | nima | 2008-07-27 22:15:51 +1000 (Sun, 27 Jul 2008) | 2 lines + +Completed `case 4', which was thought to have been completed falsely before. + +------------------------------------------------------------------------ +r25 | nima | 2008-07-26 19:15:53 +1000 (Sat, 26 Jul 2008) | 6 lines + +Completed cases 1, 4, and 13. Also altered the main PyDict object such that +each case has a value of a list to which items are appended. Without this, +each object of the same type would overwrite the previous, for example, 8 +processors would result in one single cpu with data pertaining to the last +cpu (7). + +------------------------------------------------------------------------ +r24 | nima | 2008-07-26 09:35:30 +1000 (Sat, 26 Jul 2008) | 2 lines + +Completed `case 0'. + +------------------------------------------------------------------------ +r23 | root | 2008-07-25 23:17:24 +1000 (Fri, 25 Jul 2008) | 2 lines + +Added `case 3'. + +------------------------------------------------------------------------ +r22 | root | 2008-07-25 22:51:02 +1000 (Fri, 25 Jul 2008) | 2 lines + +No new moves, cleanup on last commit and better test file template. + +------------------------------------------------------------------------ +r21 | root | 2008-07-25 22:27:26 +1000 (Fri, 25 Jul 2008) | 8 lines + +Next phase is to start converting all pure C functions returning `char *' and +such to new Pythonized functions returning `PyObject *', to save from having +to `PyString_FromString()' and similar, and more importantly, some functions +return a long string that could better be represented by a PyDict, PyList etc. + +This is the first commit of many more to come, converting a `case XX:' at a +time, making sure that each commit can actually compile and run. + +------------------------------------------------------------------------ +r20 | root | 2008-07-25 11:13:13 +1000 (Fri, 25 Jul 2008) | 2 lines + +Cleanup (DECREF). + +------------------------------------------------------------------------ +r19 | root | 2008-07-25 11:12:46 +1000 (Fri, 25 Jul 2008) | 2 lines + +Add in electric fence for now. + +------------------------------------------------------------------------ +r18 | root | 2008-07-25 11:11:39 +1000 (Fri, 25 Jul 2008) | 5 lines + +This was the culprit causing the `Abort' crash, valgrind showed that this file +is where the error lied. Stephen Darragh discovered this, and the fix has been +to use vsnprintf() and not vsprintf(), which should have been the case to begin +with really. + +------------------------------------------------------------------------ +r17 | root | 2008-07-25 10:46:00 +1000 (Fri, 25 Jul 2008) | 2 lines + +Cleaner to not vsprintf() at all if `format' is NULL. + +------------------------------------------------------------------------ +r16 | root | 2008-07-25 10:45:11 +1000 (Fri, 25 Jul 2008) | 2 lines + + The `biosdecode' is a program, nothing to do with the module, removed. + +------------------------------------------------------------------------ +r15 | nima | 2008-07-25 00:36:16 +1000 (Fri, 25 Jul 2008) | 2 lines + +Added my small role in AUTHORS so nobody bugs others for my code. + +------------------------------------------------------------------------ +r14 | nima | 2008-07-25 00:17:16 +1000 (Fri, 25 Jul 2008) | 2 lines + +Cleanup. + +------------------------------------------------------------------------ +r13 | nima | 2008-07-24 22:02:12 +1000 (Thu, 24 Jul 2008) | 2 lines + +Some cleaning, crash in interactive mode on dmidecode.bios() still not fixed. + +------------------------------------------------------------------------ +r12 | nima | 2008-07-24 20:48:01 +1000 (Thu, 24 Jul 2008) | 3 lines + +Now that code has been converted, work has started on "bios", and at the point +of proof-of-concept. + +------------------------------------------------------------------------ +r11 | nima | 2008-07-05 01:24:22 +1000 (Sat, 05 Jul 2008) | 3 lines + +Removing printf() statements, instead adding to Python dictionary object, +untested. + +------------------------------------------------------------------------ +r10 | nima | 2008-07-04 01:59:08 +1000 (Fri, 04 Jul 2008) | 6 lines + +Major changes have been implemented, alas, untested, in hope to move towards +a new version of dmi decode where rather than having data just printed to +screen in functions, data is passed around, and some data structure is +constructed, which is then used to construct the Python list/dicitonary +objects. + +------------------------------------------------------------------------ +r9 | nima | 2008-07-02 17:02:05 +1000 (Wed, 02 Jul 2008) | 4 lines + +WIP - Adding h->type value to catsprintf (as int major), later will add minor +too, and finally will replace the buffer with a linked list of structs, which +will be added to the python dictionary/list. + +------------------------------------------------------------------------ +r8 | nima | 2008-07-02 14:53:48 +1000 (Wed, 02 Jul 2008) | 3 lines + +Now the `Handle' hex codes are the key values in the python dictionaries +returned. + +------------------------------------------------------------------------ +r7 | nima | 2008-07-02 09:14:17 +1000 (Wed, 02 Jul 2008) | 2 lines + +Brought main() back into the python module and fixed malloc/free problems. + +------------------------------------------------------------------------ +r6 | nima | 2008-07-01 17:05:57 +1000 (Tue, 01 Jul 2008) | 2 lines + +Removed junk comments. + +------------------------------------------------------------------------ +r5 | nima | 2008-07-01 16:11:21 +1000 (Tue, 01 Jul 2008) | 2 lines + +Update for file renames. + +------------------------------------------------------------------------ +r4 | nima | 2008-07-01 16:04:02 +1000 (Tue, 01 Jul 2008) | 2 lines + +Better named. + +------------------------------------------------------------------------ +r3 | nima | 2008-07-01 16:01:21 +1000 (Tue, 01 Jul 2008) | 5 lines + +Project progressing along excellently. The python module is now functional and +has as many methods as the --type option takes. + +Next is to expand and harness the code around the `--string' option. + +------------------------------------------------------------------------ +r2 | nima | 2008-07-01 00:14:46 +1000 (Tue, 01 Jul 2008) | 4 lines + +Split out the module header into its own file. + +Cleaned up Makefile a little. + +------------------------------------------------------------------------ +r1 | nima | 2008-06-30 22:08:58 +1000 (Mon, 30 Jun 2008) | 2 lines + +First commit to SVN. + +------------------------------------------------------------------------ diff --git a/doc/dmidump.py b/doc/dmidump.py new file mode 100755 index 0000000..a6c7bf7 --- /dev/null +++ b/doc/dmidump.py @@ -0,0 +1,54 @@ +#!/usr/bin/env python2.4 +import dmidecode +import sys +from pprint import pprint + +#. Test all functions using /dev/mem... +print "*** bios ***\n"; dmidecode.bios() +print "*** system ***\n"; dmidecode.system() +print "*** system ***\n"; dmidecode.system() +print "*** baseboard ***\n"; dmidecode.baseboard() +print "*** chassis ***\n"; dmidecode.chassis() +print "*** processor ***\n"; dmidecode.processor() +print "*** memory ***\n"; dmidecode.memory() +print "*** cache ***\n"; dmidecode.cache() +print "*** connector ***\n"; dmidecode.connector() +print "*** slot ***\n"; dmidecode.slot() + +#. Now test get/set of memory device file... +print dmidecode.get_dev() +print dmidecode.set_dev("private/mem-XXX"); +print dmidecode.get_dev() + +#. Test taking a dump... +print dmidecode.dump() + +#. Test reading the dump... +print "*** bios ***\n"; pprint(dmidecode.bios()) +print "*** system ***\n"; pprint(dmidecode.system()) +print "*** system ***\n"; pprint(dmidecode.system()) +print "*** baseboard ***\n"; pprint(dmidecode.baseboard()) +print "*** chassis ***\n"; pprint(dmidecode.chassis()) +print "*** processor ***\n"; pprint(dmidecode.processor()) +print "*** memory ***\n"; pprint(dmidecode.memory()) +print "*** cache ***\n"; pprint(dmidecode.cache()) +print "*** connector ***\n"; pprint(dmidecode.connector()) +print "*** slot ***\n"; pprint(dmidecode.slot()) + +sys.exit(0) +print "*** bios ***\n"; pprint(dmidecode.bios()) +print "*** system ***\n"; pprint(dmidecode.system()) +print "*** baseboard ***\n"; pprint(dmidecode.baseboard()) +print "*** chassis ***\n"; pprint(dmidecode.chassis()) +print "*** processor ***\n"; pprint(dmidecode.processor()) +print "*** memory ***\n"; pprint(dmidecode.memory()) +print "*** cache ***\n"; pprint(dmidecode.cache()) +print "*** connector ***\n"; pprint(dmidecode.connector()) +print "*** slot ***\n"; pprint(dmidecode.slot()) + +for v in dmidecode.memory().values(): + if type(v) == dict and v['dmi_type'] == 17: + pprint(v['data']['Size']), + +pprint(dmidecode.type('3')) +pprint(dmidecode.type('bios')) |