全志平台Tina系统编译安全固件的方法

1.source build/envsetup.sh配置环境变量

chenkunyao@Exdroid35:~/workspace/ftina2.0/etina$ source build/envsetup.sh
including target/allwinner/astar-dm2/vendorsetup.sh
including target/allwinner/astar-dm/vendorsetup.sh
including target/allwinner/astar-evb/vendorsetup.sh
including target/allwinner/astar-noma/vendorsetup.sh
including target/allwinner/astar-parrot/vendorsetup.sh
including target/allwinner/astar-spk/vendorsetup.sh
including target/allwinner/azalea-evb/vendorsetup.sh
including target/allwinner/azalea-m2ultraservers/vendorsetup.sh
including target/allwinner/azalea-m2ultra/vendorsetup.sh
including target/allwinner/azalea-perf1/vendorsetup.sh
including target/allwinner/azalea-perf2/vendorsetup.sh
including target/allwinner/azalea-perf3/vendorsetup.sh
including target/allwinner/banjo-dh/vendorsetup.sh
including target/allwinner/banjo-GW/vendorsetup.sh
including target/allwinner/banjo-kudrone/vendorsetup.sh
including target/allwinner/banjo-mic/vendorsetup.sh
including target/allwinner/banjo-perf1/vendorsetup.sh
including target/allwinner/banjo-R11_pref1/vendorsetup.sh
including target/allwinner/banjo-R11_sc3866r/vendorsetup.sh
including target/allwinner/banjo-R7_pref1/vendorsetup.sh
including target/allwinner/banjo-v3s/vendorsetup.sh
including target/allwinner/bassoon-perf1/vendorsetup.sh
including target/allwinner/bassoon-std/vendorsetup.sh
including target/allwinner/boobam-ac100/vendorsetup.sh
including target/allwinner/boobam-ac101s/vendorsetup.sh
including target/allwinner/boobam-std/vendorsetup.sh
including target/allwinner/cello-perf1/vendorsetup.sh
including target/allwinner/cello-pro/vendorsetup.sh
including target/allwinner/flute-ac100/vendorsetup.sh
including target/allwinner/generic/vendorsetup.sh
including target/allwinner/koto-carp/vendorsetup.sh
including target/allwinner/koto-perf1/vendorsetup.sh
including target/allwinner/koto-perf2/vendorsetup.sh
including target/allwinner/koto-std/vendorsetup.sh
including target/allwinner/lute-R7s/vendorsetup.sh
including target/allwinner/mandolin-perf1/vendorsetup.sh
including target/allwinner/nuclear-dev/vendorsetup.sh
including target/allwinner/octopus-dev/vendorsetup.sh
including target/allwinner/octopus-sch/vendorsetup.sh
including target/allwinner/organ-perf1/vendorsetup.sh
including target/allwinner/piano-chimera/vendorsetup.sh
including target/allwinner/piano-p1/vendorsetup.sh
including target/allwinner/piano-perf1/vendorsetup.sh
including target/allwinner/sitar-cuckoo/vendorsetup.sh
including target/allwinner/sitar-db/vendorsetup.sh
including target/allwinner/sitar-evb/vendorsetup.sh
including target/allwinner/sitar-mic2/vendorsetup.sh
including target/allwinner/sitar-mic/vendorsetup.sh
including target/allwinner/sitar-pd4/vendorsetup.sh
including target/allwinner/sitar-perf1/vendorsetup.sh
including target/allwinner/sitar-perf2/vendorsetup.sh
including target/allwinner/sitar-perf3/vendorsetup.sh
including target/allwinner/tulip-d1nor/vendorsetup.sh
including target/allwinner/tulip-d1/vendorsetup.sh
including target/allwinner/tulip-hena/vendorsetup.sh
including target/allwinner/tulip-m64/vendorsetup.sh
including target/allwinner/tulip-mozart/vendorsetup.sh
including target/allwinner/tulip-noma/vendorsetup.sh
including target/allwinner/tulip-perf1/vendorsetup.sh
including target/allwinner/tulip-pine64/vendorsetup.sh
including target/allwinner/tulip-sgw/vendorsetup.sh
including target/allwinner/violin-F1C200s/vendorsetup.sh

2.lunch选择方案

chenkunyao@Exdroid35:~/workspace/ftina2.0/etina$ lunch

You're building on Linux

Lunch menu... pick a combo:
     1. astar_dm2-tina
     2. astar_dm-tina
     3. astar_evb-tina
     4. astar_noma-tina
     5. tulip_noma-tina

Which would you like?5

============================================
PLATFORM_VERSION_CODENAME=Neptune
PLATFORM_VERSION=3.0.3
PRODUCT_VERSION=v1.0
TARGET_PRODUCT=tulip_noma
TARGET_BUILD_VARIANT=tina
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=aarch64
TARGET_ARCH_VARIANT=
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-80-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=5B99D6CB
TARGET_OUT_DIR=out/tulip-noma
============================================

3. ./scripts/createkeys生成一个key放到out目录对应的方案的路径下

chenkunyao@Exdroid35:~/workspace/ftina2.0/etina$ ./scripts/createkeys 
/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-noma
All valid chip:
0. tulip
1. violin
2. koto
3. mandolin
Please select a chip:0
ready to create keys
tulip violin koto mandolin
INFO: SELECT_CHIP is tulip

/home/chenkunyao/workspace/ftina2.0/etina/target/allwinner/tulip-common/sign_config/dragon_toc.cfg
/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-noma/keys
keypath=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-noma/keys
create for Trustkey
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
create for NOTWORLD_KEY
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
create for PRIMARY_DEBUG_KEY
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
create for SCPFirmwareContentCertPK
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
create for SecondaryDebugCertPK
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
create for SoCFirmwareContentCert_KEY
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
create for TrustedFirmwareContentCertPK
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
create for TWORLD_KEY
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
create for NonTrustedFirmwareContentCertPK
Generating RSA private key, 2048 bit long modulus
e is 65537 (0x10001)
writing RSA key
all_toc0=item=toc0,                         sboot.bin,            Trustkey
type_name=item
line_info=toc0,                         sboot.bin,                Trustkey
item=toc0
bin_name=sboot.bin
key_name=Trustkey
key=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-noma/keys/Trustkey.bin
find public key
find e key
find private key
da 58 8f ec 73 0a 53 51 61 41 48 e3 6c 3e 89 f4 
74 77 ef b0 f4 51 bd 1f 7c d4 5a 66 8f 55 8c b3 
dc c0 68 49 65 1e e2 1f 94 6c c4 4f 56 cb f9 30 
c3 df 61 10 3f 05 9a 24 43 cb ae 3d 09 09 fe ab 
c7 22 d7 41 c0 8e e7 e4 73 62 c2 a8 02 ce eb 96 
da e9 d1 18 52 4d 8b 17 28 0a 3f ba 93 d1 10 ee 
fa 95 a1 58 67 4d 4f eb 72 7f 37 36 99 36 d0 11 
77 71 fe 16 ef ca 35 58 e1 27 2a 5e ec d4 d1 d1 
18 06 58 60 96 46 06 70 b6 b4 ba 01 d7 58 40 43 
f1 69 c6 25 09 0f 56 d0 4f a4 7b 13 1b 51 8c 6d 
8d 55 72 d9 cc 59 bf 86 28 ae de 72 40 e0 c0 97 
04 e4 0b 61 ae 3e 66 7b 8c f2 8c e8 16 f6 60 8e 
c6 ef 57 eb 6d 3b 7d f5 e7 f5 fb 70 8a 3d a6 8b 
b2 d7 1d 77 c6 df 32 01 10 af 4a d3 88 e1 af 84 
4d 98 54 46 df a7 41 67 d4 a9 0d 7b 96 f7 bc 9c 
24 ea ee 21 f5 e6 8b af 4e b0 ed fb e4 2c 02 49 
01 00 01 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 
91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 


INFO: use default toc config to creat keys

 

可以到out目录下生成的这堆key

chenkunyao@Exdroid35:~/workspace/ftina2.0/etina/out/tulip-noma/keys$ ls
NonTrustedFirmwareContentCertPK.bin  SecondaryDebugCertPK.pem
NonTrustedFirmwareContentCertPK.pem  SoCFirmwareContentCert_KEY.bin
NOTWORLD_KEY.bin                     SoCFirmwareContentCert_KEY.pem
NOTWORLD_KEY.pem                     TrustedFirmwareContentCertPK.bin
PRIMARY_DEBUG_KEY.bin                TrustedFirmwareContentCertPK.pem
PRIMARY_DEBUG_KEY.pem                Trustkey.bin
rotpk.bin                            Trustkey.pem
SCPFirmwareContentCertPK.bin         TWORLD_KEY.bin
SCPFirmwareContentCertPK.pem         TWORLD_KEY.pem
SecondaryDebugCertPK.bin

4.编译完成后pack -s生成安全固件

chenkunyao@Exdroid35:~/workspace/ftina2.0/etina$ pack -s
No kernel param, parse it from tulip
copying tools file
copying configs file
storage_type value is -1
image/aultls32.fex
image/aultools.fex
image/boot_package.cfg
image/boot_package.fex
image/boot_package_nor.cfg
image/cardscript.fex
image/cardscript_secure.fex
image/cardtool.fex
image/env-3.10.cfg
image/env-3.4.cfg
image/env-4.9.cfg
image/env_burn.cfg
image/env.cfg
image/image.cfg
image/image_linux.cfg
image/split_xxxx.fex
image/sunxi.fex
image/sys_config.fex
image/sys_partition_dump.fex
image/sys_partition.fex
image/sys_partition_private.fex
image/toc0.fex
image/toc1.fex
image/usbtool.fex
image/usbtool_test.fex
/home/chenkunyao/workspace/ftina2.0/etina
copying boot resource

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
copying boot file
copying arm64 secure boot file
add burn_secure_mode in target in sys config
make user resource for : /home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sys_partition.fex
handle partition user-res
no user resource partitions
mbr count = 1

partitation file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sys_partition_tmp_app.bin
mbr_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sunxi_mbr_tmp_app.fex
download_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/dlinfo.fex

mbr size = 2048
mbr magic softw411
disk name=boot-res
disk name=env
disk name=boot
disk name=rootfs
disk name=rootfs_data
disk name=private
disk name=recovery
disk name=misc
disk name=UDISK
this is not a partition key
update_for_part_info 0
crc 0 = 1f653e0f
update mbr file ok
APP_PART_DOWNLOAD_FILE = /home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/app.fex
Need size of filesystem
/home/chenkunyao/workspace/ftina2.0/etina
mbr count = 1

partitation file Path=/home/chenkunyao/workspace/ftina2.0/etina/sys_partition_tmp.bin
mbr_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/sunxi_mbr_tmp.fex
download_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/dlinfo.fex

mbr size = 2048
mbr magic softw411
disk name=boot-res
disk name=env
disk name=boot
disk name=rootfs
disk name=rootfs_data
disk name=private
disk name=recovery
disk name=misc
disk name=UDISK
this is not a partition key
update_for_part_info 0
crc 0 = 1f653e0f
update mbr file ok
sys_config exist
Multiconfig num:0
copying tools file
copying configs file
storage_type value is -1
image/aultls32.fex
image/aultools.fex
image/boot0_nand.fex
image/boot0_sdcard.fex
image/boot0_spinor.fex
image/boot_package.cfg
image/boot_package.fex
image/boot_package_nor.cfg
image/cardscript.fex
image/cardscript_secure.fex
image/cardtool.fex
image/dlinfo.fex
image/env-3.10.cfg
image/env-3.4.cfg
image/env-4.9.cfg
image/env_burn.cfg
image/env.cfg
image/fes1.fex
image/image.cfg
image/image_linux.cfg
image/monitor.fex
image/optee.fex
image/scp.fex
image/split_xxxx.fex
image/sunxi.fex
image/sunxi_mbr_tmp_app.fex
image/sys_config.fex
image/sys_partition_dump.fex
image/sys_partition.fex
image/sys_partition_private.fex
image/sys_partition_tmp_app.fex
image/toc0.fex
image/toc1.fex
image/u-boot.fex
image/u-boot-spinor.fex
image/usbtool.fex
image/usbtool_test.fex
/home/chenkunyao/workspace/ftina2.0/etina
copying boot resource

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
copying boot file
copying arm64 secure boot file
add burn_secure_mode in target in sys config
make user resource for : /home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sys_partition.fex
handle partition user-res
no user resource partitions
mbr count = 1

partitation file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sys_partition_tmp_app.bin
mbr_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sunxi_mbr_tmp_app.fex
download_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/dlinfo.fex

mbr size = 2048
mbr magic softw411
disk name=boot-res
disk name=env
disk name=boot
disk name=rootfs
disk name=rootfs_data
disk name=private
disk name=recovery
disk name=misc
disk name=UDISK
this is not a partition key
update_for_part_info 0
crc 0 = 1f653e0f
update mbr file ok
APP_PART_DOWNLOAD_FILE = /home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/app.fex
Need size of filesystem
/home/chenkunyao/workspace/ftina2.0/etina
mbr count = 1

partitation file Path=/home/chenkunyao/workspace/ftina2.0/etina/sys_partition_tmp.bin
mbr_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/sunxi_mbr_tmp.fex
download_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/dlinfo.fex

mbr size = 2048
mbr magic softw411
disk name=boot-res
disk name=env
disk name=boot
disk name=rootfs
disk name=rootfs_data
disk name=private
disk name=recovery
disk name=misc
disk name=UDISK
this is not a partition key
update_for_part_info 0
crc 0 = 1f653e0f
update mbr file ok
p=soc c=product state=0
p=soc c=platform state=0
p=soc c=target state=0
p=soc c=power_sply state=0
p=soc c=card_boot state=0
p=soc c=pm_para state=0
p=soc c=card0_boot_para state=0
p=soc c=card2_boot_para state=0
p=soc c=twi_para state=0
p=soc c=uart_para state=0
p=soc c=jtag_para state=0
p=soc c=clock state=0
p=soc c=dram state=0
p=soc c=gmac0 state=0
p=soc c=twi0 state=0
p=soc c=twi1 state=0
p=soc c=twi2 state=0
p=soc c=uart0 state=0
p=soc c=uart1 state=0
p=soc c=uart2 state=0
p=soc c=uart3 state=0
p=soc c=uart4 state=0
p=soc c=spi0 state=0
p=soc c=spi1 state=0
p=soc c=rtp_para state=0
p=soc c=ctp state=0
p=soc c=ctp_list state=0
p=soc c=tkey_para state=0
p=soc c=motor_para state=0
p=soc c=nand0 state=0
p=soc c=disp state=0
p=soc c=lcd0 state=0
p=soc c=hdmi state=0
p=soc c=pwm0 state=0
p=soc c=pwm0 state=1
p=soc c=pwm16 state=0
p=soc c=pwm16 state=1
p=soc c=boot_disp state=0
p=soc c=csi0 state=0
p=csi0 c=csi0_dev0 state=0
p=soc c=tvout_para state=0
p=soc c=tvin_para state=0
p=soc c=di state=0
p=soc c=sdc0 state=0
p=soc c=sdc1 state=0
p=soc c=sdc2 state=0
p=soc c=smc state=0
p=soc c=usbc0 state=0
p=soc c=usbc1 state=0
p=soc c=serial_feature state=0
p=soc c=gsensor state=0
p=soc c=gsensor_list state=0
p=soc c=wlan state=0
p=soc c=bt state=0
p=soc c=btlpm state=0
p=soc c=3g_para state=0
p=soc c=gyroscopesensor state=0
p=soc c=gy_list state=0
p=soc c=lightsensor state=0
p=soc c=ls_list state=0
p=soc c=compasssensor state=0
p=soc c=compass_list state=0
p=soc c=spdif state=0
p=soc c=sndspdif state=0
p=soc c=daudio2 state=0
p=soc c=sndhdmi state=0
p=soc c=snddaudio0 state=0
p=soc c=daudio0 state=0
p=soc c=snddaudio1 state=0
p=soc c=daudio1 state=0
p=soc c=sndcodec state=0
p=soc c=i2s state=0
p=soc c=codec state=0
p=soc c=s_cir0 state=0
p=soc c=pmu0 state=0
p=soc c=charger0 state=0
p=soc c=powerkey0 state=0
p=soc c=regulator0 state=0
p=soc c=axp_gpio0 state=0
p=soc c=recovery_key state=0
p=soc c=fastboot_key state=0
p=soc c=key_detect_en state=0
p=soc c=dvfs_table state=0
p=soc c=s_uart0 state=0
p=soc c=s_rsb0 state=0
p=soc c=s_jtag0 state=0
p=soc c=Vdevice state=0
p=soc c=gpu state=0
p=soc c=secure state=0
p=soc c=partitions state=0
p=partitions c=boot-res state=0
p=partitions c=env state=0
p=partitions c=boot state=0
p=partitions c=rootfs state=0
p=partitions c=rootfs_data state=0
p=partitions c=private state=0
p=partitions c=recovery state=0
p=partitions c=misc state=0
p=partitions c=UDISK state=0
Conver script to dts ok.
update scp
pack boot package
GetPrivateProfileSection read to end
content_count=6

toc1 file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/boot_package.fex
script file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sys_config.bin

cant get board_id_enable
script update toc1 ok
packing for tina linux
secure
prepare for signature by openssl
"/home/chenkunyao/workspace/ftina2.0/etina/target/allwinner/tulip-common/sign_config/dragon_toc_a64_package.cfg" -> "dragon_toc.cfg"

toc0 file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc0.fex
script file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sys_config.bin

script update toc0 ok
dragon boot package
GetPrivateProfileSection read to end
content_count=4
root_cnf_file=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cnf/rootkey.cnf
cnf_file=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cnf/boot.cnf
current_path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/keys/SCPFirmwareContentCertPK.bin
Make cert toc1 /home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cert/boot.der success.
cnf_file=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cnf/boot_package.cnf
current_path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/keys/TrustedFirmwareContentCertPK.bin
Make cert toc1 /home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cert/boot_package.der success.
bin_name=config.fex
bin full name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/config.fex
bin_name=sunxi.fex
bin full name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sunxi.fex
bin_name=board.fex
bin full name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/board.fex
Make cert toc1 /home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cert/rootkey.der success.
GetPrivateProfileSection read to end
main_version=0
sub_version =0
item_count=6
content_count=7
toc1_head->main_version=0
toc1_head->sub_version=0
toc1_content_name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cert/rootkey.der
offset=0x1400
toc1_content_name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cert/boot.der
offset=0x1800
toc1_content_name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1/cert/boot_package.der
offset=0x1c00
toc1_content_name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/boot_package.fex
offset=0x105c00
toc1_content_name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/config.fex
p_toc1->item=soc-cfg
offset=0x110c00
toc1_content_name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sunxi.fex
p_toc1->item=dtb
offset=0x124800
toc1_content_name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/board.fex
p_toc1->item=board-cfg
offset=0x124c00
toc1_full_name=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1.fex

toc1 file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/toc1.fex
script file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sys_config.bin

cant get board_id_enable
script update toc1 ok
secure signature ok!
mbr count = 4

partitation file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sys_partition.bin
mbr_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/sunxi_mbr.fex
download_name file Path=/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image/dlinfo.fex

mbr size = 2048
mbr magic softw411
disk name=boot-res
filename = boot-resource.fex 
dl_file_size = 160 sector
part_size = 2048 sector
disk name=env
filename = env.fex 
dl_file_size = 256 sector
part_size = 2048 sector
disk name=boot
filename = boot.fex 
dl_file_size = 17132 sector
part_size = 20480 sector
disk name=rootfs
filename = rootfs.fex 
dl_file_size = 19712 sector
part_size = 65536 sector
disk name=rootfs_data
disk name=private
disk name=recovery
filename = recovery.fex 
dl_file_size = 0 sector
part_size = 32768 sector
disk name=misc
disk name=UDISK
this is not a partition key
update_for_part_info 0
crc 0 = e3bd8312
crc 1 = 7600d24f
crc 2 = 13b627e9
crc 3 = 860b76b4
update mbr file ok
/home/chenkunyao/workspace/ftina2.0/etina/out/host/bin/
/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/image
Begin Parse sys_partion.fex
Add partion boot-resource.fex BOOT-RESOURCE_FEX
Add partion very boot-resource.fex BOOT-RESOURCE_FEX
FilePath: boot-resource.fex
FileLength=14000Add partion env.fex ENV_FEX000000000
Add partion very env.fex ENV_FEX000000000
FilePath: env.fex
FileLength=20000Add partion boot.fex BOOT_FEX00000000
Add partion very boot.fex BOOT_FEX00000000
FilePath: boot.fex
FileLength=85d800Add partion rootfs.fex ROOTFS_FEX000000
Add partion very rootfs.fex ROOTFS_FEX000000
FilePath: rootfs.fex
FileLength=9a0000Add partion recovery.fex RECOVERY_FEX0000
Add partion very recovery.fex RECOVERY_FEX0000
FilePath: recovery.fex
FileLength=18sys_config.fex Len: 0xfa98
config.fex Len: 0xb000
split_xxxx.fex Len: 0x200
sys_partition.fex Len: 0xca6
sunxi.fex Len: 0x13c00
boot0_nand.fex Len: 0x8000
boot0_sdcard.fex Len: 0x8000
u-boot.fex Len: 0xb0000
toc1.fex Len: 0x128000
toc0.fex Len: 0x18000
fes1.fex Len: 0x4240
boot_package.fex Len: 0x104000
usbtool.fex Len: 0x24200
aultools.fex Len: 0x2847b
aultls32.fex Len: 0x24d23
cardtool.fex Len: 0x11c00
cardscript.fex Len: 0x6de
sunxi_mbr.fex Len: 0x10000
dlinfo.fex Len: 0x4000
boot-resource.fex Len: 0x14000
Vboot-resource.fex Len: 0x4
env.fex Len: 0x20000
Venv.fex Len: 0x4
boot.fex Len: 0x85d800
Vboot.fex Len: 0x4
rootfs.fex Len: 0x9a0000
Vrootfs.fex Len: 0x4
recovery.fex Len: 0x18
Vrecovery.fex Len: 0x4
BuildImg 0
Dragon execute image.cfg SUCCESS !
----------image is at----------

/home/chenkunyao/workspace/ftina2.0/etina/out/tulip-hena/tina_tulip-hena_uart0_secure_v0-0.img

pack finish

 

全志平台Tina系统编译安全固件的方法_第1张图片

如果不加参数 -s直接pack,则还是生成普通固件

全志平台Tina系统编译安全固件的方法_第2张图片

安全固件名字后面会多了一个“_secure_v0-0”。

一个设备如果烧过安全固件就不能再烧普通固件了(能烧进去但是系统起不来),所以一定要小心,开发测试的时候最好区分好哪些板子是烧了安全固件的,哪些板子是没有烧安全固件的,以免搞混。

 

 

 

 

 

 

你可能感兴趣的:(全志-Tina,全志-FAQ,全志-安全,全志-量产方法&问题)