rv1126/rv1109: add prebuilt package

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Id8d9588969efe8a0581bdfc773e8ed2215094ba4
This commit is contained in:
Weiwen Chen
2020-09-17 20:33:48 +08:00
parent 567ecd034d
commit ce19f87b33
23 changed files with 3583 additions and 0 deletions

View File

@ -0,0 +1,13 @@
v2.71 revision(20190821):
1.fix download image at last partition bug up
2.optimize the progress of downloading
v2.72 revision(20200113):
1.fix erase flash is timeout on nor flash up
v2.73 revision(20200520):
1.support with exporting com log
v2.74 revision(20200723):
1.take small slice to erase nor flash

View File

@ -0,0 +1,8 @@
firmware.img打包命令
./firmware_merger -P setting.ini ./
烧录
在打开烧录工具 RKDevTool_Release_v2.74/RKDevTool.exe

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

View File

@ -0,0 +1,52 @@
#Flag 1:skip flag,2:reserved flag,4:no partition size flag
#type can suppot 32 partiton types,0x0:undefined 0x1:Vendor 0x2:IDBlock ,bit3:bit31 are available
#PartSize and PartOffset unit by sector
#Gpt_Enable 1:compact gpt,0:normal gpt
#Backup_Partition_Enable 0:no backup,1:backup
#Loader_Encrypt 0:no encrypt, 1:rc4, default:1
#IDB_Boot_Encrypt:0:no encrypt, 1:rc4, default:1
[System]
FwVersion=1.0
Gpt_Enable=0
Backup_Partition_Enable=
Nano=
Loader_Encrypt=0
IDB_Boot_Encrypt=
Chip=RV1126
Model=
[UserPart1]
Name=IDBlock
Type=
PartOffset=0x40
PartSize=0x180
Flag=
File=./rockdev/idblock.bin
[UserPart2]
Name=uboot
Type=
PartOffset=0x200
PartSize=0x200
Flag=
File=./rockdev/uboot.img
[UserPart3]
Name=boot
Type=
PartOffset=0x400
PartSize=0x1700
Flag=
File=./rockdev/zboot.img
[UserPart4]
Name=rootfs
Type=
PartOffset=0x1B00
PartSize=0x1200
Flag=
File=./rockdev/rootfs.squashfs
[UserPart5]
Name=app
Type=
PartOffset=0x2D00
PartSize=0xC700
Flag=1
File=
[PARTITION_TYPE_GUID]

View File

@ -0,0 +1,49 @@
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*/
5.fix partition uuid
a.add Type_Guid=UuidKeyName into partition section
b.add uuid item into PARTITION_TYPE_GUID section
example:
[userPart1]
Name=rootfs
Type_Guid=rootfs_uuid
[PARTITION_TYPE_GUID]
rootfs_uuid=00000000-0000-0000-0000-000000000000