From patchwork Wed Aug 24 01:09:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1669517 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=ldg0PVb9; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=ZxRQNPFY; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MC7LD16Vvz1yhC for ; Wed, 24 Aug 2022 11:09:54 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 24EC983BAC; Wed, 24 Aug 2022 03:09:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1661303386; bh=xE+tC7MvPGyYB7ZyP4giE17vBwGtPF/ZJ5Yecvk5oH0=; h=From:To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=ldg0PVb92cE07K1Hwda5xktrYxaMY+vgJUbI3RViAAolVFY9J5o2bHNGbWudXI4tN jJB0jqdbZqMj3HWMcgwDmESrqzfGUqcX0g6TG1cdqbp0vsJAnpcyIebHlz657Buumb jsMjSD9ItQg88Sw0by0NBp0sKUfPCnZtm6DM8tkJe8OnUf9h8ukI0pU/LcIDjCWAA/ SehdQJtvNwG9PfVaA0GdBVEspSc9zkhQONbe/xxWmc0Qoupnkj8fehkJ3qbBw9/XK5 t9sWHemdzlrsz30UsZCLSdbQhL5u+TlCGUaT6hUkcX4/jZYt8VevmAVU3zt6yc3EuG s64X7o3AjWVRQ== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:4b69:dcd2:2254:79f:cf23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id C5081833B3; Wed, 24 Aug 2022 03:09:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1661303384; bh=xE+tC7MvPGyYB7ZyP4giE17vBwGtPF/ZJ5Yecvk5oH0=; h=From:To:Cc:Subject:Date:From; b=ZxRQNPFY74p9kwN4VM5ltGi0fwTQwgOSti7KtTZLVhgjChx4Na2g5SUwvp5YmxgxT JjJBhyRz7SxM/mCUB0RAD3zrvmyQilwtB2DBvPG2cdmikKxaRoNsxdLyUoF9xDeckQ EKkOUzi07cYCQw8NLa9JzXQsEgU46l94yi23s6T3SgyWd0jG7SmAsOzOaqiTxGHtZa T9a3qUSwsftsxaeCWMKhmsrmyR01AsgtU+en3zkjdIVytKEhGw2phzTIjsetfaDiXY Uzfri8xybl+PfL0+ejHC6m+WeeZ+2x0iY688oKcSxLAtO1n/k211RVidvLwafMfBgQ gsptoayMFZP+A== From: Fabio Estevam To: sbabic@denx.de Cc: frieder.schrempf@kontron.de, u-boot@lists.denx.de, Fabio Estevam Subject: [PATCH] kontron-sl-mx8mm: Let CONFIG_SPL_FIT_IMAGE_TINY be selected Date: Tue, 23 Aug 2022 22:09:34 -0300 Message-Id: <20220824010934.880784-1-festevam@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean When CONFIG_IMX_HAB is selected the 'hab_status' command reports several error events, indicating that the BootROM failed to authenticate the SPL. After inspecting the content of the memory location that corresponds to the DTB load address, the content did not match with the DTB binary, showing that some kind of memory corruption/overlap occurred. Letting the CONFIG_SPL_FIT_IMAGE_TINY option to be selected causes the DTB to be properly placed into RAM and no more overlap occurs. With this change, the 'hab_status' command returns no more error events, which indicates that the BootROM succeeded to authenticate the SPL. Signed-off-by: Fabio Estevam Reviewed-by: Frieder Schrempf --- configs/kontron-sl-mx8mm_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/kontron-sl-mx8mm_defconfig b/configs/kontron-sl-mx8mm_defconfig index 5387f65926f6..f8589b010cce 100644 --- a/configs/kontron-sl-mx8mm_defconfig +++ b/configs/kontron-sl-mx8mm_defconfig @@ -39,7 +39,6 @@ CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x42200000 CONFIG_SYS_SPL_MALLOC_SIZE=0x80000 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x300 -# CONFIG_SPL_FIT_IMAGE_TINY is not set CONFIG_SPL_I2C=y CONFIG_SPL_DM_SPI_FLASH=y CONFIG_SPL_POWER=y