rv1126/rv1109: add prebuilt package
Signed-off-by: Weiwen Chen <cww@rock-chips.com> Change-Id: Id8d9588969efe8a0581bdfc773e8ed2215094ba4
This commit is contained in:
31
rv1126_rv1109/prebuilt-packages/build-busybox/Readme.txt
Normal file
31
rv1126_rv1109/prebuilt-packages/build-busybox/Readme.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# unpackage busybox tarball
|
||||
tar xjf busybox-1.27.2-patch-reboot-arg.tar.bz2
|
||||
|
||||
# copy rockchip's busybox defconfig
|
||||
# busybox_spi_nor_defconfig used for spi nor
|
||||
# busybox_emmc_defconfig used for eMMC (default)
|
||||
cp busybox-1.27.2-patch/configs/busybox_defconfig busybox-1.27.2/configs/busybox_defconfig
|
||||
|
||||
# change directory to busybox
|
||||
cd busybox-1.27.2
|
||||
|
||||
# config defconfig
|
||||
make busybox_defconfig
|
||||
|
||||
# compile, Notice: the cross compile tool is in the prebuilts directory of SDK
|
||||
make ARCH=arm install CROSS_COMPILE=~/RV1109-SDK/prebuilts/gcc/linux-x86/arm/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -j32
|
||||
|
||||
# unpackage base root filesystem which is pre-built bin, e.g. target-emmc-v1.0.0.tar.bz2
|
||||
tar xjf target-emmc-v1.0.0.tar.bz2
|
||||
|
||||
# copy busybox target bin and libs to target directory (option)
|
||||
cp busybox-1.27.2/_install/* target/ -rfa
|
||||
|
||||
# package root filesystem with squashfs
|
||||
mksquashfs target rootfs.squashfs -noappend -comp xz
|
||||
|
||||
# package root filesystem with ext4, e.g.
|
||||
tar xjf tools.tar.bz2
|
||||
./tools/mkfs-ext4/do-mkfs.ext4.sh target rootfs.ext4 64M
|
||||
|
||||
# the command of unpackage squashfs filesystem : unsquashfs ./rootfs.squashfs
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,13 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RV1126
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RV1126
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 0xffffffff
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
DISKSIZE: 0xe90000
|
||||
CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot_a),0x00002000@0x00006000(uboot_b),0x00000800@0x00008000(misc),0x00008000@0x00008800(boot_a),0x00008000@0x00010800(boot_b),0x00170000@0x00018800(system_a),0x00170000@0x00188800(system_b),-@0x2f8800(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
@ -0,0 +1,12 @@
|
||||
FIRMWARE_VER: 8.1
|
||||
MACHINE_MODEL: RV1126
|
||||
MACHINE_ID: 007
|
||||
MANUFACTURER: RV1126
|
||||
MAGIC: 0x5041524B
|
||||
ATAG: 0x00200800
|
||||
MACHINE: 0xffffffff
|
||||
CHECK_MASK: 0x80
|
||||
PWR_HLD: 0,0,A,0,1
|
||||
TYPE: GPT
|
||||
CMDLINE: mtdparts=rk29xxnand:0x00002000@0x00004000(uboot),0x00002000@0x00006000(misc),0x00010000@0x00008000(boot),0x00010000@0x00018000(rootfs),,-@0x0028000(userdata:grow)
|
||||
uuid:rootfs=614e0000-0000-4b53-8000-1d28000054a9
|
||||
Binary file not shown.
Binary file not shown.
BIN
rv1126_rv1109/prebuilt-packages/build-busybox/tools.tar.bz2
Normal file
BIN
rv1126_rv1109/prebuilt-packages/build-busybox/tools.tar.bz2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
||||
@ -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 |
BIN
rv1126_rv1109/prebuilt-packages/firmware_merger/firmware_merger
Executable file
BIN
rv1126_rv1109/prebuilt-packages/firmware_merger/firmware_merger
Executable file
Binary file not shown.
52
rv1126_rv1109/prebuilt-packages/firmware_merger/setting.ini
Normal file
52
rv1126_rv1109/prebuilt-packages/firmware_merger/setting.ini
Normal 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]
|
||||
@ -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
|
||||
Reference in New Issue
Block a user