Skip to content

Instantly share code, notes, and snippets.

@shubhi1407
Created August 3, 2015 19:16
Show Gist options
  • Save shubhi1407/1ee6927f16b4c3664601 to your computer and use it in GitHub Desktop.
Save shubhi1407/1ee6927f16b4c3664601 to your computer and use it in GitHub Desktop.
vring working
root@arm:~# modprobe pruss_remoteproc
root@arm:~# dmesg
[ 81.949031] pruss-rproc 4a300000.pruss: 8 PRU interrupts parsed
[ 81.949415] pruss-rproc 4a300000.pruss: memory dram0: pa 0x4a300000 size 0x2000 va e1410000
[ 81.949486] pruss-rproc 4a300000.pruss: memory dram1: pa 0x4a302000 size 0x2000 va e1414000
[ 81.949550] pruss-rproc 4a300000.pruss: memory shrdram2: pa 0x4a310000 size 0x3000 va e1418000
[ 81.949609] pruss-rproc 4a300000.pruss: memory intc: pa 0x4a320000 size 0x2000 va e141c000
[ 81.949668] pruss-rproc 4a300000.pruss: memory cfg: pa 0x4a326000 size 0x2000 va e1420000
[ 81.950190] pruss-rproc 4a300000.pruss: creating platform devices for PRU cores
[ 81.964937] pru-rproc 4a334000.pru0: memory iram: pa 0x4a334000 size 0x2000 va e1424000
[ 81.965125] pru-rproc 4a334000.pru0: memory control: pa 0x4a322000 size 0x400 va e0d7e000
[ 81.965328] pru-rproc 4a334000.pru0: memory debug: pa 0x4a322400 size 0x100 va e1428400
[ 81.966039] remoteproc1: 4a334000.pru0 is available
[ 81.966079] remoteproc1: Note: remoteproc is still under development and considered experimental.
[ 81.966108] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 81.974934] pru-rproc 4a334000.pru0: booting the PRU core manually
[ 81.974996] remoteproc1: powering up 4a334000.pru0
[ 81.975508] remoteproc1: Booting fw image rproc-pru0-fw, size 37812
[ 81.975672] pru-rproc 4a334000.pru0: version 0 event_chnl_map_size 3 event_chnl_map 00000108
[ 81.975716] pru-rproc 4a334000.pru0: sysevt-to-ch[16] -> 1
[ 81.975751] pru-rproc 4a334000.pru0: sysevt-to-ch[17] -> 3
[ 81.975784] pru-rproc 4a334000.pru0: sysevt-to-ch[32] -> 3
[ 81.975816] pru-rproc 4a334000.pru0: skip intr mapping for chnl 0
[ 81.975849] pru-rproc 4a334000.pru0: chnl-to-host[1] -> 1
[ 81.975881] pru-rproc 4a334000.pru0: chnl-to-host[2] -> 2
[ 81.975913] pru-rproc 4a334000.pru0: chnl-to-host[3] -> 3
[ 81.975943] pru-rproc 4a334000.pru0: skip intr mapping for chnl 4
[ 81.975974] pru-rproc 4a334000.pru0: skip intr mapping for chnl 5
[ 81.976004] pru-rproc 4a334000.pru0: skip intr mapping for chnl 6
[ 81.976035] pru-rproc 4a334000.pru0: skip intr mapping for chnl 7
[ 81.976066] pru-rproc 4a334000.pru0: skip intr mapping for chnl 8
[ 81.976096] pru-rproc 4a334000.pru0: skip intr mapping for chnl 9
[ 81.976137] pruss-rproc 4a300000.pruss: SYSEV16 -> CH1 (CMR4 0x00000001)
[ 81.976173] pruss-rproc 4a300000.pruss: SYSEV17 -> CH3 (CMR4 0x00000301)
[ 81.976209] pruss-rproc 4a300000.pruss: SYSEV32 -> CH3 (CMR8 0x00000003)
[ 81.976247] pruss-rproc 4a300000.pruss: CH1 -> HOST1 (HMR0 0x00000100)
[ 81.976283] pruss-rproc 4a300000.pruss: CH2 -> HOST2 (HMR0 0x00020100)
[ 81.976319] pruss-rproc 4a300000.pruss: CH3 -> HOST3 (HMR0 0x03020100)
[ 81.976356] pruss-rproc 4a300000.pruss: configured system_events = 0x0000000100030000 intr_channels = 0x0000000e host_intr = 0x0000000e
[ 81.976391] remoteproc1: starting PRU0: entry-point = 0x0
[ 81.976420] remoteproc1: remote processor 4a334000.pru0 is now up
[ 81.976501] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss@4a300000/pru@4a334000 probed successfully
[ 81.977305] pru-rproc 4a338000.pru1: memory iram: pa 0x4a338000 size 0x2000 va e1440000
[ 81.977610] pru-rproc 4a338000.pru1: memory control: pa 0x4a324000 size 0x400 va e1444000
[ 81.977680] pru-rproc 4a338000.pru1: memory debug: pa 0x4a324400 size 0x100 va e1446400
[ 81.978364] remoteproc2: 4a338000.pru1 is available
[ 81.978398] remoteproc2: Note: remoteproc is still under development and considered experimental.
[ 81.978425] remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 81.980044] remoteproc2: registered virtio0 (type 7)
[ 82.062298] remoteproc2: powering up 4a338000.pru1
[ 82.063953] remoteproc2: Booting fw image rproc-pru1-fw, size 39544
[ 82.064078] remoteproc2: starting PRU1: entry-point = 0x0
[ 82.064095] remoteproc2: remote processor 4a338000.pru1 is now up
[ 82.064429] virtio_rpmsg_bus virtio0: buffers: va de086000, dma rx 0x9e086000
[ 82.064429] dma tx 0x9e087000
[ 82.064455] virtio_rpmsg_bus virtio0: rx buffer va: de086000
[ 82.064455] tx buffer va: de087000
[ 82.064511] remoteproc2: kicking vqid 0 on PRU1
[ 82.064567] virtio_rpmsg_bus virtio0: hello ji
[ 82.064583] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 82.192871] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss@4a300000/pru@4a338000 probed successfully
[ 83.064214] pru-rproc 4a334000.pru0: Currently searching vdev for PRU-0
[ 83.064274] pru-rproc 4a338000.pru1: Currently searching vdev for PRU-1
[ 83.064311] pru-rproc 4a338000.pru1: PRU-1 has vdev
[ 83.064336] irq recieved 37
[ 83.064373] Custom rx callback executed
[ 83.064406] length of data 12 bytes. Data :99
[ 83.064441] length of data 12 bytes. Data :99
[ 83.064469] length of data 12 bytes. Data :99
[ 83.064497] length of data 12 bytes. Data :99
[ 83.064524] length of data 12 bytes. Data :99
[ 83.064546] vring irq handled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment