Advertisement
Ayush1325

BeagleConnect Demo

Oct 24th, 2023 (edited)
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.76 KB | None | 0 0
  1. ~ took 1m46s
  2. ssh debian@192.168.6.2
  3. Debian GNU/Linux 11
  4.  
  5. BeagleBoard.org Debian Bullseye Xfce Image 2023-02-04
  6. Support: https://bbb.io/debian
  7. default username:password is [debian:temppwd]
  8.  
  9. debian@192.168.6.2's password:
  10.  
  11. The programs included with the Debian GNU/Linux system are free software;
  12. the exact distribution terms for each program are described in the
  13. individual files in /usr/share/doc/*/copyright.
  14.  
  15. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  16. permitted by applicable law.
  17. Last login: Tue Oct 24 13:55:34 2023 from 192.168.6.1
  18. debian@BeaglePlay:~$ uname -r
  19. 5.10.168-ti-arm64-r111
  20. debian@BeaglePlay:~$ cat /boot/firmware/extlinux/extlinux.conf
  21. label Linux eMMC
  22.    kernel /Image
  23.    append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet module_blacklist=bcfserial
  24.    fdtdir /
  25.    #fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
  26.    initrd /initrd.img
  27. debian@BeaglePlay:~$ echo "    fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo" | sudo tee -a /boot/firmware/extlinux/extlinux.conf
  28. [sudo] password for debian:
  29.    fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
  30. debian@BeaglePlay:~$ cat /boot/firmware/extlinux/extlinux.conf                                                                           label Linux eMMC
  31.    kernel /Image
  32.    append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet module_blacklist=bcfserial
  33.    fdtdir /
  34.    #fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
  35.    initrd /initrd.img
  36.    fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
  37. debian@BeaglePlay:~$ sudo shutdown now -r
  38. Connection to 192.168.6.2 closed by remote host.
  39. Connection to 192.168.6.2 closed.
  40.  
  41. Debian GNU/Linux 11
  42.  
  43. BeagleBoard.org Debian Bullseye Xfce Image 2023-02-04
  44. Support: https://bbb.io/debian
  45. default username:password is [debian:temppwd]
  46.  
  47. [email protected]'s password:
  48.  
  49. The programs included with the Debian GNU/Linux system are free software;
  50. the exact distribution terms for each program are described in the
  51. individual files in /usr/share/doc/*/copyright.
  52.  
  53. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  54. permitted by applicable law.
  55. Last login: Tue Oct 24 13:57:22 2023 from 192.168.6.1
  56. debian@BeaglePlay:~$ sha256sum node.bin
  57. f8a6b042210a7e1efa23f6ababefdadd6fe96c5c46578017147cd9f4c0f608e2  node.bin
  58. debian@BeaglePlay:~$ sha256sum host.bin
  59. e2e9e6bb3de6ef931581ae87410889bee2c8073fcd4bff4f7cfc156cf3499c26  host.bin
  60. debian@BeaglePlay:~$ ls /dev | grep ttyS4
  61. ttyS4
  62. debian@BeaglePlay:~$ python cc1352-flasher/cc1352-flasher.py --beagleplay host.bin
  63. Setting filename to host.bin
  64. Using GPIO for BOOT (gpiochip2 13) and RESET (gpiochip2 14) lines.
  65. Setting BOOT and RESET low
  66. Setting RESET high
  67. Setting BOOT high
  68. Releasing GPIO lines
  69. Opening port /dev/ttyS4, baud 500000
  70. Reading data from host.bin
  71. Cannot auto-detect firmware filetype: Assuming .bin
  72. Connecting to target...
  73. pg_rev = 1, protocols = f, wafer_id = 0xbb77
  74. CC135x PG1.1 (7x7mm): 704KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x000AFFD8
  75. Primary IEEE Address: 00:12:4B:00:29:B9:98:1A
  76.     Performing mass erase
  77. Erasing all main bank flash sectors
  78.     Erase done
  79. Writing 720896 bytes starting at address 0x00000000
  80. Write 208 bytes at 0x000AFF300
  81.     Write done
  82. Verifying by comparing CRC32 calculations.
  83.     Verified (match: 0x4d806daf)
  84. debian@BeaglePlay:~$ sudo sed -e '/bcfserial-no-firmware/ s/^#*/#/' -i /boot/firmware/extlinux/extlinux.conf
  85. [sudo] password for debian:
  86. debian@BeaglePlay:~$ cat /boot/firmware/extlinux/extlinux.conf                                                                           label Linux eMMC
  87.     kernel /Image
  88.     append root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait net.ifnames=0 quiet module_blacklist=bcfserial
  89.     fdtdir /
  90. #    #fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
  91.     initrd /initrd.img
  92. #    fdtoverlays /overlays/k3-am625-beagleplay-bcfserial-no-firmware.dtbo
  93. debian@BeaglePlay:~$ sudo shutdown now -r
  94. Connection to 192.168.6.2 closed by remote host.
  95. Connection to 192.168.6.2 closed.
  96.  
  97. ssh debian@192.168.6.2
  98. Debian GNU/Linux 11
  99.  
  100. BeagleBoard.org Debian Bullseye Xfce Image 2023-02-04
  101. Support: https://bbb.io/debian
  102. default username:password is [debian:temppwd]
  103.  
  104. debian@192.168.6.2's password:
  105.  
  106. The programs included with the Debian GNU/Linux system are free software;
  107. the exact distribution terms for each program are described in the
  108. individual files in /usr/share/doc/*/copyright.
  109.  
  110. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  111. permitted by applicable law.
  112. Last login: Tue Oct 24 14:03:57 2023 from 192.168.6.1
  113. debian@BeaglePlay:~$ python cc1352-flasher/cc1352-flasher.py --beagleconnect node.bin
  114. Setting filename to node.bin
  115. Sending break
  116. Opening port /dev/ttyACM0, baud 500000
  117. Reading data from node.bin
  118. Cannot auto-detect firmware filetype: Assuming .bin
  119. Connecting to target...
  120. pg_rev = 1, protocols = f, wafer_id = 0xbb77
  121. CC135x PG1.1 (7x7mm): 704KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x000AFFD8
  122. Primary IEEE Address: 00:12:4B:00:29:B9:9A:15
  123.    Performing mass erase
  124. Erasing all main bank flash sectors
  125.    Erase done
  126. Writing 720896 bytes starting at address 0x00000000
  127. Write 208 bytes at 0x000AFF308
  128.    Write done
  129. Verifying by comparing CRC32 calculations.
  130.    Verified (match: 0xc69c8a3a)
  131. debian@BeaglePlay:~$ cd beagleplay-greybus-driver/
  132. debian@BeaglePlay:~/beagleplay-greybus-driver$ make -j12
  133. make -C /lib/modules/5.10.168-ti-arm64-r111/build M=/home/debian/beagleplay-greybus-driver modules
  134. make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
  135. make[1]: Entering directory '/usr/src/linux-headers-5.10.168-ti-arm64-r111'
  136.  CC [M]  /home/debian/beagleplay-greybus-driver/gb-beagleplay.o
  137.  MODPOST /home/debian/beagleplay-greybus-driver/Module.symvers
  138.  CC [M]  /home/debian/beagleplay-greybus-driver/gb-beagleplay.mod.o
  139.  LD [M]  /home/debian/beagleplay-greybus-driver/gb-beagleplay.ko
  140. make[1]: Leaving directory '/usr/src/linux-headers-5.10.168-ti-arm64-r111'
  141. debian@BeaglePlay:~/beagleplay-greybus-driver$ sudo insmod gb-beagleplay.ko
  142. [sudo] password for debian:
  143. debian@BeaglePlay:~/beagleplay-greybus-driver$ iio_info
  144. Library version: 0.24 (git tag: v0.24)
  145. Compiled with backends: local xml ip usb
  146. IIO context created with local backend.
  147. Backend version: 0.24 (git tag: v0.24)
  148. Backend description string: Linux BeaglePlay 5.10.168-ti-arm64-r111 #1bullseye SMP Tue Sep 26 14:22:20 UTC 2023 aarch64
  149. IIO context has 2 attributes:
  150.        local,kernel: 5.10.168-ti-arm64-r111
  151.        uri: local:
  152. IIO context has 3 devices:
  153.        iio:device0: adc102s051
  154.                2 channels found:
  155.                        voltage1:  (input)
  156.                        2 channel-specific attributes found:
  157.                                attr  0: raw value: 4072
  158.                                attr  1: scale value: 0.805664062
  159.                        voltage0:  (input)
  160.                        2 channel-specific attributes found:
  161.                                attr  0: raw value: 0
  162.                                attr  1: scale value: 0.805664062
  163.                No trigger on this device
  164.        iio:device1: hdc2010
  165.                3 channels found:
  166.                        temp:  (input)
  167.                        4 channel-specific attributes found:
  168.                                attr  0: offset value: -15887.515151
  169.                                attr  1: peak_raw value: 28928
  170.                                attr  2: raw value: 29120
  171.                                attr  3: scale value: 2.517700195
  172.                        humidityrelative:  (input)
  173.                        3 channel-specific attributes found:
  174.                                attr  0: peak_raw value: 38656
  175.                                attr  1: raw value: 38672
  176.                                attr  2: scale value: 1.525878906
  177.                        current:  (output)
  178.                        2 channel-specific attributes found:
  179.                                attr  0: heater_raw value: 0
  180.                                attr  1: heater_raw_available value: 0 1
  181.                No trigger on this device
  182.        iio:device2: opt3001
  183.                1 channels found:
  184.                        illuminance:  (input)
  185.                        2 channel-specific attributes found:
  186.                                attr  0: input value: 25.560000
  187.                                attr  1: integration_time value: 0.800000
  188.                2 device-specific attributes found:
  189.                                attr  0: current_timestamp_clock value: realtime
  190.  
  191.                                attr  1: integration_time_available value: 0.1 0.8
  192.                No trigger on this device
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement