mirkix / ardupilotblue

Howto use BeagleBone Blue with ArduPilot
GNU General Public License v3.0
151 stars 56 forks source link

Missing directories/files #16

Open holoGDM opened 6 years ago

holoGDM commented 6 years ago

When im trying to execute commands from instruction only one is executed:

root@beaglebone:~# /bin/bash -c "/bin/echo uart > /sys/devices/platform/ocp/ocp:P9_21_pinmux/state"
/bin/bash: /sys/devices/platform/ocp/ocp:P9_21_pinmux/state: No such file or directory
root@beaglebone:~# /bin/bash -c "/bin/echo uart > /sys/devices/platform/ocp/ocp:P9_22_pinmux/state"
/bin/bash: /sys/devices/platform/ocp/ocp:P9_22_pinmux/state: No such file or directory
root@beaglebone:~# /bin/bash -c "/bin/echo uart > /sys/devices/platform/ocp/ocp:P9_24_pinmux/state"
/bin/bash: /sys/devices/platform/ocp/ocp:P9_24_pinmux/state: No such file or directory
root@beaglebone:~# /bin/bash -c "/bin/echo uart > /sys/devices/platform/ocp/ocp:P9_26_pinmux/state"
/bin/bash: /sys/devices/platform/ocp/ocp:P9_26_pinmux/state: No such file or directory
root@beaglebone:~# /bin/bash -c "/bin/echo pruecapin_pu > /sys/devices/platform/ocp/ocp:P8_15_pinmux/state"
root@beaglebone:~# 

kernel:

root@beaglebone:~# uname -a
Linux beaglebone 4.4.113-ti-rt-r149 #1 SMP PREEMPT RT Fri Apr 6 22:38:23 UTC 2018 armv7l GNU/Linux
root@beaglebone:~# 
holoGDM commented 6 years ago

There are some changes in linux kernel. Now BBBlue overlays and tree need to be configured in such way:

https://groups.google.com/forum/#!searchin/beaglebone/.dtbo$20holosian%7Csort:date/beaglebone/plsVAbhiYxE/-fYLsJA4CAAJ


ExecStartPre=/bin/bash -c "/bin/echo uart > /sys/devices/platform/ocp/ocp:P9_21_pinmux/state"
ExecStartPre=/bin/bash -c "/bin/echo uart > /sys/devices/platform/ocp/ocp:P9_22_pinmux/state"
ExecStartPre=/bin/bash -c "/bin/echo uart > /sys/devices/platform/ocp/ocp:P9_24_pinmux/state"
ExecStartPre=/bin/bash -c "/bin/echo uart > /sys/devices/platform/ocp/ocp:P9_26_pinmux/state"
ExecStartPre=/bin/bash -c "/bin/echo pruecapin_pu > /sys/devices/platform/ocp/ocp:P8_15_pinmux/state"

those settings are probably not needed anymore (or am wrong? - please correct me in that case)