Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No such file or directory" message after executing the command #2

Open
Stanislaw-bnk opened this issue Oct 29, 2024 · 7 comments
Open

Comments

@Stanislaw-bnk
Copy link

I downloaded the HCL file from the cloud and extracted the .zip using the command unzip -o dasharo_hcl_reports.zip &&. When attempting the next steps, I used the command find . -name "platform_name_prefix*.tar.gz" -print0 | xargs -0 -n1 bash -c './dts-hclmgr cpu "$0"', in this case for "PC_Engines_apu2". The command located the mentioned files; however, it ended with the message 'No such file or directory.' As a result, I couldn’t complete the final step, i.e., passing the information to the DTS HCL manager.

[sbieniek@3M11 Downloads]$ find . -name "PC_Engines_apu2*.tar.gz" -print0 | xargs -0 -n1 bash -c './dts-hclmgr cpu "$0"'

./dasharo_hcl_reports/external/PC_Engines_apu2_Dasharo_(coreboot+UEFI)_v0.9.0_a3244343-69c7-59cf-924f-f3928bc2ccf6_2024_05_31_07_14_58_811048826.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.14.0.5_bd5f035a-203a-562f-9c4a-07ca4a09383e_2024_07_26_04_04_53_241097366.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.17.0.2_4b385548-3490-53b2-b75e-daa6305c994c_2024_07_05_13_59_46_089631932.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.17.0.2_4b385548-3490-53b2-b75e-daa6305c994c_2024_07_05_14_07_13_601876389.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.17.0.2_4b385548-3490-53b2-b75e-daa6305c994c_2024_07_05_14_13_05_466943277.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.17.0.2_4b385548-3490-53b2-b75e-daa6305c994c_2024_07_05_14_24_07_890380206.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.19.0.1_58150020-f709-5f8c-9a8d-eda03aec4edb_2024_04_04_19_13_09_682271888.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.19.0.1_63a69ed7-3a38-5790-87e6-923f1cd037ef_2023_07_13_13_33_48_972377879.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.19.0.1_d65f4a16-6d08-5d42-adcb-a94ee8a16d97_2024_08_17_15_28_27_137180151.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/external/PC_Engines_apu2_v4.19.0.1_e5c5f72f-8b9a-5136-8c2b-3c0bae980c07_2024_06_25_22_48_07_418482607.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_88a4f96_d948c829-ec79-5e90-a1f2-799ddacb68cc_2024_05_01_00_04_32_216130321.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_Dasharo_(coreboot+UEFI)_v0.9.0_04145fd2-4497-549d-abd8-ab26c728a027_2024_07_07_13_24_52_401160786.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_Dasharo_(coreboot+UEFI)_v0.9.0_d948c829-ec79-5e90-a1f2-799ddacb68cc_2024_05_01_00_02_53_224407433.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_Dasharo_(coreboot+UEFI)_v0.9.0_e16b5ce9-ab50-5c50-ae40-0135abedc818_2024_07_08_23_16_05_766716464.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v24.05.00.01_e5c5f72f-8b9a-5136-8c2b-3c0bae980c07_2024_06_27_21_48_17_849061150.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.11.0.1_5f97bdcb-dad0-5f04-8fe7-968f3052ca14_2024_05_08_02_20_04_175007959.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.12.0.6_2724a742-3253-56ee-8f16-95c717b85918_2024_10_25_10_20_08_977402073.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.16.0.1_1ef22a07-0c89-5ac5-be4b-58f68862a62f_2024_10_22_12_27_48_766102992.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_04145fd2-4497-549d-abd8-ab26c728a027_2024_07_07_13_04_18_654034997.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_8b21762c-3f43-54de-888c-962b75e0f808_2024_03_29_07_27_42_075843188.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_8b21762c-3f43-54de-888c-962b75e0f808_2024_03_29_07_53_30_847004629.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_8b21762c-3f43-54de-888c-962b75e0f808_2024_03_29_08_42_10_432463540.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_8b21762c-3f43-54de-888c-962b75e0f808_2024_04_02_07_34_36_387177669.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_8b21762c-3f43-54de-888c-962b75e0f808_2024_04_03_09_02_17_024690299.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e16b5ce9-ab50-5c50-ae40-0135abedc818_2024_07_08_23_08_34_602041007.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e40cfa7e-6217-5559-b3b7-e11bed68db8a_2024_06_29_16_49_34_127916770.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e40cfa7e-6217-5559-b3b7-e11bed68db8a_2024_07_27_17_18_01_562080969.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e5c5f72f-8b9a-5136-8c2b-3c0bae980c07_2024_04_03_13_13_55_293092679.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e5c5f72f-8b9a-5136-8c2b-3c0bae980c07_2024_04_15_11_53_08_415736362.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e5c5f72f-8b9a-5136-8c2b-3c0bae980c07_2024_06_27_16_57_10_767586112.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e5c5f72f-8b9a-5136-8c2b-3c0bae980c07_2024_06_27_20_29_25_683106189.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e5c5f72f-8b9a-5136-8c2b-3c0bae980c07_2024_06_27_21_26_48_725269852.tar.gz: line 1: ./dts-hclmgr: No such file or directory
./dasharo_hcl_reports/internal/OEM-3mdeb-log/PC_Engines_apu2_v4.19.0.1_e5c5f72f-8b9a-5136-8c2b-3c0bae980c07_2024_08_20_10_24_47_964079386.tar.gz: line 1: ./dts-hclmgr: No such file or directory
@pietrushnic
Copy link
Contributor

@Stanislaw-bnk, you must be in the directory where dts-hclmgr is. Now you are in Downloads, it will not work.

@Stanislaw-bnk
Copy link
Author

I opened the terminal in the folder with the downloaded dts-hw-conf-gen repository, where the dts-hclmgr file is located. This time, however, I'm receiving the warning Directory bash already exists.

[sbieniek@3M11 dts-hw-conf-gen]$ find . -name "Micro-Star_International_Co.,_Ltd._MS-7D25*.tar.gz" -print0 | xargs -0 -n1 bash -c './dts-hclmgr cpu "$0"'
Warning: Directory bash already exists.

@pietrushnic
Copy link
Contributor

Please run' find. -name "Micro-Star_International_Co.,_Ltd._MS-7D25*.tar.gz" -print0` in that directory and see if it returns anything.

Please consider this:

  • unizip does extract archives with reports
  • find look for specific names in all reports that should be in the current directory; otherwise, nothing is found, and nothing will be processed
  • only then it makes sense to pass to the further parts of commands, which are separated by |

Please spend some time with ChatGPT. It will help you with the basics, and then we can improve documentation to make it usable for everyone.

@Stanislaw-bnk
Copy link
Author

Stanislaw-bnk commented Nov 12, 2024

I've run the find . -name "Micro-Star_International_Co.,_Ltd._MS-7D25*.tar.gz" -print0 command in the dasharo_hcl_reports folder, and it managed to found the records:

[sbieniek@3M11 dasharo_hcl_reports]$  find . -name "Micro-Star_International_Co.,_Ltd._MS-7D25*.tar.gz" -print0
./external/Micro-Star_International_Co.,_Ltd._MS-7D25_1.0.0_4c878a10-59f4-512b-a474-9505214e955b_2024_10_17_14_12_46_409632289.tar.gz./external/Micro-Star_International_Co.,_Ltd._MS-7D25_1.0.0_4c878a10-59f4-512b-a474-9505214e955b_2024_10_17_14_26_28_877455877.tar.gz./external/Micro-Star_International_Co.,_Ltd._MS-7D25_1.0.0_4c878a10-59f4-512b-a474-9505214e955b_2024_10_17_14_30_23_563072402.tar.gz./external/Micro-Star_International_Co.,_Ltd._MS-7D25_1.0.0_4c878a10-59f4-512b-
....
....
....

I've then run xargs -0 -n1 bash -c './dts-hclmgr cpu "$0"' but it seems that nothing is happening. Should it automatically update the list? I've also tried xargs -0 -n1 bash -c './dts-hw-conf-gen cpu "$0"' as this is the name of the repo. How should I proceed from here?

@pietrushnic
Copy link
Contributor

@Stanislaw-bnk I have no idea why you are approaching the problem that way when I said it is the wrong approach. It is very important that those commands are connected with |; those commands can work only in chains.

If find . -name "Micro-Star_International_Co.,_Ltd._MS-7D25*.tar.gz" -print0 provide results so you should be able to run:

find . -name "Micro-Star_International_Co.,_Ltd._MS-7D25*.tar.gz" -print0 | xargs -0 -n1 bash -c './dts-hclmgr cpu "$0"'

I have to provide a wrapper for that.

@Stanislaw-bnk
Copy link
Author

I copied the dts-hclmgr file into the dasharo_hcl_reports folder, which is where I run the terminal commands. I managed to get the following result:

[sbieniek@3M11 dasharo_hcl_reports]$ find . -name "Micro-Star_International_Co.,_Ltd._MS-7D25*.tar.gz" -print0 | xargs -0 -n1 bash -c './dts-hclmgr cpu "$0"'

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
| 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 |
...
...
...

The command also extracted the specified files into the folder:
Screenshot From 2024-11-15 11-28-57

Does this look like the correct result? If so, what are the next steps?

@pietrushnic
Copy link
Contributor

This is correct 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 |

Now the crucial question is what is not in: https://docs.dasharo.com/unified/msi/hcl/
And extend the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants