Commit Graph

1846 Commits

Author SHA1 Message Date
j1nx 35b7a5bf63 [RPI] Bump vocalfusion driver and XMOS 3510 INT SPI firmware 2024-04-23 12:32:37 +00:00
j1nx de12e1cda8 [All] More bumps and fixes all over the codebase to get back into shape 2024-04-23 09:46:11 +00:00
j1nx 33ccd95215 [All] Bump more packages 2024-04-20 09:12:46 +00:00
j1nx 4cb0856e6f [All] The big version jump one again 2024-04-11 07:47:59 +00:00
j1nx aa79231bf0 [All] {WIP} The big bump to buildroot 2024.02.x 2024-03-01 07:54:30 +00:00
j1nx 24a7b5beb1 [All] Re-enable systemd notify healthchecks 2024-02-19 19:12:51 +00:00
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 3bdd57fb1d Merge branch 'develop' into fix/gpio 2024-02-17 10:10:12 +00:00
j1nx 9e0642fb2d [All] Switch back to userspace overlayfs driver. Overall this gives the best performance 2024-02-17 10:05:29 +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
j1nx b1fb2843e0 [All] Remove priority settings from ovos-bus-server 2024-02-10 13:07:48 +00:00
j1nx 75479afcfd Merge remote-tracking branch 'BohdanBuinich/xvf3510-rpi5-compatibility' into fix/gpio 2024-02-10 10:36:48 +00:00
j1nx 1c0833808d Disable PWM and buttons overlays during testing 2024-02-10 10:35:13 +00:00
j1nx 91fcb4e1d6 [RPI] Move cma 384M setting from commandline to config.txt 2024-02-09 17:56:51 +00:00
j1nx a16e44250d [All] Disable CPUSchedulingPolicy=fifo for ovos-bus-server 2024-02-09 11:10:49 +00:00
j1nx 5f79bf8820 [All] Second pass on kernel fragment cleanup 2024-02-08 13:53:49 +00:00
j1nx 3a7be3234b [All] Disabling drivers we are most likely never going to use
Mostly DVB/TV type of devices
2024-02-08 13:21:24 +00:00
j1nx 61b64f4abc [All] First pass on linux fragment files fixes and changes 2024-02-08 12:26:52 +00:00
j1nx 2525c95609 Fix and adjust the HAOS linux-dotkernel-config script for us 2024-02-08 12:21:06 +00:00
Jan Čermák b89f5e3322 Also check kernel custom config file in linux-check-dotconfig (#3126)
If BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE is set, it should be also checked
by the script for checking that all kernel options are applied.
2024-02-08 09:28:23 +00:00
Jan Čermák d2059c5531 Add script for checking resulting kernel config (#3006)
There is bunch of kernel config options that are not propagated
correctly to the kernel configuration after fragments are merged
and processed by Kconfig. Current Buildroot tools are not good at
discovering these - while we cleaned up most inconsistencies by using
linux-diff-config and output from the merge_config.sh script, there
are still options that were removed or get a different value than
intended because of dependencies, etc.

This commit adds a Python script that is using Kconfiglib to parse
current kernel's Kconfig files and the generated .config and compare
the requested values from individual kernel config fragments. The
script can be used manually by running `make linux-check-dotconfig`
from the buildroot directory (with path to BR2_EXTERNAL directory set)
and it's called also from the CI, where it generates Github Workflow
warning annotations when some of the values are not present or when set
incorrectly.

The kconfiglib.py is checked-in to the repo as well, because the library
is currently abandoned on PyPI and packaged version has a bug that causes
errors parsing Kconfigs in newer Linux versions, fixed in outstanding
pull request ulfalizer/Kconfiglib#119 - so version from this PR is used
here.

If pypi/support#2526 is ever resolved, we could remove it from our repo
and use pip for installing the package as a requirement during build
of the build container.
2024-02-08 09:20:36 +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 f8e7a135e4 [All] Add --security-opt label=disable to the quadlet files 2024-02-07 18:24:19 +00:00
j1nx feb7a214ac [All] Hopefully the last dumb ass mistake to fix. 2024-02-07 18:23:29 +00:00
j1nx c8617076da [All] Fix another stupid mistake of wrong mycroft.conf location 2024-02-06 20:28:41 +00:00
j1nx ce81526d60 [All] Fix stupid mistake by disabling the wrong service at boot 2024-02-06 20:23:48 +00:00
j1nx 6bb37c4e82 [All] Changes to the quadlet files (again) 2024-02-06 19:12:26 +00:00
j1nx 455f11d7a6 [All] Mount host /etc/mycroft.conf into containers by default.
Shipping with OS release configuration while allowing to use the
user mycroft.conf to overwrite those settings again if wanted
2024-02-06 15:51:25 +00:00
j1nx 49d12c56bc [All] Remove fallback Mimic1 configuration 2024-02-06 11:42:37 +00:00
j1nx 141995d991 [RPI] Fixes and changes for respeaker / kernel 6.6 2024-02-06 10:55:56 +00:00
j1nx fffa51ff5f [All] (testing) Bumpe kernel to 6.6.14 2024-02-05 16:41:40 +00:00
j1nx 2cf3fb2d91 [x86] (Fix) No longer needed to install the kernel to the vfat esp partition. 2024-02-05 11:34:16 +00:00
j1nx e999e64152 [All] Disable libcamera-apps 2024-02-05 11:31:53 +00:00
j1nx 19b7e80788 [All] Add messagebus and phal-admin to prefetch containers 2024-02-04 21:34:06 +00:00
j1nx 0af4122eab [All] Switch back to old quadlet image system
Need to think this through
2024-02-04 17:18:36 +00:00
j1nx 5787cae2c9 [All] Remove healthy sdnotify system
The structure changed, need to figure out the best way forward.
2024-02-04 12:50:23 +00:00
j1nx 262bb73b52 [All] Add support for ovos_local_state
According 7df24e8ea8 (diff-b093d34eec92adf6e0cc6e445edb7147ea45d25fb0c98f2f84a60f5aae6f34f7)
2024-02-04 11:19:36 +00:00
j1nx 7aea4f0c5f [All] Switch over to / make use of podman .image files.
Also fix a filename error for tts-server and
do not pull in new containers automatically when newer are available
2024-02-04 11:03:14 +00:00
j1nx e8187814a3 [x86] Fix overseen little post-build script issues for x86 2024-02-04 11:03:14 +00:00
j1nx 5c7734b453 [All] Add a minimal phal.list to the main rootfs overlay 2024-02-04 11:03:14 +00:00
Peter Steenbergen 23bc8fb5ca
Merge pull request #212 from BohdanBuinich/fix-services
[ALL] Fix Service Failures during Boot
2024-02-04 11:02:30 +01:00
j1nx 5fb25536c7 [All] Revert certain pipewire tweaks (let's start over) 2024-02-03 19:27:41 +00:00
Bohdan Buinich 05e88781f6 [ALL] Fix Service Failures during Boot 2024-02-03 20:13:39 +02:00
j1nx 9116521d1e [All] Move the kernel RT PREEMPT settings to the main kernel config fragment file 2024-02-03 14:09:11 +00:00
j1nx 1ee4419270 [All] Pull in the main chat gpt skill as teh PR is merged 2024-02-03 12:37:30 +00:00
j1nx 2f8e165506 [x86] Use the SOF open firmware for Intel HDA soundcards 2024-02-03 12:36:46 +00:00