All Projects → jsln → pps-gen-gpio

jsln / pps-gen-gpio

Licence: GPL-2.0 License
Linux kernel PPS generator using GPIO pins

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to pps-gen-gpio

w1-gpio-cl
Command line configured kernel mode 1-wire bus master driver. w1-gpio standard Linux module enhancement/substitution.
Stars: ✭ 17 (-32%)
Mutual labels:  kernel, driver, gpio-pins
Pubg Pak Hacker
use windows kernel deriver hidden file and itself to Bypass BE
Stars: ✭ 157 (+528%)
Mutual labels:  kernel, driver
Awesome Windows Security Development
awesome-windows-security-development
Stars: ✭ 154 (+516%)
Mutual labels:  kernel, driver
Ksocket
KSOCKET provides a very basic example how to make a network connections in the Windows Driver by using WSK
Stars: ✭ 183 (+632%)
Mutual labels:  kernel, driver
Deos
The distributed exokernel operating system
Stars: ✭ 80 (+220%)
Mutual labels:  kernel, driver
Windows Kernel Explorer
A free but powerful Windows kernel research tool.
Stars: ✭ 1,299 (+5096%)
Mutual labels:  kernel, driver
Garhal csgo
A project that demonstrates how to screw with CSGO from Kernel Space. (CSGO Kernel Cheat/Hack) All cleaned up, and with updated offsets.
Stars: ✭ 179 (+616%)
Mutual labels:  kernel, driver
Winspd
Windows Storage Proxy Driver - User mode disk storage
Stars: ✭ 335 (+1240%)
Mutual labels:  kernel, driver
Wmi Static Spoofer
Spoofing the Windows 10 HDD/diskdrive serialnumber from kernel without hooking
Stars: ✭ 199 (+696%)
Mutual labels:  kernel, driver
fix-linux-mouse
Hints how to fix USB mouse issues on Linux
Stars: ✭ 36 (+44%)
Mutual labels:  kernel, driver
Ntphp
Ever wanted to execute PHP in your kernel driver? Look no further!
Stars: ✭ 76 (+204%)
Mutual labels:  kernel, driver
Driver.NET
Lightweight and flexible library to load and communicate with kernel drivers on Windows.
Stars: ✭ 59 (+136%)
Mutual labels:  kernel, driver
Hidden
Windows driver with usermode interface which can hide objects of file-system and registry, protect processes and etc
Stars: ✭ 768 (+2972%)
Mutual labels:  kernel, driver
Hacksysextremevulnerabledriver
HackSys Extreme Vulnerable Windows Driver
Stars: ✭ 1,330 (+5220%)
Mutual labels:  kernel, driver
Pplkiller
Protected Processes Light Killer
Stars: ✭ 453 (+1712%)
Mutual labels:  kernel, driver
Ioctlbf
Windows Kernel Drivers fuzzer
Stars: ✭ 170 (+580%)
Mutual labels:  kernel, driver
Razer Laptop Control
Project to create driver/software to control performance of razer laptops
Stars: ✭ 268 (+972%)
Mutual labels:  kernel, driver
Winfsp
Windows File System Proxy - FUSE for Windows
Stars: ✭ 4,071 (+16184%)
Mutual labels:  kernel, driver
Vulnerable Kext
A WIP "Vulnerable by Design" kext for iOS/macOS to play & learn *OS kernel exploitation
Stars: ✭ 188 (+652%)
Mutual labels:  kernel, driver
KMAC
Some usefull info when reverse engineering Kernel Mode Anti-Cheat
Stars: ✭ 31 (+24%)
Mutual labels:  kernel, driver

pps-gen-gpio

Linux kernel PPS generator using GPIO pins.

In kernel 4.14 there is no support for using a GPIO pin as a PPS generator, only a GPIO PPS client is available. This driver is derived from the current parallel port PPS generator and provides a PPS signal through a GPIO pin specified in the device tree. The PPS signal is synchronized to the tv_sec increment of the wall clock.

We have tested the driver with kernel 4.14.20 on a Beaglebone Black where P9 pin 16 (GPIO1_19) is used as PPS output. The corresponding modified device tree file is here shown.

Usage

If you use a Beaglebone Black and want to change the PPS output pin, you have to modify your device tree file (am335x-boneblack.dts) accordingly:

  • Make sure you have the right pin multiplexing setting:

      pps_gen_pins: pinmux_pps_gen_pins {
      	pinctrl-single,pins = <
      		0x4C (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.gpio1_19 */
    

Check the BBB System Reference Manual and the am335x Technical Reference Manual to find out the correct pinmux table offset of the chosen pin.

  • The pps-gen-gpios property defines the pin you want to use as a PPS output:

      pps-gen {
      		pinctrl-names = "default";
      		pinctrl-0 = <&pps_gen_pins>;
      		compatible = "pps-gen-gpio";
      		pps-gen-gpio = <&gpio1 19 GPIO_ACTIVE_HIGH>;
      		default-state = "off";
    

Please note that in order to use the module with any other board using the device tree infrastructure, the following matching definitions are required in the device tree:

	pps-gen               node defined for the PPS GPIO
	pps-gen-gpio          value of ".compatible" property in pps-gen node
	pps-gen-gpio          property in pps-gen node that defines which GPIO pin is used

After modifying the device tree, add the files into drivers/pps/generators and configure the driver to be built as a module. You need to enable PPS support in the kernel.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].