# SLN-VIZNAS-IOT Open Boot Scripts

Scripts for using on an open device (HAB not enabled)

## Device executable binaries

The following executable binaries are loaded into flash by the Open Boot script:

- sln_viznas_iot_bootstrap.bin
  - Programmed as plain text
  - Must be built with XIP boot headers set to one
    - XIP_BOOT_HEADER_ENABLE=1
    - XIP_BOOT_HEADER_DCD_ENABLE=1
- sln_viznas_iot_bootloader.bin
  - Programmed as plain text
- sln_viznas_iot_elock_oobe.bin
  - Programmed as plain text

## Running Scripts

### Program Open SLN-VIZNAS-IOT Application

There is a manufacturing tool for:
Programming the binaries (these file names may need to change if different)

With module unpowered, place boot jumper in BOOT_MODE_0. Apply power to vizn module

```
(env) user@host:~/sln_imx_rt_prog_and_test $ cd Scripts/sln_viznas_iot_open_boot
(env) user@host:~/sln_imx_rt_prog_and_test/Scripts/sln_viznas_iot_open_boot $ python open_prog_full.py -c CA_NAME -p PREFIX -m MAIN_APP -d BIN_DIR # 'prod' is default CA_NAME. See ota_signing README.md for clarification on CA_NAME
```

Unpower module, move the boot jumper in BOOT_MODE_1 and restore power
