[External] Re: How to set boot count in U-boot for NXP iMX.6 Dual and Dual lite?
pratik.rajyaguru at einfochips.com
Tue Mar 10 13:11:07 CET 2020
I have already posted query in NXP Community. Here's thread: https://community.nxp.com/message/1270693
I received suggestion to post in u-boot mailing list, because the query is specific to u-boot booting counter mechanism and commands.
Please suggest, if any insight related to mechanism in question (ignoring outdated u-boot version).
From: Igor Opaniuk <igor.opaniuk at gmail.com>
Sent: 10 March 2020 17:32
To: Pratik Rajyaguru <pratik.rajyaguru at einfochips.com>
Cc: u-boot at lists.denx.de
Subject: [External] Re: How to set boot count in U-boot for NXP iMX.6 Dual and Dual lite?
CAUTION: This email originated from outside of the organization. This message might not be safe, use caution in opening it. If in doubt, do not open the attachment nor links in the message.
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://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2F&data=02%7C01%7Cpratik.rajyaguru%40einfochips.com%7Cf99a59bbf2674a101b1608d7c4ead0b6%7C0beb0c359cbb4feb99e5589e415c7944%7C1%7C0%7C637194385109946909&sdata=BUTmx5xwl1omTy3dHuNo0vsgvUT9OklnakqGlY1phVw%3D&reserved=0.
> 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
mailto: igor.opaniuk at gmail.com
+380 (93) 836 40 67
More information about the U-Boot