RPI4 - Debian / LinuxCNC / EtherCAT / XFCE

More
4 years 5 months ago - 4 years 5 months ago #243097 by ftree
I can set the install script to differentiate between distro versions too, if needed.

Code:
if [[ "$DISTRO" == "debian" && "$DISTRO_VERSION" == "bookworm" ]]; then .... fi if [[ "$DISTRO" == "debian" && "$DISTRO_VERSION" == "testing" ]]; then .... fi
Last edit: 4 years 5 months ago by ftree.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #243098 by rodw
This is pretty awesome. Can't wait to try on a VM of BUllseye later today.
Note that the release version in debian are also referred to as 
unstable, testing, stable and oldstable
When a new version is released these roll down.

sid always ==  unstable
currently:
testing == bookworm
stable == bullseye
oldstable == buster

So at the moment there is no difference between bookworm and testing

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #243100 by ftree
Ah! Very nearly ready for you to try. The choot build system doesnot set up eth0 correctly so I'm sorting that out. Also seeing if i can add a first boot script to auto set the ethercat conf file with MAC etc. Save a job right?

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #243101 by rodw
Just check the comments in ethercat.conf. I think you can use eth0 as well as  the mac address which may be easier.

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago #243103 by rodw
Might have been wrong. I think
/sys/class/net/eth0/address

contains the mac address. Works on my chromebook which runs bullseye

 

Please Log in or Create an account to join the conversation.

More
4 years 5 months ago - 4 years 5 months ago #243104 by ftree
posix / bash has read function

read MAC </sys/class/net/eth0/address
echo $MAC

you beat me to it!

Now how to make a first boot script... :-)

read MAC
write conf
restart services
Last edit: 4 years 5 months ago by ftree.

Please Log in or Create an account to join the conversation.

Time to create page: 0.330 seconds
Powered by Kunena Forum