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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

562件の閲覧回数
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

  

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

554件の閲覧回数
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 件の賞賛
返信

550件の閲覧回数
Ruban1
Contributor II

then how i control inbuild GPIO LED . blinking the LED

0 件の賞賛
返信