From 54d7c540a866f81dee22158ebc29b00752400fc2 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Wed, 12 Apr 2023 13:40:48 +0100 Subject: [PATCH 1/4] Allow software updates --- CHANGELOG.md | 4 ++++ README.md | 21 +++++++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fa78c8..2e47799 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # VocalFusion Raspberry Pi Setup Change Log +## 5.8.0 + + * Update instructions to allow software update of Raspbian packages + ## 5.7.0 * Update Raspbian image to Bullseye (2023-02-21-raspios-bullseye-armhf) diff --git a/README.md b/README.md index 02e0602..16efe2f 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,6 @@ For XVF3510-UA and XVF361x-UA devices these actions will be done as well: 1. First, obtain the required version of the Raspberry Pi operating system, which is available [here](https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2023-02-22/2023-02-21-raspios-bullseye-armhf.img.xz) - We cannot use the latest as updates to Linux kernel v5 have broken the I2S sub-system. - Then, install the Raspberry Pi Imager on a host computer. Raspberry Pi Imager is available [here](https://www.raspberrypi.org/software/) Run the Raspberry Pi Imager, and select the 'CHOOSE OS' button. Scroll to the bottom of the displayed list, and select "Use custom". @@ -63,17 +61,24 @@ For XVF3510-UA and XVF361x-UA devices these actions will be done as well: 2. Connect up the keyboard, mouse, speakers and display to the Raspberry Pi and power up the system. Refer to the **Getting Started Guide** for you platform. - **DO NOT** follow the prompt to "Update Software" on the system. Set up the locale, username, password and a network connection, but **DO NOT** update the software on the Raspberry Pi. This will update the kernel, and then the audio sub-system will not work. - -**_NOTE:_** Headless installation forces an upgrade of the software, so it cannot be used for this setup. + Set up the locale, username, password, network connection and update the software on the Raspberry Pi. **_NOTE:_** Host applications and scripts used by the XMOS products support only 32-bit Raspbian systems. -3. On the Raspberry Pi, clone the Github repository below: +3. Force the Raspberry Pi to use 32-bit kernels, by typing: + + ``` + sudo sh -c "echo 'arm_64bit=0' >> /boot/config.txt" + sudo reboot + ``` + + and wait for the Raspberry Pi to reboot. + +4. On the Raspberry Pi, clone the Github repository below: ```git clone https://github.com/xmos/vocalfusion-rpi-setup``` -4. For VocalFusion devices, run the installation script as follows: +5. For VocalFusion devices, run the installation script as follows: ```./setup.sh xvf3100``` @@ -123,7 +128,7 @@ For XVF3510-UA and XVF361x-UA devices these actions will be done as well: Wait for the script to complete the installation. This can take several minutes. -5. Reboot the Raspberry Pi. +6. Reboot the Raspberry Pi. ## Important note on clocks From f92e71ba2c5ab07387c2c3d3684de21e11bcce40 Mon Sep 17 00:00:00 2001 From: lucianomartin Date: Tue, 18 Apr 2023 10:02:07 +0100 Subject: [PATCH 2/4] Add extra step --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 16efe2f..3ca2f2f 100644 --- a/README.md +++ b/README.md @@ -74,11 +74,18 @@ For XVF3510-UA and XVF361x-UA devices these actions will be done as well: and wait for the Raspberry Pi to reboot. -4. On the Raspberry Pi, clone the Github repository below: +4. Update the Raspberry Pi package list and upgrade the packages to the latest version: + + ``` + sudo apt-get update + sudo apt-get upgrade + ``` + +5. On the Raspberry Pi, clone the Github repository below: ```git clone https://github.com/xmos/vocalfusion-rpi-setup``` -5. For VocalFusion devices, run the installation script as follows: +6. For VocalFusion devices, run the installation script as follows: ```./setup.sh xvf3100``` @@ -128,7 +135,7 @@ For XVF3510-UA and XVF361x-UA devices these actions will be done as well: Wait for the script to complete the installation. This can take several minutes. -6. Reboot the Raspberry Pi. +7. Reboot the Raspberry Pi. ## Important note on clocks From 1475a174dbef43c9f5f355fb221f90a89eec67ce Mon Sep 17 00:00:00 2001 From: Huw Percival <107470836+xhuw@users.noreply.github.com> Date: Mon, 22 May 2023 09:37:39 +0100 Subject: [PATCH 3/4] Increase delay before copying asoundrc At least 1 of our pis is showing that 15 seconds is too short. I tried 20 seconds and that fixed it. A better solution would be to use pulseaudio instead of ALSA to play and record. I think it is worth investigation as this is the behaviour that the OS is expecting of us and I imagine this 20 second increase will not fix the problem forever --- CHANGELOG.md | 1 + setup.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e47799..68ffaba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 5.8.0 * Update instructions to allow software update of Raspbian packages + * Increase crontab delay for copying .asoundrc from 15 to 20 seconds ## 5.7.0 diff --git a/setup.sh b/setup.sh index 674ced1..df59413 100755 --- a/setup.sh +++ b/setup.sh @@ -297,10 +297,10 @@ popd > /dev/null fi # Setup the crontab to copy the .asoundrc file at reboot -# Delay the action by 10 seconds to allow the host to boot up +# Delay the action to allow the host to boot up # This is needed to address the known issue in Raspian Buster: # https://forums.raspberrypi.com/viewtopic.php?t=295008 -echo "@reboot sleep 15 && cp $ASOUNDRC_TEMPLATE ~/.asoundrc" >> $crontab_file +echo "@reboot sleep 20 && cp $ASOUNDRC_TEMPLATE ~/.asoundrc" >> $crontab_file # Update crontab crontab $crontab_file From 5952033ca122d67d84cf61442838bcfb54feffba Mon Sep 17 00:00:00 2001 From: Luciano Martin Date: Wed, 24 May 2023 14:47:35 +0100 Subject: [PATCH 4/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3ca2f2f..f0184ff 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ For XVF3510-UA and XVF361x-UA devices these actions will be done as well: ``` sudo apt-get update sudo apt-get upgrade + sudo reboot ``` 5. On the Raspberry Pi, clone the Github repository below: