[U-Boot-Users] [ARM] TI DaVinci (TMS320DM644x) support [5/5]

Jon Loeliger jdl at freescale.com
Mon Aug 6 19:52:56 CEST 2007


On Mon, 2007-08-06 at 11:59, Dirk Behme wrote:

> > +/*=================*/
> > +/* U-Boot commands */
> > +/*=================*/
> > +#define COMMON_CMD_SET		(CONFIG_CMD_DFL |\
> > +				CFG_CMD_PING |\
> > +				CFG_CMD_DHCP |\
> > +				CFG_CMD_I2C |\
> > +				CFG_CMD_DIAG |\
> > +				CFG_CMD_ASKENV |\
> > +				CFG_CMD_SAVES |\
> > +				CFG_CMD_MII)
> > +#ifdef CFG_USE_NAND
> > +#define CUSTOM_CMD_SET		((COMMON_CMD_SET |\
> > +				CFG_CMD_NAND) &\
> > +				~(CFG_CMD_FLASH |\
> > +				CFG_CMD_IMLS))
> > +#elif defined(CFG_USE_NOR)
> > +#define CUSTOM_CMD_SET		((COMMON_CMD_SET |\
> > +				CFG_CMD_FLASH |\
> > +				CFG_CMD_JFFS2) &\
> > +				~(CFG_CMD_NAND))
> > +#else
> > +#error "Either CFG_USE_NAND or CFG_USE_NOR _MUST_ be defined !!!"
> > +#endif
> > +#ifdef SCHMOOGIE
> > +#define CONFIG_COMMANDS		((CUSTOM_CMD_SET) |\
> > +				(CFG_CMD_DATE))
> > +#elif defined(DV_EVM) || defined(SONATA_BOARD)
> > +#define CONFIG_COMMANDS		((CUSTOM_CMD_SET) |\
> > +				(CFG_CMD_EEPROM))
> > +#else
> > +#define CONFIG_COMMANDS		(CUSTOM_CMD_SET)
> > +#endif
> > +/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
> > +#include <cmd_confdefs.h>
> 
> - I had to learn that recent git update from today needs update to 
> this stuff (there is no cmd_confdefs.h any more). So, with git from 
> yesterday, Sunday, this still works, but recent git update needs an 
> update of this as well. See e.g.

Did you miss 106 patches to the list? :-)

Yeah, sorry, it's the dawn of a new world order here
in U-Boot land!

It will need to be somewhat like this:

        /*
         * BOOTP options
         */
        #define CONFIG_BOOTP_BOOTFILESIZE
        #define CONFIG_BOOTP_BOOTPATH
        #define CONFIG_BOOTP_GATEWAY
        #define CONFIG_BOOTP_HOSTNAME
        
        
        /*
         * Command line configuration.
         */
        #include <config_cmd_default.h>
        
        #define CONFIG_CMD_PING
        #define CONFIG_CMD_I2C
        
        #if defined(CONFIG_USE_NAND)
            #define CONFIG_CMD_NAND		/* or whatever.... */
            #define CONFIG_CMD_FLASH
            #define CONFIG_CMD_EXT2
        #endif

HTH,
jdl






More information about the U-Boot mailing list