Installing Linuxcnc and Debian Bookworm on problematic hardware (eg. Realtek NIC

More
3 years 10 months ago #259928 by spumco
okdokey...

PC is an Odroid H2+ with the rtl8125 nic.
First hiccup was during installation of Bookworm - additional firmware required despite using the non-free network install iso.

Found the firmware.zip buried somewhere on the Debian site and added it to a USB during install and got past that hurdle.

Your 6.1 rt kernel installed ok.
Code:
mill@mill:~$ uname -a Linux mill 6.1.0-rt5-linuxcnc-rt #4 SMP PREEMPT_RT Wed Dec 14 00:49:27 AEST 2022 x86_64 GNU/Linux

Next issue: it appears I'm unable to install the r8125-dkms driver.
Code:
mill@mill:~$ sudo ethtool -i enp3s0 [sudo] password for mill: driver: r8169 version: 6.1.0-rt5-linuxcnc-rt firmware-version: rtl8125b-2_0.0.2 07/13/20 expansion-rom-version: bus-info: 0000:03:00.0 supports-statistics: yes supports-test: no supports-eeprom-access: no supports-register-dump: yes supports-priv-flags: no

error during attempted driver installation

Warning: Spoiler!


LCNC is installed and axis is working.  Haven't bothered to move on the mesaflash yet.

Any ideas?

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

More
3 years 10 months ago #259931 by rodw
On the Odroid forum, there is a note that the realtek driver vs the Debian driver is up to 25-30% faster.
I have installed the Realtek Driver on an H2+ but it was back on Buster before it was released in Kernel 5.9. I just had to install from a DVD iso and insert a usb stick containng the realtek source and it worked.

You might need to look at the kernel versions supported by the realtek driver and fall back to a supported kernel version.

You could also try installing the r8125-dkms before installing the kernel. It will rebuild the driver when the kernel is installed via dkms...
Matter of fact one of my pcs righted itself this way....

Hope that helps.

PS I have an Odroid H2+ happilly running Bullseye and Ethercat. :) I'm not going to touch it!

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

More
3 years 10 months ago #259932 by rodw
Oops, the Realtek source says its good to kernel 5.19
www.realtek.com/en/component/zoo/categor...pci-express-software

Earlier versions of bullseye ran 5.15, 5.17 and 5.19.
 
The following user(s) said Thank You: spumco

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

More
3 years 10 months ago #259934 by spumco
So...  survey says to grease Bookworm, load Bullseye, and get a 5.19 RT kernel?

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

More
3 years 10 months ago #259935 by rodw
I'd look in synaptic. its only 1 version behind where bookworm is (now 6.0) so its probably there. 
Install bookworm non-free (you may not need to do), roll the kernel back in synaptic, install matching headers, sudo apt install linux-headers-($uname -r)
then don't worry about preempt-rt which linuxcnc will install.

Worth a try. I do know one guy who solved issues on an H2 with the realtek driver.
The following user(s) said Thank You: spumco

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

More
3 years 10 months ago #259939 by spumco
I punted before you responded.

Bullseye is up, and Joco's script has RT 5.10, LCNC, and Probe Basic up and running without any obvious issues so far.

Running the latency script now - so far, so good.

As you said - don't touch it!

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

Time to create page: 0.195 seconds
Powered by Kunena Forum