[LinuxPPS] Re: Can't configure multiple pps sources in ntpd

Rodolfo Giometti giometti at linux.it
Mon Oct 23 10:32:02 CEST 2006


On Mon, Oct 23, 2006 at 04:02:28AM -0400, linux at horizon.com wrote:
> [megasnip]
> 08:30:59: drivers/pps/pps.c: New message from PID 1984 (flags 0)
> 08:30:59: drivers/pps/pps.c: New message from PID 1984 (flags 0)
> 08:30:59: drivers/pps/pps.c: PPS_CREATE: source 0

Here NTPD ask for creating a new PPS source on PPS device 0 but I
can't see where it asks for the other source on device
1... strange... can you please adds more debugging prints into NTPD
driver?

Also. please, put these debugging messages into LinuxPPS:

git diff drivers/pps/pps.c
diff --git a/drivers/pps/pps.c b/drivers/pps/pps.c
index 5185389..55c07f9 100644
--- a/drivers/pps/pps.c
+++ b/drivers/pps/pps.c
@@ -247,6 +247,7 @@ #endif
 	 	}
 
 	 	case PPS_KC_BIND : {
+			dbg("PPS_KC_BIND: source %d", source);
 			/* Feature currently not supported */
 			nlpps->ret = -EOPNOTSUPP;
 
@@ -254,6 +255,7 @@ #endif
 	 	}
 
 		case PPS_FIND_SRC : {
+			dbg("PPS_FIND_SRC: source %d", source);
 			source = linuxpps_find_source(source);
 			if (source < 0) {
 				dbg("no PPS devices found");
@@ -273,6 +275,7 @@ #endif
 	 	}
 
 		case PPS_FIND_PATH : {
+			dbg("PPS_FIND_PATH: source %s", nlpps->path);
 			source = linuxpps_find_path(nlpps->path);
 			if (source < 0) {
 				dbg("no PPS devices found");

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list