Unbrick Synology DS414J March 16, 2023 08:30AM |
Registered: 1 year ago Posts: 5 |
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 >/
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 >/
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 >/
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 >/
Re: Unbrick Synology DS414J March 16, 2023 02:42PM |
Admin Registered: 13 years ago Posts: 19,102 |
ping 192.168.0.1
Quote
booting kernel of type uimage from /dev/spi0.kernel -r /dev/spi0.rootfs
use initrd /dev/spi0.rootfs
update -t rootfs -d nor -m tftp -f spi_rootfswhere spi_rootfs is the name of the original rootfs in the /tftproot folder. You might be able to find this image at Sylonogy website.
Re: Unbrick Synology DS414J March 16, 2023 04:16PM |
Registered: 1 year ago Posts: 5 |
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 |
Admin Registered: 13 years ago Posts: 19,102 |
printenv
setenv serverip 192.168.8.100
Re: Unbrick Synology DS414J March 16, 2023 05:38PM |
Registered: 1 year ago Posts: 5 |
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 >/
Re: Unbrick Synology DS414J March 16, 2023 05:47PM |
Admin Registered: 13 years ago Posts: 19,102 |
dhcp printenvHopefully we will see ip= 192.168.8.111
ls /envand drill down to see if you can find the env file.
Re: Unbrick Synology DS414J March 16, 2023 05:51PM |
Admin Registered: 13 years ago Posts: 19,102 |
ls /env/
Re: Unbrick Synology DS414J March 16, 2023 06:10PM |
Registered: 1 year ago Posts: 5 |
Re: Unbrick Synology DS414J March 16, 2023 06:16PM |
Registered: 1 year ago Posts: 5 |
.[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 |
Admin Registered: 13 years ago Posts: 19,102 |
> .[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 >
type update -t bareboxenv -d <nor|nand> [-m tftp|xmodem|ddr] [-f imagename|-a address] to update bareboxenv into flash
Re: Unbrick Synology DS414J March 16, 2023 11:12PM |
Admin Registered: 13 years ago Posts: 19,102 |
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.
Re: Unbrick Synology DS414J March 18, 2023 04:20AM |
Registered: 2 years ago Posts: 82 |
Re: Unbrick Synology DS414J March 18, 2023 02:48PM |
Admin Registered: 13 years ago Posts: 19,102 |