Commit 83369008 authored by Eddie Cai's avatar Eddie Cai
Browse files

tools: add firmware_merger_v1.3 and ProductionTool_v1.0_20170510



Change-Id: I9cf404767c3f8120d24b244b082f889db6d58f0e
Signed-off-by: default avatarEddie Cai <eddie.cai.linux@gmail.com>
parent 8056b603
1.点击"固件",同时选择firmware和loader
2.点击"启动"
3.连接升级设备,自动开始升级
\ No newline at end of file
#Flag 1:skip flag,2:reserved flag,4:no partition size flag
#type 0x1:Vendor 0x2:IDBlock 0x4:Kernel 0x8:boot 0x80000000:data
#PartSize and PartOffset unit by sector
#Gpt_Enable 1:compact gpt,0:normal gpt
#Backup_Partition_Enable 0:no backup,1:backup
[System]
FwVersion=
Gpt_Enable=
Backup_Partition_Enable=
Nano=
[UserPart1]
Name=IDBlock
Type=0x2
PartOffset=0x40
PartSize=0x400
Flag=0
File=Image/FlashData.bin,Image/FlashBoot.bin
[UserPart2]
Name=uboot
Type=0x80000000
PartOffset=0x440
PartSize=0x2000
Flag=
File=Image/uboot.img
[UserPart3]
Name=kernel
Type=0x4
PartOffset=0x2440
PartSize=0x8000
Flag=
File=Image/kernel.img
[UserPart4]
Name=boot
Type=0x8
PartOffset=0xA440
PartSize=0x4000
Flag=
File=Image/boot.img
firmware_merger read setting.ini to get partition info and create firmware.firmware_merger can generate
three kinds of firmware(1.flat rk firmware 2.flat gpt firmware 3.compact gpt firmware).flat firmware can be
directly written into flash by 'wl'command.Compact firmware can only be written by productiontool. when SPL
is rk miniloader,firmware use flat rk format.when SPL is u-boot,firmware use flat gpt.
follow us to config settting.ini:
1.set format of firmware
Gpt_Enable= /*flat rk firmware*/
Gpt_Enable=0 /*flat gpt firmware*/
Gpt_Enable=1 /*compact gpt firmware*/
2.backup header of firmware or not
Backup_Partition_Enable=1 /*backup firmware header*/
Backup_Partition_Enable= /*default,no backup firmware header,when you don't know flash size,no backup*/
3.idblock partition (must be first partition)
Name=IDBlock /*partition name,fixed 'IDBlock'*/
Type=0x2 /*partition type,fixed=2*/
PartOffset=0x40 /*partition offset,fixed=0x40*/
PartSize=0x400 /*partition size,must be smaller than 2M*/
Flag= /*partition flag,default value*/
File=Image/FlashData.bin,Image/FlashBoot.bin /*ddr_init.bin,loader.bin*/
4.layout other partition sequentially,four case to config
a.written partition file and fill up to partition size
Flag=
File=partition file
b.partition be filled up to partition size
Flag=0x2
File=/*do not set*/
c.skip,none of data be written to partition
Flag=0x1
File=/*do not set*/
d.last partition,partition size be set at runtime,alloc all of remain flash to it
Flag=0x4
File=/*set file as required*/
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment