Advertisement
dhruvag2000

devmem-steps

Aug 8th, 2021
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.21 KB | None | 0 0
  1. root@beaglebone:~# ./devmem2 0x4A0028D6 h
  2. /dev/mem opened.
  3. Memory mapped at address 0xb6fe2000.
  4. Value at address 0x4A0028D6 (0xb6fe28d6): 0x8
  5. root@beaglebone:~# ./devmem2 0x4A0028D4 h
  6. /dev/mem opened.
  7. Memory mapped at address 0xb6f3c000.
  8. Value at address 0x4A0028D4 (0xb6f3c8d4): 0x7
  9. # Now writing the values:
  10. root@beaglebone:~# ./devmem2 0x4A0028D4 h 0x67
  11. /dev/mem opened.
  12. Memory mapped at address 0xb6f00000.
  13. Value at address 0x4A0028D4 (0xb6f008d4): 0x7
  14. Written 0x67; readback 0x67
  15. root@beaglebone:~# ./devmem2 0x4A0028D6 h 0x68
  16. /dev/mem opened.
  17. Memory mapped at address 0xb6f11000.
  18. Value at address 0x4A0028D6 (0xb6f118d6): 0x8
  19. Written 0x68; readback 0x68
  20. # MII RT Part:
  21. root@beaglebone:~# ./devmem2 0x4B22602C w 0xB1
  22. /dev/mem opened.
  23. Memory mapped at address 0xb6f29000.
  24. Value at address 0x4B22602C (0xb6f2902c): 0x0
  25. Written 0xB1; readback 0x1
  26.  
  27. ##
  28. root@beaglebone:~# ./devmem2 0x4B220028 w 0x26
  29. /dev/mem opened.
  30. Memory mapped at address 0xb6f86000.
  31. Value at address 0x4B220028 (0xb6f86028): 0x0
  32. Written 0x26; readback 0x0
  33. root@beaglebone:~# ./devmem2 0x4B220028 w 0x27
  34. /dev/mem opened.
  35. Memory mapped at address 0xb6f76000.
  36. Value at address 0x4B220028 (0xb6f76028): 0x0
  37. Written 0x27; readback 0x0
  38.  
  39.  
  40. ##
  41. root@beaglebone:~# ./devmem2 0x4B220408 w 0x9
  42. /dev/mem opened.
  43. Memory mapped at address 0xb6f40000.
  44. Value at address 0x4B220408 (0xb6f40408): 0x0
  45. Written 0x9; readback 0x9
  46.  
  47. ## Finally run the example
  48. root@beaglebone:~/testBela# make PROJECT=sinetone CL=-v run AT= BELA_USE_DEFINE=BELA_USE_POLL
  49. Automatically detected PROJECT_TYPE: cpp
  50. Running on __buster__ with Xenomai __3__
  51. BOARD IS_AM572x? 1
  52. systemctl stop bela_startup || true
  53. Failed to stop bela_startup.service: Unit bela_startup.service not loaded.
  54. PID=`grep bela-audio /proc/xenomai/sched/stat | cut -d " " -f 5 | sed s/\s//g`; if [ -z $PID ]; then [ false = true ] || echo "No process to kill"; else [ false = true ] || echo "Killing old Bela process $PID"; kill -2 $PID; sleep 0.2; kill -9 $PID 2> /dev/null; fi; screen -X -S Bela quit > /dev/null; exit 0;
  55. No process to kill
  56. killall scsynth 2>/dev/null& killall sclang 2>/dev/null& true
  57. echo "Running" /root/testBela/projects/sinetone/sinetone -v
  58. Running /root/testBela/projects/sinetone/sinetone -v
  59. sync& cd /root/testBela/projects/sinetone && /root/testBela/projects/sinetone/sinetone -v
  60. Xenomai not explicitly inited
  61. Xenomai is going to be inited by us
  62. Bela_initAudio()
  63. Starting with period size 16 ;analog enabled
  64. DAC level 99999997952.000000 dB; ADC level 99999997952.000000 dB; headphone level 99999997952.000000 dB
  65. could not open EEPROM for reading
  66. Detected hardware: Bela
  67. Hardware specified at the command line: NoHardware
  68. Hardware specified in the user's belaconfig: NoHardware
  69. Hardware to be used: Bela
  70. Codec mode: 0 ()
  71. fifoFactor: 1
  72. core audioFrames: 16
  73. Project name: sinetone
  74. PRU memory mapped to ARM:
  75. digital: 0xb6309000 0xb6309400
  76. audio: 0xb630a000 0xb630a040 0xb630a080 0xb630a0c0
  77. analog: 0xb6fd0000 0xb6fd0080 0xb6fd0100 0xb6fd0180
  78. analog offset: 0xcc8000 0xcc8080 0xcc8100 0xcc8180
  79. Bela_startAudio
  80. startAudioInilne
  81. AudioCodec parameters:
  82. slotSize: 16
  83. startingSlot: 0
  84. bitDelay: 0
  85. mclk: 2e+07
  86. samplingRate: 44100
  87. dualRate: 0
  88. tdmMode: 1
  89. bclk: 1
  90. wclk: 1
  91. MCLK: 20.0000 MHz, fs(ref): 44100.0000, P: 2, R: 1, J: 9, D: 317, Achieved Fs: 44100.097656 (err: 0.0002%),
  92. Mcasp parameters:
  93. inChannels: 2
  94. outChannels: 2
  95. inSerializers: {10}
  96. outSerializers: {11}
  97. numSlots: 2
  98. slotSize: 16
  99. dataSize: 16
  100. bitDelay: 0
  101. auxClkIn: 2e+07
  102. ahclkFreq: 2e+07
  103. ahclkIsInternal: 1
  104. wclkIsInternal: 0
  105. wclkIsWord: 0
  106. wclkFalling: 0
  107. externalSamplesRisingEdge: 0
  108. McaspConfig: error while setting input channels
  109. McaspConfig: error while setting output channels
  110. Mcasp registers:
  111. pdir: 0x08000000
  112. rmask: 0x0000ffff
  113. rfmt: 0x00008070
  114. afsrctl: 0x00000100
  115. aclkrctl: 0x00000000
  116. ahclkrctl: 0x00008000
  117. rtdm: 0x00000003
  118. xmask: 0x0000ffff
  119. xfmt: 0x00008074
  120. afsxctl: 0x00000100
  121. aclkxctl: 0x00000000
  122. ahclkxctl: 0x00008000
  123. xtdm: 0x00000003
  124. srctln: 0x00000000
  125. wfifoctl: 0x00010101
  126. rfifoctl: 0x00010101
  127. McaspConfig: error while setting input channels
  128. McaspConfig: error while setting output channels
  129. Using McASP->PRU irq
  130. Using McASP IRQ embedded PRU firmware
  131. Stopping PRU1_1
  132. Loading firmware into PRU1_1: /lib/firmware/am57xx-pru1_1-fw symlinked from /root/testBela/build/pru/pru_rtaudio_irq.out
  133. Starting PRU1_1
  134. _________________Audio Thread!
  135. audio frame 0, errorCode: 1
  136. PRU event loop timed out
  137. audio frame 16, errorCode: 1
  138. PRU event loop timed out
  139. audio frame 32, errorCode: 1
  140. PRU event loop timed out
  141. audio frame 48, errorCode: 1
  142. PRU event loop timed out
  143. audio frame 64, errorCode: 1
  144. PRU event loop timed out
  145. audio frame 80, errorCode: 1
  146. PRU event loop timed out
  147. audio frame 96, errorCode: 1
  148. PRU event loop timed out
  149. audio frame 112, errorCode: 1
  150. PRU event loop timed out
  151. audio frame 128, errorCode: 1
  152. PRU event loop timed out
  153. audio frame 144, errorCode: 1
  154. PRU event loop timed out
  155.  
  156. ## And I get the UART logs as:
  157. [ 3795.568754] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  158. [ 3795.576249] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  159. [ 3795.583743] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  160. [ 3795.591238] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  161. [ 3795.598732] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  162. [ 3795.606227] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  163. [ 3795.613722] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  164. [ 3795.621217] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  165. [ 3795.628705] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  166. [ 3795.636199] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  167. [ 3795.643693] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  168. [ 3795.651190] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  169. [ 3795.658685] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  170. [ 3795.666188] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  171. [ 3795.673684] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  172. [ 3795.681177] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  173. [ 3795.688673] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  174. [ 3795.696166] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  175. [ 3795.703661] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  176. [ 3795.711157] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  177. [ 3795.718654] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  178. [ 3795.726148] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  179. [ 3795.733645] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  180. [ 3795.741141] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  181. [ 3795.748629] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  182. [ 3795.756125] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x00000154
  183. [ 3795.763620] davinci-mcasp 48460000.mcasp: unhandled tx event. txstat: 0x0000015c
  184. [ 3795.771116] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  185. [ 3795.778614] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  186. [ 3795.786108] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  187. [ 3795.793604] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  188. [ 3795.801099] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  189. [ 3795.808625] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  190. [ 3795.816112] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  191. [ 3795.823607] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  192. [ 3795.831103] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  193. [ 3795.838596] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  194. [ 3795.846091] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  195. [ 3795.853586] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  196. [ 3795.861082] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  197. [ 3795.868642] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  198. [ 3795.876178] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  199. [ 3795.883712] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  200. [ 3795.891231] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  201. [ 3795.898733] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  202. [ 3795.906232] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  203. [ 3795.913728] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  204. [ 3795.921223] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  205. [ 3795.928739] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  206. [ 3795.936250] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  207. [ 3795.943785] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  208. [ 3795.944204] pruss 4b200000.pruss: unconfigured system_events[63-0] = 00c00000,00000000
  209. [ 3795.951274] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  210. [ 3795.951298] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  211. [ 3795.959283] pruss 4b200000.pruss: unconfigured host_intr = 0x00000005
  212. [ 3795.966737] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  213. [ 3795.988162] remoteproc remoteproc5: stopped remote processor 4b238000.pru
  214. [ 3795.988173] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  215. [ 3796.002516] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  216. [ 3796.010013] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  217. [ 3796.017510] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  218. [ 3796.025004] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  219. [ 3796.032491] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  220. [ 3796.039985] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  221. [ 3796.047479] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  222. [ 3796.054974] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  223. [ 3796.062469] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  224. [ 3796.069964] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  225. [ 3796.077458] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  226. [ 3796.084952] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  227. [ 3796.092445] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  228. [ 3796.099939] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  229. [ 3796.107435] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  230. [ 3796.114928] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  231. [ 3796.122421] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  232. [ 3796.129914] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  233. [ 3796.137407] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  234. [ 3796.144900] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  235. [ 3796.152388] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  236. [ 3796.159882] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  237. [ 3796.167384] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  238. [ 3796.174881] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  239. [ 3796.182374] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  240. [ 3796.189869] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  241. [ 3796.197363] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  242. [ 3796.204856] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
  243. [ 3796.212348] davinci-mcasp 48460000.mcasp: unhandled rx event. rxstat: 0x00000144
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement