External Ethernet Adapter

I am stumped as to what the actual problem is, but I am convinced it is in the supporting setup software. If you monitor “dmesg --follow” on the desktop PC which works with this, what do you see? I’m interested in finding the driver the PC uses, along with any “lsmod” output which might identify the driver. I’m also interested if on the PC there are any RX or TX bytes when the device is connected before bootup starts. Maybe the PC can identify what must be available on the Jetson.

@linuxdev
the Desktop PC is a Dell Latitude-7300 with Ubuntu 20.04

Here are the monitored results:

dmesg

[  149.879583] usb 2-2: new SuperSpeed USB device number 3 using xhci_hcd
[  149.900383] usb 2-2: New USB device found, idVendor=0bda, idProduct=8156, bcdDevice=31.00
[  149.900396] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  149.900402] usb 2-2: Product: USB 10/100/1G/2.5G LAN
[  149.900406] usb 2-2: Manufacturer: Realtek
[  149.900409] usb 2-2: SerialNumber: 001000001
[  149.924144] cdc_ncm 2-2:2.0: MAC-Address: 00:0f:c9:1b:f2:98
[  149.924165] cdc_ncm 2-2:2.0: setting rx_max = 16384
[  149.924232] cdc_ncm 2-2:2.0: setting tx_max = 16384
[  149.925113] cdc_ncm 2-2:2.0 eth0: register 'cdc_ncm' at usb-0000:00:14.0-2, CDC NCM, 00:0f:c9:1b:f2:98
[  149.950215] cdc_ncm 2-2:2.0 enx000fc91bf298: renamed from eth0
[  153.200413] IPv6: ADDRCONF(NETDEV_CHANGE): enx000fc91bf298: link becomes ready

lsusb

g-towboat@Dell-Latitude-7300:~$ lsusb 
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0bda:8156 Realtek Semiconductor Corp. USB 10/100/1G/2.5G LAN
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0a5c:5843 Broadcom Corp. 58200
Bus 001 Device 002: ID 0bda:565a Realtek Semiconductor Corp. Integrated_Webcam_HD
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsmod

Module                  Size  Used by
cdc_mbim               20480  0
cdc_wdm                24576  1 cdc_mbim
cdc_ncm                45056  1 cdc_mbim
cdc_ether              20480  1 cdc_ncm
usbnet                 49152  3 cdc_mbim,cdc_ncm,cdc_ether
mii                    20480  1 usbnet
uas                    28672  0
usb_storage            77824  2 uas
ccm                    20480  6
ip6table_filter        16384  0
xt_comment             16384  0
ip6_tables             32768  1 ip6table_filter
vboxnetadp             28672  0
vboxnetflt             28672  0
vboxdrv               524288  2 vboxnetadp,vboxnetflt
snd_hda_codec_hdmi     61440  1
snd_ctl_led            24576  0
snd_hda_codec_realtek   147456  1
snd_hda_codec_generic    81920  1 snd_hda_codec_realtek
dell_rbtn              20480  0
snd_sof_pci_intel_cnl    16384  0
snd_sof_intel_hda_common    98304  1 snd_sof_pci_intel_cnl
soundwire_intel        40960  1 snd_sof_intel_hda_common
mei_hdcp               24576  0
soundwire_generic_allocation    16384  1 soundwire_intel
intel_tcc_cooling      16384  0
soundwire_cadence      32768  1 soundwire_intel
snd_sof_intel_hda      20480  1 snd_sof_intel_hda_common
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
snd_sof_pci            20480  2 snd_sof_intel_hda_common,snd_sof_pci_intel_cnl
snd_sof_xtensa_dsp     16384  1 snd_sof_intel_hda_common
snd_sof               131072  2 snd_sof_pci,snd_sof_intel_hda_common
coretemp               20480  0
snd_soc_hdac_hda       24576  1 snd_sof_intel_hda_common
intel_rapl_msr         20480  0
snd_hda_ext_core       32768  3 snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd_soc_acpi_intel_match    49152  2 snd_sof_intel_hda_common,snd_sof_pci_intel_cnl
snd_soc_acpi           16384  2 snd_soc_acpi_intel_match,snd_sof_intel_hda_common
kvm_intel             303104  0
soundwire_bus          81920  3 soundwire_intel,soundwire_generic_allocation,soundwire_cadence
nls_iso8859_1          16384  2
snd_soc_core          290816  4 soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hda
joydev                 28672  0
snd_compress           28672  1 snd_soc_core
kvm                   864256  1 kvm_intel
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
dell_laptop            24576  0
ledtrig_audio          16384  4 snd_ctl_led,snd_hda_codec_generic,snd_sof,dell_laptop
dell_smm_hwmon         20480  0
snd_hda_intel          53248  3
crct10dif_pclmul       16384  1
snd_intel_dspcfg       28672  2 snd_hda_intel,snd_sof_intel_hda_common
snd_intel_sdw_acpi     20480  2 snd_sof_intel_hda_common,snd_intel_dspcfg
ghash_clmulni_intel    16384  0
aesni_intel           376832  4
iwlmvm                421888  0
crypto_simd            16384  1 aesni_intel
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
snd_hda_codec         147456  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda
rapl                   20480  0
snd_hda_core           94208  9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
mac80211             1028096  1 iwlmvm
i915                 2400256  22
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               114688  10 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,soundwire_intel,snd_sof,snd_sof_intel_hda_common,snd_compress,snd_soc_core,snd_hda_core,snd_pcm_dmaengine
dell_wmi               20480  0
intel_cstate           20480  0
libarc4                16384  1 mac80211
uvcvideo              106496  0
snd_seq_midi           20480  0
dell_smbios            28672  2 dell_wmi,dell_laptop
snd_seq_midi_event     16384  1 snd_seq_midi
dcdbas                 20480  1 dell_smbios
videobuf2_vmalloc      20480  1 uvcvideo
snd_rawmidi            36864  1 snd_seq_midi
videobuf2_memops       20480  1 videobuf2_vmalloc
videobuf2_v4l2         32768  1 uvcvideo
videobuf2_common       61440  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
iwlwifi               372736  1 iwlmvm
videodev              249856  3 videobuf2_v4l2,uvcvideo,videobuf2_common
input_leds             16384  0
snd_seq                73728  2 snd_seq_midi,snd_seq_midi_event
serio_raw              20480  0
efi_pstore             16384  0
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
mc                     57344  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
wmi_bmof               16384  0
dell_wmi_descriptor    20480  2 dell_wmi,dell_smbios
intel_wmi_thunderbolt    20480  0
hid_multitouch         28672  0
cfg80211              888832  3 iwlmvm,iwlwifi,mac80211
drm_kms_helper        253952  1 i915
dell_wmi_sysman        40960  0
mei_me                 40960  1
snd_timer              40960  2 snd_seq,snd_pcm
cec                    53248  2 drm_kms_helper,i915
mei                   131072  3 mei_hdcp,mei_me
processor_thermal_device    20480  0
snd                    94208  20 snd_ctl_led,snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi
rc_core                61440  1 cec
processor_thermal_rfim    16384  1 processor_thermal_device
ucsi_acpi              16384  0
i2c_algo_bit           16384  1 i915
soundcore              16384  2 snd_ctl_led,snd
processor_thermal_mbox    16384  1 processor_thermal_device
typec_ucsi             40960  1 ucsi_acpi
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
typec                  57344  1 typec_ucsi
processor_thermal_rapl    20480  1 processor_thermal_device
sysfillrect            16384  1 drm_kms_helper
intel_rapl_common      24576  2 intel_rapl_msr,processor_thermal_rapl
sysimgblt              16384  1 drm_kms_helper
intel_soc_dts_iosf     20480  1 processor_thermal_device
intel_pch_thermal      20480  0
mac_hid                16384  0
int3403_thermal        20480  0
int340x_thermal_zone    20480  2 int3403_thermal,processor_thermal_device
int3400_thermal        20480  0
acpi_thermal_rel       16384  1 int3400_thermal
acpi_pad              184320  0
intel_hid              24576  0
sparse_keymap          16384  2 intel_hid,dell_wmi
sch_fq_codel           20480  2
ipmi_devintf           20480  0
ipmi_msghandler       114688  1 ipmi_devintf
msr                    16384  0
parport_pc             45056  0
ppdev                  24576  0
lp                     20480  0
drm                   557056  7 drm_kms_helper,i915
parport                65536  3 parport_pc,lp,ppdev
ip_tables              32768  0
x_tables               49152  4 ip6table_filter,xt_comment,ip6_tables,ip_tables
autofs4                45056  2
hid_generic            16384  0
rtsx_pci_sdmmc         28672  0
crc32_pclmul           16384  0
psmouse               155648  0
nvme                   49152  2
intel_lpss_pci         24576  0
thunderbolt           266240  0
intel_lpss             16384  1 intel_lpss_pci
i2c_hid_acpi           16384  0
rtsx_pci               94208  1 rtsx_pci_sdmmc
i2c_hid                28672  1 i2c_hid_acpi
xhci_pci               24576  0
i2c_i801               36864  0
nvme_core             126976  3 nvme
i2c_smbus              20480  1 i2c_i801
xhci_pci_renesas       20480  1 xhci_pci
idma64                 20480  0
video                  53248  3 dell_wmi,dell_laptop,i915
wmi                    32768  6 dell_wmi_sysman,intel_wmi_thunderbolt,dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
hid                   139264  3 i2c_hid,hid_multitouch,hid_generic
pinctrl_cannonlake     36864  0

Regards

Comparison says it is entirely an IPv6 issue. Both start to receive IPv6, but only the working case on the different computer ends with the IPv6 setup becoming ready.

For reference though, this is udev renaming the interface (which might be related to finding the driver matching the device):

It is definitely using the cdc ether driver on the working case. What do you see for these on the Jetson:

lsmod | grep -i cdc
find /lib/modules/$(uname -r)/kernel/drivers -iname '*cdc*'

On both Jetson and the PC it works with, what do you see for:

find /usr/lib/udev -iname '*cdc*'
find /etc/udev/rules.d -iname '*cdc*'

On Jetson

lsmod | grep -i cdc

  • nothing
$> find /lib/modules/4.9.253-tegra/kernel/drivers/ -iname '*cdc*'
/lib/modules/4.9.253-tegra/kernel/drivers/usb/class/cdc-acm.ko
/lib/modules/4.9.253-tegra/kernel/drivers/usb/class/cdc-wdm.ko
$> find /usr/lib/udev -iname '*cdc*'
find: ‘/usr/lib/udev’: No such file or directory
$> find /etc/udev/rules.d/ -iname '*cdc*'
 - nothing
$> ll /etc/udev/rules.d/ 
total 44
drwxr-xr-x 2 root root 4096 Aug 13  2021 ./
drwxr-xr-x 4 root root 4096 Jul  7  2021 ../
-rw-r--r-- 1 root root  616 Jul 26  2021 90-alsa-asound-tegra.rules
-rw-r--r-- 1 root root  175 Jul 26  2021 91-xorg-conf-tegra.rules
-rw-r--r-- 1 root root  962 Jul 26  2021 92-hdmi-audio-tegra.rules
-rw-r--r-- 1 root root  208 Jul 26  2021 99-nv-l4t-usb-device-mode.rules
-rw-r--r-- 1 root root 1326 Jul 26  2021 99-nv-l4t-usb-host-config.rules
-rw-r--r-- 1 root root  427 Jul 26  2021 99-nv-ufs-mount.rules
-rw-r--r-- 1 root root  634 Jul 26  2021 99-nv-wifibt.rules
-rw-r--r-- 1 root root 2036 Jul 26  2021 99-tegra-devices.rules
-rw-r--r-- 1 root root  130 Jul 26  2021 99-tegra-mmc-ra.rules

On Dell PC

g-towboat@DellLatitude-7300:~$ lsmod | grep cdc
cdc_mbim               20480  0
cdc_wdm                24576  1 cdc_mbim
cdc_ncm                45056  1 cdc_mbim
cdc_ether              20480  1 cdc_ncm
usbnet                 49152  3 cdc_mbim,cdc_ncm,cdc_ether
g-towboat@DellLatitude-7300:/lib/modules$ find /lib/modules/5.13.0-41-generic/kernel/drivers/ -iname '*cdc*'
/lib/modules/5.13.0-41-generic/kernel/drivers/regulator/wm831x-dcdc.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/net/usb/cdc-phonet.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/net/usb/cdc_mbim.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/net/usb/cdc_ether.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/net/usb/cdc_subset.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/net/usb/cdc_eem.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/net/usb/cdc_ncm.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/net/usb/huawei_cdc_ncm.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/usb/gadget/legacy/g_cdc.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/usb/class/cdc-wdm.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/usb/class/cdc-acm.ko
/lib/modules/5.13.0-41-generic/kernel/drivers/staging/iio/cdc
/lib/modules/5.13.0-41-generic/kernel/drivers/iio/cdc
/lib/modules/5.13.0-41-generic/kernel/drivers/clk/clk-cdce706.ko
g-towboat@DellLatitude-7300:/lib/modules$ find /usr/lib/udev/ -iname '*cdc*'
 - nothing
g-towboat@DellLatitude-7300:/lib/modules$ find /etc/udev/rules.d/ -iname '*cdc*'
 - nothing