Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Dec 2009 21:56:14 GMT
From:      Alex Markelov <alex@makeitsimple.ie>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/142085: Few lines to pucdata.c to support for Teltonika PCI/G10 SMS modem
Message-ID:  <200912272156.nBRLuExC019718@www.freebsd.org>
Resent-Message-ID: <200912272200.nBRM0916022870@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         142085
>Category:       misc
>Synopsis:       Few lines to pucdata.c to support for Teltonika PCI/G10 SMS modem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 27 22:00:09 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Alex Markelov
>Release:        7.2-stable
>Organization:
makeITsimple
>Environment:
FreeBSD daemon.localdomain 7.2-STABLE FreeBSD 7.2-STABLE #0: Fri Dec 11 01:16:26 UTC 2009     root@daemon.localdomain:/usr/obj/usr/src/sys/NANOBUILD_PC  i386

>Description:
I have purchased Teltonika PCI/G10 SMS modem (http://www.teltonika.lt/en/pages/view/?id=8). It's based on NetMos NM9820 chipset, but FreeBSD doesn't have the device information in pucdata.c hence you can't see the device and its serial ports. 
I added the device information (see the attached diff) to pucdata.c, rebuilt kernel and was able to get the device working on 7.2-stable. I posted details to my wiki page http://markelov.org/wiki/index.php?title=Teltonika_ModemPCI/G10_under_FreeBSD
>How-To-Repeat:
It's a feature request rather than a bug report. Basically, if you have the modem handy, you can try and see that without the extra lines in pucdata.c you can't see the device and none of its serial ports is available to work with.
>Fix:
--- /usr/src/sys/dev/puc/pucdata.c	2009-12-10 06:24:16.000000000 +0000
+++ /root/pucdata.c	2009-12-17 07:01:38.000000000 +0000
@@ -749,6 +749,12 @@
 	 *
 	 * uart(4) will claim this device.
 	 */
+	{   0x9710, 0x9820, 0x1000, 1,
+	    "NetMos NM9820 Multi-I/O controller",
+	    DEFAULT_RCLK,
+	    PUC_PORT_2S, 0x10, 4, 0,
+	},
+
 	{   0x9710, 0x9835, 0x1000, 1,
 	    "NetMos NM9835 based 1-port serial",
 	    DEFAULT_RCLK,


Patch attached with submission follows:

--- /usr/src/sys/dev/puc/pucdata.c	2009-12-10 06:24:16.000000000 +0000
+++ /root/pucdata.c	2009-12-17 07:01:38.000000000 +0000
@@ -749,6 +749,12 @@
 	 *
 	 * uart(4) will claim this device.
 	 */
+	{   0x9710, 0x9820, 0x1000, 1,
+	    "NetMos NM9820 Multi-I/O controller",
+	    DEFAULT_RCLK,
+	    PUC_PORT_2S, 0x10, 4, 0,
+	},
+
 	{   0x9710, 0x9835, 0x1000, 1,
 	    "NetMos NM9835 based 1-port serial",
 	    DEFAULT_RCLK,


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912272156.nBRLuExC019718>