Re: help on udoo_neo power up on mainline uboot

Fabio Estevam
2021-12-29T23:07:23Z

Hi Peter and Tommaso,

On Wed, Dec 29, 2021 at 7:38 PM Fabio Estevam <festevam@gmail.com> wrote:

> Yes, according to Peter, the failure comes only during the second call
> to get_board_value()

I managed to get my Udoo Neo board working again.

With only the change below on top of Peter's series, I can get the
board version to be printed correctly:

--- a/board/udoo/neo/neo.c
+++ b/board/udoo/neo/neo.c
@@ -383,18 +383,13 @@ static char *board_string(void)
return "UNDEFINED";
}

-int checkboard(void)
-{
- printf("Board: UDOO Neo %s\n", board_string());
- return 0;
-}
-
int board_late_init(void)
{
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
env_set("board_name", board_string());
#endif

+ printf("Board: UDOO Neo %s\n", board_string());
return 0;
}

U-Boot log:

U-Boot SPL 2022.01-rc4-00031-gc5c4ced998e3-dirty (Dec 29 2021 - 20:03:26 -0300)
Trying to boot from MMC1

U-Boot 2022.01-rc4-00031-gc5c4ced998e3-dirty (Dec 29 2021 - 20:03:26 -0300)

CPU: Freescale i.MX6SX rev1.2 996 MHz (running at 792 MHz)
CPU: Extended Commercial temperature grade (-20C to 105C) at 64C
Reset cause: POR
Model: UDOO Neo Basic
I2C: ready
DRAM: 1 GiB
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Board: UDOO Neo FULL
Net: eth0: ethernet@2188000
Hit any key to stop autoboot: 0
ethernet@2188000 Waiting for PHY auto negotiation to
complete.......user interrupt!
Could not initialize PHY ethernet@2188000
BOOTP broadcast 1