找回密码
 注册

QQ登录

只需一步,快速开始

楼主: To.mato

中兴 F650A v2.0.3版本 内核分区(mtd9, mtd10) 解析

[复制链接]
发表于 2022-5-9 17:15:13 | 显示全部楼层
mtd9和mtd10属于A/B分区,用binwalk可以看到它的结构,header+squashfs分区,如果要修改的话,可以把squashfs分区dd出来,unsquashfs解压,改完mksquashfs打包,与原header拼接,mtd写入相应分区,uboot会提示vmlinuz crc error,先根据error后的提示值修改header的vmlinuz crc,再次刷入,uboot再次提示header crc error,然后再改header crc,之后就可以正常启动了。4 b% F9 L' S: p: t9 |: m/ k
关于crc,小端在前,也就是说如果uboot提示的crc error是0x12345678,那么在位置0x40050或0x400E0处,应该填入78563412.
发表于 2022-5-10 16:38:36 | 显示全部楼层
请问如何在uboot下刷机啊?
发表于 2022-5-10 16:46:47 | 显示全部楼层
songee 发表于 2022-5-9 17:15) w6 o, V8 l( K' _' d* D8 [
mtd9和mtd10属于A/B分区,用binwalk可以看到它的结构,header+squashfs分区,如果要修改的话,可以把squash ...

! w2 D. n0 _' O, Y& I. V2 h- F8 W感谢提醒
发表于 2022-5-10 16:53:11 | 显示全部楼层
songee 发表于 2022-5-9 16:54
; z& V6 ?% o/ O, X) vU-Boot V2.0.3P1T1 20181116000234" R& z( v1 o/ t. w( W2 i( h  s, c2 o
mtd9: vmlinuz crc 位置0x40050,header crc 位置0x400E0,小端在前。
9 Z$ \  ^* q# k6 h ...

% T& \7 `( J" l! J' O" ]; }感谢大神指点
发表于 2022-9-16 09:52:41 | 显示全部楼层
这技术贴,支持,楼主666666666
发表于 2023-4-19 10:47:17 | 显示全部楼层
I have a ZTE 125X model (ZX279125)  r$ t$ e5 N8 y: ]0 P
  1. U-Boot 2013.04 (Sep 04 2018 - 10:53:25)% R) P3 ?5 l/ o/ U* e0 m( v
  2. ' n7 M8 ~' y# X  K2 s2 J
  3. CPU  : ZX279125@A9,600MHZ
    ! z7 l4 @! S* d) |
  4. Board: ZXIC zx279125evb: Y7 [. {$ D# `0 V% W% y+ ]
复制代码
2 b9 i" U+ }) M
I want to modify the rootfs of machine but u-boot only give me correct crc of kernel. Can you tell me how to calculate the header CRC value?
5 S+ ^$ t4 @! ?+ I, N
发表于 2023-4-19 10:52:50 | 显示全部楼层
I have the ZTE 125X model. I wan to modify the rootfs of thí machine. after put rootfs to mtd7, the uboot give me correct crc of kernel, I put it to kernel then uboot give me header crc error but not give me correct herder crc. can you tell me how to calculate the Header CRC ?
; J7 s' y! ~+ a7 F8 u( H5 f$ _+ f$ ]3 s/ H- U3 o
发表于 2023-4-26 22:17:11 | 显示全部楼层
这技术贴,支持,楼主666666666
发表于 2024-1-11 16:51:30 | 显示全部楼层
挖一下,紫薯补丁。0 H1 m8 U5 N& N6 |" n% O
好帖顶一个
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-5-4 20:34 , Processed in 0.023361 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表