Pomoc Reanimacja DS414j

Dyskusja w 'Cichociemni' rozpoczęta przez użytkownika archive, 2 Maj 2019.

  1. archive

    archive Nowy użytkownik Noobie

    Kiedyś padł mi DS414j(jedyny NAS na Mindspeed Comcerto C2000 w rodzinie Synology), nie z mojej przyczyny - chyba przy samodzielnej automatycznej aktualizacji. Nie wnikałem w to, dane odzyskane, NAS na długi czas trafił do pawlacza - ostatnia aktualizacja DSM to 6.0.2_8451.
    Postanowiłem go teraz uruchomić. Posiłkowałem się wątkiem: DS211j + serial , więcej nie potrafię i liczę na pomoc osób z większą wiedzą.
    NAS reaguje na podłączenie zasilania, miga led Power i nic więcej, port lan nie jest aktywny.
    Log z konsoli:
    Kod:
    uloader 2011.06.0 (Sep 11 2014 - 13:33:44)
    Board: Mindspeed C2000
    c2k_spi_probe
    DDR Training:
    ...............................................................................................................................Done
    Read  offset: 0d,0c,0a,08
    Write offset: 03,04,4b,06
    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:  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 8451
       Created:      2017-01-06   7:12:46 UTC
       Image Type:   <NULL> <NULL> <NULL> (<NULL>)
       Data Size:    3683249 Bytes =  3.5 MB
       Load Address: 05000000
       Entry Point:  05000000
    Bad Magic Number
    Barebox-C2K >/

    Log znaleziony gdzieś w necie poprawnie botującej jednostki:
    Kod:
    uloader 2011.06.0 (May 19 2014 - 18:15:23)
    Board: Mindspeed C2000
    c2k_spi_probe
    DDR Training:
    .................................................. .................................................. ...........................Done
    Read offset: 0c,0b,09,08
    Write offset: 44,05,03,05
    Copying Barebox from SPI Flash(bootopt=0)
    BB Copying Done
    ## Starting Barebox at 0x01000000 ...
    barebox 2011.06.0-dirty (May 19 2014 - 18:15:01)
    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)
    running /env/bin/init...
    Unknown command 'export' - try 'help'
    =============================================
    Synology Model: DS414j
    barebox 2011.06.0-dirty (May 19 2014 - 18:15:01)
    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: 0
    =============================================
    Synology Model: DS414j
    barebox 2011.06.0-dirty (May 19 2014 - 18:15:01)
    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 -n /dev/spi0.kernel -r /dev/spi0.rootfs
    use initrd /dev/spi0.rootfs
    Image Name: synology_comcerto2k_ds414j 4493
    Created: 2014-05-30 16:30:05 UTC
    Image Type: <NULL> <NULL> <NULL> (<NULL>)
    Data Size: 3670231 Bytes = 3.5 MB
    Load Address: 05000000
    Entry Point: 05000000
    Image Name: Linux-3.2.40
    Created: 2014-05-29 3:05:54 UTC
    Image Type: <NULL> <NULL> <NULL> (<NULL>)
    Data Size: 2682352 Bytes = 2.6 MB
    Load Address: 0f008000
    Entry Point: 0f008000
    OK
    Starting kernel with initrd ...
    commandline: 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 ip=none usb3_internal_clk=no
    arch_number: 1094
    Uncompressing Linux...

    Polecenia Bareboxa w DS414j:

    Kod:
    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 >/

    Po poleceniu print:

    Kod:
    Barebox-C2K >/ print
    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_ver                                                       sion=DS414jv10 ihd_num=4 netif_num=1 flash_size=8 SataLedSpecial=1 HddHotplug=1
    globals:
    Barebox-C2K >/

    Z konsoli mogę podnieść eth0 i za pomocą ftp przesyłać pliki, tylko nie wiem który pod jaki adres(ze składnią poleceń powinienem poradzić sobie).Wylutowałem eeprom, wgrałem sam plik uboot_DS414jv10.bin(z paczki DSM_DS414j_8451.pat) bez pozytywnych zmian, start zatrzymuje się w innym miejscu:

    Kod:
    uloader 2011.06.0 (Sep 11 2014 - 13:33:44)
    Board: Mindspeed C2000
    c2k_spi_probe
    DDR Training:
    ...............................................................................................................................Done
    Read  offset: 0d,0c,0a,08
    Write offset: 03,04,4b,06
    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:  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
    Bad Magic Number
    Barebox-C2K >/

    Otworzyłem w hex edytorze zawrtość uboot_DS414jv10.bin, zImage, rd.bin oraz kopię FLASH i próbowałem po początkowych znakach namierzyć położenie trzech pierwszych plików w pamięci eeprom by w odpowiednie miejsca wstawić nowe.
    Jedyne pasujące to uboot_DS414jv10.bin na 00000000 oraz rd.bin na 0x370000. Coś ma początek na 0x290000 i raczej nie przypomina zImage.
    Byłbym wdzięczny gdyby ktoś podpowiedział co i gdzie wgrać(najlepiej obiema metodami - poprzez tftp oraz programując w programatorze) by NAS wreszcie poprawnie pracował.