Hello,

I am trying to timestamp external events (dmtimer PWM) with a Beaglebone
Black and kernel 4.9.65-rt23

I followed a guide here:
http://processors.wiki.ti.com/index.php/Linux_Core_CPSW_User%27s_Guide#Example_of_using_Time_stamp_external_events_on_am335x

When using testptp to read external time stamps i get the error below.

Do you have an idea what I am doing wrong? I am pretty new to Linux, so i
have possibly misunderstood something.

Thank you,
Mikkel

root@am335x-evm:/usr/bin/kselftests/ptp# ./testptp -e 1 -i 3
[  176.667610] PTP_CLK_REQ_EXTTS: index = 3, on = 1
[  176.672320] Unable to handle kernel NULL pointer dereference at virtual
address 00000014
[  176.683628] pgd = d79b4000
[  176.686355] [00000014] *pgd=9b5bf831, *pte=00000000, *ppte=00000000
[  176.694461] Internal error: Oops: 17 [#1] PREEMPT ARM
[  176.694553] Modules linked in: pvrsrvkm(O) usb_f_acm u_serial pru_rproc
pruss_intc pruss usb_f_ecm m)
[  176.694565] CPU: 0 PID: 995 Comm: testptp Tainted: G           O
4.9.65-rt23-g7069a470d5 #1
[  176.694568] Hardware name: Generic AM33XX (Flattened Device Tree)
[  176.694573] task: d7990d00 task.stack: d78aa000
[  176.694591] PC is at pinctrl_select_state+0xc/0x15c
[  176.694607] LR is at cpts_ptp_enable+0x110/0x278
[  176.694612] pc : [<c03e0838>]    lr : [<c057e6f8>]    psr: 200e0013
[  176.694612] sp : d78abcf0  ip : d78abd18  fp : d78abd14
[  176.694615] r10: 00000000  r9 : dc263074  r8 : 00000001
[  176.694619] r7 : 00000008  r6 : 00000001  r5 : 00000801  r4 : dc263020
[  176.694622] r3 : 00000801  r2 : 00000000  r1 : 00000000  r0 : 00000000
[  176.694628] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment
none
[  176.694632] Control: 10c5387d  Table: 979b4019  DAC: 00000051
[  176.694636] Process testptp (pid: 995, stack limit = 0xd78aa208)
[  176.694640] Stack: (0xd78abcf0 to 0xd78ac000)
[  176.694647] bce0:                                     dc263020 00000801
00000001 00000008
[  176.694655] bd00: 00000001 dc263074 d78abd3c d78abd18 c057e6f8 c03e0838
dc263020 00000000
[  176.694663] bd20: beb9c900 00000051 beb9c900 d78aa000 d78abedc d78abd40
c05d11f0 c057e5f4
[  176.694671] bd40: dc69e040 00000000 0fa00000 d78abdac dc69e040 dc69e080
db085900 db085900
[  176.694679] bd60: d78abd7c d78abd70 c015ea8c c01605bc d78abda4 d78abd80
c0186450 c015ea88
[  176.694687] bd80: 00000000 db21b410 00000003 00000001 00000000 00000000
c03ba90c c07937b8
[  176.694695] bda0: dbd108c0 c0997c18 dc613000 ffffffff d78abddc d78abdc0
c022f8ec c016f7d0
[  176.694703] bdc0: 00000000 ffffffff 00000000 00000000 d78abdec d78abde0
c022fabc c022f88c
[  176.694711] bde0: d78abe14 d78abdf0 c0218c28 c022fa9c 00000000 00000002
db802460 00000000
[  176.694719] be00: 00000000 d78abea8 d78abea4 d78abe18 c021cf78 c0218ba0
d78db688 00000040
[  176.694727] be20: d78abe5c d78db688 00000040 8fd3518f c0997b84 d78aa000
c01e5fa4 c0116a40
[  176.694735] be40: 00000000 d78abeb0 00000041 db085900 00000000 00000006
dce43f54 00000002
[  176.694742] be60: 00000002 db21b410 dc613010 dbd108c0 d798a234 00000000
d78abea4 00000003
[  176.694750] be80: d78abea8 d78abf5c 00000001 c0107dc4 d78aa000 00000000
dc69e000 dc69e080
[  176.694758] bea0: beb9c900 00000003 d78abec4 d78abeb8 c07915b0 40103d02
dc69e000 beb9c900
[  176.694766] bec0: 00000003 beb9c900 d78aa000 00000000 d78abefc d78abee0
c01862ac c05d0fac
[  176.694774] bee0: beb9c900 db21b410 db085900 00000003 d78abf7c d78abf00
c0220f04 c018627c
[  176.694782] bf00: db085908 c07937b8 c021db80 00000002 00000002 db77c000
db085900 db77c000
[  176.694789] bf20: 00000020 db085908 d78abf4c d78abf38 c021db30 c01fdd28
00000003 db085900
[  176.694797] bf40: d78abf94 d78abf50 c020d8e8 c021dad0 00000000 db085900
00000003 db085900
[  176.694805] bf60: 40103d02 beb9c900 d78aa000 00000000 d78abfa4 d78abf80
c02217ec c0220e68
[  176.694813] bf80: ffffffff 00000000 ffffffe3 00000036 c0107dc4 d78aa000
00000000 d78abfa8
[  176.694820] bfa0: c0107c00 c02217bc ffffffff 00000000 00000003 40103d02
beb9c900 00000000
[  176.694828] bfc0: ffffffff 00000000 ffffffe3 00000036 00022320 beb9cd95
000118ec 00000003
[  176.694836] bfe0: b6e76111 beb9c89c 000114f4 b6e76116 000e0030 00000003
00000000 00000000
[  176.694839] Backtrace:
[  176.694851] [<c03e082c>] (pinctrl_select_state) from [<c057e6f8>]
(cpts_ptp_enable+0x110/0x278)
[  176.694859]  r9:dc263074 r8:00000001 r7:00000008 r6:00000001 r5:00000801
r4:dc263020
[  176.694869] [<c057e5e8>] (cpts_ptp_enable) from [<c05d11f0>]
(ptp_ioctl+0x250/0x760)
[  176.694876]  r9:d78aa000 r8:beb9c900 r7:00000051 r6:beb9c900 r5:00000000
r4:dc263020
[  176.694888] [<c05d0fa0>] (ptp_ioctl) from [<c01862ac>]
(posix_clock_ioctl+0x3c/0x58)
[  176.694896]  r10:00000000 r9:d78aa000 r8:beb9c900 r7:00000003
r6:beb9c900 r5:dc69e000
[  176.694899]  r4:40103d02
[  176.694911] [<c0186270>] (posix_clock_ioctl) from [<c0220f04>]
(do_vfs_ioctl+0xa8/0x954)
[  176.694916]  r7:00000003 r6:db085900 r5:db21b410 r4:beb9c900
[  176.694923] [<c0220e5c>] (do_vfs_ioctl) from [<c02217ec>]
(SyS_ioctl+0x3c/0x64)
[  176.694930]  r10:00000000 r9:d78aa000 r8:beb9c900 r7:40103d02
r6:db085900 r5:00000003
[  176.694933]  r4:db085900
[  176.694948] [<c02217b0>] (SyS_ioctl) from [<c0107c00>]
(ret_fast_syscall+0x0/0x44)
[  176.694955]  r9:d78aa000 r8:c0107dc4 r7:00000036 r6:ffffffe3 r5:00000000
r4:ffffffff
[  176.694964] Code: e89da800 e1a0c00d e92ddbf0 e24cb004 (e5902014)
[  177.166363] ---[ end trace 0000000000000002 ]---
Segmentation fault

Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694461] Internal error: Oops: 17 [#1] PREEMPT ARM


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694636] Process testptp (pid: 995, stack limit =
0xd78aa208)


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694640] Stack: (0xd78abcf0 to 0xd78ac000)


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694647] bce0:
dc263020 00000801 00000001 0000008


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694655] bd00: 00000001 dc263074 d78abd3c d78abd18
c057e6f8 c03e0838 dc263020 0000000

root@am335x-evm:/usr/bin/kselftests/ptp#
Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694663] bd20: beb9c900 00000051 beb9c900 d78aa000
d78abedc d78abd40 c05d11f0 c057e54


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694671] bd40: dc69e040 00000000 0fa00000 d78abdac
dc69e040 dc69e080 db085900 db08590


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694679] bd60: d78abd7c d78abd70 c015ea8c c01605bc
d78abda4 d78abd80 c0186450 c015ea8


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694687] bd80: 00000000 db21b410 00000003 00000001
00000000 00000000 c03ba90c c079378


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694695] bda0: dbd108c0 c0997c18 dc613000 ffffffff
d78abddc d78abdc0 c022f8ec c016f70


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694703] bdc0: 00000000 ffffffff 00000000 00000000
d78abdec d78abde0 c022fabc c022f8c


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694711] bde0: d78abe14 d78abdf0 c0218c28 c022fa9c
00000000 00000002 db802460 0000000


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694719] be00: 00000000 d78abea8 d78abea4 d78abe18
c021cf78 c0218ba0 d78db688 0000000


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694727] be20: d78abe5c d78db688 00000040 8fd3518f
c0997b84 d78aa000 c01e5fa4 c0116a0


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694735] be40: 00000000 d78abeb0 00000041 db085900
00000000 00000006 dce43f54 0000002


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694742] be60: 00000002 db21b410 dc613010 dbd108c0
d798a234 00000000 d78abea4 0000003


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694750] be80: d78abea8 d78abf5c 00000001 c0107dc4
d78aa000 00000000 dc69e000 dc69e00


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694758] bea0: beb9c900 00000003 d78abec4 d78abeb8
c07915b0 40103d02 dc69e000 beb9c90


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694766] bec0: 00000003 beb9c900 d78aa000 00000000
d78abefc d78abee0 c01862ac c05d0fc


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694774] bee0: beb9c900 db21b410 db085900 00000003
d78abf7c d78abf00 c0220f04 c01862c


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694782] bf00: db085908 c07937b8 c021db80 00000002
00000002 db77c000 db085900 db77c00


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694789] bf20: 00000020 db085908 d78abf4c d78abf38
c021db30 c01fdd28 00000003 db08590


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694797] bf40: d78abf94 d78abf50 c020d8e8 c021dad0
00000000 db085900 00000003 db08590


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694805] bf60: 40103d02 beb9c900 d78aa000 00000000
d78abfa4 d78abf80 c02217ec c0220e8


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694813] bf80: ffffffff 00000000 ffffffe3 00000036
c0107dc4 d78aa000 00000000 d78abf8


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694820] bfa0: c0107c00 c02217bc ffffffff 00000000
00000003 40103d02 beb9c900 0000000


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694828] bfc0: ffffffff 00000000 ffffffe3 00000036
00022320 beb9cd95 000118ec 0000003


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694836] bfe0: b6e76111 beb9c89c 000114f4 b6e76116
000e0030 00000003 00000000 0000000


Broadcast message from systemd-journald@am335x-evm (Tue 2018-09-25 07:48:41
UTC):

kernel[333]: [  176.694964] Code: e89da800 e1a0c00d e92ddbf0 e24cb004
(e5902014)
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to