diff options
author | Oleg Gavavka <work@datalink.net.ua> | 2024-04-27 18:01:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 11:01:57 -0400 |
commit | b1eec53ff46d78fad6b41647708b452035b9fe81 (patch) | |
tree | da3b012334bc7520eacc7c8db4a6aca2d5b43d5e /scripts/install-beaglebone.sh | |
parent | 0b329c5d28230e8ad19434840bde26f5fd332998 (diff) | |
download | kutter-b1eec53ff46d78fad6b41647708b452035b9fe81.tar.gz kutter-b1eec53ff46d78fad6b41647708b452035b9fe81.tar.xz kutter-b1eec53ff46d78fad6b41647708b452035b9fe81.zip |
pru: BeagleBone Firmware upgrade to Debian 11.7 Bullseye (#6577)
* Porting BeagleBone to Kernel 5.10
* Fixing issue with installation for BeagleBone.
This fix resolve 2 issue:
1. Conflict with AVR packages.
2. "klipper_pru" script is executed before PRU cores are ready
* Adding additional steps to BeagleBone install guide.
* Updating BeagleBone documentation, adding different use cases, adding buses configurations SPI, I2C, CAN, UART
Signed-off-by: Oleg Gavavka <work@datalink.net.ua>
Diffstat (limited to 'scripts/install-beaglebone.sh')
-rwxr-xr-x | scripts/install-beaglebone.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/install-beaglebone.sh b/scripts/install-beaglebone.sh index a68c8d06..58424c05 100755 --- a/scripts/install-beaglebone.sh +++ b/scripts/install-beaglebone.sh @@ -1,5 +1,5 @@ #!/bin/bash -# This script installs Klipper on a Beaglebone running Debian Jessie +# This script installs Klipper on a Beaglebone running Debian Bullseye # for use with its PRU micro-controller. # Step 1: Do main install @@ -13,6 +13,12 @@ install_main() # Step 2: Install additional system packages install_packages() { + # Remove conflicting AVR packages + PKGLIST_REMOVE="avrdude gcc-avr binutils-avr avr-libc" + + report_status "Removing ARM packages because of conflicts with PRU packages" + sudo apt-get remove --yes ${PKGLIST_REMOVE} + # Install desired packages PKGLIST="gcc-pru" @@ -25,7 +31,7 @@ install_script() { report_status "Installing pru start script..." sudo cp "${SRCDIR}/scripts/klipper-pru-start.sh" /etc/init.d/klipper_pru - sudo update-rc.d klipper_pru defaults + sudo update-rc.d klipper_pru defaults-disabled } # Step 4: Install pru udev rule @@ -33,6 +39,7 @@ install_udev() { report_status "Installing pru udev rule..." sudo /bin/sh -c "cat > /etc/udev/rules.d/pru.rules" <<EOF +SUBSYSTEM=="remoteproc", ENV{REMOTEPROC_NAME}!="", TAG+="systemd", ENV{SYSTEMD_WANTS}="klipper_pru.service" KERNEL=="rpmsg_pru30", GROUP="tty", MODE="0660" EOF } |