cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JPK17
Observer
Observer
306 Views
Registered: ‎03-11-2021

ppstest failed in petalinux.

Jump to solution

Hi,

I am using Arty-Z7-20, ZYNQ.

1]

r In my the Vivado v2020.2,  I have connected spi pin-out as normal gpio with AXI_GPIO IP block.

2]

I have included the below lines in system-user.dtsi

# for second channel

pps0 {
label = "pps0";
#gpio-cells = <3>;
gpios = <&axi_gpio_0 0 8 0>;
assert-rising-edge;
compatible = "pps-gpio";
};

# for first channel

pps1 {
label = "pps1";
gpios = <&axi_gpio_1 0 0 0>;
assert-rising-edge;
compatible = "pps-gpio";
};

 

3]

IMAGE_INSTALL_append = '' pps-tools'' #pps-tools has been included successfully.

 

4]

I have enabled the pps-gpio driver in the kernel.

 

5]

$ ls /dev

...

pps0
pps1 

...

 

6]

$ cat /proc/interrupts

...

49:      0      0      xgpio      0      Edge pps0.-1
53:      0      0      xgpio      0      Edge pps1.-1

...

 

7]

$ ppstest /dev/pps0

ok, found 1 source(s), now start fetching data...
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)

...

 

8]

$ ppstest /dev/pps1


trying PPS source "/dev/pps1"
found PPS source "/dev/pps1"
ok, found 1 source(s), now start fetching data...
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)

...

 

Where is the issue?

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
wfrederi
Participant
Participant
240 Views
Registered: ‎04-14-2020

Did you include all of  the following in your kernel configuration (particularly the last 2)?

CONFIG_PPS=y
CONFIG_PPS_CLIENT_LDISC=y
CONFIG_PPS_CLIENT_GPIO=y
CONFIG_GPIO_SYSFS=y

This is from the GPSD Time Service HOWTO web page.

One other note, in your third step, you indicate that you used IMAGE_INSTALL_append to include the pps_tools.  Per the PetaLinux reference guide, you should use CONFIG_pps-tools in project-spec/meta-user/conf/user_rootfsconfig and then include it using the user packages under petalinux-config -c rootfs.

View solution in original post

3 Replies
wfrederi
Participant
Participant
241 Views
Registered: ‎04-14-2020

Did you include all of  the following in your kernel configuration (particularly the last 2)?

CONFIG_PPS=y
CONFIG_PPS_CLIENT_LDISC=y
CONFIG_PPS_CLIENT_GPIO=y
CONFIG_GPIO_SYSFS=y

This is from the GPSD Time Service HOWTO web page.

One other note, in your third step, you indicate that you used IMAGE_INSTALL_append to include the pps_tools.  Per the PetaLinux reference guide, you should use CONFIG_pps-tools in project-spec/meta-user/conf/user_rootfsconfig and then include it using the user packages under petalinux-config -c rootfs.

View solution in original post

JPK17
Observer
Observer
210 Views
Registered: ‎03-11-2021

@wfrederi 

Thank you for replying.

I have already made the kernel configuration mentioned by you.

As far as I understood, IMAGE_INSTALL_append adds package/tool/application to rootfs too. So there is no requirement of adding CONFIG_pps-tools.

There some problem on the hardware side in my case.

Now, it solved.

Thank you again for your quick response.

JPK17

0 Kudos
ratin
Visitor
Visitor
58 Views
Registered: ‎02-22-2021

Hi JPK, Could you elaborate on how you came up with the gpios line:

gpios = <&axi_gpio_0 0 8 0>;

gpios = <&axi_gpio_1 0 0 0>;

For example, do these numbers correspond directly to mio pins mapped to PS as GPIOs?   

 

0 Kudos