How to set boot count in U-boot for NXP iMX.6 Dual and Dual lite?

Igor Opaniuk igor.opaniuk at gmail.com
Tue Mar 10 13:01:36 CET 2020


Hi Pratik,

On Tue, Mar 10, 2020 at 12:37 PM Pratik Rajyaguru
<pratik.rajyaguru at einfochips.com> wrote:
>
> Hello All,
>
> I want to set boot count to 5 for iMX.6 to set attempt counter, in case of failures at boot time. I am using both Dual and Dual lite modules.
>
> U-boot source code reference: Freescale's U-Boot 2014.04.
> As I checked, CONFIG_BOOTCOUNT_LIMIT MACRO can be used to configure attempt counter, in case of failures at boot time. Then alternative booting command can be configured, if counter is exceeded.
It's unlikely that someone can help you with NXP U-Boot fork here
(especially with pretty outdated one).
It's better to post these questions here in https://community.nxp.com/.

>
> I have enabled CONFIG_BOOTCOUNT_LIMIT MACRO in u-boot file include/configs/mx6_common.h.
> I received error as mentioned below.
>
> common/built-in.o: In function `process_boot_delay':
> <path>/uboot/build_uboot/common/main.c:340: undefined reference to `bootcount_load'
> <path>/uboot/build_uboot/common/main.c:342: undefined reference to `bootcount_store'
>
> Can someone please guide me through expected procedure to configure / build u-boot with boot count?
> Any insight / alternative approach suggestion will be highly useful.
>
>
> Thanks in advance,
> Pratik Rajyaguru
>


-- 
Best regards - Freundliche Grüsse - Meilleures salutations

Igor Opaniuk

mailto: igor.opaniuk at gmail.com
skype: igor.opanyuk
+380 (93) 836 40 67
http://ua.linkedin.com/in/iopaniuk


More information about the U-Boot mailing list