Huawei-LTE-routers-mods / huawei_balong_modfw_kitchen

Huawei Balong modified firmware builder. Custom firmwares made easy :)
57 stars 20 forks source link

cpio malformed #15

Closed moyunkz closed 2 years ago

moyunkz commented 2 years ago

Hi Vladik,

I successfully extracted the firmware with: ./balong_flash -e fw/E3276sUpdate_22.491.05.01.56.bin

Код файла прошивки: 9 (ONLY_FW)

 Цифровая подпись: 2430 байт
 Хеш открытого ключа: 778A8D175E602B7B779D9E05C330B5279B0661BF2EED99A20445B366D63DD697
 Версия прошивки: 22.491.05.01.56
 Платформа:       B710S0
 Дата сборки:     2018.07.04 11:36:47
 Заголовок: версия 1, код соответствия: HWEW11.1
 Выделение разделов из файла прошивки:

 ## Смещение  Размер   Имя
-------------------------------------
 00 0000005c     3454  Ptable_R1
 01 00000e40    63524  Bootloader_R1
 02 000106e8   738866  Bootrom_R1
 03 000c4ee8 24076468  VxWorks_R1
 04 017bddec    63888  Fastboot_R1
 05 017cd800  3004416  Kernel_R1
 06 01aab620 17989824  System_R1
 07 02bd5994  3960028  Nvimage_R1
 08 02f9ce60  3975264  APP_R1

then tried to cpio -iv < 06-00000107-System_R1.bin

Got these errors:

cpio: Malformed number ����$]Y
cpio: Malformed number ���$]YX
cpio: Malformed number ���$]YX
cpio: Malformed number ��$]YX

cpio: Malformed number �$]YX
L
cpio: Malformed number $]YX
Ln
cpio: Malformed number ]YX
Lnb
cpio: warning: skipped 602989 bytes of junk
cpio: warning: archive header has reverse byte-order
cpio: qppss��i�N��4�g�:`w��i: unknown file type
cpio: premature end of file

Anything wrong with my steps? Thanks

ValdikSS commented 2 years ago

The older devices have jffs2, as far as I remember. Try file 06-00000107-System_R1.bin.

moyunkz commented 2 years ago

Here's the result # file 06-00000107-System_R1.bin 06-00000107-System_R1.bin: data

Tried to use the extracted bins from .exe fw also the same output 😭😭

moyunkz commented 2 years ago

Got it all working now with yaffshiv -f inputfile.bin -d outputdir -s16 thanks to your post https://4pda.to/forum/index.php?showtopic=744265&st=160#entry72041932.

I was wondering to to pack all the bins back to one bin.