[U-Boot] IDE and USB error

Carlos kescuin kescuin at gmail.com
Wed Nov 19 18:18:44 CET 2008


Hi everyone:

I've started to work with Freescale M5329EVB board. And i'm trying to
configure U-boot (2008.10 version compiling with m68k-elf-) in order to
attach the USB and IDE, Compact Flash utilities, but at compiling i get the
errors attached. Any one knows where variables like CFG_IDE_MAXBUS are
defined for M5329EVB board?

Thanks in advance

CONFIG_CMD_USB error:

#error USB Lowlevel not defined

CONFIG_CMD_IDE error:

cmd_ide.c:112: error: 'CFG_IDE_MAXBUS' undeclared here (not in a function)
cmd_ide.c:119: error: empty scalar initializer
cmd_ide.c:119: error: (near initialization for 'ide_bus_offset')
cmd_ide.c:128: error: 'CFG_IDE_MAXDEVICE' undeclared here (not in a
function)
cmd_ide.c: In function '__ide_outb':
cmd_ide.c:529: error: 'CFG_ATA_BASE_ADDR' undeclared (first use in this
function)
cmd_ide.c:529: error: (Each undeclared identifier is reported only once
cmd_ide.c:529: error: for each function it appears in.)
cmd_ide.c:529: error: '_IO_BASE' undeclared (first use in this function)
cmd_ide.c: In function '__ide_inb':
cmd_ide.c:538: error: 'CFG_ATA_BASE_ADDR' undeclared (first use in this
function)
cmd_ide.c:538: error: '_IO_BASE' undeclared (first use in this function)
cmd_ide.c: In function 'ide_init':
cmd_ide.c:669: error: 'CFG_ATA_REG_OFFSET' undeclared (first use in this
function)
cmd_ide.c: In function 'input_swap_data':
cmd_ide.c:894: error: 'CFG_ATA_BASE_ADDR' undeclared (first use in this
function)
cmd_ide.c:894: error: 'CFG_ATA_DATA_OFFSET' undeclared (first use in this
function)
cmd_ide.c: In function 'output_data':
cmd_ide.c:964: error: 'CFG_ATA_BASE_ADDR' undeclared (first use in this
function)
cmd_ide.c:964: error: 'CFG_ATA_DATA_OFFSET' undeclared (first use in this
function)
cmd_ide.c:964: error: '_IO_BASE' undeclared (first use in this function)
cmd_ide.c: In function 'input_data':
cmd_ide.c:1022: error: 'CFG_ATA_BASE_ADDR' undeclared (first use in this
function)
cmd_ide.c:1022: error: 'CFG_ATA_DATA_OFFSET' undeclared (first use in this
function)
cmd_ide.c:1022: error: '_IO_BASE' undeclared (first use in this function)
cmd_ide.c: In function 'ide_ident':
cmd_ide.c:1093: error: 'CFG_ATA_REG_OFFSET' undeclared (first use in this
function)
cmd_ide.c: In function 'ide_read':
cmd_ide.c:1320: error: 'CFG_ATA_REG_OFFSET' undeclared (first use in this
function)
cmd_ide.c: In function 'ide_write':
cmd_ide.c:1442: error: 'CFG_ATA_REG_OFFSET' undeclared (first use in this
function)
cmd_ide.c: In function 'ide_wait':
cmd_ide.c:1554: error: 'CFG_ATA_REG_OFFSET' undeclared (first use in this
function)
cmd_ide.c: In function 'ide_get_dev':
cmd_ide.c:757: warning: control reaches end of non-void function


M5329EVB configuration:

#include <config_cmd_default.h>

#define CONFIG_CMD_CACHE
#define CONFIG_CMD_DATE
#define CONFIG_CMD_ELF
#define CONFIG_CMD_FLASH
#define CONFIG_CMD_I2C
#define CONFIG_CMD_MEMORY
#define CONFIG_CMD_MISC
#define CONFIG_CMD_MII
#define CONFIG_CMD_NET
#define CONFIG_CMD_PING
#define CONFIG_CMD_REGINFO

#define CONFIG_USB_STORAGE
#define CONFIG_ISO_PARTITION
#define CONFIG_CMD_PCMCIA
#define CONFIG_CMD_USB
#define CONFIG_CMD_IDE


More information about the U-Boot mailing list