Boot LED on customized imx8mp board

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

Boot LED on customized imx8mp board

904 Views
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? 

Labels (1)
0 Kudos
Reply
1 Reply

894 Views
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 Kudos
Reply