Hi,
I use a Beaglebone black, which runs on Android, in a project I work. I need to use UART1. As i understand i have to configure the MODE of UART1. It must be MODE0. I can do it via adb wtih these command:
echo 20 > /sys/kernel/debug/omap_mux/uart1_rxd
echo 0 > /sys/kernel/debug/omap_mux/uart1_txd
Everythings work fine like that. But real problem is, I have to do this configuration inside the application, i am coding. But I don't have permission to execute these shell command, beacuse I'm not rooted. So:
1) How can I root my beaglebone black to execute these shell commands?
2) Or is there a way to give permission to write these files? I can execute chmod 777 /sys/kernel/debug/omap_mux/uart1_rxd via adb and have write permission inside my app. But of course it isn't a solution, because when beaglebone restarts the permissions are lost.
Simply I want to use UART1 (or any other UART) for serial communication. But all shell commands must be executed inside my app. How can i do that?
Sory for my English.
And thanks in advance