Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

U-boot control LED

Featured Replies

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 :(

 

 

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

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

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.

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.