summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2023-11-07 13:10:37 +0200
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2023-11-07 13:10:37 +0200
commit065512347081656828928b4ad55c9d16c7fc0809 (patch)
treef8844ec400a49af6bd01d38f2afcbe8b947e5483
parentc42a056ba67b121c40b67d332ce9489077bece36 (diff)
dd tests for updating and writing efi vars on the synquacer boxHEADmaster
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r--socionext/efi-PK-KEK.yaml33
-rw-r--r--socionext/efi-db-dbx.yaml33
-rw-r--r--socionext/fw-update-capsule.yaml30
-rw-r--r--socionext/fw-update-sf.yaml35
4 files changed, 131 insertions, 0 deletions
diff --git a/socionext/efi-PK-KEK.yaml b/socionext/efi-PK-KEK.yaml
new file mode 100644
index 0000000..6e77298
--- /dev/null
+++ b/socionext/efi-PK-KEK.yaml
@@ -0,0 +1,33 @@
+device_type: synquacer
+job_name: set-PK-KEK
+visibility: public
+timeouts:
+ job:
+ minutes: 60
+ action:
+ minutes: 60
+ connection:
+ minutes: 2
+actions:
+- deploy:
+ to: tftp
+ kernel:
+ url: https://people.linaro.org/~ilias.apalodimas/PK.auth
+ dtb:
+ url: https://people.linaro.org/~ilias.apalodimas/KEK.auth
+- boot:
+ method: u-boot
+ timeout:
+ minutes: 15
+ auto_login:
+ login_prompt: 'login:'
+ username: 'root'
+ prompts:
+ - ewaol@(.*):[/~]\$
+ - root@(.*):[/~]#
+ commands:
+ - setenv serverip {SERVER_IP} && setenv ipaddr 172.27.16.144
+ - tftp $kernel_addr_r {KERNEL}
+ - setenv -e -nv -bs -rt -at -i $kernel_addr_r:$filesize PK
+ - tftp $kernel_addr_r {DTB}
+ - setenv -e -nv -bs -rt -at -i $kernel_addr_r:$filesize KEK
diff --git a/socionext/efi-db-dbx.yaml b/socionext/efi-db-dbx.yaml
new file mode 100644
index 0000000..be95672
--- /dev/null
+++ b/socionext/efi-db-dbx.yaml
@@ -0,0 +1,33 @@
+device_type: synquacer
+job_name: set-PK-KEK
+visibility: public
+timeouts:
+ job:
+ minutes: 60
+ action:
+ minutes: 60
+ connection:
+ minutes: 2
+actions:
+- deploy:
+ to: tftp
+ kernel:
+ url: https://people.linaro.org/~ilias.apalodimas/db.auth
+ dtb:
+ url: https://people.linaro.org/~ilias.apalodimas/dbx.auth
+- boot:
+ method: u-boot
+ timeout:
+ minutes: 15
+ auto_login:
+ login_prompt: 'login:'
+ username: 'root'
+ prompts:
+ - ewaol@(.*):[/~]\$
+ - root@(.*):[/~]#
+ commands:
+ - setenv serverip {SERVER_IP} && setenv ipaddr 172.27.16.144
+ - tftp $kernel_addr_r {KERNEL}
+ - setenv -e -nv -bs -rt -at -i $kernel_addr_r:$filesize db
+ - tftp $kernel_addr_r {DTB}
+ - setenv -e -nv -bs -rt -at -i $kernel_addr_r:$filesize dbx
diff --git a/socionext/fw-update-capsule.yaml b/socionext/fw-update-capsule.yaml
new file mode 100644
index 0000000..004297b
--- /dev/null
+++ b/socionext/fw-update-capsule.yaml
@@ -0,0 +1,30 @@
+ device_type: synquacer
+job_name: upgrade-firmware-capsule
+visibility: public
+timeouts:
+ job:
+ minutes: 60
+ action:
+ minutes: 60
+ connection:
+ minutes: 2
+actions:
+- deploy:
+ to: tftp
+ kernel:
+ url: https://storage.tuxsuite.com/public/blueprints/trustedsubstrate/oebuilds/2StFkiZk0dg3NY4soqsteJnXceH/synquacer/synquacer_fw.capsule
+- boot:
+ method: u-boot
+ timeout:
+ minutes: 15
+ auto_login:
+ login_prompt: 'login:'
+ username: 'root'
+ prompts:
+ - ewaol@(.*):[/~]\$
+ - root@(.*):[/~]#
+ commands:
+ - setenv serverip {SERVER_IP} && setenv ipaddr 172.27.16.144
+ - tftp $kernel_addr_r {KERNEL}
+ - efidebug capsule update $kernel_addr_r
+ - reset
diff --git a/socionext/fw-update-sf.yaml b/socionext/fw-update-sf.yaml
new file mode 100644
index 0000000..39e0833
--- /dev/null
+++ b/socionext/fw-update-sf.yaml
@@ -0,0 +1,35 @@
+device_type: synquacer
+job_name: upgrade-firmware-non-capsule
+visibility: public
+timeouts:
+ job:
+ minutes: 60
+ action:
+ minutes: 60
+ connection:
+ minutes: 2
+actions:
+- deploy:
+ to: tftp
+ kernel:
+ url: https://people.linaro.org/~ilias.apalodimas/scp_romramfw_Release.bin
+ dtb:
+ url: https://people.linaro.org/~ilias.apalodimas/fip.bin-synquacer
+- boot:
+ method: u-boot
+ timeout:
+ minutes: 15
+ auto_login:
+ login_prompt: 'login:'
+ username: 'root'
+ prompts:
+ - ewaol@(.*):[/~]\$
+ - root@(.*):[/~]#
+ commands:
+ - sf probe
+ - setenv serverip {SERVER_IP} && setenv ipaddr 172.27.16.144
+ - tftp $kernel_addr_r {KERNEL}
+ - sf erase 100000 30000 ; sf write $kernel_addr_r 100000 30000
+ - tftp $kernel_addr_r {DTB}
+ - sf erase 600000 400000 ; sf write $kernel_addr_r 600000 400000
+ - reset