RPI4 - Debian / LinuxCNC / EtherCAT / XFCE

More
4 years 5 months ago #243093 by rodw
Sweet! I woke up early (4;30am here) and went back to the Debian repo notes
build.opensuse.org/project/show/home:bon...hes:science:EtherLab
and had just worked out to change to Debian_11 for bullseye
Bookworm would need to use Debian_Testing

When you say boots to login, is that a terminal login or a GUI login?

If you end up with a terminal login, tasksel will install a GUI of your choice on the pi.

Please Log in to join the conversation.

More
4 years 5 months ago #243095 by ftree
lightdm login, now with onscreen login keyboard. Just commited that. I was looking at customising the login with a LinuxCNC wallpaper. :-)

Etherlab Debian_11 seems to work ok as a bookworm kernel module - so far.

lines 16/17
github.com/djsftree/rpi-img-builder/blob/master/userdata.txt

16 Distro : debian
17 Release: bullseye, bookworm, testing, unstable and sid

Many options for resulting image!

Please Log in to join the conversation.

More
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

Please Log in 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 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 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 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

 

Attachment not found

Please Log in to join the conversation.

More
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

Please Log in to join the conversation.

More
4 years 5 months ago #243105 by ftree
I've gone as far as I can today.  Have a go!
Code:
git clone https://github.com/djsftree/rpi-img-builder.git cd rpi-img-builder sudo ./install make commit board=bcm2711 when asked paste in   ac27843a367ea253659847aeb491137bf3e9216a make rootfs board=bcm2711 make image board=bcm2711

resulting rpi-*.img image found in root folder

Please Log in to join the conversation.

More
4 years 5 months ago #243108 by ftree
I might need to add dbus-x11 and a few other packages.  Not sure yet.

I really like lxqt desktop over xfce4.  FalconView has caught my eye.....

github.com/DjangoReinhard/FalconView
 

Please Log in to join the conversation.

Time to create page: 0.280 seconds
Powered by Kunena Forum