Welcome! Log In Create A New Profile

Advanced

2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816

Posted by bodhi 
2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
February 01, 2023 10:03PM
This is a release candidate for Synology DS116/RS816 and for Thecus N2350 u-boot-2023.04 .

These u-boot images are fully functional as a drop-in replacement for stock u-boot. Each is the final release version for that box. But I have not finalized the new default envs image for it. It will come later.

If you have installed the N2350 and DS116, this u-boot can boot these boxes exactly the same way using your current u-boot envs.

Warning: During testing these u-boot images with kwboot, please do not use fw_setenv to change envs in Debian or use saveenv in u-boot.

However, there is no restriction whatsoever regarding boot storage devices or anything else like in stock u-boots. So to take advantage of the new capbility, please try with kwboot, and set envs to load kernel uImage and uInitrd directly your rootfs Ext3/Ext4 file system on either USB or SCSI (SATA).

I will revise the installation instruction for these 2 boxes to remove all HDD raw sectors,... and other workarounds, once I have the new default envs image for you to write to flash.

In the mean time, post questions if you are not sure how to tweak your current envs.

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

Download at Dropbox

uboot.2023.04-tld-1.n2350.bodhi.tar

md5:
ca67534a904675ecac0bbbe7d4d25f12 uboot.2023.04-tld-1.n2350.bodhi.tar
sha256:
f316eac207e3d2b9bf62588f0f573402f1f6e527f0359b2d43f24c3c55a21726 uboot.2023.04-tld-1.n2350.bodhi.tar

uboot.2023.04-tld-1.ds116.bodhi.tar

md5:
c0ff90b04a013411e3c1f0793cb93291
sha256:
ea51053afc9580f8bcfa481b990e53bb9ca36129fec1ee3820e1375a271ed5f6 uboot.2023.04-tld-1.ds116.bodhi.tar

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 5 time(s). Last edit at 02/16/2023 06:25PM by bodhi.
Re: U-Boot MVEBU 2023 for Thecus N2350, and Synology DS116/RS816
February 01, 2023 10:05PM
Reserved.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot MVEBU 2023 for Thecus N2350, and Synology DS116/RS816
February 07, 2023 06:58PM
U-Boot 2023.04 images for Synology DS116 and for Thecus N2350 have been uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 2 time(s). Last edit at 02/07/2023 07:59PM by bodhi.
Re: 2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
February 16, 2023 11:40PM
New version for Thecus N2350 uboot will be uploaded.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: 2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
February 22, 2023 02:55PM
Hi,
I don't know if the image should be compatible with a DS218j, but it looks like it does not work :
$ sudo kwboot -b uboot.2023.04-rc1-tld-1.ds116.mtd0.kwb -p -t -B 115200 /dev/ttyUSB0
Sending boot message. Please reboot the target...-
Sending boot image...

BootROM - 1.73
 (Boot)
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Synology board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  6   |  SATA0      |
 |   2    |  6   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.46.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
  0 % [+xmodem: Protocol error

Best regards
Re: 2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
February 22, 2023 03:58PM
emvivre,

> I don't know if the image should be compatible
> with a DS218j, but it looks like it does not work

Probably something is not compatible.

But you should use the latest kwboot that I posted here if you are running from an ARM box:

https://forum.doozan.com/read.php?3,27280

The distro version of kwboot on your Linux box is usually very old, and it might be not enough.

Do you have another ARM box that you can use to run the latest kwboot?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: 2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
February 23, 2023 03:31PM
Yes, indeed I used an old version (2019) which was not compatible with Armada 38x

With the old one :
$ kwboot
Usage: kwboot [OPTIONS] [-b <image> | -D <image> ] [-B <baud> ] <TTY>

  -b <image>: boot <image> with preamble (Kirkwood, Armada 370/XP)
...

With the last version :
$ kwboot
kwboot version 2023.04-rc2-g8c39999a-dirty
Usage: kwboot [OPTIONS] [-b <image> | -D <image> | -b | -d ] [-B <baud> ] [-t] <TTY>

  -b <image>: boot <image> with preamble (Kirkwood, Avanta, Armada 370/XP/375/38x/39x)
...

Unfortunately it does not work neither :
sudo ./kwboot -b uboot.2023.04-rc1-tld-1.ds116.mtd0.kwb -t -B 115200 /dev/ttyUSB0
kwboot version 2023.04-rc2-g8c39999a-dirty
Patching image boot signature to UART
Aligning image header to Xmodem block size
Sending boot message. Please reboot the target...\
Sending boot image header (101632 bytes)...
  0 % [......................................................................]
  8 % [......................................................................]
 17 % [......................................................................]
 26 % [......................................................................]
 35 % [......................................................................]
 44 % [......................................................................]
 53 % [......................................................................]
 61 % [......................................................................]
 70 % [......................................................................]
 79 % [......................................................................]
 88 % [......................................................................]
 97 % [........................                                              ]
Done

U-Boot SPL 2023.04-tld-1-00263-g9d1cdaf374-dirty (Feb 07 2023 - 14:29:52 -0800)
High speed PHY - Version: 2.0
Detected Device ID 6820
board SerDes lanes topology details:
 | Lane # | Speed |  Type       |
 --------------------------------
 |   0    |   0   | SGMII0      |
 |   1    |   6   | SATA0       |
 |   4    |   5   | USB3 HOST0  |
 |   5    |   5   | USB3 HOST1  |
 --------------------------------
High speed PHY - Ended Successfully
mv_ddr: 14.0.0
WL Supp: IF 0 bus_id 0 Failed !
WL Supp: IF 0 bus_id 1 Failed !
WL Supp: IF 0 bus_id 2 Failed !
WL Supp: IF 0 bus_id 3 Failed !
WL Supp: CS# 0: IF 0 failed
ddr3_tip_dynamic_write_leveling_supp failure
Title: I/F# , Tj, Calibration_n0, Calibration_p0, Calibration_n1, Calibration_p1, Calibration_n2, Calibration_p2,CS0 ,
VWTx, VWRx, WL_tot, WL_ADLL, WL_PH, RL_Tot, RL_ADLL, RL_PH, RL_Smp, Cen_tx, Cen_rx, Vref, DQVref,               PBSTx-Pad0,PBSTx-Pad1,PBSTx-Pad2,PBSTx-Pad3,PBSTx-Pad4,PBSTx-Pad5,PBSTx-Pad6,PBSTx-Pad7,PBSTx-Pad8\
,PBSTx-Pad9,PBSTx-Pad10,             PBSRx-Pad0,PBSRx-Pad1,PBSRx-Pad2,PBSRx-Pad3,PBSRx-Pad4,PBSRx-Pad5,PBSRx-Pad6,PBSRx-Pad7,PBSRx-Pad8,PBSRx-Pad9,PBSRx-Pad10,
Data: 0,57,15,13,15,13,20,20,CS0 ,
0,0,64,0,2,575,31,5,6,13,10,4,0,                0,0,0,0,0,0,0,0,0,0,0,          0,0,0,0,0,0,0,0,0,0,0,
0,0,64,0,2,575,31,5,6,13,10,4,0,                0,0,0,0,0,0,0,0,0,0,0,          0,0,0,0,0,0,0,0,0,0,0,
0,0,64,0,2,575,31,5,6,13,10,4,0,                0,0,0,0,0,0,0,0,0,0,0,          0,0,0,0,0,0,0,0,0,0,0,
0,0,64,0,2,575,31,5,6,13,10,4,0,                0,0,0,0,0,0,0,0,0,0,0,          0,0,0,0,0,0,0,0,0,0,0,

********   DRAM initialization Failed (res 0x1)   ********
DDR3 Training Sequence - FAILED
ddr3_init() failed: 1
### ERROR ### Please RESET the board ###


xmodem: Connection timed out
Re: 2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
February 23, 2023 04:31PM
Quote

> mv_ddr: 14.0.0
> WL Supp: IF 0 bus_id 0 Failed !
> WL Supp: IF 0 bus_id 1 Failed !
> WL Supp: IF 0 bus_id 2 Failed !
> WL Supp: IF 0 bus_id 3 Failed !
> WL Supp: CS# 0: IF 0 failed
> ddr3_tip_dynamic_write_leveling_supp failure
> Title: I/F# , Tj, Calibration_n0, Calibration_p0,
> Calibration_n1, Calibration_p1, Calibration_n2,
> Calibration_p2,CS0 ,
> VWTx, VWRx, WL_tot, WL_ADLL, WL_PH, RL_Tot,
> RL_ADLL, RL_PH, RL_Smp, Cen_tx, Cen_rx, Vref,
> DQVref,
> PBSTx-Pad0,PBSTx-Pad1,PBSTx-Pad2,PBSTx-Pad3,PBSTx-Pad4,PBSTx-Pad5,PBSTx-Pad6,PBSTx-Pad7,PBSTx-Pad8\
> ,PBSTx-Pad9,PBSTx-Pad10,
> PBSRx-Pad0,PBSRx-Pad1,PBSRx-Pad2,PBSRx-Pad3,PBSRx-Pad4,PBSRx-Pad5,PBSRx-Pad6,PBSRx-Pad7,PBSRx-Pad8,PBSRx-Pad9,PBSRx-Pad10,
> Data: 0,57,15,13,15,13,20,20,CS0 ,
> 0,0,64,0,2,575,31,5,6,13,10,4,0,
> 0,0,0,0,0,0,0,0,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,
> 0,0,64,0,2,575,31,5,6,13,10,4,0,
> 0,0,0,0,0,0,0,0,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,
> 0,0,64,0,2,575,31,5,6,13,10,4,0,
> 0,0,0,0,0,0,0,0,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,
> 0,0,64,0,2,575,31,5,6,13,10,4,0,
> 0,0,0,0,0,0,0,0,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,
>
> ******** DRAM initialization Failed (res 0x1)
> ********
> DDR3 Training Sequence - FAILED
> ddr3_init() failed: 1
> ### ERROR ### Please RESET the board ###
>
>
> xmodem: Connection timed out

I see. This error means the DRAM chips are not comaptible between these 2 boxes. Probably the DS116 DRAM is a lot faster (I own this DS116 because it is probably among the fastest Armada 385 NAS).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 02/23/2023 04:33PM by bodhi.
Re: 2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
February 23, 2023 06:06PM
DS218j:

Quote

DDR3 @ 666 [MHz]
DDR3 16 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM: 512 MiB

DS116 (DDR3):

Quote

DRAM: 1 GiB (933 MHz, 32-bit, ECC not enabled)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: 2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
April 02, 2023 04:13AM
Hi Bodhi,
Will it be possible to port u-boot to dove platform?
Re: 2023.04 U-Boot MVEBU -- Thecus N2350 and Synology DS116/RS816
April 18, 2023 01:26AM
wildhem,

> Will it be possible to port u-boot to dove
> platform?

Sorry for the late reply! I closed this tab accidentally.

It is possible. But I have problem running kwboot on HP T5335x (Dove SoC). So I'm stuck there. Before I can have a recovery/testing path, I cannot proceed with writing new u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: