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...
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....