- Posts: 114
- Thank you received: 0
RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
4 years 5 months ago #243060
by ftree
RPI4 - Debian / LinuxCNC / EtherCAT / XFCE was created by ftree
Hi!
Using a guide on here from rodw I've made a fork of rpi-image-builder to make an "RPI4 bookworm" bootable image file
Your HOST machine should be Debian Bullseye until further notice
22/05/2020 - bumped to new components
debian bookworm
kernel 5.15.40-rt43 ( processor.max_cstate=1 , isolcpus=2,3 )
lxqt 1.1.0
ethercat 1.5.2-32
linuxcnc-uspace linuxcnc-uspace-dev mesaflash
linuxcnc-ethercat
See github.com/djsftree/rpi-img-builder
Sucessfully builds on bullseye host. See instructions at top of README.
Writing to a card now.
Using a guide on here from rodw I've made a fork of rpi-image-builder to make an "RPI4 bookworm" bootable image file
Your HOST machine should be Debian Bullseye until further notice
22/05/2020 - bumped to new components
debian bookworm
kernel 5.15.40-rt43 ( processor.max_cstate=1 , isolcpus=2,3 )
lxqt 1.1.0
ethercat 1.5.2-32
linuxcnc-uspace linuxcnc-uspace-dev mesaflash
linuxcnc-ethercat
See github.com/djsftree/rpi-img-builder
Sucessfully builds on bullseye host. See instructions at top of README.
Writing to a card now.
Please Log in to join the conversation.
4 years 5 months ago #243065
by rodw
Replied by rodw on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Very cool.
Does this include the PREEMPT_RT kernel patch?
Do you build this on the PI or on AMD64 with a cross compiler?
Does this include the PREEMPT_RT kernel patch?
Do you build this on the PI or on AMD64 with a cross compiler?
Please Log in to join the conversation.
4 years 5 months ago #243071
by ftree
Replied by ftree on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Builds on AMD64 hosts with cross compiler. The ./install grabs all cross dependencies.
github.com/djsftree/rpi-img-builder/blob/master/install
github.com/djsftree/rpi-img-builder/blob.../scripts/.ccompile64
Your repo script is here
github.com/djsftree/rpi-img-builder/blob...userscripts/uscripts
Includes PREEMPT_RT kernel patch - yes. In the instructiions we pull the 5.15.36 merge from rasberrypi/linux
github.com/raspberrypi/linux/commit/ac27...47aeb491137bf3e9216a
rpi-img-builder patches 5.15.36 to 5.15.36-rt41with the files in
github.com/djsftree/rpi-img-builder/tree.../patches/userpatches
I'm using kdoren rt64 config for now but will update that soon
github.com/djsftree/rpi-img-builder/blob...onfig/rt64_defconfig
github.com/djsftree/rpi-img-builder/blob/master/install
github.com/djsftree/rpi-img-builder/blob.../scripts/.ccompile64
Your repo script is here
github.com/djsftree/rpi-img-builder/blob...userscripts/uscripts
Includes PREEMPT_RT kernel patch - yes. In the instructiions we pull the 5.15.36 merge from rasberrypi/linux
github.com/raspberrypi/linux/commit/ac27...47aeb491137bf3e9216a
rpi-img-builder patches 5.15.36 to 5.15.36-rt41with the files in
github.com/djsftree/rpi-img-builder/tree.../patches/userpatches
I'm using kdoren rt64 config for now but will update that soon
github.com/djsftree/rpi-img-builder/blob...onfig/rt64_defconfig
Please Log in to join the conversation.
4 years 5 months ago #243072
by ftree
Replied by ftree on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
I think the stage here needs a little work
github.com/djsftree/rpi-img-builder/blob...scripts/uscripts#L44
We're not pickng up the key stored.
Should this be
deb [signed-by=/usr/share/keyrings/ethercat.gpg] ... .... ?
github.com/djsftree/rpi-img-builder/blob...scripts/uscripts#L44
We're not pickng up the key stored.
Should this be
deb [signed-by=/usr/share/keyrings/ethercat.gpg] ... .... ?
Please Log in to join the conversation.
4 years 5 months ago #243074
by rodw
Replied by rodw on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Not sure. Are there any questions to answer on the apt-get ethercat lines?
Please Log in to join the conversation.
4 years 5 months ago #243077
by rodw
Replied by rodw on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Ok I tried this on a Debian Bookworm PC with kernel = 5.17
It failed with message saying "The OS you are running is not supported"
edited the script and changed bullseye to bookworm in the script and I got past that but every other command failed.
So it seems this is for Bullseye. Maybe you should update the title of this thread..
I will try on another machine tomorrow.... I think I have a bullseye PC somewhere.
I am not really sure what is going on here with the scripts so its hard for me to comment on possible issues..
It failed with message saying "The OS you are running is not supported"
edited the script and changed bullseye to bookworm in the script and I got past that but every other command failed.
So it seems this is for Bullseye. Maybe you should update the title of this thread..
I will try on another machine tomorrow.... I think I have a bullseye PC somewhere.
I am not really sure what is going on here with the scripts so its hard for me to comment on possible issues..
Please Log in to join the conversation.
4 years 5 months ago #243078
by ftree
Replied by ftree on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Thanks, updated title and ammended first post.
Still having issues setting up the correct key store for the etherlab repo.
The key appears to be for Release and not InRelease.
Still having issues setting up the correct key store for the etherlab repo.
The key appears to be for Release and not InRelease.
Attachment not found
Please Log in to join the conversation.
4 years 5 months ago #243082
by ftree
Replied by ftree on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Until I can figure out how to import the right keys from EtherLab repo
github.com/djsftree/rpi-img-builder/comm...ed32642c661b2b26291b
github.com/djsftree/rpi-img-builder/comm...ed32642c661b2b26291b
Code:
echo "deb [allow-insecure=yes] https://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/Debian_11/ ./" >> /etc/apt/sources.list
apt update --allow-unauthenticated
apt install -y --allow-unauthenticated ethercat-dkms libethercat libethercat-dev ethercat-master
Please Log in to join the conversation.
4 years 5 months ago #243083
by ftree
Replied by ftree on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
5.15.36-rt41 now installs and rebuilds the ethercat modules. Result!
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.254 seconds
