Boot LED on customized imx8mp board

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

Boot LED on customized imx8mp board

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

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