Welcome! Log In Create A New Profile

Advanced

2023.04 U-Boot Kirkwood - Synology DS411j

Posted by bodhi 
Re: 2023.04 U-Boot Kirkwood - Synology DS411j
October 19, 2023 02:19PM
dmb4312,

OK. I guess I forgot where it was located (or modern kernel has moved it). Let's do other things more useful.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 10/19/2023 02:33PM by bodhi.
Re: 2023.04 U-Boot Kirkwood - Synology DS411j
October 19, 2023 02:32PM
dmb4312,

Normally don't do power off this way. It should be handled by the kernel driver (which will be invoked by the shutdown process). But it does not hurt to try at this point, because there is nothing important yet on your HDDs.

In Debian, test each of the items below, as followed.

Quote

* "2" : short beep
* "3" : long beep
* "4" : turn the power LED ON
* "5" : flash the power LED
* "6" : turn the power LED OFF

To turn off the Power LED:
echo 6 > /dev/ttyS1

Now after you've tested 2-6, do power off.

Quote

* "1" : power off // already handled by the poweroff node

sync 
sync 
echo 1 > /dev/ttyS1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2023.04 U-Boot Kirkwood - Synology DS411j
October 19, 2023 02:54PM
bodhi Wrote:
-------------------------------------------------------
> dmb4312,
>
> Normally don't do power off this way. It should be
> handled by the kernel driver (which will be
> invoked by the shutdown process). But it does not
> hurt to try at this point, because there is
> nothing important yet on your HDDs.
>
> In Debian, test each of the items below, as
> followed.
>
>
Quote

* "2" : short beep
> * "3" : long beep
> * "4" : turn the power LED ON
> * "5" : flash the power LED
> * "6" : turn the power LED OFF
>
> To turn off the Power LED:
>
> echo 6 > /dev/ttyS1
>
>
> Now after you've tested 2-6, do power off.
>
>
Quote

* "1" : power off // already handled by
> the poweroff node
>
>
> sync 
> sync 
> echo 1 > /dev/ttyS1
>

Bodhi,
2 to 6 worked as intended.

with echo 1 the nas did turn completely off.

when using init 0 or reboot -h commands it just halts and stays powered on
Re: 2023.04 U-Boot Kirkwood - Synology DS411j
October 19, 2023 03:34PM
dmb4312,

> Bodhi,
> 2 to 6 worked as intended.
>
> with echo 1 the nas did turn completely off.
>

Cool!

> when using init 0 or reboot -h commands it just
> halts and stays powered on

Yes, the Synology driver has not been configured, so those procedures do not work properly. It will be in kernel 6.5.7-kirkwood-tld-1.

=============

To incorporate the Power LED commands, to indicate that the kernel has finished booting, you can add them to the end of /etc/rc.local before exit 0.

echo 6 > /dev/ttyS1
echo 4 > /dev/ttyS1

exit 0

====
bodhi's edit: typos

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 10/20/2023 04:05PM by bodhi.
Re: 2023.04 U-Boot Kirkwood - Synology DS411j
October 20, 2023 04:02PM
>
To incorporate the Power LED commands, to indicated the kernel has finish booting, you can add them to the end of /etc/rc.local before exit 0.
> echo 6 > /dev/ttyS1
> echo 4 > /dev/ttyS1
> exit 0
>


Thanks Bodhi.
Re: 2023.04 U-Boot Kirkwood - Synology DS411j
October 22, 2023 02:33PM
dmb4312,

Try installing the new kernel 6.5.7. The DTB comes with this kernel is the latest one in this thread.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2023.04 U-Boot Kirkwood - Synology DS411j
October 26, 2023 10:34AM
bodhi Wrote:
-------------------------------------------------------
> dmb4312,
>
> Try installing the new kernel 6.5.7. The DTB comes
> with this kernel is the latest one in this thread.


Bodhi,

I will definitely try it when I get time some time next month.
thanks alot
Re: 2023.04 U-Boot Kirkwood - Synology DS411j
October 31, 2023 04:09PM
I've attached to this post the latest ds411jv10 DTB and DTS.

- Corrected the LEDs name for HDD 1-4 (amber vs green).
- Documented the UART1 usage in the DTS
- Renamed fan and leds nodes (to current DTS bindings and styles). So there will be changes in the dmesg log. But functionality should remain the same.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-ds411jv10.dtb (21.6 KB)
open | download - kirkwood-ds411jv10.dts (2.5 KB)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: