Skip to content

secure-ec-poc: QEMU#16

Open
bjackson312006 wants to merge 12 commits into
OpenDevicePartnership:secure-ec-pocfrom
bjackson312006:secure-ec-poc.qemu
Open

secure-ec-poc: QEMU#16
bjackson312006 wants to merge 12 commits into
OpenDevicePartnership:secure-ec-pocfrom
bjackson312006:secure-ec-poc.qemu

Conversation

@bjackson312006

@bjackson312006 bjackson312006 commented Jul 7, 2026

Copy link
Copy Markdown

This PR adds a QEMU build for the Zephyr-ODP PoC. It can be built and ran via the ./qemu.sh script.

The build targets qemu_cortex_m3. The devicetree consists of several emulated drivers:

  • An emulated fuel gauge (sbs,sbs-gauge-new-api) and emulated temp sensor (fintek,f75303), running on an emulated I2C bus (zephyr,i2c-emul-controller)
  • A tachometer (zephyr,tach-gpio) running on an emulated GPIO controller (zephyr,gpio-emul)
  • A pwm-fan instance running on an emulated PWM driver (zephyr,pwm-emul)
  • An rs,rtc instance running on an emulated RTC driver (rtc_emul)
  • An emulated UART driver (zephyr,uart-emul)

Closes #9

@bjackson312006
bjackson312006 marked this pull request as ready for review July 7, 2026 18:12
Adds `native-sim` support to the `secure-ec-poc.qemu` branch.

This PR contains some miscellaneous re-revving to accommodate updates to `embedded-services`, which I had to pull in to access the changes made in [this other PR](OpenDevicePartnership/embedded-services#913). Most of these changes were in `fuel_gauge.rs` and `battery.rs`, due to the `battery-service` API update.

The `native_sim` target can be compiled via the `./native-sim.sh` script. Everything here operates pretty similarly to the `qemu_cortex_m3` target (i.e., all the drivers are simmed), but you're able to actually interface the UART with stuff on your host computer (i.e., the test-tui).
….nativesim

Revert "secure-ec-poc: Native Sim"
@kurtjd

kurtjd commented Jul 22, 2026

Copy link
Copy Markdown
Member

@bjackson312006 Please resolve merge conflicts when you get a chance, then I can review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants