Pomoc Reanimacja DS414j

Discussion in 'Cichociemni' started by archive, May 2, 2019.

Loading...
  1. archive
    Offline

    archive Nowy użytkownik Noobie

    Joined:
    Feb 13, 2018
    Messages:
    2
    Local Time:
    12:33 PM
    Ratings:
    +1 / 0 / -0
    Followers:
    0
    QNAP:
    TS-x53
    Ethernet:
    100 GbE
    TS-x53 100 GbE
    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:
    Code (Text):
    1. uloader 2011.06.0 (Sep 11 2014 - 13:33:44)
    2. Board: Mindspeed C2000
    3. c2k_spi_probe
    4. DDR Training:
    5. ...............................................................................................................................Done
    6. Read  offset: 0d,0c,0a,08
    7. Write offset: 03,04,4b,06
    8. Copying Barebox from SPI Flash(bootopt=0)
    9. BB Copying Done
    10. ## Starting Barebox at 0x01000000 ...
    11. barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
    12. Board: Mindspeed C2000
    13. c2k_spi_probe
    14. c2k_otp_probe.
    15. cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
    16. class init complete
    17. tmu init complete
    18. bmu1 init: done
    19. bmu2 init: done
    20. util init complete
    21. GPI1 init complete
    22. GPI2 init complete
    23. HGPI init complete
    24. HIF rx desc: base_va: 03e80000, base_pa: 03e80000
    25. HIF tx desc: base_va: 03e80400, base_pa: 03e80400
    26. HIF init complete
    27. bmu1 enabled
    28. bmu2 enabled
    29. pfe_hw_init: done
    30. pfe_firmware_init
    31. pfe_load_elf
    32. pfe_load_elf no of sections: 10
    33. pfe_firmware_init: class firmware loaded
    34. pfe_load_elf
    35. pfe_load_elf no of sections: 10
    36. pfe_firmware_init: tmu firmware loaded
    37. pfe_load_elf
    38. pfe_load_elf no of sections: 14
    39. pfe_firmware_init: util firmware loaded
    40. gemac_port
    41. gemac_port
    42. miidev_restart_aneg for PHY1
    43. miidev_restart_aneg for PHY1
    44. miidev_restart_aneg for PHY0
    45. miidev_restart_aneg for PHY0
    46. cfi_probe: cfi_flash base: 0xc0000000 size: 0x04000000
    47. ## Unknown FLASH on Bank at 0xc0000000 - Size = 0x00000000 = 0 MB
    48. Using ENV from SPI Flash.
    49. nand_probe: comcerto_nand base: 0xc8300000 size: 0x2048 MB
    50. NAND type unknown: ff,ff
    51. No NAND device found!!!
    52. Malloc space: 0x00800000 -> 0x01000000 (size  8 MB)
    53. Stack space : 0x007f8000 -> 0x00800000 (size 32 kB)
    54. envfs: wrong magic on /dev/env0
    55. no valid environment found on /dev/env0. Using default environment
    56. running /env/bin/init...
    57. Unknown command 'export' - try 'help'
    58. =============================================
    59. Synology Model: DS414j
    60. barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
    61. PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
    62. Ref Clock: 48 MHz
    63. ARM Clock: 1200 MHz
    64. AXI Clock: 250 MHz
    65. DDR Clock: 533 MHz
    66. IPSEC Clock: 300 MHz
    67. C2K Revision: A1
    68. DDR Width : 32
    69. Fan 1: Not Good
    70. Fan 2: Not Good
    71. =============================================
    72. Hit [Ctrl+C] to stop autoboot:  0
    73. =============================================
    74. Synology Model: DS414j
    75. barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
    76. PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
    77. Ref Clock: 48 MHz
    78. ARM Clock: 1200 MHz
    79. AXI Clock: 250 MHz
    80. DDR Clock: 533 MHz
    81. IPSEC Clock: 300 MHz
    82. C2K Revision: A1
    83. DDR Width : 32
    84. Fan 1: Not Good
    85. Fan 2: Not Good
    86. =============================================
    87. booting kernel of type uimage from /dev/spi0.kernel -r /dev/spi0.rootfs
    88. use initrd /dev/spi0.rootfs
    89.    Verifying Checksum ... OK
    90.    Image Name:   synology_comcerto2k_ds414j 8451
    91.    Created:      2017-01-06   7:12:46 UTC
    92.    Image Type:   <NULL> <NULL> <NULL> (<NULL>)
    93.    Data Size:    3683249 Bytes =  3.5 MB
    94.    Load Address: 05000000
    95.    Entry Point:  05000000
    96. Bad Magic Number
    97. Barebox-C2K >/

    Log znaleziony gdzieś w necie poprawnie botującej jednostki:
    Code (Text):
    1. uloader 2011.06.0 (May 19 2014 - 18:15:23)
    2. Board: Mindspeed C2000
    3. c2k_spi_probe
    4. DDR Training:
    5. .................................................. .................................................. ...........................Done
    6. Read offset: 0c,0b,09,08
    7. Write offset: 44,05,03,05
    8. Copying Barebox from SPI Flash(bootopt=0)
    9. BB Copying Done
    10. ## Starting Barebox at 0x01000000 ...
    11. barebox 2011.06.0-dirty (May 19 2014 - 18:15:01)
    12. Board: Mindspeed C2000
    13. c2k_spi_probe
    14. c2k_otp_probe.
    15. cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
    16. class init complete
    17. tmu init complete
    18. bmu1 init: done
    19. bmu2 init: done
    20. util init complete
    21. GPI1 init complete
    22. GPI2 init complete
    23. HGPI init complete
    24. HIF rx desc: base_va: 03e80000, base_pa: 03e80000
    25. HIF tx desc: base_va: 03e80400, base_pa: 03e80400
    26. HIF init complete
    27. bmu1 enabled
    28. bmu2 enabled
    29. pfe_hw_init: done
    30. pfe_firmware_init
    31. pfe_load_elf
    32. pfe_load_elf no of sections: 10
    33. pfe_firmware_init: class firmware loaded
    34. pfe_load_elf
    35. pfe_load_elf no of sections: 10
    36. pfe_firmware_init: tmu firmware loaded
    37. pfe_load_elf
    38. pfe_load_elf no of sections: 14
    39. pfe_firmware_init: util firmware loaded
    40. gemac_port
    41. gemac_port
    42. miidev_restart_aneg for PHY1
    43. miidev_restart_aneg for PHY1
    44. miidev_restart_aneg for PHY0
    45. miidev_restart_aneg for PHY0
    46. cfi_probe: cfi_flash base: 0xc0000000 size: 0x04000000
    47. ## Unknown FLASH on Bank at 0xc0000000 - Size = 0x00000000 = 0 MB
    48. Using ENV from SPI Flash.
    49. nand_probe: comcerto_nand base: 0xc8300000 size: 0x2048 MB
    50. NAND type unknown: ff,ff
    51. No NAND device found!!!
    52. Malloc space: 0x00800000 -> 0x01000000 (size 8 MB)
    53. Stack space : 0x007f8000 -> 0x00800000 (size 32 kB)
    54. running /env/bin/init...
    55. Unknown command 'export' - try 'help'
    56. =============================================
    57. Synology Model: DS414j
    58. barebox 2011.06.0-dirty (May 19 2014 - 18:15:01)
    59. PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
    60. Ref Clock: 48 MHz
    61. ARM Clock: 1200 MHz
    62. AXI Clock: 250 MHz
    63. DDR Clock: 533 MHz
    64. IPSEC Clock: 300 MHz
    65. C2K Revision: A1
    66. DDR Width : 32
    67. Fan 1: Not Good
    68. Fan 2: Not Good
    69. =============================================
    70. Hit [Ctrl+C] to stop autoboot: 0
    71. =============================================
    72. Synology Model: DS414j
    73. barebox 2011.06.0-dirty (May 19 2014 - 18:15:01)
    74. PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
    75. Ref Clock: 48 MHz
    76. ARM Clock: 1200 MHz
    77. AXI Clock: 250 MHz
    78. DDR Clock: 533 MHz
    79. IPSEC Clock: 300 MHz
    80. C2K Revision: A1
    81. DDR Width : 32
    82. Fan 1: Not Good
    83. Fan 2: Not Good
    84. =============================================
    85. booting kernel of type uimage from -n /dev/spi0.kernel -r /dev/spi0.rootfs
    86. use initrd /dev/spi0.rootfs
    87. Image Name: synology_comcerto2k_ds414j 4493
    88. Created: 2014-05-30 16:30:05 UTC
    89. Image Type: <NULL> <NULL> <NULL> (<NULL>)
    90. Data Size: 3670231 Bytes = 3.5 MB
    91. Load Address: 05000000
    92. Entry Point: 05000000
    93. Image Name: Linux-3.2.40
    94. Created: 2014-05-29 3:05:54 UTC
    95. Image Type: <NULL> <NULL> <NULL> (<NULL>)
    96. Data Size: 2682352 Bytes = 2.6 MB
    97. Load Address: 0f008000
    98. Entry Point: 0f008000
    99. OK
    100. Starting kernel with initrd ...
    101. 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
    102. arch_number: 1094
    103. Uncompressing Linux...

    Polecenia Bareboxa w DS414j:

    Code (Text):
    1. Barebox-C2K >/ help
    2.          . - alias for source
    3.          ? - alias for help
    4.    WOLTest - WOLTest <phyaddr(Hex)>
    5.  use 00:50:43:8e:2c:09 as default Mac address
    6.          [ - alias for test
    7.    addpart - adds a partition table to a device
    8.      bootm - boot an application image
    9.      bootu - bootu - start a raw linux image
    10.      bootz - bootz - start a zImage
    11.        cat - concatenate file(s)
    12.         cd - change working directory
    13.      clear - clear screen
    14.       copy - copy command
    15.         cp - copy files
    16.    cpuinfo - Show info about CPU
    17.      crc32 - crc32 checksum calculation
    18.    delpart - delete partition(s)
    19.    devinfo - Show information about devices and drivers.
    20.       dhcp - invoke dhcp client to obtain ip/boot params
    21.       echo - echo args to console
    22.       edit - Usage: (s)edit <file>
    23.      erase - erase FLASH memory
    24. erase_nand - Erase the NAND
    25. erase_old_nand_fmt - Erase old NAND format
    26.     ethact - set current ethernet device
    27.       exit - exit script
    28.      false - do nothing, unsuccessfully
    29.        fan - fan <fan_type> <fanno> <gpio_id>
    30. gemac_stats - retrieve GEMAC statistics
    31.     getopt - getopt <optstring> <var>
    32.    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)
    33.       help - print online help
    34.  i2c_probe - probe for an i2c device
    35.   i2c_read - read from an i2c device
    36.  i2c_write - write to an i2c device
    37.    loadenv - Load environment from ENVFS into DIRECTORY (default: /dev/env0 -> /env).
    38.         ls - list a file or directory
    39.         md - memory display
    40.     memcmp - memory compare
    41.     memcpy - memory copy
    42.     memset - memory fill
    43.      mkdir - make directories
    44.      mount - Mount a filesystem of a given type to a mountpoint or list mounted filesystems.
    45.         mw - memory write (fill)
    46.       nand - NAND specific handling
    47.        pfe - pfe <options>
    48.  pfe_stats - retrieve PFE statistics
    49.        phy - PHY status, read and write operation
    50.       ping - ping <destination>
    51.   printenv - Print value of one or all environment variables.
    52.    protect - enable flash write protection
    53.        pwd - print working directory
    54.  read_nand - Read the NAND
    55.   readline - prompt for user input
    56.      reset - Perform RESET of the CPU
    57.         rm - remove files
    58.      rmdir - remove directorie(s)
    59.       sata - SATA sub system
    60.    saveenv - save environment to persistent storage
    61.      sedit - alias for edit
    62.         sh - run shell script
    63.    socinfo - print SoC info
    64.     source - execute shell script in current shell environment
    65.     switch - Atheros AR8328 switch read and write operation
    66. syno_pwoff - syno_pwoff
    67.       test - minimal test like /bin/sh
    68.       tftp - Load file using tftp protocol
    69.    timeout - wait for a specified timeout
    70.       true - do nothing, successfully
    71.     umount - umount a filesystem
    72.  unprotect - disable flash write protection
    73. update_i2c - update_i2c <src> <off> <size>
    74. update_nand - Flash the NAND
    75. update_nor - Flash the NOR
    76. update_spi - update_spi <src> <sec> <off> <size>
    77.    version - print monitor version
    78. Barebox-C2K >/

    Po poleceniu print:

    Code (Text):
    1. Barebox-C2K >/ print
    2. locals:
    3. PATH=/env/bin
    4. ip=none
    5. kernel_loc=SPI
    6. rootfs_loc=SPI
    7. kernelimage_type=uimage
    8. SPI_parts=384k(barebox),64k(bareboxenv),3072k(kernel),4480k(rootfs),64k(vendor),                                                       64k(RedBoot-Config),64k(FIS-Directory)
    9. autoboot_timeout=3
    10. usb3_internal_clk=no
    11. 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
    12. globals:
    13. 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:

    Code (Text):
    1. uloader 2011.06.0 (Sep 11 2014 - 13:33:44)
    2. Board: Mindspeed C2000
    3. c2k_spi_probe
    4. DDR Training:
    5. ...............................................................................................................................Done
    6. Read  offset: 0d,0c,0a,08
    7. Write offset: 03,04,4b,06
    8. Copying Barebox from SPI Flash(bootopt=0)
    9. BB Copying Done
    10. ## Starting Barebox at 0x01000000 ...
    11. barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
    12. Board: Mindspeed C2000
    13. c2k_spi_probe
    14. c2k_otp_probe.
    15. cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
    16. class init complete
    17. tmu init complete
    18. bmu1 init: done
    19. bmu2 init: done
    20. util init complete
    21. GPI1 init complete
    22. GPI2 init complete
    23. HGPI init complete
    24. HIF rx desc: base_va: 03e80000, base_pa: 03e80000
    25. HIF tx desc: base_va: 03e80400, base_pa: 03e80400
    26. HIF init complete
    27. bmu1 enabled
    28. bmu2 enabled
    29. pfe_hw_init: done
    30. pfe_firmware_init
    31. pfe_load_elf
    32. pfe_load_elf no of sections: 10
    33. pfe_firmware_init: class firmware loaded
    34. pfe_load_elf
    35. pfe_load_elf no of sections: 10
    36. pfe_firmware_init: tmu firmware loaded
    37. pfe_load_elf
    38. pfe_load_elf no of sections: 14
    39. pfe_firmware_init: util firmware loaded
    40. gemac_port
    41. gemac_port
    42. miidev_restart_aneg for PHY1
    43. miidev_restart_aneg for PHY1
    44. miidev_restart_aneg for PHY0
    45. miidev_restart_aneg for PHY0
    46. cfi_probe: cfi_flash base: 0xc0000000 size: 0x04000000
    47. ## Unknown FLASH on Bank at 0xc0000000 - Size = 0x00000000 = 0 MB
    48. Using ENV from SPI Flash.
    49. nand_probe: comcerto_nand base: 0xc8300000 size: 0x2048 MB
    50. NAND type unknown: ff,ff
    51. No NAND device found!!!
    52. Malloc space: 0x00800000 -> 0x01000000 (size  8 MB)
    53. Stack space : 0x007f8000 -> 0x00800000 (size 32 kB)
    54. envfs: wrong magic on /dev/env0
    55. no valid environment found on /dev/env0. Using default environment
    56. running /env/bin/init...
    57. Unknown command 'export' - try 'help'
    58. =============================================
    59. Synology Model: DS414j
    60. barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
    61. PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
    62. Ref Clock: 48 MHz
    63. ARM Clock: 1200 MHz
    64. AXI Clock: 250 MHz
    65. DDR Clock: 533 MHz
    66. IPSEC Clock: 300 MHz
    67. C2K Revision: A1
    68. DDR Width : 32
    69. Fan 1: Not Good
    70. Fan 2: Not Good
    71. =============================================
    72. Hit [Ctrl+C] to stop autoboot:  0
    73. =============================================
    74. Synology Model: DS414j
    75. barebox 2011.06.0-dirty (Sep 11 2014 - 13:33:21)
    76. PLL0: 2400, PLL1: 1000, PLL2: 1500, PLL3: 1066 MHz
    77. Ref Clock: 48 MHz
    78. ARM Clock: 1200 MHz
    79. AXI Clock: 250 MHz
    80. DDR Clock: 533 MHz
    81. IPSEC Clock: 300 MHz
    82. C2K Revision: A1
    83. DDR Width : 32
    84. Fan 1: Not Good
    85. Fan 2: Not Good
    86. =============================================
    87. booting kernel of type uimage from /dev/spi0.kernel -r /dev/spi0.rootfs
    88. use initrd /dev/spi0.rootfs
    89. Bad Magic Number
    90. 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ł.