Commit Graph

89 Commits

Author SHA1 Message Date
Pawel Langowski 772b36c44c include/dts-functions.sh: Novacustom: Remove duplicated NEED_SMMSTORE_MIGRATION
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-12-02 12:54:05 +01:00
Pawel Langowski 981c97ae88 include/dts-functions.sh: Use correct flashrom flags
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-29 15:16:13 +01:00
Pawel Langowski b46569db23 include/dts-functions.sh: "Press enter..." hotfix
Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
2024-11-27 11:02:53 +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 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 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 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
Daniil Klimuk 6d53e2cf05 integrate HAL
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:36 +01:00
Daniil Klimuk d7780f288b include: hal: add
Add HAL and mocking functions.

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-18 16:17:35 +01:00
Daniil Klimuk b447b8c03e include: dts-functions: downloading artifacts: add capsules
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk 2aef6c34f4 Add more comments
Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00
Daniil Klimuk ecbb7b1424 include: dts-functions: fix footer rendering
Before:

*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs V to enable verbose mode
Enter an option:

Now:

*********************************************************
R to reboot  P to poweroff  S to enter shell
K to launch SSH server  L to enable sending DTS logs
V to enable verbose mode
Enter an option:

Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
2024-11-14 10:39:38 +01:00