Skip to content

DT Overlay Functionality not available after reboot #100

@greenbreakfast

Description

@greenbreakfast

What package does this bug affect?

onion-dt-overlay-sw-spi and onion-dt-overlay-w1-gpio in the openwrt-23.05 branch

And most likely in openwrt-22.03 branch as well
EDIT: tested on openwrt-22.03 based firmware and did not find the same issue. See comment below for details.

Describe the bug

The functionality added by installing Device Tree Overlay packages is only available until the device is powered off or rebooted.
Once the device reboots, the DT overlay seems to still be in place, but the functionality is not available. That is the additional software SPI bus and the one-wire master are not available.

To Reproduce

Used the OnionIoT/omega2-fw-tester to test this quickly

Steps to reproduce the behavior:

  1. Flash the latest onion_omega2p-23.05.3-20240610.bin firmware to the device
  2. Setup wifi or otherwise connect the device to the internet
  3. On connected computer, run pytest -v test_device.py --json-config test_cases/400_opkg_update.json test_cases/600_dt_overlay.json, observe all tests pass
Screenshot 2024-06-10 at 3 52 00 PM
  1. Reboot the Omega2 device
  2. On connected computer, run pytest -v test_device.py --json-config test_cases/600_dt_overlay.json, observe the tests that check functionality fail:
Screenshot 2024-06-10 at 4 02 01 PM

Expected behavior

Expecting Software SPI and One-Wire Master to be available and work properly after a reboot or power off

Screenshots or Console output

After initial installation of the dt overlay packages (step 3 above), tested manually on command line and both SW SPI and One-Wire worked. Could even read temperature data from a connected sensor:
Screenshot 2024-06-10 at 3 51 50 PM

After rebooting the device (step 4 above), tested manually on command line again. No SW SPI device available, not one-wire master device available:
image

Version Info (please complete the following information):

  • Firmware version: 23.05.3-20240610
  • Package name: onion-dt-overlay-sw-spi and onion-dt-overlay-w1-gpio
  • Package Version: 1.0-5
  • Repo branch (if applicable) openwrt-23.05 branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions