-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DT Overlay Functionality not available after reboot #100
Comments
Fixed in PR "Fix dt-overlay patch #35". Results below are for initial boot and after pressing the reset button. The failed "boot" test case indicated actual reset was happening: |
Confirming this issue is resolved in the Successfully tested on Followed test procedure from original post After reboot, dt-overlay functionality checks pass: Also tested one-wire device after reboot, works as expected. |
What package does this bug affect?
onion-dt-overlay-sw-spi
andonion-dt-overlay-w1-gpio
in theopenwrt-23.05
branchAnd most likely inopenwrt-22.03
branch as wellEDIT: 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:
onion_omega2p-23.05.3-20240610.bin
firmware to the devicepytest -v test_device.py --json-config test_cases/400_opkg_update.json test_cases/600_dt_overlay.json
, observe all tests passpytest -v test_device.py --json-config test_cases/600_dt_overlay.json
, observe the tests that check functionality fail: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:
After rebooting the device (step 4 above), tested manually on command line again. No SW SPI device available, not one-wire master device available:
Version Info (please complete the following information):
onion-dt-overlay-sw-spi
andonion-dt-overlay-w1-gpio
1.0-5
openwrt-23.05
branchThe text was updated successfully, but these errors were encountered: