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 项奖励
回复