[LEDE-DEV] 3G support for dwr-512

Cezary Jackiewicz cezary.jackiewicz at gmail.com
Mon Oct 31 11:32:07 PDT 2016


Dnia 2016-10-31, o godz. 19:17:38
"Giuseppe Lippolis" <giu.lippolis at gmail.com> napisał(a):

> Hallo,
> I'm completing the support for the dlink dwr-512 adding the support for 3G.
> In order to enable the 3G modem the following step need to be performed:
> 
> 1) write '1' to the gpio18 (it should switch on the modem)

ucidef_add_gpio_switch in /etc/board.d/03_gpio_switches? 

> 2) echo '2001 7d04 ff' > /sys/bus/usb-serial/drivers/option1/new_id

[...]

> For the point 2. I read a potential solution is to add the cmd in
> /etc/rc.local, but why don't add a line like:
> static const struct usb_device_id option_ids[] = {
> 	{ USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWR512) },
> 	
> In linux/drivers/usb/serial/option.c ?

Yes, patch for driver should be better solution.

-- 
Pozdrawiam,
 Cezary Jackiewicz



More information about the Lede-dev mailing list