Jump to content

Recommended Posts

Posted (edited)

Is there any CLI image new or old that already supports PPS? I'm not having progress using the default overlay (pps-gpio) or a custom one.

Edited by ang
Posted

Please use Zero2, not Zero3, and use my DTS overlay,  you can find it in other posts.

Posted

This is my config, maybe it will help you a little.

 

use UART5 to attach a GPS module, PPS connect to PC11 

 

/boot/armbianEnv.txt

overlay_prefix=sun50i-h616
overlays=uart5
user_overlays=pps-gpio
param_pps_pin=PC11

 

/etc/default/gpsd

 

# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyS1"

# Other options you want to pass to gpsd
GPSD_OPTIONS="-n -G"

# Automatically hot add/remove USB GPS devices via gpsdctl
USBAUTO="false"

 

/etc/chrony/conf.d/gpstime.conf

# for GPSD
refclock SHM 0 refid GPS precision 1e-1 offset 0.120 delay 0.2

# for GPSD PPS , worka
refclock PPS /dev/pps0 refid PPS

allow all

 

 

pps-gpio.dts:

/*
 * PPS-GPIO for H616
 *
 * for Zero2, use PC9
 * for Zero3, use PC11
 * for Zero2W, use PI5, not success
 *
 * feiyao@me.com
 */

/dts-v1/;
/plugin/;

/ {
	compatible = "allwinner,sun50i-h616";

	fragment@0 {
		target = <&pio>;
		__overlay__ {
        		pps_pins: pps_pins {
                  		pins = "PC11";  /*  Zero3 */
                  		function = "gpio_in";
        		};
		};
	};

	fragment@1 {
		target-path = "/";
		__overlay__ {
			pps@0 {
                		compatible = "pps-gpio";
                		pinctrl-names = "default";
				/* pinctrl-0 = <&pps_pins>; */
                		gpios = <&pio 2 11 0>;  /* PC11 @ Zero3 */
                		status = "okay";
			};
		};
        };
};

 

build and install pps-gpio.dts:

 

sudo armbian-add-overlay pps-gpio.dts

 

 

DSC07792.jpeg

截屏2025-08-08 09.50.04.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines