This script should help you to add support for the Huawei E8372 into your BalenaOS.
The challenge, the device
12d1:1f01 will be switched to the
12d1:155e mode and not
To my knowlege this is only possible by modifying the
/etc/usb_modeswitch.conf and changing the
There are two changes that need to be made.
- Firstly the
/etc/usb_modeswitch.confneeds to be modified such that
HuaweiAltModeGlobal=0is deactivated and
- Secondly the
/usr/share/usb_modeswitch/12d1:1f01needs to be adjusted such that it correctly mounts the E8372 device.
This is done by the following script, that you need to run in the HostOS image
mount -o remount,rw / sed -i "s/#Set/Set/g" /etc/usb_modeswitch.conf echo "HuaweiAltModeGlobal=0" >> /etc/usb_modeswitch.conf cat /etc/usb_modeswitch.conf echo "# Huawei E8372 TargetVendor= 0x12d1 TargetProduct= 0x14db MessageContent=55534243123456780000000000000a11062000000000000100000000000000 NoDriverLoading=1" > /usr/share/usb_modeswitch/12d1:1f01 cat /usr/share/usb_modeswitch/12d1:1f01 udevadm control --reload-rules reboot # press the power button or unplug the LTE stick
Of anyone has a idea how this could be integrated into the
meta-balena layer or be changed from within the container. Please help me to do so