diff --git a/board/nm/netbird_v2/board.c b/board/nm/netbird_v2/board.c index f918cd0932..8c8b372bd3 100644 --- a/board/nm/netbird_v2/board.c +++ b/board/nm/netbird_v2/board.c @@ -493,6 +493,15 @@ static void get_hw_version(void) setenv("add_version_bootargs", new_env); } +static void check_fct(void) +{ + uchar buffer[1]; + if (i2c_read(0x51, 0, 2, buffer, 1) == 0) { + printf("Entering fct mode\n"); + setenv ("bootcmd", ""); + } +} + #endif #ifdef CONFIG_BOARD_LATE_INIT @@ -529,6 +538,10 @@ int board_late_init(void) enable_wlan_clock(); +#if !defined(CONFIG_SPL_BUILD) + check_fct(); +#endif + return 0; } #endif