Commit Graph

14 Commits

Author SHA1 Message Date
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
Daniil Klimuk
b0928d90f3 reports: add DTS reports scripts
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-04-09 13:32:12 +02:00