-
Notifications
You must be signed in to change notification settings - Fork 157
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
How to use rndis on 4G module,such as air780e ? #182
Comments
Open the corresponding kernel module and I think it should be available |
Thank you for your reply. I have opened all RNDIS related kernels, and changed usb to host in the device tree. However, I inserted 4g module (), but rndis access is still not displayed. This 4g module can recognize rndis on other linux
|
I used usb 4G Huawei sticks with alpine, there were some udev rules required to see it as RNDIS device |
Hi, if you could share your changes?
|
Not sure if this answers your question: Then created a udev rule for the modem (same as ubuntu, but adding restart networking at the end) cat /etc/udev/rules.d/40-huawei.rules
# This is part of USB_ModeSwitch version 1.x.x
#
ACTION!="add", GOTO="modeswitch_rules_end"
SUBSYSTEM!="usb", GOTO="modeswitch_rules_end"
# All known install partitions are on interface 0
ATTRS{bInterfaceNumber}!="00", GOTO="modeswitch_rules_end"
# only storage class devices are handled; negative
# filtering here would exclude some quirky devices
ATTRS{bDeviceClass}=="e0", GOTO="modeswitch_rules_begin"
ATTRS{bInterfaceClass}=="e0", GOTO="modeswitch_rules_begin"
GOTO="modeswitch_rules_end"
LABEL="modeswitch_rules_begin"
# Huawei E3372-325
ATTRS{idVendor}=="3566", ATTRS{idProduct}=="2001", RUN+="/usr/sbin/usb_modeswitch -v 3566 -p 2001 -W -R -w 400"
ATTRS{idVendor}=="3566", ATTRS{idProduct}=="2001", RUN+="/usr/sbin/usb_modeswitch -v 3566 -p 2001 -W -R"
ATTRS{idVendor}=="3566", ATTRS{idProduct}=="2001", RUN+="/sbin/rc-service networking restart"
LABEL="modeswitch_rules_end"
|
of course you need also usb_modeswitch. If you are in a buildroot environment, I'm not sure how complex is to make it. |
Thanks for your answer, even though I used builroot, you gave me a new idea, I will try it! |
I want to use the 4G module's RNDIS to access the internet.
The text was updated successfully, but these errors were encountered: