
The 06/27/2022 18:06, Joel Stanley wrote:
On Mon, 27 Jun 2022 at 08:48, Steven Lee steven_lee@aspeedtech.com wrote:
Hi Joel,
I was wondering if you could share the commit hash of u-boot you tested. I would like to test it on qemu.
I recommend using master with the patch that fixes FIT hash checking:
https://lore.kernel.org/r/20220620070117.3443066-1-joel@jms.id.au
I use a script to build the image (also attached to this email):
https://ozlabs.org/~joel/build-ast2600-spl.sh
Run that script from the u-boot source tree. It provides an example qemu commandline when it finishes:
Hi Joel,
Thanks for providing the information. It seems that 2022.07 hace driver calculating hash by direct access + accumulative mode, and aspeedtech-bmc uboot calculating hash by scatter-gather + accumulative mode.
Currently, qemu only supports scatter-gather + accumulative mode. https://github.com/qemu/qemu/blob/master/hw/misc/aspeed_hace.c#L197-L224
Reference: U-Boot SPL 2022.07-rc5-08402-gad4f0cd35a: https://github.com/shenki/u-boot/blob/aspeed-test/drivers/crypto/aspeed/aspe...
AspeedTech-BMC: https://github.com/AspeedTech-BMC/u-boot/blob/aspeed-master-v2019.04/drivers...
Regards, Steven