tree: 7dc01586991e60cd326de1b59e9d98ddfcd0c860 [path history] [tgz]
  1. puppeteer_utils/
  2. BUILD
  3. cheriot-baremetal.h
  4. crt_cheri.S
  5. puppeteer.cc
  6. puppeteer.h
  7. puppeteer_rom.cc
  8. puppeteer_rom.ld
  9. README.md
  10. test_rom.c
  11. test_rom.ld
  12. test_rom_cheri.c
  13. test_rom_cheri.ld
  14. test_rom_start.S
  15. test_rom_start_cheri.S
sw/device/lib/testing/test_rom/README.md

Test Boot ROM

The Boot ROM is a testing-only device image. The ROM is the reference implementation of the OpenTitan Secure Boot specification.

The boot ROM is always the first piece of code run in the system. At the moment, it serves 2 functions:

  • Bootstrap additional code if requested.
  • Jump to embedded flash and begin execution.

Bootstrap Overview

The boot ROM bootstrap function differs between Verilator, DV and FPGA.

In DV and in Verilator, embedded flash code can be backdoor loaded. So, for most of the tests, the run times can be sped up by bypassing the code load. However, both do support the bootstrap function and can be used similarly to the FPGA in loading code. In DV, a subset of tests will indeed exercise the the bootstrap code paths since it is a system level usecase.

In FPGA, bootstrap is required and requested by an external host via GPIO. Bootstrap can be requested by driving TAP_STRAP0 (USB_A18) and TAP_STRAP1 (USB_A19) to 0 and 1, respectively, and presenting strong pull-ups on all SW_STRAP* pins (USB_A15, USB_A16, and USB_A17). If bootstrap is requested, the boot ROM initializes the SPI interface and flash controller. OpenTitan uses a SPI Flash based bootstrap protocol and can be programmed using the opentitantool.

Puppeteer Boot Rom

Puppeteer is a debug-only bootrom used to remotely control the Shodan hardware over a UART or similar byte-oriented port.