Make the code generic and providing tables to fill what we want.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I03f3d68fbe1d0d69ea0f82897bfbbf176ee9cd04
Should be the same as rk3368, otherwise the loader will
verify trust.img failed when secure boot is enabled.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I25ba5b7ad8a1673e09db1167ff780fe0c8c5a95f
This is a early function, we can assign the ini file now:
./make.sh loader <ini>
./make.sh trust <ini>
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I35e02a155ca622003af717f4b9ccf76741d7576e
It seems useless at the most time and makes this
script complicated.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I157c7e036451dae79453706bbfcc81860686bfe5
fix: "ls: cannot access trust*.img: No such file or director".
Change-Id: Iabecb6b751dd3ba3f25fe725dac17cf4b7c39801
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
support parse "ADDR" and "OUTPUT" from *TOS.ini
Change-Id: Ie98d858c832eecd7736cf3b4a020dfc91b10241c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
clean: use variant "ini" for default MINIALL.ini path
Change-Id: Ia1583a915ebbbc4ec5299b9ef6d81b04592bd04b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This U-Boot is working with kernel-4.4 at least which
requires trust.img with ta.
It also avoids user confused with trust.img and trust_with_ta.img.
Change-Id: I18ec538a1f83cbb660e2fda597bf8120863d744f
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
CONFIG_SYS_TEXT_BASE define in header file has be deprecate on
mainline, it has been move to Kconfig.
Change-Id: I40ae0ab84dbc6d74eca3450413fc2d11eb098434
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
this command is mainly for debugging.
Usage:
./make.sh debug-N
Example:
./make.sh debug ------ for debug help
./make.sh debug-1 ------ enable case1 debug
......
Change-Id: I1a0b063863cbdfc2be6bcc33da9c08f6d7536b3e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
- include: boot_merge/trust_merge/loaderimage/resource_tool/checksum;
- porting from rkdevelop and base on commit 8fd1d8f
(resource: get resource primary from boot partition);
- clean generated binary file when execute clean command;
Change-Id: I41c1893c2da0a0f25c2d39dbbd933f89fbb04948
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
PX3SE loader/trust packing was broken since
d443b7d make.sh: parse RKCHIP from .config
This fixs px3se building with previous commit. And since we're
here, detecting the variant gracefully.
Change-Id: I5c7f5385a4cfd0d6beba842bd4766b77d8f67d88
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
mainly for rk3399 ini files:
RK3399MINIALL.ini
RK3399MINIALL_SPINOR.ini
Change-Id: I025c98c2cb0a4e8d6070efe1999797c90b113036
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
this makes RKCHIP non relative about build command,
but we have to do special fixup for rk3326 and rk3126
board defconfig, because they contain px30 and rk3128
in the .config file.
Change-Id: Ia1974f2c8961b0a698d32f45effa4ddfe4177b0b
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
this default use exist .config to build project. because users
maybe don't like their .config to be override after "make menuconfig"
change.
Only one SoC in the .config is allowed, otherwise still use
"./make.sh [board]".
Change-Id: Ib65a4b6d6f84b822f6bdaf84b9784521fbf200e9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
1. move all platform fixup together in fixup_platform_configure();
2. Support rk3308 build trust.img/uboot.img AArch32 1MB and AArch64 2MB.
Change-Id: I02cf51bc8e01317caee0d6de157d832ef133ab4c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This reverts commit b45ec7ccd8.
Due to commit d77daa4 in rkbin project, which supports muitiple filesystem,
so we don't need this patch any more.
Change-Id: I73fab6f865a8428c9ecf41406fd5bbeffe6920cc
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
generate both trust_nand.img and trust_emmc.img
Change-Id: I736679f1544d1804487995d6eafbc876bec78bbe
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
rk big endian sha256 pack magic is "2", so use "--sha 2" subcmd
Change-Id: I1a31712f808aaff7f9213ea6f1a7ca15fe3012c2
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
RSA PKCS1 V2.1 pack magic is "3", so use "--rsa 3" subcmd
Change-Id: Ic35445445121d765385f5cf9673473b061633a3a
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
We can set a special build output dir for ${OUTDIR}
by argument -o, so the correct way to locate a output
object is ${OUTDIR}/obj.
Change-Id: I894b44d703afe2d21fcf7dddfbb82ae943835021
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
We don't want uboot.img compile everytime if we just want to
pack trust or loader.
Example:
./make.sh evb-rk3308 trust ------ only pack trust
./make.sh evb-rk3308 loader ------ only pack loader
Change-Id: I9d940eefba99074c155c978cbc0ba838160f65d9
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
this avoids users to be confused with uboot.img
Change-Id: Ifdbb1c483825ef065708ca81da3496bde3358e21
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
PX30 and RK3326 would have their individual ini files.
Change-Id: I3e8f05b34ee9a38429fd2870f635328eaf6b5f59
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
default use current directory as output dir, you can also
assign output dir by command "O=[directory]".
Example:
./make.sh evb-px30 O=rockdev
Change-Id: I1a7efb7a273d147d81b7fa9bb0bbbe00a8f5d12e
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
1. make clean, make distclean and make mrproper;
2. objdump elf file;
Append 'clean', 'distclean', 'mrproper' or 'elf' to build command
Example:
./make.sh evb-px30 clean
./make.sh evb-px30 distclean
./make.sh evb-px30 mrproper
./make.sh evb-px30 elf
you can also use 'elf[option]', like: 'elf-D', 'elf-d', 'elf-S'...
[option] is not necessary(default -D), it would be used as objdump
command option.
Change-Id: If6402ee9b0f9bd79aa7f18703ce0061106b11e26
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
fix compile issue while git checkout between rkdevelop and next-dev:
Using /home/cjh/uboot-nextdev/u-boot as source for U-Boot
/home/cjh/uboot-nextdev/u-boot is not clean, please run 'make mrproper'
in the '/home/cjh/uboot-nextdev/u-boot' directory.
make[1]: *** [prepare3] Error 1
make[1]: *** Waiting for unfinished jobs....
Change-Id: If9e01b407f524360ff402d8d36241f3885c90c48
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
1. use global variables for important definitions, easy to update;
2. add more error message warning;
3. fix some issues.
Change-Id: I702f4efe5839c1c7eaf66f412011aadf6627f323
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
boot_merge and trust_merge support command "--replace".
Change-Id: Ie5cf52a1aaefcc717fcb76400e2f0eb8dfc8f467
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>