red LED blinking twice repeatedly after upgrade Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
syl3nt

red LED blinking twice repeatedly after upgrade

Post by syl3nt »

I ugraded 2 das ago from v142 to v143 and i noticed the red led on my orange PI that blinks twice, repeatedly, is it bad news ?
I didn't notice this behavior previously, that's why I think it is strange. After installation of dietpi on my orange pi , I verified that o had the v142 installed and the red led didn't blinked.


I also have to mention that I had samba working (on v142, before I wiped the SD out and. Fresh install, followed by NFS share, then formated the HDD I have it running with to ext4 partition and then I didn't knew how to working around things to configure it properly, so I changed it to proftp).
After that, it became inconvenient to have it that way, and I changed it to samba, and I cannot inderstand why I don't get neither my android phone or my PC to connect it to the samba share .
I read about sharing a ext4 through samba, and it it supposed to work, at least from what I read on Ubuntu forums.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: red LED blinking twice repeatedly after upgrade

Post by Sciamano »

syl3nt wrote:I ugraded 2 das ago from v142 to v143 and i noticed the red led on my orange PI that blinks twice, repeatedly, is it bad news ?
I didn't notice this behavior previously, that's why I think it is strange. After installation of dietpi on my orange pi , I verified that o had the v142 installed and the red led didn't blinked.
Yes, the heartbeat-like red led blinking was added to all boards with the H3 chip on board in V143
I also have to mention that I had samba working (on v142, before I wiped the SD out and. Fresh install, followed by NFS share, then formated the HDD I have it running with to ext4 partition and then I didn't knew how to working around things to configure it properly, so I changed it to proftp).
After that, it became inconvenient to have it that way, and I changed it to samba, and I cannot inderstand why I don't get neither my android phone or my PC to connect it to the samba share .
I read about sharing a ext4 through samba, and it it supposed to work, at least from what I read on Ubuntu forums.
Yes it should work, but have you set it up properly?
syl3nt

Re: red LED blinking twice repeatedly after upgrade

Post by syl3nt »

Alright, thanks for the info .
Sciamano wrote:Yes it should work, but have you set it up properly?
Yeah, it should, and it did, the problem was only on my home network configuration.
Thanks once again.
domcat

Re: red LED blinking twice repeatedly after upgrade

Post by domcat »

Hello
Is there a way to stop red ligth blinking? I think it's not usefull...

thanks in advance
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: red LED blinking twice repeatedly after upgrade

Post by Fourdee »

domcat wrote:Hello
Is there a way to stop red ligth blinking? I think it's not usefull...

thanks in advance
Hi,

These are the commands we use to activate it:

Code: Select all

			echo -e "heartbeat" > /sys/class/leds/*red*/trigger & #OPi one
			echo -e "heartbeat" > /sys/class/leds/*blue*/trigger & #NanoPi M1
Not sure exactly what the command for off/none is, you can check available modes with:

Code: Select all

cat /sys/class/leds/*red*/trigger
cat /sys/class/leds/*blue*/trigger
Then example:

Code: Select all

echo -e "none" > /sys/class/leds/*red*/trigger
echo -e "none" > /sys/class/leds/*blue*/trigger
Hearbeats are standard on Odroid, great indicator for when device is operational. We like it, and will roll out to all boards we can.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: red LED blinking twice repeatedly after upgrade

Post by k-plan »

Hi,
Fourdee wrote:
Not sure exactly what the command for off/none is, ...

Code: Select all

root@OrangePi-One:~# cat /sys/class/leds/red_led/trigger
none mmc0 mmc1 timer [heartbeat] backlight default-on
Example: Turn off

Code: Select all

echo -e "none" > /sys/class/leds/red_led/trigger
But this setting do not survive a reboot.

So done a guide, what you can do and how to make changes persistent: http://dietpi.com/phpbb/viewtopic.php?f=15&t=1457

cu
k-plan
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: red LED blinking twice repeatedly after upgrade

Post by Fourdee »

k-plan wrote:So done a guide, what you can do and how to make changes persistent: viewtopic.php?f=15&t=1457
Hi,

Legend, thank you :)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
syl3nt

Re: red LED blinking twice repeatedly after upgrade

Post by syl3nt »

so.. my orange pi keeps forgetting the configuration i chose after each reboot .. anyone gets this behaviour as well ?
my configuration is : green LED off, and the red one with heartbeat.
after the reboot, the green LED is on all times, and the red , starts blinking normally
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: red LED blinking twice repeatedly after upgrade

Post by Fourdee »

syl3nt wrote:so.. my orange pi keeps forgetting the configuration i chose after each reboot .. anyone gets this behaviour as well ?
my configuration is : green LED off, and the red one with heartbeat.
after the reboot, the green LED is on all times, and the red , starts blinking normally
Hi,

Please can you paste results of:

Code: Select all

cat /DietPi/dietpi/.dietpi-led_control
uname -a
cat /DietPi/dietpi/.version
Is this OrangePi PC?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
syl3nt

Re: red LED blinking twice repeatedly after upgrade

Post by syl3nt »

Is this OrangePi PC?[/quote]
Yes

please , keep in mind that this is the result of cat, without me rebooting the unit and therefore, the results could be different after me rebooting (aka when the green led forgets that it should be off)

Code: Select all

root@greenland:~# cat /DietPi/dietpi/.dietpi-led_control
green_led none
red_led heartbeat
root@greenland:~# uname -a
Linux greenland 3.4.113-sun8i #18 SMP PREEMPT Thu Jun 15 02:16:06 CEST 2017 armv7l GNU/Linux
root@greenland:~# cat /DietPi/dietpi/.version
152
[edit]
ok.. , i rebooted, to give also about when it happens, and it is the same output

Code: Select all

root@greenland:~# cat /DietPi/dietpi/.dietpi-led_control
green_led none
red_led heartbeat
but i assure you the green led comes on and never goes off as is should be, if you want, i videotape it and mail it to you
Post Reply