I just managed to make the this two guys work flawlessly on the latest snapshots/trunk and I'd like to share my recipe.
In order to make the device work as a 3g modem:
1) Install required packages
opkg update
opkg install comgt kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan usb-modeswitch
2) Create a file named dlink.json with your favorite text editor and put it in /etc/dlink.json
3) Edit the file adding this content
{
"messages" : [
"555342435b000000000000000001061e000000000000000000000000000000",
"555342435c000000000000000001061b000000010000000000000000000000",
"555342435d000000000000000001061b000000020000000000000000000000",
],
"devices" : {
"2001:a401": {
"*": {
"t_vendor": 8193,
"t_product": [ 32281 ],
"msg": [ 0, 1, 2 ]
}
},
}
}
4) edit /etc/rc.local adding this line before the exit 0 line
echo '0x2001 0x7e19' > /sys/bus/usb-serial/drivers/option1/new_id
5) reboot. The modem will switch and configured on /dev/ttyUSB1
6) follow the instruction in this guide to configure your 3g connection: http://wiki.openwrt.org/doc/recipes/3gdongle.
Configuring a pivot overlay on the internal sd card proved to be a little more tricky but...
1) Follow this guide http://wiki.openwrt.org/doc/howto/obtai … e.generate to create an image with following packages
make image PROFILE=TLMR3020 PACKAGES="usb-modeswitch block-mount kmod-fs-ext4 kmod-usb2 kmod-usb-uhci kmod-usb-ohci kmod-usb-storage"
2) Flash the new firmware and login
3) Modify /sbin/block as follows
mkdir -p /sbin/block_
mv /sbin/block /sbin/block_/block
touch /sbin/block
chmod 755 /sbin/block
4) edit with your favorite editor /sbin/block with this content
#!/bin/sh
/sbin/usbmode -s -c /etc/dlink.json
for i in 1 2 3 4 5 6 7 8 9 10; do
[ -e /dev/sda ] && break
sleep 1
done
exec /sbin/block_/block $*
5) create /etc/dlink.json as shown in point 2 and 3 of the previous list
6) edit /etc/rc.local as described in point 4 of the previous list
7) reboot. The modem will switch and configured on /dev/ttyUSB1
8) prepare the micro sd card with at last one etx4 partition and configure pivot /overlay as described in this guide http://wiki.openwrt.org/doc/howto/extroot
9) use opkg offline (you can use scp to upload packages to your /tmp directory) to install the following packages: comgt kmod-usb-serial kmod-usb-serial-option kmod-usb-serial-wwan
10) follow the instructions in this guide to configure your 3g connection: http://wiki.openwrt.org/doc/recipes/3gdongle
(Last edited by fabio.giglietto on 5 Sep 2015, 18:40)