Portál AbcLinuxu, 7. května 2025 12:40
# lsusb Bus 001 Device 006: ID 12d1:15c1 Huawei Technologies Co., Ltd. Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
#dmesg usb 1-1.2: USB disconnect, device number 6 cdc_ether 1-1.2:2.0 usb0: unregister 'cdc_ether' usb-ci_hdrc.1-1.2, CDC Ethernet Device usb 1-1.2: new high-speed USB device number 7 using ci_hdrc cdc_ether 1-1.2:2.0 usb0: register 'cdc_ether' at usb-ci_hdrc.1-1.2, CDC Ethernet Device, 02:1e:10:1f:00:00
#lsmod Module Size Used by option 19419 0 usb_wwan 5083 1 option usbserial 19334 2 option,usb_wwan cdc_ether 3248 0 usbnet 16392 1 cdc_ether adv7180_tvin 9517 0 evbug 1476 0Pokud odstraním modul option a znovu zavedu:
# rmmod option # modprobe option # dmesg usbserial: USB Serial deregistering driver GSM modem (1-port) usbcore: deregistering interface driver option usbcore: registered new interface driver option usbserial: USB Serial support registered for GSM modem (1-port)Stále se však neobjeví /dev/ttyUSB* - možná mi jen chybí něco zkonfigurovat v udevu... Prosím o radu. Ještě doplním, že pokud odstraním modul usbserial a zavedu ho s parametrem, tak se seriové linky oběví (/dev/USB0 - /dev/USB3).
# rmmod option # rmmod usb_wwan # rmmod usbserial # modprobe usbserial vendor=0x12d1 product=0x15c1 # dmesg usbcore: registered new interface driver usbserial usbcore: registered new interface driver usbserial_generic usbserial: USB Serial support registered for generic usbserial_generic 1-1.2:2.2: The "generic" usb-serial driver is only for testing and one-off prototypes. usbserial_generic 1-1.2:2.2: Tell linux-usb@vger.kernel.org to add your device to a proper driver. usbserial_generic 1-1.2:2.2: generic converter detected usb 1-1.2: generic converter now attached to ttyUSB0 usbserial_generic 1-1.2:2.3: The "generic" usb-serial driver is only for testing and one-off prototypes. usbserial_generic 1-1.2:2.3: Tell linux-usb@vger.kernel.org to add your device to a proper driver. usbserial_generic 1-1.2:2.3: generic converter detected usb 1-1.2: generic converter now attached to ttyUSB1 usbserial_generic 1-1.2:2.4: The "generic" usb-serial driver is only for testing and one-off prototypes. usbserial_generic 1-1.2:2.4: Tell linux-usb@vger.kernel.org to add your device to a proper driver. usbserial_generic 1-1.2:2.4: generic converter detected usb 1-1.2: generic converter now attached to ttyUSB2 usbserial_generic 1-1.2:2.5: The "generic" usb-serial driver is only for testing and one-off prototypes. usbserial_generic 1-1.2:2.5: Tell linux-usb@vger.kernel.org to add your device to a proper driver. usbserial_generic 1-1.2:2.5: generic converter detected usb 1-1.2: generic converter now attached to ttyUSB3 usbserial_generic 1-1.2:2.6: The "generic" usb-serial driver is only for testing and one-off prototypes. usbserial_generic 1-1.2:2.6: Tell linux-usb@vger.kernel.org to add your device to a proper driver. usbserial_generic 1-1.2:2.6: generic converter detected usb 1-1.2: generic converter now attached to ttyUSB4Děkuji za pomoc/radu.
Řešení dotazu:
# rmmod option # rmmod usb_wwan # rmmod usbserial # modprobe usbserial vendor=0x12d1 product=0x15c1 # echo -e "AT+CGDCONT=1,\"IP\"\r","internet" > /dev/ttyUSB0 # ip link set usb0 up # udhcpc -f -i usb0potom vše funguje, ale správný postup to není:
The "generic" usb-serial driver is only for testing and one-off prototypes.Jinak síťové rozhraní usb0 se vytvoří vždy správně po zavedení modulu cdc_ether. Jen ta bolavá sériovka se nevytvoří.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.