Welcome! Log In Create A New Profile

Advanced

Unbrick Synology DS414J

Posted by AdamOSA 
Unbrick Synology DS414J
March 16, 2023 08:30AM
My Synology DS414J file server crashed , there is no access from the network side , it does not want to initiate operation , after turning on the power LED blinks all the time .

I hooked up to the serial the result below

uloader 2011.06.0 (Sep 11 2014 - 13:33:44)

Board: Mindspeed C2000
c2k_spi_probe

DDR Training:
...............................................................................................................................Done
Read offset: 0d,0c,0c,08
Write offset: 03,05,4c,05

Copying Barebox from SPI Flash(bootopt=0)
BB Copying Done
## Starting Barebox at 0x01000000 ...


barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)

Board: Mindspeed C2000
c2k_spi_probe
c2k_otp_probe.
cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
class init complete
tmu init complete
bmu1 init: done
bmu2 init: done
util init complete
GPI1 init complete
GPI2 init complete
HGPI init complete
HIF rx desc: base_va: 03e80000, base_pa: 03e80000
HIF tx desc: base_va: 03e80400, base_pa: 03e80400
HIF init complete
bmu1 enabled
bmu2 enabled
pfe_hw_init: done
pfe_firmware_init
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: class firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: tmu firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 14
pfe_firmware_init: util firmware loaded
gemac_port
gemac_port
miidev_restart_aneg for PHY1
miidev_restart_aneg for PHY1
miidev_restart_aneg for PHY0
miidev_restart_aneg for PHY0
cfi_probe: cfi_flash base: 0xc0000000 size: 0x04000000
## Unknown FLASH on Bank at 0xc0000000 - Size = 0x00000000 = 0 MB
Using ENV from SPI Flash.
nand_probe: comcerto_nand base: 0xc8300000 size: 0x2048 MB
NAND type unknown: ff,ff
No NAND device found!!!
Malloc space: 0x00800000 -> 0x01000000 (size 8 MB)
Stack space : 0x007f8000 -> 0x00800000 (size 32 kB)
envfs: wrong magic on /dev/env0
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
Unknown command 'export' - try 'help'
=============================================

Synology Model: DS414j


barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
Ref Clock: 48 MHz
ARM Clock: 1200 MHz
AXI Clock: 250 MHz
DDR Clock: 533 MHz
IPSEC Clock: 300 MHz
C2K Revision: A1
DDR Width : 32
Fan 1: Not Good
Fan 2: Not Good
=============================================

Hit [Ctrl+C] to stop autoboot: 3.. 2.. 1.. 0
=============================================

Synology Model: DS414j


barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
Ref Clock: 48 MHz
ARM Clock: 1200 MHz
AXI Clock: 250 MHz
DDR Clock: 533 MHz
IPSEC Clock: 300 MHz
C2K Revision: A1
DDR Width : 32
Fan 1: Not Good
Fan 2: Not Good
=============================================

booting kernel of type uimage from /dev/spi0.kernel -r /dev/spi0.rootfs

use initrd /dev/spi0.rootfs
Verifying Checksum ... OK
Image Name: synology_comcerto2k_ds414j 25426
Created: 2020-05-11 22:01:02 UTC
Image Type: <NULL> <NULL> <NULL> (<NULL>)
Data Size: 3845029 Bytes = 3.7 MB
Load Address: 05000000
Entry Point: 05000000
Verifying Checksum ... Bad Data CRC
Barebox-C2K >/



I found on the net recovery help in such cases but they apply to other boards on other proc's and the worst thing is that with other bootloaders ( most Marvell-a) I have uloader Barebox-C2K (if I wrote correctly ) . I don't have at my disposal the commands that are available in other descriptions . Below I put what I "own"

Barebox-C2K >/ help

. - alias for source
? - alias for help
WOLTest - WOLTest <phyaddr(Hex)>..
use 00:50:43:8e:2c:09 as default Mac address

[ - alias for test
addpart - adds a partition table to a device
bootm - boot an application image
bootu - bootu - start a raw linux image
bootz - bootz - start a zImage
cat - concatenate file(s)
cd - change working directory
clear - clear screen
copy - copy command
cp - copy files
cpuinfo - Show info about CPU
crc32 - crc32 checksum calculation
delpart - delete partition(s)
devinfo - Show information about devices and drivers.
dhcp - invoke dhcp client to obtain ip/boot params
echo - echo args to console
edit - Usage: (s)edit <file>
erase - erase FLASH memory
erase_nand - Erase the NAND
erase_old_nand_fmt - Erase old NAND format
ethact - set current ethernet device
exit - exit script
false - do nothing, unsuccessfully
fan - fan <fan_type> <fanno> <gpio_id>
gemac_stats - retrieve GEMAC statistics
getopt - getopt <optstring> <var>
gpio_rw - gpio_rw <read> <gpio_num> (for example : gpio_rw 0 10) ; gpio_rw <write> <gpio_num> <value> (for example : gpio_rw 1 10 1)
help - print online help
i2c_probe - probe for an i2c device
i2c_read - read from an i2c device
i2c_write - write to an i2c device
loadenv - Load environment from ENVFS into DIRECTORY (default: /dev/env0 -> /env).
ls - list a file or directory
md - memory display
memcmp - memory compare
memcpy - memory copy
memset - memory fill
mkdir - make directories
mount - Mount a filesystem of a given type to a mountpoint or list mounted filesystems.
mw - memory write (fill)
nand - NAND specific handling
pfe - pfe <options>
pfe_stats - retrieve PFE statistics
phy - PHY status, read and write operation
ping - ping <destination>
printenv - Print value of one or all environment variables.
protect - enable flash write protection
pwd - print working directory
read_nand - Read the NAND
readline - prompt for user input
reset - Perform RESET of the CPU
rm - remove files
rmdir - remove directorie(s)
sata - SATA sub system
saveenv - save environment to persistent storage
sedit - alias for edit
sh - run shell script
socinfo - print SoC info
source - execute shell script in current shell environment
switch - Atheros AR8328 switch read and write operation
syno_pwoff - syno_pwoff
test - minimal test like /bin/sh
tftp - Load file using tftp protocol
timeout - wait for a specified timeout
true - do nothing, successfully
umount - umount a filesystem
unprotect - disable flash write protection
update_i2c - update_i2c <src> <off> <size>
update_nand - Flash the NAND
update_nor - Flash the NOR
update_spi - update_spi <src> <sec> <off> <size>
version - print monitor version
Barebox-C2K >/



I do not start LAN (in the descriptions the possibility to repair the kernel through the terminal), and the worst thing is that my knowledge of Linux is very small

I can call an additional "function" update during loading, but I do not really know if this is the right way

uloader 2011.06.0 (Sep 11 2014 - 13:33:44)

Board: Mindspeed C2000
c2k_spi_probe

DDR Training:
...............................................................................................................................Done
Read offset: 0c,0c,0a,08
Write offset: 04,06,42,05

Copying Barebox from SPI Flash(bootopt=0)
BB Copying Done
## Starting Barebox at 0x01000000 ...


barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)

Board: Mindspeed C2000
c2k_spi_probe
c2k_otp_probe.
cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
class init complete
tmu init complete
bmu1 init: done
bmu2 init: done
util init complete
GPI1 init complete
GPI2 init complete
HGPI init complete
HIF rx desc: base_va: 03e80000, base_pa: 03e80000
HIF tx desc: base_va: 03e80400, base_pa: 03e80400
HIF init complete
bmu1 enabled
bmu2 enabled
pfe_hw_init: done
pfe_firmware_init
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: class firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: tmu firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 14
pfe_firmware_init: util firmware loaded
gemac_port
gemac_port
miidev_restart_aneg for PHY1
miidev_restart_aneg for PHY1
miidev_restart_aneg for PHY0
miidev_restart_aneg for PHY0
cfi_probe: cfi_flash base: 0xc0000000 size: 0x04000000
## Unknown FLASH on Bank at 0xc0000000 - Size = 0x00000000 = 0 MB
Using ENV from SPI Flash.
nand_probe: comcerto_nand base: 0xc8300000 size: 0x2048 MB
NAND type unknown: ff,ff
No NAND device found!!!
Malloc space: 0x00800000 -> 0x01000000 (size 8 MB)
Stack space : 0x007f8000 -> 0x00800000 (size 32 kB)
envfs: wrong magic on /dev/env0
no valid environment found on /dev/env0. Using default environment
running /env/bin/init...
Unknown command 'export' - try 'help'
=============================================

Synology Model: DS414j


barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
Ref Clock: 48 MHz
ARM Clock: 1200 MHz
AXI Clock: 250 MHz
DDR Clock: 533 MHz
IPSEC Clock: 300 MHz
C2K Revision: A1
DDR Width : 32
Fan 1: Not Good
Fan 2: Not Good
=============================================

Hit [Ctrl+C] to stop autoboot: 3.. 2
usage: update -t <kernel|rootfs|barebox|bareboxenv> -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] -c

update tools.

options

-c to check the crc32 for the image and flashed one

default mode is tftp

type update -t uloader -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update uloader into flash

type update -t barebox -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update barebox into flash

type update -t kernel -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update kernel into flash

type update -t rootfs -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update rootfs into flash

type update -t bareboxenv -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update bareboxenv into flash

Barebox-C2K >/

command result printenv
Barebox-C2K >/ printenv

locals:
PATH=/env/bin
ip=none
kernel_loc=SPI
rootfs_loc=SPI
kernelimage_type=uimage
SPI_parts=384k(barebox),64k(bareboxenv),3072k(kernel),4480k(rootfs),64k(vendor),64k(RedBoot-Config),64k(FIS-Directory)
autoboot_timeout=3
usb3_internal_clk=no
bootargs=console=ttyS0,115200n8 initrd=0x5000000,8M root=/dev/md0 rw syno_hw_version=DS414jv10 ihd_num=4 netif_num=1 flash_size=8 SataLedSpecial=1 HddHotplug=1
globals:
Barebox-C2K >/



Are any forumers able to help me solve this problem ?
Sorry with my English
Re: Unbrick Synology DS414J
March 16, 2023 02:42PM
AdamOSA,

I don't know much about Barebox. So I can only have an educated guess.

> I do not start LAN (in the descriptions the
> possibility to repair the kernel through the
> terminal),

Try to ping the network to see what will happen. For example if your router IP is 192.168.0.1, then

ping 192.168.0.1

Given the booting sequence is like this in the log

Quote

booting kernel of type uimage from /dev/spi0.kernel -r /dev/spi0.rootfs

use initrd /dev/spi0.rootfs

> usage: update -t
> <kernel|rootfs|barebox|bareboxenv> -d <nor|nand>
> [-m tftp|xmodem|ddr] [-f imagename|-a address] -c

The above command looks like the right one. Here the most user friendly way to update the kernel is using tftp. So you need to set up tftp first.
update -t rootfs  -d nor -m tftp -f spi_rootfs
where spi_rootfs is the name of the original rootfs in the /tftproot folder. You might be able to find this image at Sylonogy website.

As I said, I'm not using Barebox, so the above are suggestions only.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick Synology DS414J
March 16, 2023 04:16PM
Thank you so much for taking the time to respond

I took a small step forward today . When loading the bootloader gives you the option to abort before loading ( CTRL + C key combination ) . I took advantage of this , ran the dhcp command and got an IP from my network range . Unfortunately PING to the network or vice versa gives no result . Changed the entry after printenv command . But I still can not set up cooperation with Tftpd running on 192.168.8.100 . On TFTP command tries to download from IP 0.0.0.0

Synology Model: DS414j


barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
Ref Clock: 48 MHz
ARM Clock: 1200 MHz
AXI Clock: 250 MHz
DDR Clock: 533 MHz
IPSEC Clock: 300 MHz
C2K Revision: A1
DDR Width : 32
Fan 1: Not Good
Fan 2: Not Good
=============================================

Hit [Ctrl+C] to stop autoboot:  3.. 2
usage: update -t <kernel|rootfs|barebox|bareboxenv> -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] -c

update tools.

options

 -c     to check the crc32 for the image and flashed one

default mode is tftp

type update -t uloader -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update uloader into flash

type update -t barebox -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update barebox into flash

type update -t kernel -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update kernel into flash

type update -t rootfs -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update rootfs into flash

type update -t bareboxenv -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update bareboxenv into flash

Barebox-C2K >/ dhcp

T T T DHCP client bound to address 192.168.8.111

Barebox-C2K >/ printenv

locals:
PATH=/env/bin
ip=none
kernel_loc=SPI
rootfs_loc=SPI
kernelimage_type=uimage
SPI_parts=384k(barebox),64k(bareboxenv),3072k(kernel),4480k(rootfs),64k(vendor),64k(RedBoot-Config),64k(FIS-Directory)
autoboot_timeout=3
usb3_internal_clk=no
bootargs=console=ttyS0,115200n8 initrd=0x5000000,8M root=/dev/md0 rw syno_hw_version=DS414jv10 ihd_num=4 netif_num=1 flash_size=8 SataLedSpecial=1 HddHotplug=1
nameserver=192.168.8.1
globals:
Barebox-C2K >/ 

Barebox-C2K >/ tftp /h

TFTP from server 0.0.0.0 ('/h' -> 'h')
.\.|./.-.\.|./.-.\.|./.-.
tftp failed: Interrupted system call

Barebox-C2K >/ 
Re: Unbrick Synology DS414J
March 16, 2023 05:23PM
dhcp works then it is all good. So do a printenv to see what's the current envs look like
printenv

Most likely the serverip is not defined, so define it and then try tftp again
setenv serverip 192.168.8.100

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick Synology DS414J
March 16, 2023 05:38PM
Barebox-C2K >/ printenv

locals:
PATH=/env/bin
ip=none
kernel_loc=SPI
rootfs_loc=SPI
kernelimage_type=uimage
SPI_parts=384k(barebox),64k(bareboxenv),3072k(kernel),4480k(rootfs),64k(vendor),64k(RedBoot-Config),64k(FIS-Directory)
autoboot_timeout=3
usb3_internal_clk=no
bootargs=console=ttyS0,115200n8 initrd=0x5000000,8M root=/dev/md0 rw syno_hw_version=DS414jv10 ihd_num=4 netif_num=1 flash_size=8 SataLedSpecial=1 HddHotplug=1
nameserver=192.168.8.1
globals:
Barebox-C2K >/

Barebox-C2K >/ setenv serverip 192.168.8.100

Unknown command 'setenv' - try 'help'
Barebox-C2K >/

unfortunately it does not interpret such a command

And that's what I don't understand
ip=none
nameserver=192.168.8.1



Edited 1 time(s). Last edit at 03/16/2023 05:41PM by AdamOSA.
Re: Unbrick Synology DS414J
March 16, 2023 05:47PM
> unfortunately it does not interpret such a
> command

So Synology actually removed the setenv command!

> And that's what I don't understand
> ip=none
> nameserver=192.168.8.1

It means the router is set with the correct IP address. But the ip is not set (IP address for this box). Do this
dhcp
printenv
Hopefully we will see ip= 192.168.8.111

======

The interface is actually more user friendly than u-boot. You can use the ls command to browse the /env folder.

ls /env
and drill down to see if you can find the env file.

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



Edited 3 time(s). Last edit at 03/16/2023 05:55PM by bodhi.
Re: Unbrick Synology DS414J
March 16, 2023 05:51PM
Nah, it should be

ls /env/

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick Synology DS414J
March 16, 2023 06:10PM
Barebox-C2K >/ ls /env/

.         ..        config    bin       
Barebox-C2K >/
Re: Unbrick Synology DS414J
March 16, 2023 06:16PM
I will try to look into your head :-)

file config ?

.[2J.[1;1H#!/bin/sh.[K.[1;1H.[2;1H.[K.[1;1H.[3;1H# use 'dhcp' to do dhcp in barebox and in kernel.[K.[1;1H.[4;1H# use 'none' if you want to skip kernel ip autoconfiguration.[K.[1;1H.[5;1Hip=none.[K.[1;1H.[6;1H.[K.[1;1H.[7;1H# or set your networking parameters here.[K.[1;1H.[8;1Heth0.ethaddr=00:0A:0B:0C:0D:0E.[K.[1;1H.[9;1H.[K.[1;1H.[10;1H# can be either 'nfs', 'tftp' , 'nor' , 'nand' and 'sata'.[K.[1;1H.[11;1Hkernel_loc=SPI.[K.[1;1H.[12;1H# can be either 'net', 'nor' ,'initrd' , 'nand' and 'sata'.[K.[1;1H.[13;1Hrootfs_loc=SPI.[K.[1;1H.[14;1H.[K.[1;1H.[15;1H# The image type of the kernel. Can be uimage, zimage, raw, or raw_lzo.[K.[1;1H.[16;1Hkernelimage_type=uimage.[K.[1;1H.[17;1H.[K.[1;1H.[18;1HSPI_parts="384k(barebox),64k(bareboxenv),3072k(kernel),4480k(rootfs),64k(vendor).[K.[1;1H.[19;1H.[K.[1;1H.[20;1Hautoboot_timeout=3.[K.[1;1H.[21;1H.[K.[1;1H.[22;1Husb3_internal_clk="no".[K.[1;1H.[23;1H.[K.[1;1H.[24;1Hbootargs="console=ttyS0,115200n8 initrd=0x5000000,8M root=/dev/md0 rw syno_hw_ve.[K.[1;1H.[25;1H.[K.[1;1H.[1;1H.[1;1H.[K.[2;1H.[2;1H#!/bin/sh.[K.[2;1H.[3;1H.[K.[2;1H.[4;1H# use 'dhcp' to do dhcp in barebox and in kernel.[K.[2;1H.[5;1H# use 'none' if you want to skip kernel ip autoconfiguration.[K.[2;1H.[6;1Hip=none.[K.[2;1H.[7;1H.[K.[2;1H.[8;1H# or set your networking parameters here.[K.[2;1H.[9;1Heth0.ethaddr=00:0A:0B:0C:0D:0E.[K.[2;1H.[10;1H.[K.[2;1H.[11;1H# can be either 'nfs', 'tftp' , 'nor' , 'nand' and 'sata'.[K.[2;1H.[12;1Hkernel_loc=SPI.[K.[2;1H.[13;1H# can be either 'net', 'nor' ,'initrd' , 'nand' and 'sata'.[K.[2;1H.[14;1Hrootfs_loc=SPI.[K.[2;1H.[15;1H.[K.[2;1H.[16;1H# The image type of the kernel. Can be uimage, zimage, raw, or raw_lzo.[K.[2;1H.[17;1Hkernelimage_type=uimage.[K.[2;1H.[18;1H.[K.[2;1H.[19;1HSPI_parts="384k(barebox),64k(bareboxenv),3072k(kernel),4480k(rootfs),64k(vendor).[K.[2;1H.[20;1H.[K.[2;1H.[21;1Hautoboot_timeout=3.[K.[2;1H.[22;1H.[K.[2;1H.[23;1Husb3_internal_clk="no".[K.[2;1H.[24;1H.[K.[2;1H.[25;1Hbootargs="console=ttyS0,115200n8 initrd=0x5000000,8M root=/dev/md0 rw syno_hw_ve.[K.[2;1H.[2;1H.[2;1H.[2J
Re: Unbrick Synology DS414J
March 16, 2023 06:42PM
Adam,

> I will try to look into your head :-)

:)

>
> file config ?
>
>
> .[2J.[1;1H#!/bin/sh.[K.[1;1H.[2;1H.[K.[1;1H.[3;1H#
> use 'dhcp' to do dhcp in barebox and in
> kernel.[K.[1;1H.[4;1H# use 'none' if you want to
> skip kernel ip
> autoconfiguration.[K.[1;1H.[5;1Hip=none.[K.[1;1H.[6;1H.[K.[1;1H.[7;1H#
> or set your networking parameters
> here.[K.[1;1H.[8;1Heth0.ethaddr=00:0A:0B:0C:0D:0E.[K.[1;1H.[9;1H.[K.[1;1H.[10;1H#
> can be either 'nfs', 'tftp' , 'nor' , 'nand' and
> 'sata'.[K.[1;1H.[11;1Hkernel_loc=SPI.[K.[1;1H.[12;1H#
> can be either 'net', 'nor' ,'initrd' , 'nand' and
> 'sata'.[K.[1;1H.[13;1Hrootfs_loc=SPI.[K.[1;1H.[14;1H.[K.[1;1H.[15;1H#
> The image type of the kernel. Can be uimage,
> zimage, raw, or
> raw_lzo.[K.[1;1H.[16;1Hkernelimage_type=uimage.[K.[1;1H.[17;1H.[K.[1;1H.[18;1HSPI_parts="384k(barebox),64k(bareboxenv),3072k(kernel),4480k(rootfs),64k(vendor).[K.[1;1H.[19;1H.[K.[1;1H.[20;1Hautoboot_timeout=3.[K.[1;1H.[21;1H.[K.[1;1H.[22;1Husb3_internal_clk="no".[K.[1;1H.[23;1H.[K.[1;1H.[24;1Hbootargs="console=ttyS0,115200n8
> initrd=0x5000000,8M root=/dev/md0 rw
> syno_hw_ve.[K.[1;1H.[25;1H.[K.[1;1H.[1;1H.[1;1H.[K.[2;1H.[2;1H#!/bin/sh.[K.[2;1H.[3;1H.[K.[2;1H.[4;1H#
> use 'dhcp' to do dhcp in barebox and in
> kernel.[K.[2;1H.[5;1H# use 'none' if you want to
> skip kernel ip
> autoconfiguration.[K.[2;1H.[6;1Hip=none.[K.[2;1H.[7;1H.[K.[2;1H.[8;1H#
> or set your networking parameters
> here.[K.[2;1H.[9;1Heth0.ethaddr=00:0A:0B:0C:0D:0E.[K.[2;1H.[10;1H.[K.[2;1H.[11;1H#
> can be either 'nfs', 'tftp' , 'nor' , 'nand' and
> 'sata'.[K.[2;1H.[12;1Hkernel_loc=SPI.[K.[2;1H.[13;1H#
> can be either 'net', 'nor' ,'initrd' , 'nand' and
> 'sata'.[K.[2;1H.[14;1Hrootfs_loc=SPI.[K.[2;1H.[15;1H.[K.[2;1H.[16;1H#
> The image type of the kernel. Can be uimage,
> zimage, raw, or
> raw_lzo.[K.[2;1H.[17;1Hkernelimage_type=uimage.[K.[2;1H.[18;1H.[K.[2;1H.[19;1HSPI_parts="384k(barebox),64k(bareboxenv),3072k(kernel),4480k(rootfs),64k(vendor).[K.[2;1H.[20;1H.[K.[2;1H.[21;1Hautoboot_timeout=3.[K.[2;1H.[22;1H.[K.[2;1H.[23;1Husb3_internal_clk="no".[K.[2;1H.[24;1H.[K.[2;1H.[25;1Hbootargs="console=ttyS0,115200n8
> initrd=0x5000000,8M root=/dev/md0 rw
> syno_hw_ve.[K.[2;1H.[2;1H.[2;1H.[2J
>

As you can see, barebox has a way to update the internal envs.

type update -t bareboxenv -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update bareboxenv into flash

How about /env/bin ?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Unbrick Synology DS414J
March 16, 2023 11:12PM
https://www.barebox.org/doc/latest/user/defaultenv-2.html

Quote

1.9.4. /env/config
This file contains some basic configuration settings. It can be edited using the edit - a small full-screen editor command. Typical content:

#!/bin/sh

# change network settings in /env/network/eth0
# change mtd partition settings and automountpoints in /env/init/*

#global.hostname=

# set to false if you do not want to have colors
#global.allow_color=true

# user (used for network filenames)
#global.user=none

# timeout in seconds before the default boot entry is started
#global.autoboot_timeout=3

# key to abort autoboot. Supported options are: "any" and "ctrl-c"
#global.autoboot_abort_key=any

# list of boot entries. These are executed in order until one
# succeeds. An entry can be:
# - a filename in /env/boot/
# - a full path to a directory. All files in this directory are
# treated as boot files and executed in alphabetical order
#global.boot.default=net

# base bootargs
#global.linux.bootargs.base="console=ttyS0,115200"
When changing this file remember to do a saveenv to make the change persistent. Also it may be necessary to manually source /env/config before the changes take effect.

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



Edited 1 time(s). Last edit at 03/16/2023 11:14PM by bodhi.
Re: Unbrick Synology DS414J
March 18, 2023 04:20AM
It should be something like

eth0.ipaddr=192.168.1.191
eth0.serverip=192.168.1.139

https://community.zyxel.com/en/discussion/comment/35771/#Comment_35771
Re: Unbrick Synology DS414J
March 18, 2023 02:48PM
Thanks Mijzelf!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: