Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When connect Huawei modern meet odd thing #9

Open
leechaowen opened this issue Aug 7, 2023 · 3 comments
Open

When connect Huawei modern meet odd thing #9

leechaowen opened this issue Aug 7, 2023 · 3 comments

Comments

@leechaowen
Copy link

my R4S burn nanopi_r4s_ubuntu_20.04_kernel_5.10.43-16GB.img.7z. and usb connect huawei modern.

apt-get install usb-modeswitch 

ubuntu@nanopi-r4s:~$ lsusb
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 003: ID 12d1:14db Huawei Technologies Co., Ltd. E353/E3131
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ubuntu@nanopi-r4s:~$

append below in the /etc/network/interfaces

#enx0c5b8f279a64 is huawei's interface

auto enx0c5b8f279a64
allow-hotplug enx0c5b8f279a64
iface enx0c5b8f279a64 inet dhcp

I did such 2 cases:

  1. usb connect huawei, then connect power, the Ubuntu is up , the huawei could connect 4G and get IP address. then run
    command reboot ubuntu, wait a long time , the ubuntu could not up. i have to cut off the power and connect power again,
    and everything will be ok.

  2. sudden turn off the power and turn on power , ubuntu could not up. but it will normal once usb not connect huawei when face
    this case.

I had tested the officer's ubuntu from friendlyelec, the officer's ubunut never up once usb connect huawei modern.

Could you help to fix the image? help to check where 's wrong?

By the way when huawei in storage mode the id is 12d1:1f01.

ubuntu@nanopi-r4s:~$ lsusb
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 002: ID 12d1:1f01 Huawei Technologies Co., Ltd. E353/E3131 (Mass storage mode)
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
@leechaowen
Copy link
Author

I think the image is better than officer's from friendlyelec. The officer's ubuntu never up once usb connect huawei modern.
The image could up first time when connect huawei modern. Run reboot or power off ,power on , it will not up. odd thing.

@leechaowen
Copy link
Author

I test the debian from friendlyelec., there is no such issue. But openwrt and ubuntu from friendlyelec meet such issue too. it's odd thing.May be the system assume there has OS in the huawei, so it not start from SD card.

@avafinger
Copy link
Owner

avafinger commented Aug 9, 2023

If you can decompile the DTB from Debian (FriendlyElec image) to check for some new changes in the USB node, this may help to find a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants