Commit Graph

49 Commits

Author SHA1 Message Date
j1nx aa79231bf0 [All] {WIP} The big bump to buildroot 2024.02.x 2024-03-01 07:54:30 +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 fffa51ff5f [All] (testing) Bumpe kernel to 6.6.14 2024-02-05 16:41:40 +00:00
j1nx e999e64152 [All] Disable libcamera-apps 2024-02-05 11:31:53 +00:00
j1nx c3a0370a4b [All] Enable alsa-plugins 2024-02-03 12:34:51 +00:00
Bohdan Buinich d1ac3d4be1 Merge remote-tracking branch 'origin/develop' into refactor-buildroot-scripts 2024-01-27 02:28:15 +02:00
j1nx 29a4ad1690 Merge branch 'develop' of github.com:OpenVoiceOS/ovos-buildroot into develop 2024-01-26 11:56:39 +00:00
j1nx 4ce75256d3 [RPI] Get the Raspberry Pi3 and 4 back in sync again.
With a possible fix for the RT kernel not booting on the rpi3
2024-01-24 15:43:33 +00:00
j1nx e306bcd9bc [All] Real messy commit with switch to NetworkManager, kernel bump and countless fixes that came up 2024-01-22 16:57:19 +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
j1nx 27200f51c5 [All] Enable python-pip on the host OS 2024-01-06 18:56:40 +00:00
j1nx 6d807b2a6d [ALL] Small additions and changes 2024-01-05 12:15:25 +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 d0c5ebd4d1 [All][RPI] Clean ups and some fixed (+kerenl bump) 2023-12-17 13:49:45 +00:00
j1nx e43faa65d6 [ALL] First step in splitting containers pre-installed system 2023-12-12 14:03:35 +00:00
j1nx f6a47e9398 [All] Bump kernel and buildroot 2023-12-10 09:05:19 +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 27bc2c917f [ALL] Enable libinput 2023-11-11 09:40:39 +00:00
j1nx 6978919f16 [ALL] Bump kernel to 6.1.61 2023-11-07 09:41:53 +00:00
j1nx f5154ef459 [RPI][WIP] Work on migrating the i2csound system towards pipewire 2023-11-04 12:57:26 +00:00
j1nx f5afcc2c2a [ALL] Bump buildroot + podman/crun [RPI] Update configs for it. 2023-10-28 14:31:43 +00:00
j1nx 61351a7150 [WIP] Initial work on pre-pulling containers at buildtime. 2023-10-21 10:33:28 +00:00
j1nx 4280abe4d6 [ALL] Re-enable ccache to speed up consecutive builds 2023-09-13 11:49:11 +00:00
j1nx cde9489876 [ALL] Bump kernel to 6.1.52 2023-09-13 06:08:08 +00:00
j1nx fcda92f20b [ALL] Switch from syslogd to rsyslogd.
This to be able to also pipe logs to the legacy log path of mycroft.
2023-09-02 11:56:57 +00:00
j1nx e663240d23 [ALL] The big cleanup to change mycroft into ovos 2023-08-31 19:03:59 +00:00
j1nx 8b15f2ac9c [RPI] Bump kernel and firmware to 6.1.47
Also include a kernel patch to speed up mmc driver.
2023-08-27 09:06:29 +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 1df2222ab7 [All] Bump Podman to 4.6.1 and Pipewire to 0.3.78
Also diable alsa-plugins as we do not need the alsa-pulse anymore
alsa-pipewire is installed by pipewire package itself.
2023-08-26 09:15:23 +00:00
j1nx 4c8fd8fab0 [All] Changes to the overlay system to get rootless podman to work 2023-08-25 14:59:36 +00:00
j1nx 815384911d [All] Changes to core system binaries 2023-08-23 10:16:09 +00:00
j1nx fad2856f2a [All] Sound additions and changes 2023-08-23 07:58:40 +00:00
j1nx 2c82ed2250 [All] Additions for dockerized system 2023-08-22 13:25:31 +00:00
j1nx ab4e40920c [ALL] Start working on podman, crun, conman architecture 2023-08-21 12:34:52 +00:00
j1nx 445558b1cc Enable podman 2023-08-21 08:37:15 +00:00
j1nx 15972e5e73 More work and get rpi4 inline 2023-08-21 08:05:43 +00:00
j1nx 4b02c2a839 Remove unmaintained config files.
As soon as the rpi4-gui image is released it will be rebased for rpi3
2021-02-09 20:27:42 +01:00
j1nx f3ef0ac143 [OVOS] Disable the following aspects for the headless version.
- No default getty / login prompt on tty1
- No splash screen
- Libcanberra
2020-11-20 12:31:35 +01:00
j1nx 63172da17b [OVOS] Minimize default image size to 2GB (~1.5GB used by default)
Rootfs is still expanded over the disk at first boot. This only
reflects the download / minimal required size. Still recommended
to have at least a 4GB sdcard.
2020-11-19 21:10:25 +01:00
j1nx 7ddbf089c1 [OVOS] Disable missed lotti-qml package for headless version. 2020-11-19 21:03:29 +01:00
j1nx 7c5559dfce [OVOS] Disable some more packages for the Headless system.
- A lot of different wifi firmwares
- Some more video related libraries
- Disable llvm support
2020-11-19 08:34:47 +01:00
Peter Steenbergen 2eab1b9627 [OVOS] Start of headless build configuration. 2020-11-19 08:06:20 +01:00
j1nx d743f3b63d MycroftOS: Remove unused defconfig files for now. 2020-08-15 11:15:40 +02:00
j1nx f9f9f62156 Stupid mistake. 2020-04-12 16:31:59 +02:00
j1nx 426e10968b MycroftOS: Make use of the splitted / multiple rootfs-overlay
directories.
2020-04-12 16:21:24 +02:00
j1nx 47eb787d5c MycroftOS: Initial start of 64bit for RPI4 2020-04-11 16:23:59 +02:00