Advertisement
silver2row

Some simple source, error codes, version.sh, and uname -a

Mar 20th, 2021
1,876
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.39 KB | None | 0 0
  1. # This is the odd error(s) I keep receiving as output from my source when the source actually runs until I stop it...
  2.  
  3. DEBUG: Adafruit_BBIO: set_pin_mode() :: Pinmux file: /sys/devices/platform/ocp/ocp:P9_14_pinmux/state, mode: pwmDEBUG: Adafruit_BBIO: set_pin_mode(): beaglebone_blue() is TRUE; return BBIO_OK
  4.  
  5. # This is cat /etc/dogtag
  6.  
  7. BeagleBoard.org Debian Buster IoT Image 2020-04-06
  8.  
  9. # This is uname -a
  10.  
  11. Linux beaglebone 4.19.94-ti-r60 #1buster SMP PREEMPT Wed Mar 17 16:23:19 UTC 2021 armv7l GNU/Linux
  12.  
  13. # This is sudo /opt/scripts/tools/version.sh
  14.  
  15. git:/opt/scripts/:[23def497e973fd294680f671af6b6549f4dadb65]
  16. eeprom:[A335BNLTBLA21708EL000258]
  17. model:[TI_AM335x_BeagleBone_Blue]
  18. dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
  19. bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)]:[location: dd MBR]
  20. bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
  21. UBOOT: Booted Device-Tree:[am335x-boneblue.dts]
  22. UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
  23. UBOOT: Loaded Overlay:[BB-ADC-00A0]
  24. kernel:[4.19.94-ti-r60]
  25. nodejs:[v10.24.0]
  26. /boot/uEnv.txt Settings:
  27. uboot_overlay_options:[enable_uboot_overlays=1]
  28. uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
  29. uboot_overlay_options:[enable_uboot_cape_universal=1]
  30. pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
  31. pkg:[bb-cape-overlays]:[4.14.20210225.0-0~buster+20210225]
  32. pkg:[bb-customizations]:[1.20210225.0-0~buster+20210225]
  33. pkg:[bb-usb-gadgets]:[1.20200504.0-0~buster+20200504]
  34. pkg:[bb-wl18xx-firmware]:[1.20200813.1-0~buster+20200813]
  35. pkg:[kmod]:[26-1]
  36. pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]
  37. pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
  38. groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep remoteproc admin s                                                                                    pi iio docker tisdk weston-launch xenomai cloud9ide]
  39. cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1                                                                                    990656 rng_core.default_quality=100 quiet]
  40. dmesg | grep remote
  41. [   11.137685] remoteproc remoteproc0: 4a334000.pru is available
  42. [   11.144657] remoteproc remoteproc1: 4a338000.pru is available
  43. [   55.965562] remoteproc remoteproc2: wkup_m3 is available
  44. [   55.976862] remoteproc remoteproc2: powering up wkup_m3
  45. [   55.976886] remoteproc remoteproc2: Booting fw image am335x-pm-firmware.elf, size 217168
  46. [   55.977138] remoteproc remoteproc2: remote processor wkup_m3 is now up
  47. dmesg | grep pru
  48. [   11.137685] remoteproc remoteproc0: 4a334000.pru is available
  49. [   11.137869] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
  50. [   11.144657] remoteproc remoteproc1: 4a338000.pru is available
  51. [   11.144846] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
  52. dmesg | grep pinctrl-single
  53. [    0.914453] pinctrl-single 44e10800.pinmux: 142 pins, size 568
  54. dmesg | grep gpio-of-helper
  55. lsusb
  56. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  57. END
  58.  
  59.  
  60. # This is /dev/mmcblk*
  61.         mmcblk0
  62.         mmcblk0p1
  63.         mmcblk1      
  64.         mmcblk1boot0      
  65.         mmcblk1boot1      
  66.         mmcblk1rpmb
  67.  
  68. # Simple test source for making the DC Motor move on the BBBlue...
  69.  
  70. #!/usr/bin/python3
  71.  
  72. import Adafruit_BBIO.GPIO as GPIO
  73. import Adafruit_BBIO.PWM as PWM
  74. from time import sleep
  75.  
  76. enable = "P9_41"
  77.  
  78. left   = "P9_15"
  79. right  = "P9_13"
  80.  
  81. on     = "P9_14"
  82.  
  83. PWM.start(on, 50, 2000, 0)
  84.  
  85. GPIO.setup(left, GPIO.OUT)
  86. GPIO.setup(right, GPIO.OUT)
  87.  
  88. GPIO.setup(enable, GPIO.OUT)
  89.  
  90. try:
  91.  
  92.     work = int(input("Enter your favorite number: "))
  93.     while True:
  94.  
  95.         if GPIO.output(enable, GPIO.HIGH):
  96.             PWM.start(on, 75)
  97.         print("More to come our way!")
  98.         GPIO.output(left, GPIO.LOW)
  99.         GPIO.output(right, GPIO.LOW)
  100.         sleep(4)
  101.  
  102.         GPIO.output(left, GPIO.HIGH)
  103.         sleep(4)
  104.         GPIO.output(right, GPIO.HIGH)
  105.         sleep(4)
  106.  
  107.         print("Things take time!")
  108.  
  109. except KeyboardInterrupt:
  110.     print("You are welcome! ", work)
  111.     pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement