Vyměnit software (Linux) v NASu za jiný Linux

Alfieri21

Re:Vyměnit software (Linux) v NASu za jiný Linux
« Odpověď #45 kdy: 20. 06. 2017, 00:17:53 »
Tak například tady: http://forums.fedoraforum.org/showthread.php?t=313569 se píše, že ten img file je, jestli to tedy chápu správně, v podstatě dump (možná dd) celý eMMC paměti a obsahuje raid. Má nějaký ofset (otázka co těch 2048 sektorů vlastně obsahuje) a pak v něm jsou nějaké oddíly.
myslím toto:
Kód: [Vybrat]
Actually I was able to unpack that file, which is a zipped, .tgz file
which untars into another tgz , which then untars into a .bin file
which is a raid element, probably extracted via dd
then I did the following:

mdadm --examine ./system_p4.bin
which gave me:
Data Offset : 2048 sectors

so then I did the following:
mount -o loop,offset=$((2048*512)) ./system_p4.bin /mnt


and after that, then I did:
[root@nova v1.1.12.2.ROW-1g]# ls -lsca /mnt/boot/
total 11948
4 dr-xr-xr-x 3 root root 4096 Nov 27 2014 .
4 dr-xr-xr-x 21 root root 4096 Nov 27 2014 ..
84 -rw-r--r-- 1 root root 83883 Nov 27 2014 config-2.6.39-1.ce14.23.fc16.i686
4 drwxr-xr-x 2 root root 4096 Nov 27 2014 grub
6384 -rw-r--r-- 1 root root 6535380 Nov 27 2014 initramfs-2.6.39-1.ce14.23.fc16.i686.img
1624 -rw------- 1 root root 1661800 Nov 27 2014 System.map-2.6.39-1.ce14.23.fc16.i686
3844 -rwxr-xr-x 1 root root 3934848 Nov 27 2014 vmlinuz-2.6.39-1.ce14.23.fc16.i686


so, I reckon you won't gain anything by using this firmware, as it is FC16 as well.

EDIT: all things said, the one piece of good news is that it appears the Fedora system actually resides on Disk, and not on ROM so based on what I posted above, you maybe able to clone an OS into a firmware update file, however, at great risk of bricking the device, so I would only do this if you really don't care about the device and were about to throw it away.


Otázka, zda by se nedalo nějak mountnout a soubory editova/vyměnit za ty z Thecusu.

A dále jsem zjistil, že na desce je neosazený 2.54 pinheader, který má 4 piny a je označen první a poslední (musí se MoBo vyndat z NASu). 1 a 2 jsou RX a TX, 3 je 3,3V a 4 je GND. Tak jsem to osadil a zkusil připojit TTL serial <-> USB převodník a jede to.

Když se připojí napájení, tak to najede do režimu, že čeká buď na WakeOnLan nebo stisknutí tlačítek.

Uložil jsem si to jako text a vypadá to takto:

AC BOOT - aneb po připojení napájení:
Kód: [Vybrat]
AC_BOOT                                                                     
                                                                             
Intel(R) Consumer Electronics Firmware Development Kit (Intel(R) CEFDK)     
Copyright (C) 1999-2012 Intel Corporation. All rights reserved.             
Build Time (10/27/14 18:31:37).           
Searching 8051 FW in MFH...               
Load 8051 FW from MFH successfully!       
Splash: BMP found Width 720  Height 480   
SMM: Ok                                   
ACPI Init: finished with table region from 00011aa0 to 00018000
acpi: Created tables at 00011aa0-00018000

HCC Version          : 30-5.27(Dual)
CEFDK Version        : CE5300 (SMP enabled)
8051 Firmware        : C0-1.0.49 (0x00050000)
8051 FW I/O Module   : 30-3.7     
Silicon Stepping     : D0 (PCI)
Silicon SKU          : 0x06C
Board                : REF0
CPU Threads          : 4
CPU Multiplier       : 12
CPU Bus Speed        : 100 MHz
Memory Size          : 1024 MB
Memory Type & Speed  : x16 DDR3-1600 (11-11-11)
Memory Configuration : A B Interleave Mode 1
PCI Mode             : PCI Standard
Boot Mode            : SPI-NOR
HW-ID : 0x3
Check Lan Wake Settings

Pak to čeká.

Po stisku tlačítka PWR a zmáčknutí Enter ve vhodnou chvíli se dostanu do shellu. Kde jsem dal i "help" pro výpis možných příkazů.
Kód: [Vybrat]
COLD_BOOT

Intel(R) Consumer Electronics Firmware Development Kit (Intel(R) CEFDK)
Copyright (C) 1999-2012 Intel Corporation. All rights reserved.
Build Time (10/27/14 18:31:37).
Searching 8051 FW in MFH...
Load 8051 FW from MFH successfully!
Splash: BMP found Width 720  Height 480
SMM: Ok
ACPI Init: finished with table region from 00011aa0 to 00018000
acpi: Created tables at 00011aa0-00018000

HCC Version          : 30-5.27(Dual)
CEFDK Version        : CE5300 (SMP enabled)
8051 Firmware        : C0-1.0.49 (0x00050000)
8051 FW I/O Module   : 30-3.7     
Silicon Stepping     : D0 (PCI)
Silicon SKU          : 0x06C
Board                : REF0
CPU Threads          : 4
CPU Multiplier       : 12
CPU Bus Speed        : 100 MHz
Memory Size          : 1024 MB
Memory Type & Speed  : x16 DDR3-1600 (11-11-11)
Memory Configuration : A B Interleave Mode 1
PCI Mode             : PCI Standard
Boot Mode            : SPI-NOR
HW-ID : 0x3
Press 'Enter' within 0 seconds to disable automatic boot.

 *************************************************************
 Hit a key to start the shell or [SPACE] to set MAC address...
 *************************************************************
shell>
shell> help
   bootata - Boots from the primary master ATA device.
 bootlinux - Boots linux from flash. Usage: bootlinux "<kernel cmd line>"
    ymodem - Receive a file from serial using YMODEM.
     lspci - Displays PCI device info.
  ord[2|4] - Read or write to memory.
  pci[2|4] - Read or write to PCI configuration space.
 port[2|4] - Read or write to I/O port.
   ramdisk - set ramdisk start address and length
      mmap - Displays a system memory map.
  expflash - Access flash on expansion bus.
 bootflash - Boot Redboot from flash.
bootkernel - Boot Linux kernel from flash.
       mfh - manage the MFH on flash devices
       sha - Calculate a SHA sum for an input data string.
       md5 - Calculate a MD5 sum for an input data string.
      emmc - Auxiliary shell command to handle eMMC
 spi_flash - Auxiliary shell command to handle SPI Flash
     strap - reading the strappings on Soc.
      8051 - 8051 specific commands
     svmem - Perform SV memory test
   ata-map - Sets the ATA geometry mapping.
     cache - Manipulate the processor cache.
  settings - BIOS Settings
       i2c - I2C buses read and write (SV ver).
      iosf - Read/write 32 bit register on IOSF sideband port.
    script - Switch on/off the automatic shell script.
      gpio - gpio  commands
      help - Displays this screen.
      exit - Stops the shell.
shell>


A když se to nechá nabootovat:
Kód: [Vybrat]
COLD_BOOT

Intel(R) Consumer Electronics Firmware Development Kit (Intel(R) CEFDK)
Copyright (C) 1999-2012 Intel Corporation. All rights reserved.
Build Time (10/27/14 18:31:37).
Searching 8051 FW in MFH...
Load 8051 FW from MFH successfully!
Splash: BMP found Width 720  Height 480
SMM: Ok
ACPI Init: finished with table region from 00011aa0 to 00018000
acpi: Created tables at 00011aa0-00018000

HCC Version          : 30-5.27(Dual)
CEFDK Version        : CE5300 (SMP enabled)
8051 Firmware        : C0-1.0.49 (0x00050000)
8051 FW I/O Module   : 30-3.7     
Silicon Stepping     : D0 (PCI)
Silicon SKU          : 0x06C
Board                : REF0
CPU Threads          : 4
CPU Multiplier       : 12
CPU Bus Speed        : 100 MHz
Memory Size          : 1024 MB
Memory Type & Speed  : x16 DDR3-1600 (11-11-11)
Memory Configuration : A B Interleave Mode 1
PCI Mode             : PCI Standard
Boot Mode            : SPI-NOR
HW-ID : 0x3
Press 'Enter' within 0 seconds to disable automatic boot.

 *************************************************************
 Hit a key to start the shell or [SPACE] to set MAC address...
 *************************************************************
Boot Mode=0
Running auto script...
shell> ramdisk 0x8000000 0x8000000
shell> mfh list nand
MFH Entry List
 Type                   ID Active Offset     Size       Label
cefdk_s1                00 YES    0x00480800 0x00010000
cefdk_s2                00 YES    0x00490800 0x0006F000
cefdk_s1h               00 YES    0x004ff800 0x00000800
cefdk_s2h               00 YES    0x00500000 0x00000800
script                  00 YES    0x00500800 0x00000800
cefdk_params            00 YES    0x00501000 0x000005F0
splash                  00 YES    0x005015f0 0x000FD240
uc8051_fw               00 YES    0x005fe830 0x00010000
kernel                  00 YES    0x0060e830 0x003C0A60
ramdisk                 00 YES    0x00b0e830 0x023EDC70
user flash              00 NO     0x04000000 0x00000000
shell> bootkernel -id 0 "biosdevname=0 console=ttyS0,115200 memmap=exactmap memmap=128K@128K memmap=511M@1M vmalloc=586M quiet HWI"
CMD(0x48000)='biosdevname=0 console=ttyS0,115200 memmap=exactmap memmap=128K@128K memmap=511M@1M vmalloc=586M quiet HWID=3 DDR=102'
WARNING: Ancient bootloader, some functionality may be limited!
[    5.667769] ***ata1 : ahci_power_up***
[    5.671512] ###ata1 : ahci_power_up###
[    5.675495] ***ata2 : ahci_power_up***
[    6.930954] ###ata2 : ahci_power_up###
modprobe: FATAL: Could not load /lib/modules/2.6.39-1.ce14.23.fc16.i686/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.39-1.ce14.23.fc16.i686/modules.dep: No such file or directory

[    7.027134] physmap-flash physmap-flash.0: map_probe failed
modprobe: FATAL: Could not load /lib/modules/2.6.39-1.ce14.23.fc16.i686/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.39-1.ce14.23.fc16.i686/modules.dep: No such file or directory

[    7.338575] i8042: No controller found
@@



######################################################################
sh /img/bin/normal_boot.sh devices=[] devs_num=[]
######################################################################
Assemble RAID...
[   11.153589] criticalevent_user: raid_create md70
[   11.161914] mddev->recovery:32, mddev->curr_resync:0,  mddev->recovery_cp: 0
[   11.168975] nr=1 mddev->raid_disks=2 working=1 active=1 spare=0 failed=0 mddev->in_sync=1 remove=1 mdname=md70 degrade=1
[   11.179827] criticalevent_user: raid_degrade md70
mdadm: /dev/md70 has been started with 1 drive (out of 2).
Check RAID Status
Try to mount runtime system...

Welcome to Fedora release 16 (Verne)!

Started Replay Read-Ahead Data                                         [  OK  ]
Starting Collect Read-Ahead Data...                                           
Starting Syslog Kernel Log Buffer Bridge...                                   
Started Syslog Kernel Log Buffer Bridge                                [  OK  ]
Started Lock Directory                                                 [  OK  ]
Starting Media Directory...                                                   
Starting Software RAID Monitor Takeover...                                     
Starting Security File System...                                               
Starting Debug File System...                                                 
Starting Huge Pages File System...                                             
Starting POSIX Message Queue File System...                                   
Starting RPC Pipe File System...                                               
Starting udev Coldplug all Devices...                                         
Starting udev Kernel Device Manager...                                         
Started Runtime Directory                                              [  OK  ]
Started Collect Read-Ahead Data                                        [  OK  ]
Started udev Kernel Device Manager                                     [  OK  ]
Started Media Directory                                                [  OK  ]
Started Software RAID Monitor Takeover                                 [  OK  ]
Started Security File System                                           [  OK  ]
Started Debug File System                                              [  OK  ]
Started Huge Pages File System                                         [  OK  ]
Started POSIX Message Queue File System                                [  OK  ]
Started RPC Pipe File System                                           [  OK  ]
Started File System Check on Root Device                               [  OK  ]
Starting Remount API VFS...                                                   
Starting Remount Root FS...                                                   
Started Load legacy module configuration                               [  OK  ]
Started Set Up Additional Binary Formats                               [  OK  ]
Starting Apply Kernel Variables...                                             
Started Load Kernel Modules                                            [  OK  ]
Started Configuration File System                                      [  OK  ]
Starting Setup Virtual Console...                                             
Starting STDOUT Syslog Bridge...                                               
Started STDOUT Syslog Bridge                                           [  OK  ]
Started Remount API VFS                                                [  OK  ]
Started Remount Root FS                                                [  OK  ]
Started Apply Kernel Variables                                         [  OK  ]
Started udev Coldplug all Devices                                      [  OK  ]
Starting udev Wait for Complete Device Initialization...                       
Starting Configure read-only root support...                                   
Started Setup Virtual Console                                          [  OK  ]
Started Configure read-only root support                               [  OK  ]
Started udev Wait for Complete Device Initialization                   [  OK  ]
Started Show Plymouth Boot Screen                                      [  OK  ]
Starting Wait for storage scan...                                             
Started Wait for storage scan                                          [  OK  ]
Starting Initialize storage subsystems (RAID, LVM, etc.)...                   
Started Initialize storage subsystems (RAID, LVM, etc.)                [  OK  ]
Starting Initialize storage subsystems (RAID, LVM, etc.)...                   
Started Initialize storage subsystems (RAID, LVM, etc.)                [  OK  ]
Started Reconfigure the system on administrator request                [  OK  ]
Started Mark the need to relabel after reboot                          [  OK  ]
Started Relabel all filesystems, if necessary                          [  OK  ]
Starting Load Random Seed...                                                   
Starting Tell Plymouth To Write Out Runtime Data...                           
Starting Recreate Volatile Files and Directories...                           
Started Load Random Seed                                               [  OK  ]
Started Tell Plymouth To Write Out Runtime Data                        [  OK  ]
Failed to start Recreate Volatile Files and Directories                [FAILED]
See 'systemctl status systemd-tmpfiles-setup.service' for details.             
Starting Console System Startup Logging...                                     
Starting LSB: Mount and unmount network filesystems....                       
Starting The Apache HTTP Server (preset MPM)...                               
Starting Security Auditing Service...                                         
Started Software RAID monitoring and management                        [  OK  ]
Starting RPC bind service...                                                   
Starting SSH server keys generation....                                       
Starting NFSv4 ID-name mapping daemon...                                       
Starting Login Service...                                                     
Starting /etc/rc.d/rc.local Compatibility...                                   
Starting D-Bus System Message Bus...                                           
Started Console System Startup Logging                                 [  OK  ]
Started The Apache HTTP Server (preset MPM)                            [  OK  ]
Started Security Auditing Service                                      [  OK  ]
Started RPC bind service                                               [  OK  ]
Started SSH server keys generation.                                    [  OK  ]
Started NFSv4 ID-name mapping daemon                                   [  OK  ]
Starting NFS file locking service....                                         
Starting Command Scheduler...                                                 
Started Command Scheduler                                              [  OK  ]
Started D-Bus System Message Bus                                       [  OK  ]
Started Login Service                                                  [  OK  ]
Started LSB: Mount and unmount network filesystems.                    [  OK  ]
Starting Permit User Sessions...                                               
Started Permit User Sessions                                           [  OK  ]
Started NFS file locking service.                                      [  OK  ]
Stopping udev Kernel Device Manager...                                         
Stopped udev Kernel Device Manager                                     [  OK  ]
[   19.916756] ismd_tsi_hal.c:tsi_read_err_config:tsi_err_disabled=false
Starting udev Kernel Device Manager...                                         
Started udev Kernel Device Manager                                     [  OK  ]
[   21.957168] audio_apm_outputs.c:audio_pvt_output_valid_channel_config:
[   21.964026] audio_apm_outputs.c:ismd_audio_add_phys_output: ERROR: Audio config parameter or hardware ID error!: Return Code: 4R
[   21.978437] audio_apm_outputs.c:audio_pvt_output_valid_handle:
[   21.984576] audio_apm_outputs.c:ismd_audio_output_enable: ERROR: Invalid processor or output handle!: Return Code: 5 ISMD_ERRORE
[   22.415554] vgaarb: this pci device is not a vga device
[   22.605900] vgaarb: this pci device is not a vga device
Starting Arbitrary Executable File Formats File System...                     
Started Arbitrary Executable File Formats File System                  [  OK  ]
Started Load static arp entries                                        [  OK  ]
Starting Network Manager...                                                   
Started Network Manager                                                [  OK  ]
[   48.991315] Clear Critical Queue.
Started /etc/rc.d/rc.local Compatibility                               [  OK  ]
Starting Terminate Plymouth Boot Screen...                                     
Starting Wait for Plymouth Boot Screen to Quit...                             



BEACON login:

default login je admin/admin
a pak se dostanete do bash konzole


V tom shellu mě zaujala (a zatím jsem nezkoušel) varianta - bootata - Boots from the primary master ATA device.
Taky je tam toto:
 bootflash - Boot Redboot from flash.
a redboot je nějaká debug fíčura od redhatu. Ale tam mám strach cokoliv dělat, abych to nebricknul.
u volby   settings - BIOS Settings jsem byl zvědav, co tam je, ale k nastavení je víceméně jenom čas.

Otázka je, zda někdo znalejší má zkušenost např. s redbootem a dokázal by nasměrovat, zda je to cesta.
Případně ten Intel CEFDK?

Zkrátka, pokud někoho něco napadne, budu rád.....

Alfieri


nobody(ten pravej)

Re:Vyměnit software (Linux) v NASu za jiný Linux
« Odpověď #46 kdy: 20. 06. 2017, 18:37:42 »
jen k tomu image oobecne:
- pokud je nekomprimovanej RAW IMG, ta vzdy je to same, jako kdyz by byl stazen pres "dd"...

- 2048s je beznej posun oddilu, kdy je v ~1/4 MBR a ve zbyle casti muze byt Grub stage 1.5 a/nebo dalsi
https://en.wikipedia.org/wiki/GNU_GRUB#/media/File:GNU_GRUB_on_MBR_partitioned_hard_disk_drives.svg

- image co obsahuje komplet disk, tedy mbr i treba nekolik oddilu, lze pripojit snadno pomoci kpartx

Kód: [Vybrat]
# vytvoreni/prideleni /dev/mapper/loopXpY virtualnich zarizeni k image a jeho oddilum
# (-v je pro "ukecanejsi" prubeh)
kpartx -a -v image.dd

# v zavislosti na pritomnosti automatickeho mountovani pripojenych disku v tvem desktopu, nebo rucne:
mount /dev/mapper/loopXpY /cesta/kam/pripojit
# odpojit pomoci:
umount /dev/mapper/loopXpY /cesta/kam/pripojit

# zruseni/odpojeni virtualnich loop zarizeni od image
kpartx -d -v image.dd

Alfieri21

Re:Vyměnit software (Linux) v NASu za jiný Linux
« Odpověď #47 kdy: 22. 06. 2017, 13:34:27 »
tak jsem se tam dostal jak přes ssh, tak přes ttl serial-USB kabel.
login a pass je admin/admin, případně root/admin

Zkusil jsem mu vnutit repositář z Thecusu
https://github.com/gooodmorningopenstack/thecus-n2520/blob/master/rpms/nas_thecus-conf-2.1.3-1.noarch/img/bin/default_cfg/thecus6.0/N2560/etc/yum.repos.d/pkg.repo
Kód: [Vybrat]
[pkg]
name= pkg repository server for NAS
baseurl=http://ftp.thecus.com/ThecusOS/release/6.0/t1.1
gpgcheck=0
enabled=1

a yum check-update vrátil toto:
Kód: [Vybrat]
[root@BEACON yum.repos.d]# yum check-update
Loaded plugins: fastestmirror, tsflags
Loading mirror speeds from cached hostfile
pkg2                                                                                     | 3.6 kB     00:00     
pkg2/primary_db                                                                          | 410 kB     00:00     

NasApp.noarch                                           2.1.0-1.t1                                          pkg2
WebDisk.i686                                            2.0.4-9                                             pkg2
XBMC.i686                                               12.2.2.2-1.fc16                                     pkg2
apr.i686                                                1.4.5-1.fc16                                        pkg2
apr-util.i686                                           1.3.12-1.fc16                                       pkg2
apr-util-ldap.i686                                      1.3.12-1.fc16                                       pkg2
busybox.i686                                            1:1.18.2.2-1.os6                                    pkg2
fedora-release.noarch                                   16-1.1                                              pkg2
fwver.noarch                                            6.0-341.2                                           pkg2
httpd.i686                                              2.2.21-1.11.t1                                      pkg2
httpd-tools.i686                                        2.2.21-1.11.t1                                      pkg2
kernel.i686                                             2.6.39-1.ce20.fc16                                  pkg2
libblkid.i686                                           2.20.1.1-1                                          pkg2
libmount.i686                                           2.20.1.1-1                                          pkg2
libupnp.i686                                            1.6.18.1-1.fc16                                     pkg2
libuuid.i686                                            2.20.1.1-1                                          pkg2
mdadm.i686                                              3.2.2-13.2                                          pkg2
mod_ssl.i686                                            1:2.2.21-1.11.t1                                    pkg2
mt-daapd.i686                                           0.2.4-4.2                                           pkg2
mysql.i686                                              5.5.14-3.2                                          pkg2
mysql-libs.i686                                         5.5.14-3.2                                          pkg2
mysql-server.i686                                       5.5.14-3.2                                          pkg2
nas_admin-ui.i686                                       1.3.78.1-1                                          pkg2
nas_alarm.i686                                          1.0.0-3.fc16                                        pkg2
nas_enc_raid.i686                                       1.1.1-1                                             pkg2
nas_img-bin.i686                                        1.5.5.1-1.t1                                        pkg2
nas_ipv6check.i686                                      1.0.0-3.fc16                                        pkg2
nas_save_super.i686                                     1.0.0-3.fc16                                        pkg2
nas_savelog.i686                                        1.0.3-1                                             pkg2
nas_specstr_handle.i686                                 1.0.0-3.fc16                                        pkg2
nut.i686                                                2.7.2.2-1.t1                                        pkg2
nut-client.i686                                         2.7.2.2-1.t1                                        pkg2
openssl.i686                                            1.0.0o.1-1.t1                                       pkg2
rsync.i686                                              3.1.0-2                                             pkg2
sqlite.i686                                             3.7.7.1-1.2                                         pkg2
transmission-kit.i686                                   1.0.0-9                                             pkg2
udpr.i686                                               1.0.3-1                                             pkg2
util-linux.i686                                         2.20.1.1-1                                          pkg2

Alfieri21

Re:Vyměnit software (Linux) v NASu za jiný Linux
« Odpověď #48 kdy: 22. 06. 2017, 13:35:28 »
yum update ale neproběhl:
Kód: [Vybrat]
[root@BEACON yum.repos.d]# yum update
Loaded plugins: fastestmirror, tsflags
Loading mirror speeds from cached hostfile
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package NasApp.noarch 0:1.0.0-12.4 will be updated
---> Package NasApp.noarch 0:2.1.0-1.t1 will be an update
---> Package WebDisk.i686 0:2.0.4-8.1 will be updated
---> Package WebDisk.i686 0:2.0.4-9 will be an update
---> Package XBMC.i686 0:12.2-4.4.56.WO will be updated
---> Package XBMC.i686 0:12.2.2.2-1.fc16 will be an update
--> Processing Dependency: nas_kcmd for package: XBMC-12.2.2.2-1.fc16.i686
---> Package apr.i686 0:1.4.5-1 will be updated
---> Package apr.i686 0:1.4.5-1.fc16 will be an update
---> Package apr-util.i686 0:1.3.12-1 will be updated
---> Package apr-util.i686 0:1.3.12-1.fc16 will be an update
---> Package apr-util-ldap.i686 0:1.3.12-1 will be updated
---> Package apr-util-ldap.i686 0:1.3.12-1.fc16 will be an update
---> Package busybox.i686 1:1.18.2-5.fc16.1 will be updated
---> Package busybox.i686 1:1.18.2.2-1.os6 will be an update
---> Package fedora-release.noarch 0:16-1 will be updated
---> Package fedora-release.noarch 0:16-1.1 will be an update
---> Package fwver.noarch 0:6.0-195_v1.1.12.2.ROW will be updated
---> Package fwver.noarch 0:6.0-341.2 will be an update
---> Package httpd.i686 0:2.2.21-1.7.fc16 will be updated
---> Package httpd.i686 0:2.2.21-1.11.t1 will be an update
---> Package httpd-tools.i686 0:2.2.21-1.7.fc16 will be updated
---> Package httpd-tools.i686 0:2.2.21-1.11.t1 will be an update
---> Package kernel.i686 0:2.6.39-1.ce20.fc16 will be installed
---> Package libblkid.i686 0:2.20.1-2 will be updated
---> Package libblkid.i686 0:2.20.1.1-1 will be an update
---> Package libmount.i686 0:2.20.1-2 will be updated
---> Package libmount.i686 0:2.20.1.1-1 will be an update
---> Package libupnp.i686 0:1.6.6-1.1 will be updated
---> Package libupnp.i686 0:1.6.18.1-1.fc16 will be an update
---> Package libuuid.i686 0:2.20.1-2 will be updated
---> Package libuuid.i686 0:2.20.1.1-1 will be an update
---> Package mdadm.i686 0:3.2.2-13.1 will be updated
---> Package mdadm.i686 0:3.2.2-13.2 will be an update
---> Package mod_ssl.i686 1:2.2.21-1.7.fc16 will be updated
---> Package mod_ssl.i686 1:2.2.21-1.11.t1 will be an update
---> Package mt-daapd.i686 0:0.2.4-4.1 will be updated
---> Package mt-daapd.i686 0:0.2.4-4.2 will be an update
---> Package mysql.i686 0:5.5.14-3 will be updated
---> Package mysql.i686 0:5.5.14-3.2 will be an update
---> Package mysql-libs.i686 0:5.5.14-3 will be updated
---> Package mysql-libs.i686 0:5.5.14-3.2 will be an update
---> Package mysql-server.i686 0:5.5.14-3 will be updated
---> Package mysql-server.i686 0:5.5.14-3.2 will be an update
---> Package nas_admin-ui.i686 0:1.0.0-38.trial.93 will be updated
---> Package nas_admin-ui.i686 0:1.3.78.1-1 will be an update
---> Package nas_alarm.i686 0:1.0.0-1.fc16.2 will be updated
---> Package nas_alarm.i686 0:1.0.0-3.fc16 will be an update
---> Package nas_enc_raid.i686 0:1.0.0-1.1 will be updated
---> Package nas_enc_raid.i686 0:1.1.1-1 will be an update
---> Package nas_img-bin.i686 0:1.0.0-36.trial.111 will be updated
---> Package nas_img-bin.i686 0:1.5.5.1-1.t1 will be an update
--> Processing Dependency: nas_model-conf >= 2.0.0-1 for package: nas_img-bin-1.5.5.1-1.t1.i686
---> Package nas_ipv6check.i686 0:1.0.0-1.fc16.3 will be updated
---> Package nas_ipv6check.i686 0:1.0.0-3.fc16 will be an update
---> Package nas_save_super.i686 0:1.0.0-1.fc16.1 will be updated
---> Package nas_save_super.i686 0:1.0.0-3.fc16 will be an update
---> Package nas_savelog.i686 0:1.0.0-1.1 will be updated
---> Package nas_savelog.i686 0:1.0.3-1 will be an update
---> Package nas_specstr_handle.i686 0:1.0.0-1.fc16.2 will be updated
---> Package nas_specstr_handle.i686 0:1.0.0-3.fc16 will be an update
---> Package nut.i686 0:2.6.5-6.fc16.1 will be updated
---> Package nut.i686 0:2.7.2.2-1.t1 will be an update
---> Package nut-client.i686 0:2.6.5-6.fc16.1 will be updated
---> Package nut-client.i686 0:2.7.2.2-1.t1 will be an update
---> Package openssl.i686 0:1.0.0e-1 will be updated
---> Package openssl.i686 0:1.0.0o.1-1.t1 will be an update
---> Package rsync.i686 0:3.0.8-1 will be updated
---> Package rsync.i686 0:3.1.0-2 will be an update
---> Package sqlite.i686 0:3.7.7.1-1 will be updated
---> Package sqlite.i686 0:3.7.7.1-1.2 will be an update
---> Package transmission-kit.i686 0:1.0.0-8.trial.3 will be updated
---> Package transmission-kit.i686 0:1.0.0-9 will be an update
---> Package udpr.i686 0:1.0.0-3.2 will be updated
---> Package udpr.i686 0:1.0.3-1 will be an update
---> Package util-linux.i686 0:2.20.1-2 will be updated
---> Package util-linux.i686 0:2.20.1.1-1 will be an update
--> Running transaction check
---> Package nas_kcmd.i686 0:1.1.0-1.fc16 will be installed
---> Package nas_model-conf.noarch 0:2.1.3-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================
 Package                         Arch                Version                            Repository         Size
================================================================================================================
Installing:
 kernel                          i686                2.6.39-1.ce20.fc16                 pkg2              6.3 M
Updating:
 NasApp                          noarch              2.1.0-1.t1                         pkg2               32 k
 WebDisk                         i686                2.0.4-9                            pkg2              2.7 M
 XBMC                            i686                12.2.2.2-1.fc16                    pkg2              149 M
 apr                             i686                1.4.5-1.fc16                       pkg2              103 k
 apr-util                        i686                1.3.12-1.fc16                      pkg2               82 k
 apr-util-ldap                   i686                1.3.12-1.fc16                      pkg2               16 k
 busybox                         i686                1:1.18.2.2-1.os6                   pkg2              608 k
 fedora-release                  noarch              16-1.1                             pkg2               23 k
 fwver                           noarch              6.0-341.2                          pkg2              2.0 k
 httpd                           i686                2.2.21-1.11.t1                     pkg2              815 k
 httpd-tools                     i686                2.2.21-1.11.t1                     pkg2               68 k
 libblkid                        i686                2.20.1.1-1                         pkg2              126 k
 libmount                        i686                2.20.1.1-1                         pkg2              116 k
 libupnp                         i686                1.6.18.1-1.fc16                    pkg2              108 k
 libuuid                         i686                2.20.1.1-1                         pkg2               63 k
 mdadm                           i686                3.2.2-13.2                         pkg2              321 k
 mod_ssl                         i686                1:2.2.21-1.11.t1                   pkg2               87 k
 mt-daapd                        i686                0.2.4-4.2                          pkg2              710 k
 mysql                           i686                5.5.14-3.2                         pkg2              4.5 M
 mysql-libs                      i686                5.5.14-3.2                         pkg2              676 k
 mysql-server                    i686                5.5.14-3.2                         pkg2              7.9 M
 nas_admin-ui                    i686                1.3.78.1-1                         pkg2              5.5 M
 nas_alarm                       i686                1.0.0-3.fc16                       pkg2              5.6 k
 nas_enc_raid                    i686                1.1.1-1                            pkg2               40 k
 nas_img-bin                     i686                1.5.5.1-1.t1                       pkg2              699 k
 nas_ipv6check                   i686                1.0.0-3.fc16                       pkg2              5.7 k
 nas_save_super                  i686                1.0.0-3.fc16                       pkg2              4.7 k
 nas_savelog                     i686                1.0.3-1                            pkg2              8.4 k
 nas_specstr_handle              i686                1.0.0-3.fc16                       pkg2              4.5 k
 nut                             i686                2.7.2.2-1.t1                       pkg2              1.3 M
 nut-client                      i686                2.7.2.2-1.t1                       pkg2              188 k
 openssl                         i686                1.0.0o.1-1.t1                      pkg2              926 k
 rsync                           i686                3.1.0-2                            pkg2              186 k
 sqlite                          i686                3.7.7.1-1.2                        pkg2              331 k
 transmission-kit                i686                1.0.0-9                            pkg2              265 k
 udpr                            i686                1.0.3-1                            pkg2               24 k
 util-linux                      i686                2.20.1.1-1                         pkg2              1.2 M
Installing for dependencies:
 nas_kcmd                        i686                1.1.0-1.fc16                       pkg2              4.0 k
 nas_model-conf                  noarch              2.1.3-1                            pkg2               26 k

Transaction Summary
================================================================================================================
Install       3 Packages
Upgrade      37 Packages

Total download size: 185 M
Is this ok [y/N]: y
Downloading Packages:
(1/40): NasApp-2.1.0-1.t1.noarch.rpm                                                     |  32 kB     00:00     
(2/40): WebDisk-2.0.4-9.i686.rpm                                                         | 2.7 MB     00:01     
(3/40): XBMC-12.2.2.2-1.fc16.i686.rpm                                                    | 149 MB     00:44     
(4/40): apr-1.4.5-1.fc16.i686.rpm                                                        | 103 kB     00:00     
(5/40): apr-util-1.3.12-1.fc16.i686.rpm                                                  |  82 kB     00:00     
(6/40): apr-util-ldap-1.3.12-1.fc16.i686.rpm                                             |  16 kB     00:00     
(7/40): busybox-1.18.2.2-1.os6.i686.rpm                                                  | 608 kB     00:00     
(8/40): fedora-release-16-1.1.noarch.rpm                                                 |  23 kB     00:00     
(9/40): fwver-6.0-341.2.noarch.rpm                                                       | 2.0 kB     00:00     
(10/40): httpd-2.2.21-1.11.t1.i686.rpm                                                   | 815 kB     00:00     
(11/40): httpd-tools-2.2.21-1.11.t1.i686.rpm                                             |  68 kB     00:00     
(12/40): kernel-2.6.39-1.ce20.fc16.i686.rpm                                              | 6.3 MB     00:02     
(13/40): libblkid-2.20.1.1-1.i686.rpm                                                    | 126 kB     00:00     
(14/40): libmount-2.20.1.1-1.i686.rpm                                                    | 116 kB     00:00     
(15/40): libupnp-1.6.18.1-1.fc16.i686.rpm                                                | 108 kB     00:00     
(16/40): libuuid-2.20.1.1-1.i686.rpm                                                     |  63 kB     00:00     
(17/40): mdadm-3.2.2-13.2.i686.rpm                                                       | 321 kB     00:00     
(18/40): mod_ssl-2.2.21-1.11.t1.i686.rpm                                                 |  87 kB     00:00     
(19/40): mt-daapd-0.2.4-4.2.i686.rpm                                                     | 710 kB     00:00     
(20/40): mysql-5.5.14-3.2.i686.rpm                                                       | 4.5 MB     00:01     
(21/40): mysql-libs-5.5.14-3.2.i686.rpm                                                  | 676 kB     00:00     
(22/40): mysql-server-5.5.14-3.2.i686.rpm                                                | 7.9 MB     00:01     
(23/40): nas_admin-ui-1.3.78.1-1.i686.rpm                                                | 5.5 MB     00:01     
(24/40): nas_alarm-1.0.0-3.fc16.i686.rpm                                                 | 5.6 kB     00:00     
(25/40): nas_enc_raid-1.1.1-1.i686.rpm                                                   |  40 kB     00:00     
(26/40): nas_img-bin-1.5.5.1-1.t1.i686.rpm                                               | 699 kB     00:00     
(27/40): nas_ipv6check-1.0.0-3.fc16.i686.rpm                                             | 5.7 kB     00:00     
(28/40): nas_kcmd-1.1.0-1.fc16.i686.rpm                                                  | 4.0 kB     00:00     
(29/40): nas_model-conf-2.1.3-1.noarch.rpm                                               |  26 kB     00:00     
(30/40): nas_save_super-1.0.0-3.fc16.i686.rpm                                            | 4.7 kB     00:00     
(31/40): nas_savelog-1.0.3-1.i686.rpm                                                    | 8.4 kB     00:00     
(32/40): nas_specstr_handle-1.0.0-3.fc16.i686.rpm                                        | 4.5 kB     00:00     
(33/40): nut-2.7.2.2-1.t1.i686.rpm                                                       | 1.3 MB     00:00     
(34/40): nut-client-2.7.2.2-1.t1.i686.rpm                                                | 188 kB     00:00     
(35/40): openssl-1.0.0o.1-1.t1.i686.rpm                                                  | 926 kB     00:00     
(36/40): rsync-3.1.0-2.i686.rpm                                                          | 186 kB     00:00     
(37/40): sqlite-3.7.7.1-1.2.i686.rpm                                                     | 331 kB     00:00     
(38/40): transmission-kit-1.0.0-9.i686.rpm                                               | 265 kB     00:00     
(39/40): udpr-1.0.3-1.i686.rpm                                                           |  24 kB     00:00     
(40/40): util-linux-2.20.1.1-1.i686.rpm                                                  | 1.2 MB     00:00     
----------------------------------------------------------------------------------------------------------------
Total                                                                           2.8 MB/s | 185 MB     01:05     
Running Transaction Check
Running Transaction Test


Transaction Check Error:
  file /opt/XBMC/etc/sysconfig/network-scripts/ifdown-post from install of XBMC-12.2.2.2-1.fc16.i686 conflicts with file from package initscripts-9.33-1.i686
  file /opt/XBMC/etc/sysconfig/network-scripts/ifup-post from install of XBMC-12.2.2.2-1.fc16.i686 conflicts with file from package initscripts-9.33-1.i686
  file /opt/XBMC/etc/sysconfig/network-scripts/network-functions from install of XBMC-12.2.2.2-1.fc16.i686 conflicts with file from package initscripts-9.33-1.i686

Error Summary
-------------


Alfieri21

Re:Vyměnit software (Linux) v NASu za jiný Linux
« Odpověď #49 kdy: 22. 06. 2017, 13:36:17 »


Tak jsem zkoušel instalovat jeden po druhým, až to "umřelo"
a asi v tom bodě s "nas_model-conf" to chcíplo a už nejela ani síť (řádky eth2 a wth0)
toto jsem udělal:
Kód: [Vybrat]
[root@BEACON yum.repos.d]# yum install nas_admin-ui
Loaded plugins: fastestmirror, tsflags
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nas_admin-ui.i686 0:1.0.0-38.trial.93 will be updated
---> Package nas_admin-ui.i686 0:1.3.78.1-1 will be an update
--> Processing Dependency: nas_img-bin >= 1.4.29-1 for package: nas_admin-ui-1.3.78.1-1.i686
--> Running transaction check
---> Package nas_img-bin.i686 0:1.0.0-36.trial.111 will be updated
---> Package nas_img-bin.i686 0:1.5.5.1-1.t1 will be an update
--> Processing Dependency: nas_model-conf >= 2.0.0-1 for package: nas_img-bin-1.5.5.1-1.t1.i686
--> Processing Dependency: nas_kcmd >= 1.1.0-1 for package: nas_img-bin-1.5.5.1-1.t1.i686
--> Running transaction check
---> Package nas_kcmd.i686 0:1.1.0-1.fc16 will be installed
---> Package nas_model-conf.noarch 0:2.1.3-1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================
 Package                        Arch                   Version                       Repository            Size
================================================================================================================
Updating:
 nas_admin-ui                   i686                   1.3.78.1-1                    pkg2                 5.5 M
Installing for dependencies:
 nas_kcmd                       i686                   1.1.0-1.fc16                  pkg2                 4.0 k
 nas_model-conf                 noarch                 2.1.3-1                       pkg2                  26 k
Updating for dependencies:
 nas_img-bin                    i686                   1.5.5.1-1.t1                  pkg2                 699 k

Transaction Summary
================================================================================================================
Install       2 Packages
Upgrade       2 Packages

Total size: 6.2 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : nas_model-conf-2.1.3-1.noarch                                                                1/6
  Installing : nas_kcmd-1.1.0-1.fc16.i686                                                                   2/6
  Updating   : nas_img-bin-1.5.5.1-1.t1.i686                                                                3/6
warning: /etc/fstab saved as /etc/fstab.rpmsave
warning: /etc/rc.d/rc.local saved as /etc/rc.d/rc.local.rpmsave
  Updating   : nas_admin-ui-1.3.78.1-1.i686                                                                 4/6
cat: /proc/thecus_io: No such file or directory
cat: /img/bin/conf/sysconf..txt: No such file or directory
awk: fatal: cannot open file `/img/bin/conf/sysconf..txt' for reading (No such file or directory)
eth2: error fetching interface information: Device not found
wth0: error fetching interface information: Device not found
awk: fatal: cannot open file `/img/bin/conf/sysconf..txt' for reading (No such file or directory)
  Cleanup    : nas_admin-ui-1.0.0-38.trial.93.i686                                                          5/6
  Cleanup    : nas_img-bin-1.0.0-36.trial.111.i686                                                          6/6

Dependency Installed:
  nas_kcmd.i686 0:1.1.0-1.fc16                          nas_model-conf.noarch 0:2.1.3-1                         

Updated:
  nas_admin-ui.i686 0:1.3.78.1-1                                                                               

Dependency Updated:
  nas_img-bin.i686 0:1.5.5.1-1.t1                                                                               

Complete!


Alfieri21

Re:Vyměnit software (Linux) v NASu za jiný Linux
« Odpověď #50 kdy: 22. 06. 2017, 13:37:22 »

Tak jsem udělal to, že jsem image z "System recovery image", tedy ten Beacon_v1.1.12.2.ROW.img flashnul z USB.
A při tom jsem přes ttl serial-usb udělal pěkný log. Takže asi začínám tušit co v tom je a jak to funguje...
Kód: [Vybrat]
COLD_BOOT

Intel(R) Consumer Electronics Firmware Development Kit (Intel(R) CEFDK)
Copyright (C) 1999-2012 Intel Corporation. All rights reserved.
Build Time (10/27/14 18:31:37).
Searching 8051 FW in MFH...
Load 8051 FW from MFH successfully!
Splash: BMP found Width 720  Height 480
SMM: Ok
ACPI Init: finished with table region from 00011aa0 to 00018000
acpi: Created tables at 00011aa0-00018000

HCC Version          : 30-5.27(Dual)
CEFDK Version        : CE5300 (SMP enabled)
8051 Firmware        : C0-1.0.49 (0x00050000)
8051 FW I/O Module   : 30-3.7     
Silicon Stepping     : D0 (PCI)
Silicon SKU          : 0x06C
Board                : REF0
CPU Threads          : 4
CPU Multiplier       : 12
CPU Bus Speed        : 100 MHz
Memory Size          : 1024 MB
Memory Type & Speed  : x16 DDR3-1333 (11-11-11)
Memory Configuration : A B Interleave Mode 1
PCI Mode             : PCI Standard
Boot Mode            : SPI-NOR
HW-ID : 0x3
Press 'Enter' within 0 seconds to disable automatic boot.

 *************************************************************
 Hit a key to start the shell or [SPACE] to set MAC address...
 *************************************************************
check reset ucopy key long press -- 0
reset ucopy key long press 1 end -- 1
Boot Mode=1
Running auto script...
shell> ramdisk 0x8000000 0x8000000
shell> mfh list nand
MFH Entry List
 Type                   ID Active Offset     Size       Label
cefdk_s1                00 YES    0x00480800 0x00010000
cefdk_s2                00 YES    0x00490800 0x0006F000
cefdk_s1h               00 YES    0x004ff800 0x00000800
cefdk_s2h               00 YES    0x00500000 0x00000800
script                  00 YES    0x00500800 0x00000800
cefdk_params            00 YES    0x00501000 0x000005F0
splash                  00 YES    0x005015f0 0x000FD240
uc8051_fw               00 YES    0x005fe830 0x00010000
kernel                  00 YES    0x0060e830 0x003C0A60
ramdisk                 00 YES    0x00b0e830 0x023EDC70
user flash              00 NO     0x04000000 0x00000000
shell> bootkernel -id 0 "biosdevname=0 console=ttyS0,115200 memmap=exactmap memmap=128K@128K memmap=511M@1M vmallo"
CMD(0x48000)='biosdevname=0 console=ttyS0,115200 memmap=exactmap memmap=128K@128K memmap=511M@1M vmalloc=586M quie'
WARNING: Ancient bootloader, some functionality may be limited!
[    5.711806] ***ata1 : ahci_power_up***
[    5.715546] ###ata1 : ahci_power_up###
[    5.719539] ***ata2 : ahci_power_up***
[    6.974931] ###ata2 : ahci_power_up###
modprobe: FATAL: Could not load /lib/modules/2.6.39-1.ce14.23.fc16.i686/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.39-1.ce14.23.fc16.i686/modules.dep: No such file or directory

[    7.071129] physmap-flash physmap-flash.0: map_probe failed
modprobe: FATAL: Could not load /lib/modules/2.6.39-1.ce14.23.fc16.i686/modules.dep: No such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.39-1.ce14.23.fc16.i686/modules.dep: No such file or directory

[    7.386653] i8042: No controller found
@@[    9.369431] sd 2:0:0:0: [sdu] Assuming drive cache: write through
[    9.377303] sd 2:0:0:0: [sdu] Assuming drive cache: write through
[    9.387939] sd 2:0:0:0: [sdu] Assuming drive cache: write through
[    9.394081] criticalevent_user: disk_add sdu 21


1
1
[   11.329936] EXT2-fs (sdu): error: can't find an ext2 filesystem on dev sdu.
[   11.353817] EXT4-fs (sdu): VFS: Can't find ext4 filesystem
[   11.377801] SQUASHFS error: Can't find a SQUASHFS superblock on sdu
[   11.401780] FAT: invalid media value (0xb9)
[   11.425761] FAT: invalid media value (0xb9)
[   11.469342] hfs: unable to parse mount options
[   11.493318] hfs: unable to parse mount options.
[   11.513743] NTFS-fs warning (device sdu): is_boot_sector_ntfs(): Invalid boot sector checksum.
[   11.522329] NTFS-fs error (device sdu): read_ntfs_boot_sector(): Primary boot sector is invalid.
[   11.531086] NTFS-fs error (device sdu): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting.
[   11.543481] NTFS-fs error (device sdu): ntfs_fill_super(): Not an NTFS volume.
[   11.589297] udf: bad mount option "fmask=001" or missing value
mount: you must specify the filesystem type
usb_system_recovery_check start
[   12.013573] EXT2-fs (sdu): error: can't find an ext2 filesystem on dev sdu.
[   12.037521] EXT4-fs (sdu): VFS: Can't find ext4 filesystem
[   12.061500] SQUASHFS error: Can't find a SQUASHFS superblock on sdu
[   12.085490] FAT: invalid media value (0xb9)
[   12.109472] FAT: invalid media value (0xb9)
[   12.153045] hfs: unable to parse mount options
[   12.177015] hfs: unable to parse mount options.
[   12.197447] NTFS-fs warning (device sdu): is_boot_sector_ntfs(): Invalid boot sector checksum.
[   12.206035] NTFS-fs error (device sdu): read_ntfs_boot_sector(): Primary boot sector is invalid.
[   12.214817] NTFS-fs error (device sdu): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting.
[   12.227236] NTFS-fs error (device sdu): ntfs_fill_super(): Not an NTFS volume.
[   12.272995] udf: bad mount option "fmask=001" or missing value
mount: you must specify the filesystem type
[   12.401733] criticalevent_user: raid_create md1
[   12.410338] mddev->recovery:32, mddev->curr_resync:0,  mddev->recovery_cp: 0
[   12.417399] nr=1 mddev->raid_disks=2 working=1 active=1 spare=0 failed=0 mddev->in_sync=1 remove=1 mdname=md1 d1
[   12.428170] criticalevent_user: raid_degrade md1
mdadm: /dev/md1 has been started with 1 drive (out of 2).
[   12.585778] criticalevent_user: raid_na md1
mdadm: stopped /dev/md1
DEVICE_COUNTRY= ROW
OLD_IMAGE = Beacon_v1.1.12.2.ROW
/mnt /
IMG_NUM =1
OLD = Beacon_v1.1.12.2.ROW NEW= Beacon_v1.1.12.2.ROW.img
recovery=Beacon_v1.1.12.2.ROW.img
/
USB_recovery found
MODELNAME = HCC
USB recovery start

==================================
init_env
1024
EMMC_SYSTEM_P4=system_p4.bin.tar.gz
EMMC_MBR=emmc/dc1G/mbr_mfh.bin
FLASH_BIN=spi/dc1G/spi_nor.bin
CEFDK=spi/dc1G/spi_nor/gen5_dc1G.bin
FW8051=spi/dc1G/spi_nor/gen5_pm8051.bin
SPLASH=spi/dc1G/spi_nor/logo.bmp
SCRIPT=spi/dc1G/spi_nor/boots.bin
SPI_TMP_PATH=/tmp
version
USB_recovery
spi/dc1G/spi_nor/gen5_dc1G.bin
spi/dc1G/spi_nor/boots.bin
spi/dc1G/spi_nor/logo.bmp.md5
spi/dc1G/spi_nor/logo.bmp
spi/dc1G/spi_nor/gen5_dc1G.bin.md5
spi/dc1G/spi_nor/boots.bin.md5
spi/dc1G/spi_nor/gen5_pm8051.bin
spi/dc1G/spi_nor/gen5_pm8051.bin.md5
VERSION_IN_USB=OS6.build_195_v1.1.12.2.ROW
8192+0 records in
8192+0 records out
4194304 bytes (4.2 MB) copied, 2.37142 s, 1.8 MB/s
program_emmc
dd eMMC MBR and mfh
0+2251 records in
0+2251 records out
72351744 bytes (72 MB) copied, 42.9311 s, 1.7 MB/s
reload partition
recovery P2
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
53200 inodes, 212736 blocks
10636 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=218103808
7 block groups
32768 blocks per group, 32768 fragments per group
7600 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840

Writing inode tables: done                           
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
system_p4.bin.tar.gz
recovery P3
mke2fs 1.41.14 (22-Dec-2010)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
12824 inodes, 51200 blocks
2560 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=52428800
7 block groups
8192 blocks per group, 8192 fragments per group
1832 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961

Writing inode tables: done                           
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
recovery P4
0+86823 records in
0+86823 records out
2894069760 bytes (2.9 GB) copied, 273.96 s, 10.6 MB/s
program_emmc done

update_flash CEFDK
FILE=/tmp/spi/dc1G/spi_nor/gen5_dc1G.bin
flash updating CEFDK
img-tools Ver 1.0.1

Update entry : CEFDK
# Programming ...
1024+0 records in
1024+0 records out
524288 bytes (524 kB) copied, 0.016636 s, 31.5 MB/s
update_flash FW8051
FILE=/tmp/spi/dc1G/spi_nor/gen5_pm8051.bin
flash updating FW8051
img-tools Ver 1.0.1

Update entry : FW8051
# Programming ...
128+0 records in
128+0 records out
65536 bytes (66 kB) copied, 0.00267263 s, 24.5 MB/s
update_flash SPLASH
FILE=/tmp/spi/dc1G/spi_nor/logo.bmp
flash updating SPLASH
img-tools Ver 1.0.1

Update entry : SPLASH
# Programming ...
2025+1 records in
2025+1 records out
1036854 bytes (1.0 MB) copied, 0.0367678 s, 28.2 MB/s
update_flash SCRIPT
FILE=/tmp/spi/dc1G/spi_nor/boots.bin
img-tools Ver 1.0.1

2048+0 records in
2048+0 records out
2048 bytes (2.0 kB) copied, 0.00944494 s, 217 kB/s
4+0 records in
4+0 records out
2048 bytes (2.0 kB) copied, 0.000123325 s, 16.6 MB/s
flash updating SCRIPT
img-tools Ver 1.0.1

Update entry : SCRIPT
# Programming ...
4+0 records in
4+0 records out
2048 bytes (2.0 kB) copied, 0.000134825 s, 15.2 MB/s
 programming...
8192+0 records in
8192+0 records out
4194304 bytes (4.2 MB) copied, 21.8281 s, 192 kB/s
USB recovery done

1+0 records in
1+0 records out
1 byte (1 B) copied, 0.0025111 s, 0.4 kB/s
Error EMMC addr or lengh
Rebooting.
[  502.829932] Restarting system.

Tak se asi pokusím nějak dostat do toho Beacon_v1.1.12.2.ROW.img
WinRAR ten .img otevře a najde tam jeden file, tak ho zkusím nějak mountnout a projít, co kde je a porovnat to asi s tím Thecus_USB_Upgrade-N2520_OS6.1-12 kde jsou jednotlive .bin k SPI NOR, NAND atd. Třeba to natvrdo našťouchám do toho Beacon_v1.1.12.2.ROW.img a pojede to, kdo ví...

Ten N2520_OS6.build_237.4G.bin je asi k ničemu, když ho totiž mountnu, tak je to cca 470MB velký oddíl, jedna partition a obsahuje "jenom" rpm-ka, takže v podstatě si to ten update SW vezme jako repositář a nainstaluje aktualizace. Žádný dd dump emmc nebo tak něco...

Opět, jakákoliv rada vítána :-)
Alfieri

 PS: kdyby se někdo ptal, proč 4 příspěvky, tak limit počtu znaků na příspěvěk....

czipis

  • ***
  • 225
    • Zobrazit profil
    • E-mail
Re:Vyměnit software (Linux) v NASu za jiný Linux
« Odpověď #51 kdy: 22. 06. 2017, 13:57:22 »
zkus na ten image utilitu binwalk. prochazi cely soubor a hleda zname signatury a dokaze extrahovat jednotlive casti.

Petr

Re:Vyměnit software (Linux) v NASu za jiný Linux
« Odpověď #52 kdy: 01. 01. 2018, 09:17:48 »
Ahojda. Podarilo se nekomu uz dojit do cile? Ja mam kdyztak jedno lenovo na testy. Protoze tak jak je je k nicemu