support attestation commands:
at-attest-dh,at-attest-uuid,at-get-ca-request,at-set-ca-request
Change-Id: I3fe94befa57a131e89dbe136c065a948b1631756
Signed-off-by: Andy Ye <andy.ye@rock-chips.com>
The fdt must be named of "kernel.dtb", and it's saved
in the root dir of the oem partition.
Change-Id: I70dc9cbbc295f23b08bf122df3b29bba7dacb82f
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
If user get the kernel fdt into the independent partition
which is the ext4 filesystem, we can use this api to load
fdt.
Change-Id: I4fa494beffecb41e8c0e4c02f1e782d0291e2d05
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Support boot the system in the old mode, and there
is no need to differentiate the _a or _b slot
in the gpt table.
Change-Id: I162e34a9bd0120db051f709faec06daf3bc0aa9c
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The android things system need some avb info
in the stage of u-boot, like VBH value and so
on.
Change-Id: Ia102931f3b0c912c7e1f34f668d8af0b45fa4a6e
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I6fc41b5480adfbd8456032e844d4f22f30c413a5
Signed-off-by: Francis Fan <francis.fan@rock-chips.com>
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
Change-Id: I51fb6f6c66bf4e2ebb24a833184f336be640cf57
Signed-off-by: Francis Fan <francis.fan@rock-chips.com>
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
Change-Id: I16d20e39df54441739ee59084f737b44a3d6caf0
Signed-off-by: Francis Fan <francis.fan@rock-chips.com>
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
1.support the permanent attribute verify
2.support the PRK, PIK, PSK certificate verify
and then get the psk public_key, compare it with
public_key in vbmeta.
If the function is required, please open the macro
AVB_VBMETA_PUBLIC_KEY_VALIDATE.
Change-Id: Ifeab776c76f97fadd980671481ce27d203516673
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
In the android things system, the command of fuse at-perm-attr
is used to program the permanent attributes and its hash.The
permanent attributes is written in eMMC RPMB, and its hash is
writen in efuse.
Change-Id: Ib0745100063d18b56e2dfcb638e0c9f7e2ef9b0a
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
If GPT buf is invalid, it will send actual disk size
back. We can use this actual disk size to build correct
GPT partition.
Change-Id: Ia54112951b7b8daa6afe369bc16a037cdbe8db39
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I7054a931a4cf742bd23e89477324b1eb1d953b8f
Signed-off-by: Francis Fan <francis.fan@rock-chips.com>
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
Change-Id: Ia25df975d21d7c97cf090f0d374074c2c5cd1a58
Signed-off-by: Francis Fan <francis.fan@rock-chips.com>
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
Change-Id: I46c4f0f80b54a72acdba107ea290a45c231c3dda
Signed-off-by: Francis Fan <francis.fan@rock-chips.com>
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
This fixes issue that fastboot command failed with
"MMC device -1 not found"
Change-Id: Ifb136874aaf10dff3d3dc02043225407441085ca
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
Load the boot image real size other than the
boot partition size. If not, the uboot can not
malloc a big buffer for the all boot partition.
Change-Id: Ifc8d7cc1f214b94f6018c68cb03e8e9ce89781de
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
TEST:
python system/extra/tests/bootloader/bootloader.py --device-type iot
TODO:
"fastboot getvar all" is still NOT implemnted.
Functions should be implemented with actual state.
Change-Id: Ic757694622a5038a9766cedfde26c22935446347
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
Rockchip upgrade tool use bcdUSB (0x0201) field distinguishing maskrom
or loader device at present. Unfortunately, it conflict with Windows 8
and beyond which request BOS descriptor in this case that bcdUSB is set
to 0x0201. This patch adds the HACK codes to fix it.
Change-Id: I6a186139f79ba27f5d9e099493e9e742a29bbe40
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This change amend USB VID & PID to Rockchip for rockusb.
Change-Id: I3c94e442cc0190d2d3f13424470dd2d84af55eb0
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
We found rockusb upgraded failed when there had gpt partitions in
system caused by total sectors checking, this change expose all mmc
partitions for rockusb command.
Change-Id: I8847c3c7885d17d47189c55765f97abb4965e8b4
Reported-by: Joseph Chen <chenjh@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
gva-rk3229 is a som based board design for Android Things project.
Change-Id: I2e054407231a2549573d2302855c09b9795fdddd
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
update defconfig after rebase from next-dev, mostly:
- add boot_android, avb
Change-Id: I44807f7ad51656fd350b5fe558ac47884c022934
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
if user input "reboot recovery" by adb or serial console,
uboot will load recovery ramfs image to run.
Change-Id: Ibad1709ed78938dbf1826446a0de5c822c6ce4e4
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
split boot_android and boot_mode int two commits.
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
U-boot must reserve memory for trsut TA if
android system can call trust TA for security
service.So u-boot can reserve memory using
fixed parametar and obtaining parameter from
trust TA.
Change-Id: Idf869be3e041699914075ed5a2ce206e6dd262ff
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
In the function cb_flash, we call avb_read_flash_lock_state
in the conditional judgement, but we do not add brackets after
the return.This cause the fastboot can not work well.
Change-Id: Ib9bbd367d25bdc3e93e6db4444896caa114382a7
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
The system must support recovery and fastboot
mode, so the u-boot must judge the boot command
in the misc partition.
Change-Id: I53c876eeefdc20ebe313a6a73d4cfac443fafa67
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
If excute avb_ab_flow() failed, the free the
no use buffer.
Change-Id: I874f3367eceb35424b069a04a1ec35c37b46e639
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
increase the cpu frequence to 816M, and enable mmc ddr mode
for emmc.
Change-Id: I93d6b3c625c73d5e75accfb26559930dd299e0e9
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
The android things require the soc-v key hash to be flashed
using the fastboot. So these function can be used in fastboot
to flash the key hash.
Change-Id: I6e00f2e1e371793b6f0868356ac0a51090adfe5e
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Add a flag to indicate the permanent attributes
have been written or not.
Change-Id: Id0b22158772bdf18466205df5f08cb0ddb820fbf
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>