Commit Graph

196 Commits

Author SHA1 Message Date
Pawel Langowski d2b611dacc include/dts-functions.sh: Bump Optiplex Dasharo version to v0.1.1
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-22 09:43:51 +01:00
Pawel Langowski 23c6ed7f2a Use uppercase Enter
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-21 14:28:16 +01:00
Pawel Langowski a4d3029a37 UI/UX improvements
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-21 14:22:01 +01:00
Daniil Klimuk 472ab6fff2 include: dts-subscription: move warning print outside login_to_dpp_server
login_to_dpp_server should only try to login, the decision to print
warning or not should be done outside this function basing on the output
of this function. Otherwise every time the function is being called the
warning could be printed too, which is not always wanted.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-20 12:52:07 +01:00
Daniil Klimuk 0cd3f0a534 Ask only for enter to continue
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-20 12:52:01 +01:00
Daniil Klimuk adb410e65e include: dts-subscription: print warning instead of error
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 17:43:06 +01:00
Daniil Klimuk 7087b789e0 include: dts-subscription: add UEFI Capsule Update
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 17:42:54 +01:00
Daniil Klimuk 8a2fc2f313 include: dts-functions: fix pre-commit warnings
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:47 +01:00
Daniil Klimuk 79e40334f9 check for Capsule Update compatibility with currently installed firm
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:47 +01:00
Daniil Klimuk 0f2abda235 include: dts-functions.sh: cleanup download_ec func
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:47 +01:00
Daniil Klimuk c4e607a015 scripts: dasharo-deploy: send logs before trying to reboot
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:47 +01:00
Daniil Klimuk 84c7b6029e include: dts-functions.sh: download_artifacts: delete
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:47 +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 332f30f276 include: dts-functions.sh: board_config: cleanup Novacustom config
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 8e05b0f2e2 delete explicit redirection to stdout (1>&1)
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 4934117d74 include: dts-functions.sh: fix AC adapter mocking
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk f6ed23873c include: do not modify SHELL env. var.
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 09258fb168 include: hal: dts-hal.sh: use $@ instead of $*
Reviewed-by: Michał Iwanicki <michal.iwanicki@3mdeb.com>
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 821e7082b3 include: hal: dts-hal: add usage comment for tool_wrapper
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 183ae6ad0f include: dts-subscription.sh: fix creds problem warning printing
Before:

Something may be wrong with the DPP credentials or you may not

                have access to Dasharo Firmware. If so, consider getting Dasharo

                Subscription and improving security of your platform!

Now:

Something may be wrong with the DPP credentials or you may not
have access to Dasharo Firmware. If so, consider getting Dasharo
Subscription and improving security of your platform!

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:46 +01:00
Daniil Klimuk 1fde2de736 include: dts-functions.sh: check_if_boot_guard_enabled add mocks
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:45 +01:00
Daniil Klimuk ef75759a38 include: dts-functions.sh: check_if_fused: add mocks
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:45 +01:00
Daniil Klimuk 04ab1e1907 include: dts-functions.sh: add capsules for MSI
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:45 +01:00
Daniil Klimuk ad3958c185 include: fix transaction to Heads
Add variables for Hash and Signature.

Add checking for EC, beacuse some platforms which use Heads use EC as
well, therefore EC firmware links are needed during transition. Before
this commit the link had not been set, and transition failed.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:52:25 +01:00
Daniil Klimuk 5d310535f5 fix sourcing libs
Cause of this patch: After I have added and integrated HAL - I have
added following line in dts-boot:

source $DTS_HAL

This was needed because I have used some fuctions from the HAL in the
script.

Inside DTS_HAL I had following line:

source $DTS_ENV

Because I have used some vars from the DTS_ENV in the HAL.

The problem was, that I had another line in DTS_ENV:

source $DTS_HAL

So, I got following boot workflow:

Boot
|
v
dts-boot
|   /-------\
v   v       |
DTS_HAL->DTS_ENV
           .
............
v
dts

Instead of sourcing some scripts and then launching dts script - I got a
loop betwee DTS_HAL and DTS_ENV. Therefore I decided to clean up
sourcing a bit.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:36 +01:00