how to create vi file or .sh file in imx8mm in Android OS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to create vi file or .sh file in imx8mm in Android OS

444 Views
Ruban1
Contributor II

how to create vi file or .sh file in imx8mm in Android 10 OS.

Using putty or minicom after booting up of Android OS from SD card

I wanted to run a small LED blink. script

The script gpio_led.sh

#!/bin/bash
echo "GPIO LED Test"

LED=/sys/class/leds/user/brightness

while (true)
do
echo 1 > $LED
sleep 1
echo 0 > $LED
sleep 1
done

i am not able to create vi or or run the script. how to run. if any recommend kindly provide

and the path to run

  

Labels (1)
0 Kudos
Reply
2 Replies

436 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

This way can't be useful in android.It's very different in linux.

sh file is effective in linux rootfs, but android is using linux kernel ,not the linux rootfs.

 

0 Kudos
Reply

432 Views
Ruban1
Contributor II

then how i control inbuild GPIO LED . blinking the LED

0 Kudos
Reply