src/: use dmidecode logs if decode-dimms is unavailable
Dasharo Tool Suite HCL manager
DTS HCL manager is used to generate entries to Dasharo HCL CPU/memory/mainboard/GPU documentation based on Dasharo HCL reports.
Usage: ./dts-hclmgr --help
As Dasharo HCL list maintainer your will typically deal with massive zip file
which contain all *.tar.gz reports. Assuming your zip file is in tmp you can
use following snippets:
Dasharo CPU HCL generation
-
Download the
dasharo_hcl_reportsfolder from 3mdeb's Cloud and unzip it. -
Clone the
dts-hw-conf-genrepository. -
Copy the
dts-hclmgrfile from the cloned repository to thedasharo_hcl_reportsfolder. -
While inside this folder, run the following command:
find . -name "Micro-Star_International_Co.,_Ltd._MS-7E06*.tar.gz" -print0 | xargs -0 -n1 bash -c './dts-hclmgr cpu "$0"'The command will also extract the specified files into the folder.
-
Expected output:
| 12th Gen Intel(R) Core(TM) i5-12600K | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i5-12600K | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i5-12600K | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i5-12600K | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i5-12600K | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i5-12600K | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i7-12700K | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i7-12700K | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i5-12400 | v1.0.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i5-12600K | v1.1.0 | Dasharo HCL Report | | 12th Gen Intel(R) Core(TM) i5-12600K | v1.1.0 | Dasharo HCL Report | -
Copy the generated list to a sheet and sort it.
-
Delete duplicated entries.
-
Check which entries are missing in Dasharo HCL Documentation and update the list accordingly.
-
Update date of the HCL report in the documentation.
Example platform_name_prefix for Dasharo supported platforms:
ASUS_KGPE-D16Dell_Inc._OptiPlex_9010Emulation_QEMU_x86_q35_ich9Micro-Star_International_Co.,_Ltd._MS-7D25(MSI PRO Z690)Micro-Star_International_Co.,_Ltd._MS-7E06(MSI PRO Z790-P WIFI)Notebook_NS50_70MUNotebook_NS5x_NS7xPUNotebook_NV4XMB,ME,MZNotebook_NV4xPZNotebook_V54x_6x_TUNotebook_V5xTNC_TND_TNEPC_Engines_apu2PC_Engines_apu6Protectli_VP2420Protectli_VP4630Protectli_VP4670Protectli_VP6670
Dasharo Memory HCL generation
The new feature allows the memory report to automatically update the HCL report
tables. The changes are not committed though, leaving the option to review and
fix the final result.
The option is -u (--update)
To generate memory HCL report:
- Clone the
dts-hw-conf-genrepository.
After this step, you have the main project code, but the docs/ directory
(which is a submodule) is either empty or only contains a reference (the
.gitmodules file).
-
Clone the
docssubmodule (in thedts-hw-conf-gencloned repository):git submodule update --init -
Download the
dasharo_hcl_reportsfolder from 3mdeb's Cloud and extract the HCL file directly into thedts-hw-conf-genrepository you previously downloaded. After extraction, you should see two new folders named:externalandinternal. -
Run the script for all HCL reports found in the directory. Make sure you are in the
dts-hw-conf-gendirectory when executing the script, as it requires access to theexternalandinternalfolders located in the same directory.find . -name "Micro-Star_International_Co.,_Ltd.*.tar.gz" -print0 | xargs -0 -n1 bash -c './dts-hclmgr --quiet --force --update memory "$0"'Note: here the
--forceoption is used. With it, the script would unpack all reports again. The script execution may take a while.Note: Interrupting the script may break the HCL table in
docs/resources/hcl. In that case, run:rm -rf docs/ && git submodule update --initto re-init the
docssubmodule and run the script again. -
Snippet of output:
Modified: docs/docs/resources/hcl/memory/pro-z690-a-wifi-ddr4.md Diff: 20a21 > | Kingston | KF3200C16D4/32GX | 32768 MB | 2400 MT/s (PC4-19200) | -/-/✔ | v0.4.0 | Dasharo HCL report | End Diff From #lines 41 768 4376 To #lines 42 788 4487Here:
-
Information about what file was modified:
Modified: docs/docs/resources/hcl/memory/pro-z690-a-wifi-ddr4.md -
Diff from the changes:
Diff: 20a21 > | Kingston | KF3200C16D4/32GX | 32768 MB | 2400 MT/s (PC4-19200) | -/-/✔ | v0.4.0 | Dasharo HCL report | End Diff -
Information about how the number of line changed:
From #lines 41 768 4376 To #lines 42 788 4487
Note: If the changes are already present, or there are no new memory modules, script will display:
No changes made to docs/docs/resources/hcl/memory/pro-z690-a-wifi-ddr4.mdIf the memory report is valid, but the board is not supported by the script, the script will display:
Error: Unknown or unsupported board: PRO Z690-A DDR4(MS-7D25) -
-
After the script has finished, go to the
docsdirectory:cd docs -
Display the diff:
git diffNote: If the HCL report does not provide any new information, there may be no differences. In that case, no actions required.
-
Commit the desired file:
git add <path-to-file>git commit -sm "<COMMIT_MESSAGE>"