Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GPS PPS�GPIO on H3

Featured Replies

I want to build a GPS timeserver like 

 

http://rdlazaro.info/compu-Raspberry_Pi-RPi-stratum0.html

 

I modified the kernel config to use the pps-gpio module in kernel , but since H3 linux kernel don't support device tree yet, Is there any method to assign a GPIO pin to this module ? I don't want to hard-code in the source code .

whatever,is there any method?

Maybe I can add a pps-gpio section in .dts file in u-boot source?

Thank you for your advice.

I plug the GPS module PPS output to OPiOne's GPIO pin PG09,

 

modify fex file to release PG09 from GPIO,

 

and then run gpsd,  PPS worked!  

 

It's very strange, no any device tree setup.

You're so humor. 

 

The default kernel for Armbian on H3 is 3.4.112 .

 

At last, I found this https://github.com/infinet/bananapi.git , very amazing.

Now, It looks like this :

post-1204-0-24641700-1463802975_thumb.jpg

modify fex file like this:

 

[uart1]

uart_used = 1
uart_port = 1
# 2 for 2-wire
uart_type = 2
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
 
[gpio_para]
gpio_used = 1
gpio_num = 16
...
#gpio_pin_17 = port:PG09<0><default><default><0>
 
#for UART1
#gpio_pin_18 = port:PG06<1><default><default><default>
#gpio_pin_19 = port:PG07<1><default><default><default>

o, PG09 is GPIO 201, so 

yaofei@opigps:/etc$ more modprobe.d/pps-gpio.conf
#PG9 = 32*6 + 9 = 201
options pps-gpio gpio_pin=201

Wow :)

 

What is then the algorithm counting pins?

 

PA = 0

PB = 1

PC = 2

PD = 3

PE = 4

PF = 5

PG = 6

 

Physical pin 18 this PC07 pin H3

PC07 = 32*2 + 7 = 71

This is the correct understanding?

Wow :)

 

What is then the algorithm counting pins?

 

PA = 0

PB = 1

PC = 2

PD = 3

PE = 4

PF = 5

PG = 6

 

Physical pin 18 this PC07 pin H3

PC07 = 32*2 + 7 = 71

This is the correct understanding?

 

Yeah, you're so smart .

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.