Boot LED on customized imx8mp board

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Boot LED on customized imx8mp board

910 次查看
gaurav_bankar
Contributor II

Hello, 

    I have a customized imx8mp board and I want to blink a Boot LED during boot process and turn it off after login ( or boot process is ended ). The LED is connected on GPIO line. 

    I was able to blink the LED by mentioning it in the corresponding board.c file of U-boot. I am not able to turn it off after boot process ends. 

   Does anyone has any idea how to do it? 

标签 (1)
0 项奖励
回复
1 回复

900 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @gaurav_bankar,

I hope you are doing well.

One can create a custom script (that turns off led ) and put that into  /etc/profile.d/ 

e.g.

ledturn_off.sh

#! /bin/sh

# turn off led gpio
gpioset -c gpiochip<x> <pin>=0 

# chmod 744 ledturn_off.sh

# mv  ledturn_off.sh /etc/profiles.d/

=> One can also create a yocto recipe to automate the above steps.

Please specify the gpio number for led and whether led is configured using a led class or as normal gpio.

Thanks & Regards,
Dhruvit Vasavada

 

 

0 项奖励
回复