RPI4 - Debian / LinuxCNC / EtherCAT / XFCE
16 May 2022 01:31 - 21 May 2022 23:59 #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.
Last edit: 21 May 2022 23:59 by ftree.
The following user(s) said Thank You: elek72
Please Log in or Create an account to join the conversation.
16 May 2022 04:37 #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 or Create an account to join the conversation.
16 May 2022 09:31 - 16 May 2022 09:47 #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
Last edit: 16 May 2022 09:47 by ftree.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
16 May 2022 09:54 - 16 May 2022 09:57 #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] ... .... ?
Last edit: 16 May 2022 09:57 by ftree.
Please Log in or Create an account to join the conversation.
16 May 2022 10:11 #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 or Create an account to join the conversation.
16 May 2022 11:59 #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 or Create an account to join the conversation.
16 May 2022 12:04 - 16 May 2022 12:08 #243078
by ftree
Replied by ftree on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Attachments:
Last edit: 16 May 2022 12:08 by ftree.
Please Log in or Create an account to join the conversation.
16 May 2022 14:12 #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
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 or Create an account to join the conversation.
16 May 2022 14:23 - 16 May 2022 14:24 #243083
by ftree
Replied by ftree on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Attachments:
Last edit: 16 May 2022 14:24 by ftree.
Please Log in or Create an account to join the conversation.
16 May 2022 15:09 #243084
by ftree
Replied by ftree on topic RPI4 - Debian Bookworm / LinuxCNC / EtherCAT / XFCE
Tested - boots to login ok!
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds