LinuxCNC on Linux Mint Debian Edition 6

More
10 Apr 2024 16:35 #297942 by bkt
Done .... so now I have no ethernet connection at all ..... really interesting after:sudo apt-get install r8168-dkms

ethtool show me have no device running ....

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

More
10 Apr 2024 21:03 #297965 by rodw
Ok, boot into another kernel on your system. then
sudo apt purge r8168-dkms
It should come back on a reboot
I suspect mint is the issue but I have had the same thing happen with Debian and re-imaged a few times until I tried this trick
The following user(s) said Thank You: bkt

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

More
13 Apr 2024 07:55 #298158 by bkt
really .... whitout nothing doing after second reboot I have my ethercat running .... actually i have not an xml config running only an ek1100 + some el1008 and el2008 connecting to the system for latency test pourpuse ....
  1. after dmsk driver install latency test give me better result with min/max more or less 27usec ans svdev of 3.2usec .... previously with same q.ty of glxgear running I have min/max around 80usec .....
  2. as image attach show i have continuosly an snp3s0 connection activaction failed (that is ethercat line) with a lot of error on dmesg list ..... on dmesg as you can see I have unlink enp3s0 than link again .... why these? someone have some ideas why these? ... first time for me.
attach as spoiler dmesg text ...

Warning: Spoiler!
Attachments:

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

More
13 Apr 2024 08:01 - 13 Apr 2024 08:02 #298159 by bkt
for sure not set Ip adress manually and all enp3s0 is atumatic ... only ipv6 is disable .. like my other pc ethercat .... but not think is these the problem ... about these link up and down ..


r8168: enp3s0: link down
EtherCAT 0: Link state of ecm0 changed to DOWN.
r8168: enp3s0: link up
 
Last edit: 13 Apr 2024 08:02 by bkt.

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

More
13 Apr 2024 09:24 #298160 by rodw
This could be an error in /etc/ethercat.conf
Please share your file
The following user(s) said Thank You: bkt

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

More
13 Apr 2024 10:08 - 13 Apr 2024 10:09 #298161 by bkt
Need to enable dmks r8168 driver here?

DEVICE_MODULES="generic" <

never done what need to write?


#------------------------------------------------------------------------------
#
#  EtherCAT master configuration file for use with ethercatctl.
#
#  $Id$
#
#  vim: spelllang=en spell tw=78
#
#------------------------------------------------------------------------------

#
# Main Ethernet devices.
#
# The MASTER<X>_DEVICE variable specifies the Ethernet device for a master
# with index 'X'.
#
# Specify the MAC address (hexadecimal with colons) of the Ethernet device to
# use. Example: "00:00:08:44:ab:66"
#
# Alternatively, a network interface name can be specified. The interface
# name will be resolved to a MAC address using the 'ip' command.
# Example: "eth0"
#
# The broadcast address "ff:ff:ff:ff:ff:ff" has a special meaning: It tells
# the master to accept the first device offered by any Ethernet driver.
#
# The MASTER<X>_DEVICE variables also determine, how many masters will be
# created: A non-empty variable MASTER0_DEVICE will create one master, adding a
# non-empty variable MASTER1_DEVICE will create a second master, and so on.
#
# Examples:
# MASTER0_DEVICE="00:00:08:44:ab:66"
# MASTER0_DEVICE="eth0"
#
MASTER0_DEVICE="68:1D:EF:38:F0:48"
#MASTER0_DEVICE="enp3s0"
#MASTER1_DEVICE=""

#
# Backup Ethernet devices
#
# The MASTER<X>_BACKUP variables specify the devices used for redundancy. They
# behaves nearly the same as the MASTER<X>_DEVICE variable, except that it
# does not interpret the ff:ff:ff:ff:ff:ff address.
#
#MASTER0_BACKUP=""

#
# Ethernet driver modules to use for EtherCAT operation.
#
# Specify a non-empty list of Ethernet drivers, that shall be used for
# EtherCAT operation.
#
# Except for the generic Ethernet driver module, the init script will try to
# unload the usual Ethernet driver modules in the list and replace them with
# the EtherCAT-capable ones. If a certain (EtherCAT-capable) driver is not
# found, a warning will appear.
#
# Possible values: 8139too, e100, e1000, e1000e, r8169, generic, ccat, igb, igc.
# Separate multiple drivers with spaces.
#
# Note: The e100, e1000, e1000e, r8169, ccat, igb and igc drivers are not built by
# default. Enable them with the --enable-<driver> configure switches.
#
# Attention: When using the generic driver, the corresponding Ethernet device
# has to be activated (with OS methods, for example 'ip link set ethX up'),
# before the master is started, otherwise all frames will time out.
#
DEVICE_MODULES="generic"

#
# Flags for loading kernel modules.
#
# This can usually be left empty. Adjust this variable, if you have problems
# with module loading.
#
#MODPROBE_FLAGS="-b"

#------------------------------------------------------------------------------
Last edit: 13 Apr 2024 10:09 by bkt.

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

More
13 Apr 2024 14:58 #298170 by rodw
What NIC are you using for ethercat? Is the MAC address set correctly in this file?
Check the MAC Address with ip a
Your file mentions enp3s0 but thats not what you are using based on dmesg
The following user(s) said Thank You: bkt

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

More
15 Apr 2024 08:18 #298273 by bkt

What NIC are you using for ethercat? Is the MAC address set correctly in this file?
Check the MAC Address with ip a
Your file mentions enp3s0 but thats not what you are using based on dmesg
 

based on my dmesg I can see enp3s0 go down than go up .... and when go down master stop to work until unp3s0 link go up again .... not see I use enp1s0 at all really .... plus I add a new image about desktop warning about enp3s0 (and 2 image for show you mac adress is the same I write on config)

mac of internet port:
 

ethercat mac

 

problem with enp3s0 continuos disconnection:

 

Not find solution for now ....
 
Attachments:

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

More
15 Apr 2024 13:07 #298282 by tommylight
Why is your address starting with 190???
The only local address ranges are 192.168.n.n and 10.n.n.n (there are two more that i do not recal as i rarely used them), these are non routable address ranges for use in local networks as they do not get routed to the internet, others can not be used unless you own a registered public IP address. And even then only the actual router can and should have that public address, not the local PC's.

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

More
15 Apr 2024 18:20 #298303 by bkt

you own a registered public IP address.

 you caught me, I'm doing other experiment other these where try to use these little pc with realtek port, so i need it .... having said this, it has nothing to do with the fact that enp3s0 is not working properly.... in fact that is enp1s0.

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

Time to create page: 0.313 seconds
Powered by Kunena Forum