1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-27 09:14:28 +01:00
Go to file
2023-04-25 11:09:05 +00:00
.github/ISSUE_TEMPLATE Update issue templates 2022-03-14 12:25:25 +01:00
buildroot@32dc4feacc Bump buildroot and python-requests 2023-04-23 18:29:41 +02:00
buildroot-external Add x86-64 normal PC infrastructure 2023-04-25 11:09:05 +00:00
buildroot-patches Bump buildroot and python-requests 2023-04-23 18:29:41 +02:00
documentation Update kernel.md 2022-06-01 17:02:22 +02:00
logs Add empty logs and release directory by default 2021-05-01 09:08:42 +02:00
release Add empty logs and release directory by default 2021-05-01 09:08:42 +02:00
scripts MycroftOS: BNuilding now uses a proper Makefile. 2019-12-10 13:21:49 +01:00
.gitignore Add empty logs and release directory by default 2021-05-01 09:08:42 +02:00
.gitmodules Bump buildroot submodule to 2022.02.x 2022-03-25 10:57:41 +01:00
Jenkinsfile convert all steps to use sh in jenkins 2021-02-27 16:56:01 +05:30
LICENSE
Makefile [WIP] Further work pushed for backup. (Do not build yet) 2022-09-28 17:17:34 +02:00
README.md README update to latest software base versions. 2022-09-25 18:45:59 +02:00

Open Voice Operating System - Buildroot Edition

A minimalistic Linux OS bringing the open source voice assistant ovos-core to embbeded, low-spec headless and/or small (touch)screen devices.

System.

OpenVoiceOS - Full 64 Bit distribution

  • Linux kernel 5.15.x (LTS)
  • Buildroot 2022.02.x (LTS)
  • OVOS-Core (Latest development version)
  • Raspberry Pi 3|3b|3b+ (Initial development hardware = 3b)
  • Raspberry Pi 4 (Current development hardware, minimum recommended RAM 2GB)

Stats:

Build Status GitHub last commit
This shows if the code is valid and can be build. This shows when this repo was updated for the last time
GitHub stars GitHub issues
Please this repo if you find it useful Issues are like my personal TODO list and information archive
License: Apache License 2.0 contributions welcome
I'm using the Apache License 2.0 similar as Mycroft A.I. which means commercial use is allowed If you have any ideas, they're always welcome. Either submit an issue or a PR!
Uptime Robot status Buy me a
I use uptime robot to monitor for things i can't monitor when the connection drops. If you feel the need, now it's as easy as clicking this button!

Getting started.

At this moment development is in very early stages and focussed on the Raspberry Pi 3B & 4. As soon as an initial first workable version is created, other hardware might be added.

Build Environment

Only use x86_64 based architecture/ hardware to build the image.

The following example Build environment has been tested :

  • Architecture: x86_64
  • Hardware: Intel Core i5 processor, 8GB RAM, 240GB SSD (you can build on less RAM (2GB) and slower storage but more RAM, faster storage = quicker image building)
  • OS: Ubuntu 22.04 LTS desktop

Installing System Build Dependencies

The following system packages are required to build the image:

  • gcc
  • subversion
  • qttools5-dev
  • qttools5-dev-tools
  • python
  • git
  • make
  • g++
  • curl
  • wget
  • qtdeclarative5-dev

The following firewall ports need to be allowed to the internet.

In addition to the usual http/https ports (tcp 80, tcp 443) a couple of other ports need to be allowed to the internet :

  • tcp 9418 (git).
  • tcp 21 (ftp PASV) and random ports for DATA channel. This can be optional but better to have this allowed along with the corresponding random data channel ports. (knowledge of firewalls required)

Getting the code.

First, get the code on your system! The simplest method is via git.

Patching Buildroot.

(ONLY at the first clean checkout/clone) If this is the very first time you are going to build an image, you need to execute the following command once;

  • ./scripts/br-patches.sh
    This will patch the Buildroot packages.

Building the image.

Building the image(s) can be done by utilizing a proper Makefile;
To see the available commands, just run: 'make help'
As example to build the rpi4 version;

  • make clean
  • make rpi4_64-gui-config
  • make rpi4_64-gui

Now grab a cup of coffee, go for a walk, sleep and repeat as the build process takes up a long time pulling everything from source and cross compiling everything for the device. Especially the qtwebengine package is taking a LONG time.
(At the moment there is an outstanding issue which prevents the build to run completely to the end. The plasma-workspace package will error out, not finding the libGLESv4 properly linked within QT5GUI. When the build stopped bacause of this error, edit the following file;

buildroot/output/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake

at the bottom of the file replace this line;

_qt5gui_find_extra_libs(OPENGL "GLESv2" "" "")

And replace it bit this line;

_qt5gui_find_extra_libs(OPENGL "${CMAKE_SYSROOT}/usr/lib/libGLESv2.so" "" "${CMAKE_SYSROOT}/usr/include/libdrm")

Then you can continue the build process by re-running the "make rpi4_64-gui" command. (DO NOT, run "make clean" and/or "make rpi4_64-gui-config" again, or you will start from scratch again !!!)

When everything goes fine the xz compressed image will be available within the release directory.

Booting image from sd card for the first time (setting up Wifi and backend).

1.Ensure all required peripherals (mic, speakers, HDMI, usb mouse etc) are plugged in before powering on your RPI4 for the first time.
2. Skip this step if RPI4 is using an ethernet cable. Once powered on, the screen will present the Wifi setup screen ( a Wifi HotSpot is created). Connect to the Wifi HotSpot (ssid OVOS) from another device and follow the on-screen instructions to setup Wifi.
3.Once Wifi is setup a choice of Mycroft backend and Local backend is presented. Choose the Mycroft backend for now and follow the on-screen instructions, Local backend is not ready to use yet. After the pairing process has completed and skills downloaded it's time to test/ use it.

Accessing the CLI.

  • SSH to ip address of RPI4
  • default credentials 'mycroft/mycroft'

Documentation.

More information and instructions can be found within the "documentation" folder.

Credits

Mycroft AI (@MycroftAI)
Buildroot (@buildroot) HelloChatterbox (@hellochatterbox)

Inspired by;

HassOS (@home-assistant)