Saya mencoba memunculkan modem USB 3g (Huawei E8231) di intel edison.
Tentang Edison:
Setelah mengaktifkan driver cdc_ether melalui yocto build, saya melihat bahwa perangkat ethernet dibuat ketika saya memasukkan dongle.
Log kernel:
[ 2562.441551] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 2562.442638] scsi1 : usb-storage 1-1:1.0
[ 2563.169095] usb 1-1: USB disconnect, device number 4
[ 2563.537339] usb 1-1: new high-speed USB device number 5 using dwc3-host
[ 2563.559524] usb 1-1: New USB device found, idVendor=12d1, idProduct=14db
[ 2563.559554] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2563.559576] usb 1-1: Product: HUAWEI Mobile
[ 2563.559595] usb 1-1: Manufacturer: HUAWEI
[ 2563.645936] cdc_ether 1-1:1.0 eth0: register 'cdc_ether' at usb-dwc3-host.2-1, CDC Ethernet Device, 00:1e:10:1f:00:00
[ 2563.730525] systemd-udevd[330]: renamed network interface eth0 to enp0s17u1
Lalu saya menyalakan enp0s17u1
ifconfig enp0s17u1 up
# ifconfig
enp0s17u1 Link encap:Ethernet HWaddr 00:1e:10:1f:00:00
inet6 addr: fe80::21e:10ff:fe1f:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:277 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:129344 (126.3 KiB) TX bytes:378 (378.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12160 errors:0 dropped:0 overruns:0 frame:0
TX packets:12160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:923616 (901.9 KiB) TX bytes:923616 (901.9 KiB)
usb0 Link encap:Ethernet HWaddr 02:00:86:07:72:b2
inet addr:192.168.2.15 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Tampilannya seperti up
tapi saya tidak bisa melakukan ping ke situs web mana pun.
# ping google.com
ping: bad address 'google.com'
Saya mencoba melakukan ping ke alamat IP. Tidak beruntung dengan itu juga.
~# ping 216.58.200.174
PING 216.58.200.174 (216.58.200.174): 56 data bytes
ping: sendto: Network is unreachable
Pada dasarnya Bagaimana saya bisa men-debug ini? Apakah ini masalah server dns? Saya tidak tahu. Saya mencoba mencari tahu.
Di laptop saya (Ubuntu):
Saya mencoba langkah yang sama di PC Ubuntu saya. Ini adalah log kernel setelah saya memasukkan modem dan melakukan usb_modemswitch
[95623.780650] usb 1-3: SerialNumber: FFFFFFFFFFFFFFFF
[95623.782995] usb-storage 1-3:1.0: USB Mass Storage device detected
[95623.783738] scsi host8: usb-storage 1-3:1.0
[95624.792497] scsi 8:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[95624.862764] sr 8:0:0:0: [sr0] scsi-1 drive
[95624.863611] sr 8:0:0:0: Attached scsi CD-ROM sr0
[95624.863997] sr 8:0:0:0: Attached scsi generic sg1 type 5
[95631.737629] usb 1-3: USB disconnect, device number 43
[95632.103018] usb 1-3: new high-speed USB device number 44 using xhci_hcd
[95632.260716] usb 1-3: New USB device found, idVendor=12d1, idProduct=14db
[95632.260729] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[95632.260737] usb 1-3: Product: HUAWEI Mobile
[95632.260743] usb 1-3: Manufacturer: HUAWEI
[95632.345186] cdc_ether 1-3:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-3, CDC Ethernet Device, 00:1e:10:1f:00:00
[95632.383256] cdc_ether 1-3:1.0 enx001e101f0000: renamed from eth0
[95632.412058] IPv6: ADDRCONF(NETDEV_UP): enx001e101f0000: link is not ready
[95632.412172] cdc_ether 1-3:1.0 enx001e101f0000: kevent 12 may have been dropped
[95632.412177] cdc_ether 1-3:1.0 enx001e101f0000: kevent 12 may have been dropped
[95632.433168] IPv6: ADDRCONF(NETDEV_UP): enx001e101f0000: link is not ready
[95634.671760] IPv6: ADDRCONF(NETDEV_CHANGE): enx001e101f0000: link becomes ready
Tautan ethernet siap. Saya tidak harus melakukannya ifconfig enx001e101f0000 up
demikian juga. Semuanya terjadi secara default dan saya dapat menggunakan internet tanpa masalah.
Karenanya saya ragu apakah ada beberapa konfigurasi kernel yang hilang atau konfigurasi yang hilang yang menyebabkan masalah.
Saya mencari petunjuk / petunjuk untuk men-debug masalah ini.
sumber