songee
发表于 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,之后就可以正常启动了。
关于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
mtd9和mtd10属于A/B分区,用binwalk可以看到它的结构,header+squashfs分区,如果要修改的话,可以把squash ...
感谢提醒
东北抗日联军
发表于 2022-5-10 16:53:11
songee 发表于 2022-5-9 16:54
U-Boot V2.0.3P1T1 20181116000234
mtd9: vmlinuz crc 位置0x40050,header crc 位置0x400E0,小端在前。
...
感谢大神指点
uin
发表于 2022-9-16 09:52:41
这技术贴,支持,楼主666666666
pNghia
发表于 2023-4-19 10:47:17
I have a ZTE 125X model (ZX279125)
U-Boot 2013.04 (Sep 04 2018 - 10:53:25)
CPU: ZX279125@A9,600MHZ
Board: ZXIC zx279125evb
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?
https://i.postimg.cc/zf0SktLP/Untitled.png
pNghia
发表于 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 ?
https://i.postimg.cc/zf0SktLP/Untitled.png
jsenet
发表于 2023-4-26 22:17:11
这技术贴,支持,楼主666666666
anysoft
发表于 2024-1-11 16:51:30
挖一下,紫薯补丁。
好帖顶一个