RNDIS Host to connect Adalm Pluto

Hi,

I have a custom build image with below added. BSP is 5.7.0. We have configured Pluto to static IP to 192.168.7.1. After ifconfig usb0 192.168.7.20 command, I cannot ping or ssh the device.

Pluto works at RNDIS mode, but I also tried NCM and ECM. Couldn’t connect at all.

Where should I look for the make connection ?
Which eth mode do you prefer for the connection ?


At some *.cfg files that appended to config;

CONFIG_USB_NET_RNDIS_HOST=m
CONFIG_USB_NET_RNDIS_WLAN=m
CONFIG_USB_CONFIGFS_ECM=m

At linux-toradex_5.4%.bbappend file;

KERNEL_MODULE_AUTOLOAD += " \
    rndis_host \
    rndis_wlan \
    cdc-acm \
"
root@colibri-imx6-10885648:~# lsmod
Module                  Size  Used by
rndis_wlan             49152  0
rndis_host             16384  1 rndis_wlan
usb_f_rndis            32768  2
u_ether                24576  1 usb_f_rndis
bluetooth             491520  2
mcp251x                20480  0
can_dev                28672  1 mcp251x
ftdi_sio               49152  0
usbserial              45056  1 ftdi_sio
imx_sdma               36864  6
virt_dma               16384  1 imx_sdma
secvio                 16384  0
cfg80211              331776  1 rndis_wlan
cdc_ether              16384  1 rndis_host
usbnet                 45056  3 rndis_host,cdc_ether,rndis_wlan
mii                    16384  1 usbnet
libcomposite           61440  10 usb_f_rndis
configfs               45056  3 usb_f_rndis,libcomposite
galcore               405504  4
cdc_acm                32768  0

dmesg output after plug the Pluto;

[ 2678.483382] usb 1-1.4: new high-speed USB device number 31 using ci_hdrc                                                                                                                                
[ 2678.636131] usb 1-1.4: New USB device found, idVendor=0456, idProduct=b673, bcdDevice= 5.10                                                                                                             
[ 2678.644708] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                                                                                                         
[ 2678.652080] usb 1-1.4: Product: PlutoSDR (ADALM-PLUTO)                                                                                                                                                  
[ 2678.657311] usb 1-1.4: Manufacturer: Analog Devices Inc.                                                                                                                                                
[ 2678.662661] usb 1-1.4: SerialNumber: 10447376de0b0009edff300082d6977fca                                                                                                                                 
[ 2678.710980] rndis_host 1-1.4:1.0 eth1: register 'rndis_host' at usb-ci_hdrc.0-1.4, RNDIS device, 00:e0:22:d9:85:c3                                                                                      
[ 2678.735016] usb-storage 1-1.4:1.2: USB Mass Storage device detected                                                                                                                                     
[ 2678.750373] scsi host0: usb-storage 1-1.4:1.2                                                                                                                                                           
[ 2678.787264] cdc_acm 1-1.4:1.3: ttyACM0: USB ACM device                                                                                                                                                  
[ 2679.834787] scsi 0:0:0:0: Direct-Access     Linux    File-Stor Gadget 0510 PQ: 0 ANSI: 2                                                                                                                
[ 2679.845937] sd 0:0:0:0: [sda] 61441 512-byte logical blocks: (31.5 MB/30.0 MiB)                                                                                                                         
[ 2679.858198] sd 0:0:0:0: [sda] Write Protect is off                                                                                                                                                      
[ 2679.863033] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00                                                                                                                                                   
[ 2679.867367] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA                                                                                                     
[ 2679.909749]  sda: sda1                                                                                                                                                                                  
[ 2679.925378] sd 0:0:0:0: [sda] Attached SCSI removable disk

ifconfig output;

root@colibri-imx6-10885648:~# ifconfig                                                               
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1                                 
        inet 192.168.200.200  netmask 255.255.255.0  broadcast 192.168.200.255                       
        inet6 fe80::214:2dff:fea6:1a10  prefixlen 64  scopeid 0x20<link>                             
        ether 00:14:2d:a6:1a:10  txqueuelen 1000  (Ethernet)                                         
        RX packets 4147  bytes 357241 (348.8 KiB)                                                    
        RX errors 0  dropped 0  overruns 0  frame 0                                                  
        TX packets 6930  bytes 1407750 (1.3 MiB)                                                     
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0                                   
                                                                                                     
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536  metric 1                                               
        inet 127.0.0.1  netmask 255.0.0.0                                                            
        inet6 ::1  prefixlen 128  scopeid 0x10<host>                                                 
        loop  txqueuelen 1000  (Local Loopback)                                                      
        RX packets 30578  bytes 4289681 (4.0 MiB)                                                    
        RX errors 0  dropped 0  overruns 0  frame 0                                                  
        TX packets 30578  bytes 4289681 (4.0 MiB)                                                    
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0                                   
                                                                                                     
usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  metric 1                                         
        ether 6a:6d:a9:be:b3:8b  txqueuelen 1000  (Ethernet)                                         
        RX packets 0  bytes 0 (0.0 B)                                                                
        RX errors 0  dropped 0  overruns 0  frame 0                                                  
        TX packets 0  bytes 0 (0.0 B)                                                                
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Harware Info;

Edit;


Related post;

Edit;


Pluto dmesg output at PC

[  429.443260] usb 1-3: new high-speed USB device number 7 using xhci_hcd
[  429.593861] usb 1-3: New USB device found, idVendor=0456, idProduct=b673, bcdDevice= 5.10
[  429.593865] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  429.593867] usb 1-3: Product: PlutoSDR (ADALM-PLUTO)
[  429.593868] usb 1-3: Manufacturer: Analog Devices Inc.
[  429.593870] usb 1-3: SerialNumber: 10447376de0b0009edff300082d6977fca
[  429.602615] usb-storage 1-3:1.2: USB Mass Storage device detected
[  429.602856] scsi host2: usb-storage 1-3:1.2
[  429.604791] cdc_acm 1-3:1.3: ttyACM0: USB ACM device
[  429.635470] rndis_host 1-3:1.0 eth0: register 'rndis_host' at usb-0000:00:14.0-3, RNDIS device, 00:e0:22:d9:85:c3
[  429.635653] usbcore: registered new interface driver rndis_host
[  429.643460] usbcore: registered new interface driver rndis_wlan
[  429.650042] rndis_host 1-3:1.0 enx00e022d985c3: renamed from eth0
[  429.941852] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:c8:b2:9b:43:0f:30:86:dd SRC=fe80:0000:0000:0000:4a3e:d9e7:ebe5:0d5b DST=fe80:0000:0000:0000:f1c9:8672:9d82:78c4 LEN=1292 TC=0 HOPLIMIT=128 FLOWLBL=229150 PROTO=UDP SPT=3702 DPT=33572 LEN=1252 
[  430.209458] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:c8:b2:9b:43:0f:30:86:dd SRC=fe80:0000:0000:0000:4a3e:d9e7:ebe5:0d5b DST=fe80:0000:0000:0000:f1c9:8672:9d82:78c4 LEN=1292 TC=0 HOPLIMIT=128 FLOWLBL=229150 PROTO=UDP SPT=3702 DPT=33572 LEN=1252 
[  430.241313] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:0c:9a:3c:b6:15:2a:08:00 SRC=192.168.2.35 DST=192.168.2.37 LEN=1258 TOS=0x00 PREC=0x00 TTL=128 ID=49104 PROTO=UDP SPT=3702 DPT=38440 LEN=1238 
[  430.437463] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:0c:9a:3c:b6:15:2a:08:00 SRC=192.168.2.35 DST=192.168.2.37 LEN=1258 TOS=0x00 PREC=0x00 TTL=128 ID=49105 PROTO=UDP SPT=3702 DPT=38440 LEN=1238 
[  430.485451] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:c8:b2:9b:43:0f:30:86:dd SRC=fe80:0000:0000:0000:4a3e:d9e7:ebe5:0d5b DST=fe80:0000:0000:0000:f1c9:8672:9d82:78c4 LEN=1292 TC=0 HOPLIMIT=128 FLOWLBL=229150 PROTO=UDP SPT=3702 DPT=33572 LEN=1252 
[  430.492454] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:00:17:c8:e9:d1:e1:08:00 SRC=192.168.2.83 DST=192.168.2.37 LEN=2194 TOS=0x00 PREC=0x00 TTL=64 ID=62797 PROTO=UDP SPT=33595 DPT=38440 LEN=2174 
[  430.492477] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:00:17:c8:e9:d1:e1:86:dd SRC=fe80:0000:0000:0000:0217:c8ff:fee9:d1e1 DST=fe80:0000:0000:0000:f1c9:8672:9d82:78c4 LEN=2174 TC=0 HOPLIMIT=64 FLOWLBL=0 PROTO=UDP SPT=57571 DPT=33572 LEN=2134 
[  430.534058] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:c8:b2:9b:43:0f:30:08:00 SRC=192.168.2.18 DST=192.168.2.37 LEN=1258 TOS=0x00 PREC=0x00 TTL=128 ID=51437 PROTO=UDP SPT=3702 DPT=38440 LEN=1238 
[  430.588330] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:0c:9a:3c:b6:15:2a:08:00 SRC=192.168.2.35 DST=192.168.2.37 LEN=1258 TOS=0x00 PREC=0x00 TTL=128 ID=49106 PROTO=UDP SPT=3702 DPT=38440 LEN=1238 
[  430.623980] scsi 2:0:0:0: Direct-Access     Linux    File-Stor Gadget 0510 PQ: 0 ANSI: 2
[  430.624233] sd 2:0:0:0: Attached scsi generic sg1 type 0
[  430.625041] sd 2:0:0:0: [sdb] 61441 512-byte logical blocks: (31.5 MB/30.0 MiB)
[  430.625279] sd 2:0:0:0: [sdb] Write Protect is off
[  430.625281] sd 2:0:0:0: [sdb] Mode Sense: 0f 00 00 00
[  430.625568] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  430.627653]  sdb: sdb1
[  430.627999] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[  430.698905] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:c8:b2:9b:43:0f:30:08:00 SRC=192.168.2.18 DST=192.168.2.37 LEN=1258 TOS=0x00 PREC=0x00 TTL=128 ID=51438 PROTO=UDP SPT=3702 DPT=38440 LEN=1238 
[  430.963044] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:c8:b2:9b:43:0f:30:86:dd SRC=fe80:0000:0000:0000:4a3e:d9e7:ebe5:0d5b DST=fe80:0000:0000:0000:f1c9:8672:9d82:78c4 LEN=1292 TC=0 HOPLIMIT=128 FLOWLBL=229150 PROTO=UDP SPT=3702 DPT=33572 LEN=1252 
[  431.375421] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:0c:9a:3c:b6:15:2a:86:dd SRC=fe80:0000:0000:0000:570f:4c66:c6a2:cfe5 DST=fe80:0000:0000:0000:f1c9:8672:9d82:78c4 LEN=1293 TC=0 HOPLIMIT=128 FLOWLBL=349599 PROTO=UDP SPT=3702 DPT=49310 LEN=1253 
[  431.444430] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:0c:9a:3c:b6:15:2a:86:dd SRC=fe80:0000:0000:0000:570f:4c66:c6a2:cfe5 DST=fe80:0000:0000:0000:f1c9:8672:9d82:78c4 LEN=1293 TC=0 HOPLIMIT=128 FLOWLBL=349599 PROTO=UDP SPT=3702 DPT=49310 LEN=1253 
[  431.663124] [UFW BLOCK] IN=wlp5s0 OUT= MAC=14:4f:8a:76:cb:ea:0c:9a:3c:b6:15:2a:86:dd SRC=fe80:0000:0000:0000:570f:4c66:c6a2:cfe5 DST=fe80:0000:0000:0000:f1c9:8672:9d82:78c4 LEN=1293 TC=0 HOPLIMIT=128 FLOWLBL=347220 PROTO=UDP SPT=3702 DPT=33572 LEN=1253

Edit;


ethtool output;

root@colibri-imx6-10885648:~# ethtool usb0
Settings for usb0:
        Link detected: no

Edit;


cat /sys/kernel/debug/usb/devices command at Colibri;

T:  Bus=01 Lev=03 Prnt=12 Port=02 Cnt=01 Dev#= 16 Spd=480  MxCh= 0                                                                                                                                         
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1                     
P:  Vendor=0456 ProdID=b673 Rev= 5.10                                            
S:  Manufacturer=Analog Devices Inc.                                             
S:  Product=PlutoSDR (ADALM-PLUTO)                                               
S:  SerialNumber=10447376de0b0009edff300082d6977fca                              
C:* #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA                                           
A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00                          
A:  FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01                          
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm            
E:  Ad=82(I) Atr=03(Int.) MxPS=  16 Ivl=32ms                                     
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm            
I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm            
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage        
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=125us                                    
I:* If#= 3 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm            
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms                                     
I:* If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm            
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
I:* If#= 5 Alt= 0 #EPs= 6 Cls=02(comm.) Sub=00 Prot=00 Driver=(none)             
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                      
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

sudo cat /sys/kernel/debug/usb/devices command at Ubuntu;

:  Bus=01 Lev=01 Prnt=01 Port=08 Cnt=02 Dev#= 24 Spd=480  MxCh= 0                                                                                                                                         
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1                                                                                                                                               
P:  Vendor=0456 ProdID=b673 Rev= 5.10                                                                                                                                                                      
S:  Manufacturer=Analog Devices Inc.                                                                                                                                                                       
S:  Product=PlutoSDR (ADALM-PLUTO)                                                                                                                                                                         
S:  SerialNumber=10447372c604001606001e0087c0d4a784                                                                                                                                                        
C:* #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA                                                                                                                                                                     
A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=0d Prot=00                                                                                                                                                    
A:  FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01                                                                                                                                                    
I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0d Prot=00 Driver=cdc_ncm                                                                                                                                      
E:  Ad=82(I) Atr=03(Int.) MxPS=  16 Ivl=32ms                                                                                                                                                               
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm                                                                                                                                      
I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=01 Driver=cdc_ncm                                                                                                                                      
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                                                                                
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                                                                                
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage                                                                                                                                  
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                                                                                
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=125us                                                                                                                                                              
I:* If#= 3 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm                                                                                                                                      
E:  Ad=85(I) Atr=03(Int.) MxPS=  10 Ivl=32ms                                                                                                                                                               
I:* If#= 4 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm                                                                                                                                      
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                                                                                
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms                                                                                                                                                                
I:* If#= 5 Alt= 0 #EPs= 6 Cls=02(comm.) Sub=00 Prot=00 Driver=(none)
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

Edit;


Other communities that I asked;

Hi @huseyinkozan ,

Sorry for the delay in responding.

Taking a quick look at your dmesg logs I don’t see any obvious errors here. Apparently the device is properly recognized. Do you have to manually load the relevant kernel modules with modprobe or are they loaded automatically when you plug the device, as they should?

According to this article (Ethernet/Network (Linux) | Toradex Developer Center) by default our BSP reference images use systemd-networkd to manage USB RNDIS. Maybe it is necessary to configure it to support your device?

I noticed you’re using BSP 5.7.0. Can you check if the same issue happens on our latest BSP 5 production release (5.7.2 as of now) and our latest quarterly BSP 6 (6.4.0 as of now)?

Best regards,
Lucas Akira

Hi @lucas_a.tx ,

Nope, thanks for the reply.

Below lines at the kernel bbappend file adds module files to /etc/modules-load.d/ dir. I may try to load at device plug tomorrow.

I tried RNDIS, but I should check the article that you give. Thanks.

I have checked both 5.7.0 and 5.7.2. But, not any 6 version BSP. The last time that I try 6 was not a success at LCD display. I may check if not find a solution from RNDIS configuration.

I have tried;

  • Remove modules from /etc/modules-load.d/ and loaded autmatically.
  • Added /lib/systemd/network/rndis.wired with below content;
    [Match]
    # We use type since device name depends on Kernel version
    # udevadm info --query=property /sys/class/net/usb0
    Type=gadget
    
    [Network]
    Address=192.168.7.2/24
    DHCPServer=yes
    [DHCPServer]
    EmitDNS=no
    EmitNTP=no
    EmitRouter=no
    EmitTimezone=no
    
  • Installed 6.4 refecence image.

6.4 image does not contains rndis_host, so I tried NCM mode.

root@colibri-imx6-11036593:~# zcat /proc/config.gz | grep -i --color rndis                           │
# CONFIG_USB_NET_RNDIS_HOST is not set                                                               │
# CONFIG_USB_NET_RNDIS_WLAN is not set                                                               │
CONFIG_USB_F_RNDIS=y                                                                                 │
CONFIG_USB_CONFIGFS_RNDIS=y                                                                          │
CONFIG_USB_ETH_RNDIS=y                                                                               │
# CONFIG_USB_FUNCTIONFS_RNDIS is not set

Here is the dmesg -w after plut the Pluto;

[  522.475125] usb 2-1: new high-speed USB device number 2 using ci_hdrc                                                                                                                                   
[  522.692264] usb 2-1: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.17                                                                                                               
[  522.700660] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0                                                                                                                           
[  522.707891] usb 2-1: Product: 4-Port USB 2.0 Hub
[  522.712735] usb 2-1: Manufacturer: Generic
[  522.723294] hub 2-1:1.0: USB hub found
[  522.734672] hub 2-1:1.0: 4 ports detected
[  523.065045] usb 2-1.1: new high-speed USB device number 3 using ci_hdrc
[  523.250377] usb 2-1.1: New USB device found, idVendor=0bda, idProduct=5411, bcdDevice= 1.17
[  523.258881] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  523.266395] usb 2-1.1: Product: 4-Port USB 2.0 Hub
[  523.268102] systemd-journald[184]: Data hash table of /run/log/journal/b9b896d9b8574421aac344b897808096/system.journal has a fill level at 75.0 (2731 of 3640 items, 2097152 file size, 767 bytes per ha
sh table item), suggesting rotation.
[  523.271236] usb 2-1.1: Manufacturer: Generic
[  523.299685] systemd-journald[184]: /run/log/journal/b9b896d9b8574421aac344b897808096/system.journal: Journal header limits reached or header out-of-date, rotating.
[  523.307018] hub 2-1.1:1.0: USB hub found
[  523.320795] hub 2-1.1:1.0: 4 ports detected
[  523.436225] usb 2-1.2: new full-speed USB device number 4 using ci_hdrc
[  523.593172] usb 2-1.2: New USB device found, idVendor=0403, idProduct=6015, bcdDevice=10.00
[  523.601696] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  523.609142] usb 2-1.2: Product: FT230X Basic UART
[  523.613939] usb 2-1.2: Manufacturer: FTDI
[  523.618056] usb 2-1.2: SerialNumber: DM03TRC6
[  523.667280] usbcore: registered new interface driver usbserial_generic
[  523.685188] usbserial: USB Serial support registered for generic
[  523.704471] usbcore: registered new interface driver ftdi_sio
[  523.711272] usbserial: USB Serial support registered for FTDI USB Serial Device
[  523.721579] ftdi_sio 2-1.2:1.0: FTDI USB Serial Device converter detected
[  523.735732] usb 2-1.2: Detected FT-X
[  523.741287] usb 2-1.2: FTDI USB Serial Device converter now attached to ttyUSB0
[  530.565010] usb 2-1.1.4: new high-speed USB device number 5 using ci_hdrc
[  530.717653] usb 2-1.1.4: New USB device found, idVendor=0456, idProduct=b673, bcdDevice= 5.10
[  530.726361] usb 2-1.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  530.733906] usb 2-1.1.4: Product: PlutoSDR (ADALM-PLUTO)
[  530.739332] usb 2-1.1.4: Manufacturer: Analog Devices Inc.
[  530.744914] usb 2-1.1.4: SerialNumber: 10447376de0b0009edff300082d6977fca
[  530.769473] usb-storage 2-1.1.4:1.2: USB Mass Storage device detected
[  530.781761] scsi host0: usb-storage 2-1.1.4:1.2
[  530.894229] usbcore: registered new interface driver cdc_ether
[  530.961543] cdc_ncm 2-1.1.4:1.0: MAC-Address: 00:e0:22:d9:85:c3
[  530.972996] cdc_ncm 2-1.1.4:1.0 eth1: register 'cdc_ncm' at usb-ci_hdrc.1-1.1.4, CDC NCM (NO ZLP), 00:e0:22:d9:85:c3
[  530.988858] usbcore: registered new interface driver cdc_ncm
[  531.092398] cdc_acm 2-1.1.4:1.3: ttyACM0: USB ACM device
[  531.098783] usbcore: registered new interface driver cdc_acm
[  531.104541] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[  531.835951] scsi 0:0:0:0: Direct-Access     Linux    File-Stor Gadget 0510 PQ: 0 ANSI: 2
[  531.852679] sd 0:0:0:0: [sda] 61441 512-byte logical blocks: (31.5 MB/30.0 MiB)
[  531.870160] sd 0:0:0:0: [sda] Write Protect is off
[  531.875084] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
[  531.875802] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  531.895408]  sda: sda1
[  531.907612] sd 0:0:0:0: [sda] Attached SCSI removable disk

Still no link.

It works at Ubuntu 22.04 desktop PC. Tried to find differences, but couldn’t find.

Where should I look at the next step ?

Hi,

We tried 6.4 again. It creates eth1 and took IP, but usb0 not. I am attaching some info below.

Out current BSP is 5.7.x and it will take time to upgrade to 6.4. What can we do to work it at 5.7 ?

dmesg-6.4.log (25.7 KB)

root@colibri-imx6-11036593:~# lsmod
Module                  Size  Used by
cdc_ncm                40960  0
cdc_acm                32768  0
cdc_ether              16384  1 cdc_ncm
usbnet                 45056  2 cdc_ether,cdc_ncm
8021q                  32768  0
cfg80211              401408  0
mcp251x                24576  0
imx_sdma               28672  4
coda_vpu               94208  0
v4l2_jpeg              16384  1 coda_vpu
imx_vdoa               16384  1 coda_vpu
fuse                  126976  1
root@colibri-imx6-11036593:~# ethtool eth1
Settings for eth1:
        Supported ports: [  ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Supported FEC modes: Not reported
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 425Mb/s
        Duplex: Half
        Auto-negotiation: off
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        MDI-X: Unknown
        Current message level: 0x00000007 (7)
                               drv probe link
        Link detected: yes
root@colibri-imx6-11036593:~# ifconfig
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet6 fe80::214:2dff:fea8:67b1  prefixlen 64  scopeid 0x20<link>
        ether 00:14:2d:a8:67:b1  txqueuelen 1000  (Ethernet)
        RX packets 39  bytes 3358 (3.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 31  bytes 6392 (6.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.7.1  netmask 255.255.255.0  broadcast 192.168.7.255
        inet6 fe80::2e0:22ff:fed9:85c3  prefixlen 64  scopeid 0x20<link>
        ether 00:e0:22:d9:85:c3  txqueuelen 1000  (Ethernet)
        RX packets 21  bytes 3632 (3.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 32  bytes 6062 (5.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 98  bytes 8288 (8.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 98  bytes 8288 (8.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 42:33:49:6a:90:39  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Hi @huseyinkozan ,

We tried 6.4 again. It creates eth1 and took IP, but usb0 not. I am attaching some info below.

So apparently on BSP 6.4 eth1 is created and you are able to get your device to work via NCM, is this correct?

I’ll try taking a closer look at your dmesg logs to see if I can find anything interesting. Maybe it’s a kernel module that needs to be included?

Best regards,
Lucas Akira

Yes, correct.

Only 8021q is missing at 5.7, but its directly included;

root@colibri-imx6-10885648:~# zcat /proc/config.gz | grep -i --color 8021q
CONFIG_VLAN_8021Q=y
CONFIG_VLAN_8021Q_GVRP=y
# CONFIG_VLAN_8021Q_MVRP is not set

After removed startup module loads from /etc/modules-load.d, I realize that below errors come. At my previous trials, I thouth errors was a cable/power issue, and discarded it. May be related.

[  629.003438] usb 1-1: new high-speed USB device number 10 using ci_hdrc
[  629.206378] usb 1-1: Dual-Role OTG device on non-HNP port
[  629.223636] usb 1-1: set a_alt_hnp_support failed: -32
[  629.373437] usb 1-1: new high-speed USB device number 11 using ci_hdrc
[  629.575993] usb 1-1: Dual-Role OTG device on non-HNP port
[  629.593464] usb 1-1: set a_alt_hnp_support failed: -32
[  629.598696] usb usb1-port1: attempt power cycle
[  630.063435] usb 1-1: new high-speed USB device number 12 using ci_hdrc
[  630.116388] usb 1-1: Dual-Role OTG device on non-HNP port
[  630.122020] usb 1-1: set a_alt_hnp_support failed: -32
[  630.273420] usb 1-1: new high-speed USB device number 13 using ci_hdrc
[  630.326394] usb 1-1: Dual-Role OTG device on non-HNP port
[  630.332019] usb 1-1: set a_alt_hnp_support failed: -32
[  630.340928] usb usb1-port1: unable to enumerate USB device

Hi @huseyinkozan ,

From the dmesg logs you provided I can’t really see any messages pointing to a driver/module error. One difference I noticed between the dmesg logs from 5.7.0 and 6.4.0 is that on 5.7.0 it does not have the usbcore: registered new interface driver <module> messages.

After removed startup module loads from /etc/modules-load.d, I realize that below errors come. At my previous trials, I thouth errors was a cable/power issue, and discarded it. May be related.

It may be related, though from what your logs showed it looks like the device was properly recognized.


For BSP 5 we released two versions: one with the upstream kernel and another with the downstream kernel forked from NXP. Do you know which one you used for the tests?

You can check that by running the command below:

root@colibri-imx6-10706262:~# cat /etc/os-release
ID=tdx-xwayland-upstream
NAME="TDX Wayland with XWayland Upstream"
VERSION="5.7.2+build.21 (dunfell)"
VERSION_ID=5.7.2-build.21
PRETTY_NAME="TDX Wayland with XWayland Upstream 5.7.2+build.21 (dunfell)"
DISTRO_CODENAME="dunfell"

The downstream version output is:

root@colibri-imx6-10706262:~# cat /etc/os-release
ID=tdx-xwayland
NAME="TDX Wayland with XWayland"
VERSION="5.7.2+build.21 (dunfell)"
VERSION_ID=5.7.2-build.21
PRETTY_NAME="TDX Wayland with XWayland 5.7.2+build.21 (dunfell)"
DISTRO_CODENAME="dunfell"

Can you try testing the alternative version of BSP 5 i.e. downstream if you tested the upstream one and vice-versa?

Best regards,
Lucas Akira

Hi,

We are using downstream. This is the DISTRO line from local.conf

DISTRO ?= "tdx-xwayland"

I tried to change it to upstream like below;

DISTRO ?= "tdx-xwayland-upstream"

Kernel is not stable, usually gives kernel panic, and stacks at boot. But, I managed to get below information;

dmesg after plug the Pluto;

[   88.653400] usb 1-1: new high-speed USB device number 2 using ci_hdrc                                                                                                                                   
[   88.653400] usb 1-1: new high-speed USB device number 2 using ci_hdrc                                                                                                                                   
[   88.862659] usb-storage 1-1:1.2: USB Mass Storage device detected                                                                                                                                       
[   88.872536] scsi host0: usb-storage 1-1:1.2                                                                                                                                                             
[   88.862659] usb-storage 1-1:1.2: USB Mass S[   88.881904] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                   
torage device detected                                                                                                                                                                                     
[   [   88.889338] [drm] No driver support for vblank timestamp query.                                                                                                                                     
88.872536] scsi host0: usb-storage 1-1:1.2                                                                                                                                                                 
[   88.881904] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                                                                 
[   88.889[   88.911293] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)                                                                                                              
338] [drm] No driver support [   88.919388] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)                                                                                           
for vblank timestamp query.                                                                                                                                                                                
[   88.911293] imx-drm display-subsystem: bo[   88.935031] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                     
und imx-ipuv3-crtc.2 (ops ipu_crt[   88.944251] [drm] No driver support for vblank timestamp query.                                                                                                        
c_ops)                                                                                                                                                                                                     
[   88.919388]   88.954866] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)                                                                                                           
[33mimx-drm display-subsystem[   88.965233] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)                                                                                           
: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)                                                                                                                                                                
[   88.935031] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                                                                 
[   88.944251] [drm] No driver support for vblank timestamp query.                                                                                                                                         
[   88.954866] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)                                                                                                                        
[   88.965233] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)                                                                                                                        
[   89.122412] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                                                                 
[   89.129144] [drm] No driver support for vblank timestamp query.                                                                                                                                         
[   89.122412] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                                                                 
[   89.129144] [drm] No driver support for vblank timestamp que[   89.147153] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)                                                         
ry.                                                                                                                                                                                                        
[   89.147153] imx-[   89.167840] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
drm display-subsystem: bound [   89.174328] cdc_ncm 1-1:1.0: MAC-Address: 00:e0:22:d9:85:c3
imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[   89.167840] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops i[   89.195534] cdc_ncm 1-1:1.0 eth1: register 'cdc_ncm' at usb-ci_hdrc.0-1, CDC NCM, 00:e0:22:d9:85:c3
pu_crtc_ops)
[   89.174328][   89.206862] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
 cdc_ncm 1-1:1.0: MA[   89.216093] [drm] No driver support for vblank timestamp query.
C-Address: 00:e0:22:d9:85:c3
[   89.195534] cdc_ncm 1-1:1.0 eth1: registe[   89.231597] usbcore: registered new interface driver cdc_ncm
r 'cdc_ncm' at usb-ci_hdrc.0-1, CDC NCM, 00:e0:22:d9:85:c3
   89.241605] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
m[   89.206862] [drm] Supports vblank t[i m e s8t9a.m2p5 4c036] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
ching Rev 2 (21.10.2013).
[[   89.265933] usbcore: registered new interface driver cdc_wdm
   89.216093] [drm] No driver support for vblank timestamp q[   89.277196] cdc_acm 1-1:1.3: ttyACM0: USB ACM device
uery.
[   89.231597] usbcore: registered new [   89.287445] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                          
interface driver cdc_ncm                                                                                                                                                                                   
[ [   89.294720] [drm] No driver support for vblank timestamp query.                                                                                                                                       
  89.241605] imx-drm display-subsystem: bound imx-i[   89.308258] usbcore: registered new interface driver cdc_mbim                                                                                        
puv3-crtc.2 (ops ipu_crtc_ops)                                                                                                                                                                             
  89.314765] usbcore: registered new interface driver cdc_acm                                                                                                                                              
[32m[   89.254036] imx-d[   89.323391] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters                                                                                         
rm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)                                                                                                                                            
[   89.265933]    89.340168] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)                                                                                                          
33musbcore: registered new interface driver cdc_wdm
[   89.277196] cdc_acm 1-1:1.3: ttyACM0: USB ACM device
[   89.287445] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
   89.367905] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
32m[   89.294720] [drm] No driver support for vblank timestamp query.
[   89.308258] usbcore: registered new interface driver cdc_mbim
[   89.314765] [   89.391341] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
usbcore: registered new inter[   89.399539] [drm] No driver support for vblank timestamp query.
face driver cdc_acm
[   89.323391] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   89.340168] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[   89.367905] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[   89.391341] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   89.399539] [drm] No driver support for vblank timestamp query.
[   89.483619] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[   89.491121] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[   89.483619] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[   89.491121] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
[   89.924669] scsi 0:0:0:0: Direct-Access     Linux    File-Stor Gadget 0510 PQ: 0 ANSI: 2
[   89.924669] scsi 0:0:0:0: Direct-Access     Linux    File-Stor Gadget 0510 PQ: 0 ANSI: 2
[   89.948758] sd 0:0:0:0: [sda] 61441 512-byte logical blocks: (31.5 MB/30.0 MiB)
[   89.960504] sd 0:0:0:0: [sda] Write Protect is off
[   89.965463] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
[   89.948758] sd 0:0:0:0: [sda] 61441 512-byte logical blocks: (31.5 MB/30.0[   89.976517] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 MiB)
[   89.960504] sd 0:0:0:0: [sda] Write Protect is off
[   89.965463] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
[   89.976517] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   90.020786]  sda: sda1
[   90.020786]  sda: sda1
[   90.036385] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   90.036385] sd 0:0:0:0: [sda] Attached SCSI[   90.047360] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
 removable disk
[   90.055780] [drm] No driver support for vblank timestamp query.
[   90.047360] [drm] Supports vblank timestamp caching [   90.066288] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
Rev 2 (21.10.2013).
[   90.[   90.077251] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)
055780] [drm] No driver support for vblank timestamp query.
[   90.066288] imx-drm display-subsystem: bound imx-ipuv3-crtc.2 (ops ipu_crtc_ops)
[   90.077251] imx-drm display-subsystem: bound imx-ipuv3-crtc.3 (ops ipu_crtc_ops)

lsmod output;

root@colibri-imx6-10885613:~# lsmod              
Module                  Size  Used by
cdc_mbim               16384  0
cdc_wdm                28672  1 cdc_mbim
cdc_acm                32768  0
cdc_ncm                32768  1 cdc_mbim
usbnet                 49152  2 cdc_mbim,cdc_ncm
mii                    16384  1 usbnet
usb_f_rndis            32768  2
u_ether                24576  1 usb_f_rndis
imx6_media_csi         32768  2
mux_mmio               16384  0
video_mux              16384  0
mux_core               16384  2 mux_mmio,video_mux
imx_sdma               28672  4
virt_dma               16384  1 imx_sdma
imx6_media             53248  0
imx_media_common       40960  2 imx6_media,imx6_media_csi
coda_vpu               86016  0
imx_vdoa               16384  1 coda_vpu
videobuf2_vmalloc      16384  1 coda_vpu
videobuf2_dma_contig    20480  3 imx6_media,coda_vpu,imx_media_common
v4l2_mem2mem           28672  2 imx6_media,coda_vpu
v4l2_fwnode            24576  3 video_mux,imx6_media_csi,imx_media_common
videobuf2_memops       16384  2 videobuf2_dma_contig,videobuf2_vmalloc
videobuf2_v4l2         24576  4 imx6_media,coda_vpu,v4l2_mem2mem,imx_media_common
videobuf2_common       53248  6 imx6_media,coda_vpu,v4l2_mem2mem,videobuf2_v4l2,imx6_media_csi,imx_media_common
videodev              225280  9 v4l2_fwnode,videobuf2_common,imx6_media,video_mux,coda_vpu,v4l2_mem2mem,videobuf2_v4l2,imx6_media_csi,imx_media_common
mc                     53248  8 videobuf2_common,imx6_media,videodev,video_mux,v4l2_mem2mem,videobuf2_v4l2,imx6_media_csi,imx_media_common
libcomposite           61440  10 usb_f_rndis
configfs               45056  3 usb_f_rndis,libcomposite

ifconfig output;

root@colibri-imx6-10885613:~# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  metric 1
        ether 00:14:2d:a6:19:ed  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536  metric 1
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 82  bytes 6220 (6.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 82  bytes 6220 (6.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  metric 1
        ether 42:68:a1:72:73:c2  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

OS release;

ID=tdx-xwayland-upstream
NAME="TDX Wayland with XWayland Upstream"
VERSION="5.7.2-devel-20231026053244 (dunfell)"
VERSION_ID=5.7.2-devel-20231026053244
PRETTY_NAME="TDX Wayland with XWayland Upstream 5.7.2-devel-20231026053244 (dunfell)"
DISTRO_CODENAME="dunfell"

Hi @huseyinkozan ,

Kernel is not stable, usually gives kernel panic, and stacks at boot.

That’s very strange, especially considering that it’s the upstream kernel. Did you make any other changes in the Yocto build?


From your dmesg logs apparently all modules load as expected, and I didn’t see any error messages related to the Adalm Pluto, so I don’t think that the loaded modules are the problem here.

Given that on BSP 6 you got an eth1 entry on ifconfig in addition to usb0, I would expect that RNDIS should get you eth1 if it works as intended.

Maybe it’s worth trying to get NCM to work on BSP 5, given that it works on BSP 6.

Best regards,
Lucas Akira

Hi,

We adapted our cahnges to my build env at here; GitHub - huseyinkozan/toradex-docker-yocto-builder . You can build an image that we have.

Here, you can find some info from device; Upgrade BSP 6.4 by Vergilerindir · Pull Request #3 · huseyinkozan/toradex-docker-yocto-builder · GitHub .

After boot and plug the device, we need to give ifconfig eth1 up command to show the eth1 at the ifconfig output. How can we do this automatically ?

Can we compare and find the required changes ? We want to use downstream, if possible.

We are trying all modes that Pluto suports; RNDIS host, NCM and ECM.

Hi @huseyinkozan ,

After boot and plug the device, we need to give ifconfig eth1 up command to show the eth1 at the ifconfig output. How can we do this automatically ?

You can create a udev rule to run a user-defined script when plugging-in your USB device.


Can we compare and find the required changes ? We want to use downstream, if possible.

You can try comparing the driver differences between BSP 5 downstream and BSP 6 upstream e.g.:


Just to confirm: Which image are you building with BSP 5.7? From the Yocto Builder GitHub link you referenced there is a custom image named minimal-image inherited from the core-image class. If that’s the case you try building our BSP reference minimal image i.e.

bitbake -k tdx-reference-minimal-image

And see if the device works there?

Best regards,
Lucas Akira