Commit Graph

1133 Commits

Author SHA1 Message Date
j1nx 23a94cc1db [All] Switch back to ovos-messagebus and configured shared volums as such 2024-02-18 19:14:55 +00:00
j1nx 783900f225 [RPI] Use vocalfusion 6.6 kernel using new GPIO APIv2 2024-02-17 19:35:47 +00:00
j1nx 2a361ae00c [RPI4] Bump experimental VocalFusion test driver 2024-02-17 09:55:42 +00:00
j1nx 9dab4692a4 [WIP] Switch to vocalfusion PR driver for test drives 2024-02-11 11:47:38 +00:00
j1nx f628a9f49c [WIP] Add libgpiod2 and tools for debugging 2024-02-11 11:46:51 +00:00
Bohdan Buinich c0442cc0e6 [RPI] Refactor SPI and GPIO handling for XVF3510 initialization
This commit significantly overhauls the script for setting the XVF3510 board to boot from SPI slave mode and for loading a binary file. The refactor not only aims at improving code readability, maintainability, and robustness but also addresses compatibility issues with the latest Raspberry Pi models, specifically the Raspberry Pi 5, which does not support the RPi.GPIO library.

Changes made:
- Switched from `smbus` to `smbus2` for I2C communication, offering a more modern and robust interface.
- Replaced `RPi.GPIO` and `spidev` with `digitalio` and `busio` from the `adafruit_blinka` library, enhancing cross-platform compatibility and providing a more Pythonic API for GPIO and SPI operations.
- Introduced type annotations for function signatures, improving code readability and type safety.
- Added exception handling around I2C operations and file reading, increasing the script's robustness by gracefully handling potential errors.
- Defined global variables for GPIO pin configurations, making the code cleaner and easier to modify for different setups.
- Encapsulated GPIO setup and reset logic into dedicated functions (`setup_direct_gpio`), streamlining the main logic flow and separating concerns.
- Modularized SPI setup (`setup_spi`) and data transmission logic (`send_data_over_spi` and `handle_block_transfer`), enhancing code organization and maintainability.

Benefits:
- The use of `smbus2` and `adafruit_blinka` libraries modernizes the script and may improve compatibility with a wider range of devices and future Python versions.
- Type annotations and structured exception handling make the script more understandable and safer to execute, reducing the risk of runtime errors.
- The refactoring into more granular functions and the introduction of global variables for configuration parameters make the script easier to read, modify, and extend.
- Improved error handling ensures that the script fails gracefully, providing clear error messages and avoiding potential resource leaks.
2024-02-08 01:25:53 +02:00
j1nx 379e94dad3 [RPI] (WIP) Switch to kernel 6.6 VocalFusion drivers 2024-02-07 22:19:43 +00:00
j1nx 6bb37c4e82 [All] Changes to the quadlet files (again) 2024-02-06 19:12:26 +00:00
j1nx 141995d991 [RPI] Fixes and changes for respeaker / kernel 6.6 2024-02-06 10:55:56 +00:00
j1nx 19b7e80788 [All] Add messagebus and phal-admin to prefetch containers 2024-02-04 21:34:06 +00:00
Bohdan Buinich d0dcab2864 Moved post-build and post-images on top level (not fully tested) 2024-01-12 14:52:02 +02:00
Bohdan Buinich 3851ed9fab [ALL] Enhance Docker Image Fetching Script for Clarity and Robustness
- Streamlined variable declarations for improved readability.
- Added error checking to ensure successful retrieval of the image digest.
- Encapsulated core functionality into 'fetch_and_copy_image' function for better script structure.
- Introduced a 'lock_file' variable to clarify the file locking mechanism.
- Combined 'set' options into a single line and added 'pipefail' for robust error handling.
- Refined comments and structured the script into clearly defined sections.
2024-01-12 14:50:44 +02:00
Peter Steenbergen 3c29193f3f
Merge pull request #206 from BohdanBuinich/update-rpi-eeprom-script
[RPI] rpi-eeprom: Future support for RPI5
2024-01-12 12:23:10 +01:00
j1nx 32ff320548 [All] Download the images to specific arch folder.
As the SHA digest is the same for both the amd64 and arm64 arch
we need to download the images for each arch as otherwise it
skips the download and install the wrong arch to the system
from earlier downloaded images.
2024-01-09 20:23:01 +00:00
Bohdan Buinich 0f7f40a50e It looks better 2024-01-09 19:17:17 +02:00
j1nx ba7c614593 [All] {WIP} Change over the quadlet files to use drop-in support.
At the moment these quadlets do not auto start at boot yet.
Still thinking about the best way forward in regards with the upcoming
template support and the overall ovos-containers buildroot package.
2024-01-09 11:59:46 +00:00
Bohdan Buinich edc70b2f48 [RPI] rpi-eeprom: Future support for RPI5 2024-01-08 14:34:27 +02:00
j1nx 2f3d930410 [All] Bump and switch to ovos-bus-server running on the host under RT priority 2024-01-07 15:19:09 +00:00
j1nx 622b4d24a0 [ALL] Only install GUI container quadlet when GUI is selected 2023-12-28 10:37:43 +00:00
j1nx 3c911b941b [RPI] Remove respeaker patch (for now) 2023-12-28 08:45:03 +00:00
j1nx adf40880dd [ALL] Fixes (non-boot rpi) and tweaks (pipewire/wireplumber) 2023-12-27 16:11:15 +00:00
j1nx 6e49362369 [ALL] {WIP} Sound architectual changes for pipewire 2023-12-19 14:02:11 +00:00
j1nx e43faa65d6 [ALL] First step in splitting containers pre-installed system 2023-12-12 14:03:35 +00:00
j1nx f435366d6a [RPI] Change wm8960 button pinnumber to gpio number 2023-12-12 09:18:57 +00:00
j1nx 47776bd4aa [RPI] More work on getting the wm8960 2-mic card to work properly 2023-12-12 09:07:53 +00:00
j1nx 7dd52b67bd [RPI] Bump VocalFusion SJ-201 drivers 2023-12-11 07:51:51 +00:00
j1nx b3584319c5 [ALL][RPI4] More work on pre-shipping containers 2023-12-02 14:22:47 +00:00
j1nx 9da8f7a580 [ALL] First try-out on pre loading the podman containers at buildtime 2023-11-30 18:24:34 +00:00
j1nx 446aecb4da [ALL] Small fix for the splash screen start-up 2023-11-30 18:23:32 +00:00
j1nx ed2b6dbb21 [ALL] Only start the ovos-splash after the DRI and FB devices are initialized 2023-11-08 15:03:56 +00:00
j1nx 61351a7150 [WIP] Initial work on pre-pulling containers at buildtime. 2023-10-21 10:33:28 +00:00
j1nx e663240d23 [ALL] The big cleanup to change mycroft into ovos 2023-08-31 19:03:59 +00:00
j1nx cf6c4c7020 [RPI] Enable rpi-eeprom auto update and fixes for the sound system 2023-08-26 18:36:44 +00:00
j1nx c6460b9307 [WIP] Pushed for backup.
... Do not build this as of yet ...
2023-06-01 15:16:04 +02:00
j1nx 5c7af8b058 Bump ovos-config 2023-05-22 17:25:17 +02:00
j1nx 4be2e18800 Bump ovos-plugin-manager 2023-05-22 17:21:52 +02:00
j1nx 7600b7278c Bump ovos-bus-client 2023-05-22 17:18:22 +02:00
j1nx 9dd524f051 Bump skill-ovos-date-time 2023-05-22 17:13:52 +02:00
j1nx 3f41e9671b Bump skill-ovos-weather 2023-05-22 17:10:25 +02:00
j1nx 7c9b48bdb3 Bump skill-ovos-wikipedia 2023-05-19 14:46:20 +02:00
j1nx 2c9867ff0a Bump ovos-workshop 2023-05-19 13:49:14 +02:00
j1nx 7d579ea47d Bump ovos-core 2023-05-19 13:44:32 +02:00
j1nx 1fe0520289 Bump ovos-classifiers 2023-05-19 13:41:01 +02:00
j1nx 877780bad6 Bump ovos-utils 2023-05-19 13:37:41 +02:00
j1nx 93ff99a03f Bump skill-ovos-date-time 2023-05-19 13:31:17 +02:00
j1nx 1a17618027 Bump skill-ovos-personal 2023-05-19 13:26:26 +02:00
j1nx 66ccd59b6d Bump skill-ovos-naptime 2023-05-19 11:08:23 +02:00
j1nx ecd10af58e Bump skill-ovos-stop 2023-05-19 11:04:59 +02:00
j1nx 7d2637210c Bump ovos-plugin-manager 2023-05-19 10:40:04 +02:00
j1nx 01c013b68e Bump ovos-config 2023-05-19 10:31:07 +02:00