From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Kuten Date: Thu, 4 Jan 2007 16:54:14 +0200 (EET) Subject: [U-Boot-Users] 1.1.6 at91 based board dataflash copy panic. In-Reply-To: <1167921259.5828.29.camel@localhost> References: <44237.127.0.0.1.1167913067.squirrel@localhost> <1167921259.5828.29.camel@localhost> Message-ID: <49143.127.0.0.1.1167922454.squirrel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, > When CFG_NO_FLASH is defined the content of either flash.h or flash.c is > not included in the code, but dataflash support depends on that so I get > a compilation error. I have been playing around and it seems that it is > not possible to do a exclusive dataflash binary for u-boot, am I right? Yes, now there is quite a mess with dataflash only setup. I was able to do "exclusive dataflash binary for u-boot" by adding necessary defines from flash.h to dataflash.h (these changes where included in patch I sent): ------------------------------------------------ #define ERR_OK 0 #define ERR_TIMOUT 1 #define ERR_NOT_ERASED 2 #define ERR_PROTECTED 4 #define ERR_INVAL 8 #define ERR_ALIGN 16 #define ERR_UNKNOWN_FLASH_VENDOR 32 #define ERR_UNKNOWN_FLASH_TYPE 64 #define ERR_PROG_ERROR 128 /* * Protection Flags for flash_protect(): */ #define FLAG_PROTECT_SET 0x01 #define FLAG_PROTECT_CLEAR 0x02 ------------------------------------------------ and removing flash related commands such as CFG_CMD_FLASH CFG_CMD_IMLS from board config. It was just quick workaround. ------------------------------------ Best regards, Ivan Embedded Linux Engineer Promwad - www.promwad.com ------------------------------------ > Hi. > > I have applied that patch and the problem is solved. Anyway I have > needed to do some additional changes. I will try to explain. > > When CFG_NO_FLASH is defined the content of either flash.h or flash.c is > not included in the code, but dataflash support depends on that so I get > a compilation error. I have been playing around and it seems that it is > not possible to do a exclusive dataflash binary for u-boot, am I right? > > As code is written CFG_NO_FLASH means that there isn't _any kind_ of > flash. So I guess the define in your patch should be CFG_DATAFLASH_ONLY > or similar. > > Thanks for your help, > > Regards. > > -- > Gerardo Mart?nez Bernat > tlf: 91 351 11 20 > Barracuda Systems SL > C/ Luxemburgo n?4 > 28224 Madrid > > > > >