Hi, i'm trying to update u-boot to the latest BSP (2023.04) on a i.MX6ULL custom board that is at 2016.03. As that old version doesn't have a dtsi, I copied it from our Linux Kernel source.
Currently it crashes like so:
U-Boot 2023.04 (Dec 28 2023 - 14:20:16 +0000)
CPU: i.MX6ULL rev1.1 900 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 95C) at 32C
Reset cause: WDOG
Model: X T080 for Y
Board: T080 for Y
DRAM: 512 MiB
Core: 75 devices, 17 uclasses, devicetree: separate
MMC: FSL_SDHC: 0
Loading Environment from MMC... MMC Device 1 not found
*** Warning - No MMC card found, using default environment
Fail to setup video link
In: serial
Out: serial
Err: serial
data abort
pc : [<9ffb38f6>] lr : [<9ffc4489>]
reloc pc : [<878228f6>] lr : [<87833489>]
sp : 9ef86588 ip : 9ef86574 fp : 87800020
r10: 00000017 r9 : 9ef8eeb0 r8 : 00000100
r7 : 021bc400 r6 : 9ffd0825 r5 : 00000000 r4 : 9ef91ab0
r3 : ffffffff r2 : 02140000 r1 : 00007f50 r0 : ffffffff
Flags: NzCv IRQs off FIQs off Mode SVC_32 (T)
Code: 1e03 9300 da0e 6822 (6853) b125
Resetting CPU ...
resetting ...
Any help or guidance would be appreciated.
Hi
Can you share what you have copied to new BSP?
Regards
Harvey
Hi, I actually solved the data abort by disabling HAB by removing FSL_CAAM and FSL_BLOB like this in arch/arm/mach-imx/mx6/Kconfig:
config TARGET_Y_T080
bool "y_t080"
depends on MX6UL
select BOARD_LATE_INIT
select DM
select DM_THERMAL
select SUPPORT_SPL
select IMX_MODULE_FUSE
select OF_SYSTEM_SETUP
imply CMD_DM
- select FSL_CAAM
- select FSL_BLOB
select ARCH_MISC_INIT
The board boots fine now, but if I enable CONFIG_CMD_BMP it hangs with no error in the serial output like so:
U-Boot 2023.04 (Jan 03 2024 - 11:48:22 +0000)
CPU: i.MX6ULL rev1.1 900 MHz (running at 396 MHz)
CPU: Commercial temperature grade (0C to 95C) at 31C
Reset cause: POR
Model: X T080 for Y
Board: T080 for Y
DRAM: 512 MiB
Core: 76 devices, 18 uclasses, devicetree: separate
NAND: 512 MiB
MMC: FSL_SDHC: 0
Loading Environment from MMC... MMC Device 1 not found
*** Warning - No MMC card found, using default environment
Loading Environment from NAND... *** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Our board has a 24 bit parallel LCD, which in uboot 2016.03 works fine but is initialized without a DT and can show a splash logo.
Thanks
It seems the problem is related to HAB, because after doing an objdump of the reloc pc, the function which crashes in the file "drivers/crypto/fsl/jr.c" is:
int sec_init_idx(uint8_t sec_idx)
I don't really know what SEC is but our board isn't configured for it, how can I disable it?