Toybrick

TB_RK3568X开发版Android12使用fastboot flash命令无法刷写recovery分区

pax

新手上路

积分
23
楼主
发表于 2023-2-27 20:06:05    查看: 2653|回复: 3 | [复制链接]    打印 | 只看该作者
相关log如下:
PC端fastboot返回信息
C:\Users\hul>fastboot flash recovery \\172.16.2.95\hul\code\L1600-project\rockdev\Image-rk3568_sgo_pax\recovery.img
Invalid sparse file format at header magic
error: write_sparse_skip_chunk: don't care size 5572608 is not a multiple of the block size 4096
Sending sparse 'recovery_a' 1/2 (65532 KB)         error: write_sparse_skip_chunk: don't care size 5572608 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 5572608 is not a multiple of the block size 4096
OKAY [  2.146s]
Writing 'recovery_a'                               FAILED (remote: 'Unknown chunk type')
fastboot: error: Command failed


串口日志
request 000000007bcbc180 was not queued to ep1in-bulk
A/B-slot: _a, successful: 0, tries-remain: 7
request 000000007bcbc180 was not queued to ep1in-bulk
request 000000007bcbc180 was not queued to ep1in-bulk
request 000000007bcbc180 was not queued to ep1in-bulk
Starting download of 67105592 bytes
request 000000007bcbc180 was not queued to ep1in-bulk
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
..........................................................................
...................................................................request 000000007bcbc180 was not queued to ep1in-bulk

downloading of 67105592 bytes finished
Flashing sparse image at offset 133120
=== Sparse Image Header ===
magic: 0xed26ff3a
major_version: 0x1
minor_version: 0x0
file_hdr_sz: 28
chunk_hdr_sz: 12
blk_sz: 4096
total_blks: 17979
total_chunks: 58
Flashing Sparse Image
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x7
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x2
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x5
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x2
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x8
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x3
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x3
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x56
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x6
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0xf
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x1
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x2
total_size: 0x10
=== Chunk Header ===
chunk_type: 0xcac2
chunk_data_sz: 0x50
total_size: 0x10
=== Chunk Header ===
chunk_type: 0x0
chunk_data_sz: 0x0
total_size: 0x71774818
write_sparse_image: Unknown chunk type: 0
request 000000007bcbc180 was not queued to ep1in-bulk


社区有没有原厂开发人员帮忙看下,是不是recovery.img文件的data size没有4096对齐?

回复

使用道具 举报

pax

新手上路

积分
23
沙发
 楼主| 发表于 2023-2-27 20:06:56 | 只看该作者
刷之前通过命令fastboot flashing unlock解锁了
回复

使用道具 举报

jefferyzhang

版主

积分
12925
板凳
发表于 2023-2-27 20:24:25 | 只看该作者
是哪份文档教你用这个命令烧写的?
回复

使用道具 举报

pax

新手上路

积分
23
地板
 楼主| 发表于 2023-2-27 20:47:19 | 只看该作者
jefferyzhang 发表于 2023-2-27 20:24
是哪份文档教你用这个命令烧写的?

你好,不能通过fastboot flash的方式去烧写吗,因为我司自己开发的烧录工具都是通过fastboot模式去烧写分区固件,RK3568是我们首次使用RK平台的项目,能请教下除了使用瑞芯微开发工具烧录,能够实现通过fastboot模式烧录各分区固件吗?

我试了下其他分区好像可以正常烧录,目前fastboot flash模式无法烧录的有MiniLoaderAll.bin,recovery.bin以及分区表文件Parameter.txt
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


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