given some recent questions about u-boot related to the beagle, i'd
like to clarify a few things so i can add it to my documentation.
first, is there any need for a configure and build of u-boot to
distinguish between an original beagle and the xM? currently in
mainline u-boot, there is (AFAICT) a single target for configuring for
both the original and xM:
$ make omap3_beagle_config
in fact, if you look at omap3_beagle.h, what you read is:
#define CONFIG_OMAP 1 /* in a TI OMAP core */
#define CONFIG_OMAP34XX 1 /* which is a 34XX */
#define CONFIG_OMAP3_BEAGLE 1 /* working with BEAGLE */
so i'm assuming that's sufficient to identify both the original and xM
for the purposes of u-boot, correct? and there's no need for u-boot
to tell them apart, at least for the config and build?
next, i can see in mainline u-boot that there is support for the
newer uEnv.txt and user.txt files in that same header file:
... snip ...
"bootenv=uEnv.txt\0" \
... snip ...
#define CONFIG_BOOTCOMMAND \
"if mmc rescan ${mmcdev}; then " \
"if userbutton; then " \
"setenv bootenv user.txt;" \
"fi;" \
"echo SD/MMC found on device ${mmcdev};" \
"if run loadbootenv; then " \
"echo Loaded environment from ${bootenv};" \
"run importbootenv;" \
"fi;" \
... snip ...
given the above, is there any need to use the older technique of
boot.scr and user.scr and mkimage? do the uEnv.txt and user.txt files
make those earlier files obsolete?
finally, is it recommended to track the linaro-specific u-boot tree
as opposed to mainline u-boot? i can see the linaro extensions in
u-boot using a simple diff for that header file:
===== start diff =====
$ diff {denx,linaro}/include/configs/omap3_beagle.h
136a137,148
/* BOOTP options */
#define CONFIG_BOOTP_BOOTFILESIZE
#define CONFIG_BOOTP_BOOTPATH
#define CONFIG_BOOTP_GATEWAY
#define CONFIG_BOOTP_HOSTNAME/* PXE */
#define CONFIG_CMD_PXE
#define CONFIG_MENU
#define CONFIG_BOOTP_PXE
#define CONFIG_BOOTP_PXE_CLIENTARCH 0x100
#define CONFIG_BOOTP_VCI_STRING
"U-boot.armv7.omap3_beagle"
252a265,268
"bootscr=boot.scr\0" \
"loadbootscript=fatload mmc ${mmcdev} ${loadaddr}
${bootscr}\0" \
"bootscript=echo Running bootscript from mmc${mmcdev} ...; " \
"source ${loadaddr}\0" \
274a291,294
"kernel_addr_r=0x88000000\0" \
"ramdisk_addr_r=0x81600000\0" \
"pxefile_addr_r=0x86000000\0"
285,288c305,311
< "fi;" \
< "if test -n $uenvcmd; then " \
< "echo Running uenvcmd ...;" \
< "run uenvcmd;" \