Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
debian@beaglebone:~/PRUSS-Bindings/examples/firmware_examples/example9-multichannel-waveform-gen$ ./userspace.o
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.544410] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.651471] Process prussd.py (pid: 2103, stack limit = 0xdaab0218)
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.657767] Stack: (0xdaab1f00 to 0xdaab2000)
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.662150] 1f00: bf1ab248 daa2e600 b5503b38 daab1f68 daab1f34 daab1f20 c02f9258 bf1ab254
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.670367] 1f20: 00000004 daa2e600 daab1f64 daab1f38 c02f943c c02f923c c031b088 c031af50
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.678585] 1f40: c1504dc8 daa2e601 00000000 00000000 daa2e600 b5503b38 daab1fa4 daab1f68
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.686802] 1f60: c02f96a4 c02f9394 00000000 00000000 daab1fa4 322c3fc2 c030e73c b5eff940
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.695018] 1f80: 00707000 b6fecce8 00000004 c01090e4 daab0000 00000000 00000000 daab1fa8
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.703236] 1fa0: c0108f00 c02f9654 b5eff940 00707000 00000005 b5503b38 00000004 00000000
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.711454] 1fc0: b5eff940 00707000 b6fecce8 00000004 b5503b38 00000004 00707000 b5f00be0
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.719671] 1fe0: 00000000 b5efdfd8 00000000 b6fad410 00000030 00000005 00000000 00000000
Message from syslogd@beaglebone at Aug 19 20:37:04 ...
kernel:[ 3182.758834] Code: 1a000012 e5953000 e1a02004 e59f1080 (e59301dc)
^[[B^C
debian@beaglebone:~/PRUSS-Bindings/examples/firmware_examples/example9-multichannel-waveform-gen$ dmesg
[ 3182.306960] remoteproc remoteproc2: powering up 4a338000.pru
[ 3182.320525] remoteproc remoteproc2: Booting fw image am335x-pru1-fw, size 74672
[ 3182.321197] pruss 4a300000.pruss: configured system_events[63-0] = 0x00000000.000c0000
[ 3182.321211] pruss 4a300000.pruss: configured intr_channels = 0x0000000a host_intr = 0x0000000a
[ 3182.329704] remoteproc remoteproc2: registered virtio0 (type 7)
[ 3182.329724] remoteproc remoteproc2: remote processor 4a338000.pru is now up
[ 3182.442030] virtio_rpmsg_bus virtio0: creating channel rpmsg-pru addr 0x1f
[ 3182.445608] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 3182.507885] Unable to handle kernel NULL pointer dereference at virtual address 000001dc
[ 3182.517119] rpmsg_pru virtio0.rpmsg-pru.-1.31: new rpmsg_pru device: /dev/rpmsg_pru31
[ 3182.526077] pgd = dc668000
[ 3182.537215] [000001dc] *pgd=00000000
[ 3182.544410] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 3182.549770] Modules linked in: rpmsg_pru virtio_rpmsg_bus rpmsg_core pruss_soc_bus evdev uio_pdrv_genirq uio 8021q garp mrp stp llc usb_f_mass_storage usb_f_acm u_serial usb_f_ecm usb_f_rndis u_ether iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat libcomposite nf_conntrack iptable_mangle iptable_filter spidev pru_rproc pruss pruss_intc ip_tables x_tables
[ 3182.582806] CPU: 0 PID: 2103 Comm: prussd.py Not tainted 4.14.71-ti-r80 #1
[ 3182.589711] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 3182.595833] task: db01de00 task.stack: daab0000
[ 3182.600404] PC is at rpmsg_pru_write+0x80/0x108 [rpmsg_pru]
[ 3182.606002] LR is at 0x35
[ 3182.608632] pc : [<bf1ab2c8>] lr : [<00000035>] psr: 60000013
[ 3182.614926] sp : daab1f00 ip : 0000001c fp : daab1f1c
[ 3182.620172] r10: 00000004 r9 : b5503b38 r8 : 00000000
[ 3182.625419] r7 : daab1f68 r6 : 00000051 r5 : db7e9210 r4 : 00000004
[ 3182.631975] r3 : 00000000 r2 : 00000004 r1 : bf1ad2c4 r0 : 00000000
[ 3182.638533] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 3182.645700] Control: 10c5387d Table: 9c668019 DAC: 00000051
[ 3182.651471] Process prussd.py (pid: 2103, stack limit = 0xdaab0218)
[ 3182.657767] Stack: (0xdaab1f00 to 0xdaab2000)
[ 3182.662150] 1f00: bf1ab248 daa2e600 b5503b38 daab1f68 daab1f34 daab1f20 c02f9258 bf1ab254
[ 3182.670367] 1f20: 00000004 daa2e600 daab1f64 daab1f38 c02f943c c02f923c c031b088 c031af50
[ 3182.678585] 1f40: c1504dc8 daa2e601 00000000 00000000 daa2e600 b5503b38 daab1fa4 daab1f68
[ 3182.686802] 1f60: c02f96a4 c02f9394 00000000 00000000 daab1fa4 322c3fc2 c030e73c b5eff940
[ 3182.695018] 1f80: 00707000 b6fecce8 00000004 c01090e4 daab0000 00000000 00000000 daab1fa8
[ 3182.703236] 1fa0: c0108f00 c02f9654 b5eff940 00707000 00000005 b5503b38 00000004 00000000
[ 3182.711454] 1fc0: b5eff940 00707000 b6fecce8 00000004 b5503b38 00000004 00707000 b5f00be0
[ 3182.719671] 1fe0: 00000000 b5efdfd8 00000000 b6fad410 00000030 00000005 00000000 00000000
[ 3182.727946] [<bf1ab2c8>] (rpmsg_pru_write [rpmsg_pru]) from [<c02f9258>] (__vfs_write+0x28/0x48)
[ 3182.736782] [<c02f9258>] (__vfs_write) from [<c02f943c>] (vfs_write+0xb4/0x1c0)
[ 3182.744129] [<c02f943c>] (vfs_write) from [<c02f96a4>] (SyS_write+0x5c/0xbc)
[ 3182.751223] [<c02f96a4>] (SyS_write) from [<c0108f00>] (ret_fast_syscall+0x0/0x54)
[ 3182.758834] Code: 1a000012 e5953000 e1a02004 e59f1080 (e59301dc)
[ 3182.808667] ---[ end trace 0679d06a9948acca ]---
debian@beaglebone:~/PRUSS-Bindings/examples/firmware_examples/example9-multichannel-waveform-gen$ ./userspace2.o
// Now all the values are sent through rpmsg_pru31 and stored in PRU SRAM properly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment