[U-Boot] [PATCH V4 2/2] mcx: support for HTKW mcx board

Tom Rini tom.rini at gmail.com
Tue Dec 13 19:52:43 CET 2011


On Mon, Dec 12, 2011 at 4:15 PM, Ilya Yanok <yanok at emcraft.com> wrote:
> This patch adds support for the HTKW mcx AM3517-based board.
> Serial, Ethernet, NAND, MMC, RTC, EHCI USB host and both
> NAND and MMC SPLs are supported.
>
> Requires updated mach-types file.

Just define the MACH_ID locally for now so it builds still please.
Also, some problems:

> +#if defined(CONFIG_OMAP_HSMMC) && !defined(CONFIG_SPL_BUILD)
> +int board_mmc_init(bd_t *bis)
> +{
> +       omap_mmc_init(0);
> +       return 0;
> +}
> +#endif

That should just be return omap_mmc_init(0);

[snip to config file]
> +#define CONFIG_SYS_TEXT_BASE           0x80008000
[snip]
> +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR        0x300 /* address 0x60000 */
> +#define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION   1
> +#define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME       "u-boot.img"

You're able to have CONFIG_SYS_TEXT_BASE that low and not have the
corruption problem devkit8000 had?

> +#define CONFIG_SYS_NAND_U_BOOT_SIZE    0x60000

IIRC you don't need this define since this SPL says you write
u-boot.img to NAND not u-boot.bin

-- 
Tom


More information about the U-Boot mailing list