26 Commits

Author SHA1 Message Date
Pawel Langowski
39021f596c Fix files to conform to shfmt
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-04-15 14:48:13 +02:00
Pawel Langowski
9439fc3bea Add .sh to all scripts
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-04-15 14:31:13 +02:00
Pawel Langowski
07d1953f4d Fix indentation and error messages
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-24 14:03:56 +01:00
Pawel Langowski
33060738cc Don't create minio alias when DPP email is empty
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-24 12:56:42 +01:00
Pawel Langowski
fb01744bc5 Add public MinIO credentials for HCL reports
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-24 11:32:24 +01:00
Pawel Langowski
7813db0696 Use MinIO for HCL reports
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2025-03-21 10:18:17 +01:00
Daniil Klimuk
f0ff464694 Make functions in HCL Report not to exit
HCL report collects information, if smth is missing or not working - it
still should be collected by HCL report. Therefore there should be no
exit on error inside HCL report.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-01-15 17:15:47 +01:00
Daniil Klimuk
e69ca6c8a4 reports: dasharo-hcl-report: mock checking for sound card presence
This loop takes too much time during tests (5s * 12 = 1m). The sound
card presence should be mocked to true by default to optimize HCL report
execution time.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2025-01-15 14:29:12 +01:00
Michał Iwanicki
9e678e52eb logging: redirect more stderr to ERR_LOG_FILE
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-01-10 10:56:53 +01:00
Michał Iwanicki
3d395cabc9 logs: pipe stderr to ERR_LOG_FILE
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2025-01-10 10:56:52 +01:00
Michał Iwanicki
417100811e dasharo-hcl-report: fix acpidump command
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-12-18 11:59:56 +01:00
Daniil Klimuk
55256f51e5 do not use flashrom with QEMU
flashrom does not support QEMU and fails every time. I have not found a
better way to handle it, but we should not place hardwere related
configs all around the code.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:47 +01:00
Daniil Klimuk
6d53e2cf05 integrate HAL
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:36 +01:00
Daniil Klimuk
61f68f01b0 remove -x flag from all files permissions
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk
cee2d5b41f use test -n instead of test -v
"test -v" checks whether a variable has been declared, it does not check
its value. We sometimes use "unset" for some variables, and then check
again with "test -v". The problem is, "unset" erases variable value, but
the variable still exists, so the "test -v" will be true before, as well
as after the "unset".

We must use "test -n" (whether a variable holds non-zero length
string value) and "test -z" (whether a variable holds zero length string
value) to check string values of variables. This way the "unset" will
work.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:36 +01:00
Daniil Klimuk
cb60fb22fa reports: dasharo-hcl-report: delete surplus definition
CMD_DASHARO_DEPLOY is already defined in /usr/sbin/dts-environment.sh
which is included at the beginning of the dasharo-hcl-report script.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:25:43 +01:00
Michał Iwanicki
a5f6ef7711 dasharo-hcl-report: add /sys/kernel/debug/dri/*/*_vbt to logs
Signed-off-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
2024-11-12 16:48:36 +01:00
Pawel Langowski
05b7c26ef3 reports/dasharo-hcl-report: Get cbmem console
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-06 14:24:17 +01:00
Maciej Pijanowski
084d27d939 tests: port from meta-dts
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-07-25 22:22:33 +02:00
Daniil Klimuk
db23885453 Use DPP instead of DES
According to:
https://github.com/Dasharo/presentations/blob/main/dug_6_shameless_plug.md#dasharo-cooperation-models

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-07-22 16:52:27 +02:00
Maciej Pijanowski
3fc2675a2e fix Intel regions backup
We have detected that the ME and IGB regions are not backed up
on MTL laptops (should affect other hw as well) due to the
mismatch in this detection logic.

Another issue is why we have two functions doing the same thing,
but this can be resolved by a followup commits.

Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-05-20 14:24:11 +02:00
Tomasz Żyjewski
9b93679600 reports: dasharo-hcl-report: remove board_config call
Running HCL on platforms that are not listed in board_config ends on
exiting the script. Calling that function was added while working on APU
support, as there is multiple flash chip detected when try to use
flashrom on that platform so chip name definition was added to specific
platform in board_config.

There is no need for that as check_flash_chip function check one by one
known chips from the list defined as FLASH_CHIP_LIST (in dts_environment)
and uses one, that does not return error when flashrom is invoked.

Later in HCL we uses check_intel_regions func which needs
PROGRAMMER_BIOS variable but this is by default defined in
dts_enviroment as `internal` so in HCL we can assume to use this
programmer for every platform.

Signed-off-by: Tomasz Żyjewski <tomasz.zyjewski@3mdeb.com>
2024-04-18 10:51:22 +02:00
Daniil Klimuk
5610e60007 rework colors and print functions
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-04-15 15:35:34 +02:00
Daniil Klimuk
e6d7198e4b fix issues reported after implementing pre-commit hooks
For list of pre-commit warnings checkout:
https://www.shellcheck.net/wiki/

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-04-15 15:21:29 +02:00
Maciej Pijanowski
2583e7e5fa relicense to Apache-2.0, reuse compliance
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
2024-04-10 11:10:52 +02:00