Fixed UEFI example too

pull/223/head
Daniele Lacamera 2022-07-21 20:16:06 +02:00
parent 93dd53ac0f
commit 40afaaffe2
3 changed files with 6 additions and 5 deletions

View File

@ -7,4 +7,5 @@ DEBUG=1
SPMATH=0
# required for keytools
WOLFBOOT_SECTOR_SIZE?=0x1000
WOLFBOOT_NO_PARTITIONS=1
WOLFBOOT_NO_PARTITIONS=1
WOLFBOOT_LOAD_ADDRESS=0

View File

@ -150,8 +150,8 @@ void RAMFUNCTION wolfBoot_start(void)
}
#endif /* MMU */
#else
wolfBoot_printf("Loading %d bytes to RAM at %08lx\n",
os_image.fw_size, WOLFBOOT_LOAD_ADDRESS);
wolfBoot_printf("Loading %d bytes to RAM at %08lx\n", os_image.fw_size,
(WOLFBOOT_LOAD_ADDRESS));
memcpy((void*)WOLFBOOT_LOAD_ADDRESS, os_image.fw_base, os_image.fw_size);
#ifdef MMU
dts_buf = hal_get_dts_address();

View File

@ -22,8 +22,8 @@ if [ -f "./tools/keytools/sign" ]; then
SIGN_TOOL="./tools/keytools/sign"
fi
$SIGN_TOOL --ed25519 $IMAGE_DIR/images/bzImage ed25519.der 1
$SIGN_TOOL --ed25519 $IMAGE_DIR/images/bzImage ed25519.der 2
$SIGN_TOOL --ed25519 $IMAGE_DIR/images/bzImage wolfBoot_signing_private_key.der 1
$SIGN_TOOL --ed25519 $IMAGE_DIR/images/bzImage wolfboot_signing_private_key.der 2
mkdir -p /tmp/efi
sudo mount /tmp/efi.disk /tmp/efi