LINUX.ORG.RU

Изменение прошивки TP-LINK EAP245

 ,


0

2

Распаковываю официальную прошивку, скаченного с оф.сайта tp-link
Использую firmware-mod-kit-master

./extract-firmware.sh TL-EAP245v1_1.4.0_\[20180323-rel32551\]_up_signed.bin

Делаю изменения и собираю обратно

mih@mate:~/Загрузки/firmware-mod-kit-master$ ./build-firmware.sh -min
Firmware Mod Kit (build) 0.99, (c)2011-2013 Craig Heffner, Jeremy Collake

Building new squashfs file system... (this may take several minutes!)
Blocksize override (-min). Original used 128KB blocks. New firmware uses 1MB blocks.
Squashfs block size is 1024 Kb
[sudo] пароль для mih: 
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on /home/mih/Загрузки/firmware-mod-kit-master/fmk/new-filesystem.squashfs, block size 1048576.
[===========================================================================================================================================|] 399/399 100%
Exportable Squashfs 4.0 filesystem, lzma compressed, data block size 1048576
	compressed data, compressed metadata, compressed fragments, compressed xattrs
	duplicates are removed
Filesystem size 5818.55 Kbytes (5.68 Mbytes)
	24.66% of uncompressed filesystem size (23597.85 Kbytes)
Inode table size 4683 bytes (4.57 Kbytes)
	16.15% of uncompressed inode table size (28995 bytes)
Directory table size 5719 bytes (5.58 Kbytes)
	49.73% of uncompressed directory table size (11499 bytes)
Xattr table size 58 bytes (0.06 Kbytes)
	100.00% of uncompressed xattr table size (58 bytes)
Number of duplicate files found 13
Number of inodes 577
Number of files 389
Number of fragments 13
Number of symbolic links  94
Number of device nodes 41
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 53
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
Remaining free bytes in firmware image: 743152
Processing 0 header(s) from /home/mih/Загрузки/firmware-mod-kit-master/fmk/new-firmware.bin...
CRC update failed.

Firmware header not supported; firmware checksums may be incorrect. 
New firmware image has been saved to: /home/mih/Загрузки/firmware-mod-kit-master/fmk/new-firmware.bin

сверяю binwalk'ом

mih@mate:~/Загрузки/firmware-mod-kit-master$ binwalk TL-EAP245v1_1.4.0_\[20180323-rel32551\]_up_signed.bin 

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
8287          0x205F          ELF, 32-bit MSB MIPS64 executable, MIPS, version 1 (SYSV)
31455         0x7ADF          gzip compressed data, maximum compression, from Unix, NULL date (1970-01-01 00:00:00)
1313063       0x140927        Squashfs filesystem, little endian, version 4.0, compression:xz, size: 6704318 bytes, 577 inodes, blocksize: 131072 bytes, created: 2018-03-23 01:02:28

mih@mate:~/Загрузки/firmware-mod-kit-master$ binwalk fmk/new-firmware.bin 

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
8287          0x205F          ELF, 32-bit MSB MIPS64 executable, MIPS, version 1 (SYSV)
31455         0x7ADF          gzip compressed data, maximum compression, from Unix, NULL date (1970-01-01 00:00:00)
1313063       0x140927        Squashfs filesystem, little endian, version 4.0, compression:lzma, size: 5958198 bytes, 577 inodes, blocksize: 1048576 bytes, created: 2019-02-05 06:54:40
8016019       0x7A5093        xz compressed data

Получается 1.разный вид компрессии у нового compression:lzma, у исходника zx 2. Ошибка CRC update failed

Что не правильно делаю или чем запаковывать прошивку с пересчётом контрольной суммы?