Add SD card disk boot support for NXP T1040 (eSDHC) #2748
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Custom TLV - test with simulator target | |
| on: | |
| push: | |
| branches: [ 'master', 'main', 'release/**' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| jobs: | |
| custom_tlv_simulator_tests: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/wolfssl/wolfboot-ci-sim:v1.0 | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Trust workspace | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: make clean | |
| run: | | |
| make distclean | |
| - name: Select config | |
| run: | | |
| cp config/examples/sim.config .config | |
| - name: Build tools | |
| run: | | |
| make -C tools/keytools && make -C tools/bin-assemble | |
| - name: Build wolfboot.elf and test-app/image.elf | |
| run: | | |
| make clean && make | |
| - name: Sign the image with a custom TLV | |
| run: | | |
| tools/keytools/sign --ed25519 --custom-tlv-buffer 0x0034 AABBCCDDEEFF0011223344 test-app/image.elf wolfboot_signing_private_key.der 1 | |
| - name: Re-assemble the internal_flash.dd image file | |
| run: | | |
| make assemble_internal_flash.dd | |
| - name: Run get_tlv simulator test | |
| run: | | |
| [ x`./wolfboot.elf get_tlv 2>/dev/null| tail -1` = xAABBCCDDEEFF0011223344 ] | |
| custom_tlv_large_simulator_tests: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/wolfssl/wolfboot-ci-sim:v1.0 | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Trust workspace | |
| run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: make clean | |
| run: | | |
| make distclean | |
| - name: Select config | |
| run: | | |
| cp config/examples/sim.config .config | |
| - name: Build tools | |
| run: | | |
| make -C tools/keytools && make -C tools/bin-assemble | |
| - name: Build wolfboot.elf and test-app/image.elf with a 2KB header | |
| run: | | |
| make clean && make IMAGE_HEADER_SIZE=2048 | |
| - name: Sign the image with 300-byte buffer and file custom TLVs | |
| run: | | |
| VAL=`printf 'A5%.0s' $(seq 1 300)` | |
| head -c 300 /dev/zero | tr '\0' '\245' > large_tlv.bin | |
| IMAGE_HEADER_SIZE=2048 tools/keytools/sign --ed25519 --custom-tlv-buffer 0x0034 $VAL --custom-tlv-file 0x0035 large_tlv.bin test-app/image.elf wolfboot_signing_private_key.der 1 | |
| - name: Re-assemble the internal_flash.dd image file | |
| run: | | |
| make assemble_internal_flash.dd IMAGE_HEADER_SIZE=2048 | |
| - name: Run get_tlv simulator test on the 300-byte buffer TLV | |
| run: | | |
| [ x`./wolfboot.elf get_tlv 2>/dev/null| tail -1` = x`printf 'A5%.0s' $(seq 1 300)` ] | |
| - name: Run get_tlv simulator test on the 300-byte file TLV (tag 0x35) | |
| run: | | |
| [ x`./wolfboot.elf get_tlv=53 2>/dev/null| tail -1` = x`printf 'A5%.0s' $(seq 1 300)` ] |