[U-Boot] [PATCH 1/2] mkconfig: Make CONFIG_SYS_BOARD_NAME default to the configured target name

Henrik Nordström henrik at henriknordstrom.net
Mon Nov 26 22:41:04 CET 2012


mån 2012-11-26 klockan 14:05 -0700 skrev Tom Rini:

> I think part of the solution is that in the environment now we have
> board_name for the unique run-time-determined board we are on (which
> defaults to CONFIG_SYS_BOARD).  In each of these Allwiner SoCs do we
> have the ability to tell at run-time what we are on, or only build-time?

Only build-time. There is no hardware board ID of any kind on the
boards. But it mostly matters for SPL to know you have the right SPL for
the board, and cosmetics to have main u-boot report the right board
model (not important).

But the more I think about it I think we will move all the important
board parameters to a configuration header added to the SPL binary
image, and we will then also add board name there. There is simply too
many boards needing slightly different parameters but almost the same.

Regards
Henrik



More information about the U-Boot mailing list