pedronf65 / openpowerlink_v2 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from openautomationtechnologies/openpowerlink_v2
Release 2 of the openPOWERLINK protocol stack
License: Other
This project forked from openautomationtechnologies/openpowerlink_v2
Release 2 of the openPOWERLINK protocol stack
License: Other
After a quick code fix the driver compiles now but I have a memory fault, the logs below...
$ sudo insmod demo_powerlinkfecmn.ko
[56449.645550] PLK: powerlinkInit() Driver build: Mar 2 2016 / 13:37:58
[56449.652111] PLK: powerlinkInit() Stack version: V2.3.1
[56449.657357] Allocated major number: 240
$ lsmod
Module Size Used by
demo_powerlinkfecmn 174356 0
$ modinfo ../oplkdrv_kernelmodule_edrv/demo_powerlinkfecmn.ko
filename: /home/pedro/dev/openPOWERLINK2/bin/linux/armv7l/demo_cn_console/../oplkdrv_kernelmodule_edrv/demo_powerlinkfecmn.ko
license: GPL
description: openPOWERLINK driver
author: [email protected]
license: Dual BSD/GPL
depends:
vermagic: 4.4.2-2-rt7-ARCH SMP preempt mod_unload modversions ARMv7 p2v8
$ sudo ./demo_cn_console
---------------------------------[ 506.323003] PLK: + powerlinkOpen...-------------------
openPOWERLINK console CN DEMO application
2016/03/05-----------------------------------------------------
[ 506.328758] PLK: + powerlinkOpen - OK
[ 506.338284] (edrv_init) Registering the driver to the kernel...
[ 506.347020] fec_imx51: FEC ethernet driver initialized
[ 506.354910] fec_imx51: MAC = 00:00:00:00:00:00
[ 506.359574] Unable to handle kernel NULL pointer dereference at virtual address 000000e4
[ 506.370512] pgd = edf48000
[ 506.373226] [000000e4] *pgd=3d981831, *pte=00000000, *ppte=00000000
11:22:07 INFO GENERIC [ 506.379556] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[ 506.379623] Modules linked in: demo_powerlinkfecmn(O) ccm snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi uvcvideo snd_seq_device caam_jr micrel snd_soc_fsl_asrc snd_soc_core snd_pcm_dmaengine ac97_bus snd_pcm caam snd_timer imx_ipu_v3 dw_hdmi_imx etnaviv uio_pdrv_genirq imxdrm uio evdev joydev mousedev arc4 rt2800usb rt2x00usb rt2800lib rt2x00lib mac80211 cfg80211 crc_ccitt rfkill sch_fq_codel ip_tables x_tables [last unloaded: fec]
[ 506.379632] CPU: 1 PID: 1163 Comm: demo_cn_console Tainted: G R O 4.4.3-2-rt9-ARCH #1
[ 506.379635] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[ 506.379641] task: edb9f800 ti: eba76000 task.ti: eba76000
[ 506.379733] PC is at edrv_getMacAddr+0x4c/0xbc [demo_powerlinkfecmn]
[ 506.379798] LR is at ctrlk_executeCmd+0xf8/0x240 [demo_powerlinkfecmn]
[ 506.379805] pc : [<bf39b684>] lr : [<bf39cb30>] psr: 600e0013
[ 506.379805] sp : eba77e58 ip : c10e7e48 fp : eba77e74
[ 506.379809] r10: 00000000 r9 : 00000001 r8 : bf3af1e4
[ 506.379813] r7 : eba77ec4 r6 : 00000000 r5 : c10e7e48 r4 : eba77ec2
[ 506.379817] r3 : 00000000 r2 : bf3aec40 r1 : 00000000 r0 : 00000000
[ 506.379823] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 506.379828] Control: 10c5387d Table: 3df4804a DAC: 00000051
[ 506.379832] Process demo_cn_console (pid: 1163, stack limit = 0xeba76220)
[ 506.379837] Stack: (0xeba77e58 to 0xeba78000)
[ 506.379844] 7e40: dc8ba603 dc8ba603
[ 506.379853] 7e60: eba77ec2 dc8ba603 eba77ebc eba77e78 bf39cb30 bf39b644 00000000 00000000
[ 506.379862] 7e80: bf39f360 00000000 bf3af1f0 dc8ba603 00000000 bedd3b38 c10e7e48 00000000
[ 506.379872] 7ea0: 00000051 bedd3b38 00000003 c10e7e48 eba77f04 eba77ec0 bf39bf58 bf39ca44
[ 506.379880] 7ec0: 00000000 c007a35c eba77eec eba77ed8 00000001 c0078dd0 ecf8e5a0 c01c71e4
[ 506.379890] 7ee0: eeedff00 dc8ba603 bedd3b38 ed990da8 ebc10b00 c0043d00 eba77f7c eba77f08
[ 506.379899] 7f00: c01b9b78 bf39bdfc eba77f24 eba77f18 c01c73a8 c01c71a4 eba77f5c eba77f28
[ 506.379909] 7f20: c01a9d00 c01c7380 00000020 00000000 eba77f54 edb9f800 00000000 c121ed84
[ 506.379919] 7f40: eba76000 c000fe04 eba76000 dc8ba603 eba77f6c 00000000 ebc10b00 ebc10b00
[ 506.379927] 7f60: c0043d00 bedd3b38 00000003 00000000 eba77fa4 eba77f80 c01b9cc8 c01b95b8
[ 506.379936] 7f80: 0003024c 00000000 00014e68 00000036 c000fe04 eba76000 00000000 eba77fa8
[ 506.379946] 7fa0: c000fc40 c01b9c78 0003024c 00000000 00000003 c0043d00 bedd3b38 00000003
[ 506.379954] 7fc0: 0003024c 00000000 00014e68 00000036 00000000 00000000 b6f44fb4 bedd3b44
[ 506.379963] 7fe0: 0004417c bedd3b2c 00029470 b6e478bc 600e0010 00000003 00000000 00000000
[ 506.380105] [<bf39b684>] (edrv_getMacAddr [demo_powerlinkfecmn]) from [<bf39cb30>] (ctrlk_executeCmd+0xf8/0x240 [demo_powerlinkfecmn])
[ 506.380217] [<bf39cb30>] (ctrlk_executeCmd [demo_powerlinkfecmn]) from [<bf39bf58>] (powerlinkIoctl+0x168/0x4f0 [demo_powerlinkfecmn])
[ 506.380291] [<bf39bf58>] (powerlinkIoctl [demo_powerlinkfecmn]) from [<c01b9b78>] (do_vfs_ioctl+0x5cc/0x6c0)
[ 506.380305] [<c01b9b78>] (do_vfs_ioctl) from [<c01b9cc8>] (SyS_ioctl+0x5c/0x84)
[ 506.380324] [<c01b9cc8>] (SyS_ioctl) from [<c000fc40>] (ret_fast_syscall+0x0/0x44)
[ 506.380335] Code: e1d300b4 e1901001 1a00000b e5923000 (e59330e4)
demo_cn_console: Stack Version:V2[ 506.683323] ---[ end trace 0000000000000002 ]---
.3.1 Stack Configuration:0x000000[ 506.691193] PLK: + powerlinkRelease...
[ 506.697410] PLK: + powerlinkRelease - OK
02
Initializing openPOWERLINK stack...
2016/03/05-11:22:07 INFO CONTROL Initializing openPOWERLINK stack
Kernel features: 0x0000001b
Usable features: 0x00000002
Kernel version: 0x02030100
Segmentation fault
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.