Jump to content

U-boot control LED


StaLeWaR

Recommended Posts

Good day friends!

I have Orange Pi PC and I decided to try Armbian.

Excellent build! My congratulations to the developers :)

 

Before, I used the image of 'loboris'.

I had a problem with the management of the LED in Armbian.

How to make u-boot turn red led to the kernel boot?

Edit fex file no avail :(

 

 

Link to comment
Share on other sites

in .fex file:

 

set last param to "1"

------------------------------------------------------------

[leds_para]

red_led = port:PA15<1>default><default><1>

------------------------------------------------------------

convert to .bin

 

 

in boot.cmd (on top of the file) write:

------------------------------------------------------------

gpio set PA15

------------------------------------------------------------

recompile it with: mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

 

reboot device, now you have red led on boot...

 

:P

Link to comment
Share on other sites

Thanks EvgeniK45, this works perfectly on the Orange Pi One with Armbian 5.14. Red LED lights up almost immediately after power is connected. It switches off after shutdown (shutdown -h now). This can now be used to detect system state in my case where a 10 minute power backup is available after mains failure and system needs to be safely shutdown/rebooted after power is restored.

Now only if there was something on the Orange Pi One like the RUN jumper on the raspberry pi to reset the system externally ...

 

RasPiBPlusResetHeader.jpg

 

in .fex file:

 

set last param to "1"

------------------------------------------------------------

[leds_para]

red_led = port:PA15<1>default><default><1>

------------------------------------------------------------

convert to .bin

 

 

in boot.cmd (on top of the file) write:

------------------------------------------------------------

gpio set PA15

------------------------------------------------------------

recompile it with: mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr

 

reboot device, now you have red led on boot...

 

:P

Link to comment
Share on other sites

Now only if there was something on the Orange Pi One like the RUN jumper on the raspberry pi to reset the system externally ...

 

 

 

Yes it has...

post-480-0-34992700-1467644025.png

 

But you need to work a little soldering. Here are 2 contacts on the spot D48 is reset. They only need to shut between them.

Link to comment
Share on other sites

Just tested this out. Bridging D48 momentarily resets the board and begins boot of OS after it was shutdown via "sudo shutdown -h now". Now I can finally replace my slow and aging Raspberry Pi A+ with a fast and shiny Orange Pi One

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines