|
1 | | -{%- set flash_image_url = flash_image_url | default(platform_config.flash_image, true) -%} |
2 | | -{%- set flash_image_auth = flash_image_auth | default('LAVA_BASIC_AUTH', true) -%} |
3 | | -{%- if flash_image_name is not defined and flash_image_url -%} |
4 | | -{%- set flash_image_path = flash_image_url.split('?')[0] -%} |
5 | | -{%- set flash_image_name = flash_image_path.split('/')[-1] -%} |
6 | | -{%- endif -%} |
7 | | - |
8 | 1 | - deploy: |
9 | 2 | images: |
10 | 3 | image: |
11 | | - headers: |
12 | | - Authorization: '{{ flash_image_auth }}' |
13 | | - url: '{{ flash_image_url }}' |
| 4 | + url: '{{ node.artifacts.flash_image }}' |
14 | 5 | postprocess: |
15 | 6 | docker: |
16 | | - image: ghcr.io/foundriesio/lava-lmp-sign:main |
| 7 | + image: ghcr.io/mwasilew/docker-mkbootimage:master |
17 | 8 | steps: |
18 | 9 | - export IMAGE_PATH=$PWD |
| 10 | + - cp overlay*.tar.gz overlay.tar.gz |
| 11 | + - echo "OVERLAY=overlay.tar.gz" >> $IMAGE_PATH/flash.settings |
| 12 | + - echo "OVERLAY_PATH=/" >> $IMAGE_PATH/flash.settings |
| 13 | + - echo "ROOTFS_IMAGE=rootfs.img" >> $IMAGE_PATH/flash.settings |
19 | 14 | - echo "DEVICE_TYPE={{ platform_config.name }}" >> $IMAGE_PATH/flash.settings |
20 | | - - echo "PORT={{ flash_port | default('0', true) }}" >> $IMAGE_PATH/flash.settings |
| 15 | + - echo "PORT=0" >> $IMAGE_PATH/flash.settings |
21 | 16 | - cat $IMAGE_PATH/flash.settings |
22 | 17 | timeout: |
23 | | - minutes: 20 |
| 18 | + minutes: 30 |
24 | 19 | to: downloads |
25 | | - namespace: kernelciflasher |
26 | | - |
| 20 | +{% set flash_image_url = node.artifacts.flash_image %} |
| 21 | +{% set flash_image_path = flash_image_url.split('?')[0] %} |
| 22 | +{% set flash_image_name = flash_image_path.split('/')[-1] %} |
27 | 23 | - deploy: |
28 | 24 | images: |
29 | 25 | image: |
30 | 26 | url: 'downloads://{{ flash_image_name }}' |
31 | 27 | settings: |
32 | | - url: 'downloads://flash.settings' |
| 28 | + url: downloads://flash.settings |
| 29 | + overlay: |
| 30 | + url: downloads://overlay.tar.gz |
33 | 31 | timeout: |
34 | | - minutes: 30 |
| 32 | + minutes: 10 |
35 | 33 | to: flasher |
36 | | - namespace: kernelciflasher |
37 | | - |
38 | 34 | - boot: |
39 | | - namespace: target |
40 | 35 | {% if meta_qcom | default(false, true) %} |
41 | 36 | auto_login: |
42 | 37 | login_prompt: 'login:' |
|
45 | 40 | password: oelinux123 |
46 | 41 | {% endif %} |
47 | 42 | prompts: |
48 | | - - root@rb3gen2-core-kit |
| 43 | + - root@{{ platform_config.name }} |
49 | 44 | - root@(.*):[/~]# |
| 45 | + failure_retry: 3 |
50 | 46 | timeout: |
51 | | - minutes: 20 |
| 47 | + minutes: 10 |
| 48 | + timeouts: |
| 49 | + bootloader-commands: |
| 50 | + minutes: 3 |
| 51 | + auto-login-action: |
| 52 | + minutes: 10 |
52 | 53 | method: minimal |
0 commit comments