From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Kuten Date: Thu, 4 Jan 2007 14:17:47 +0200 (EET) Subject: [U-Boot-Users] 1.1.6 at91 based board dataflash copy panic. In-Reply-To: References: Message-ID: <44237.127.0.0.1.1167913067.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, I had the same problem with u-boot with dataflash only setup (no NOR flash) and used the following patch (see attach) cmd_mem.c doing wrong when copy from Dataflash to SDRAM: - if (addr_dataflash(addr) && !addr_dataflash(dest) && (addr2info(dest)==NULL) ){ + if (addr_dataflash(addr) && !addr_dataflash(dest) +#ifndef CFG_NO_FLASH + && (addr2info(dest)==NULL) +#endif + ){ and do not forget to set CFG_NO_FLASH in your include. ------------------------------------ Best regards, Ivan Embedded Linux Engineer Promwad - www.promwad.com ------------------------------------ -------------------------------------------------- Hello all, We are trying u-boot 1.1.6 on a customised at91rm9200 board. The main features are dataflash, 32MB and networking with DM9161. We have been using u-boot 1.1.4 quite well now, but we would like to test 1.1.6. Kernel boots ok, but we have found a problem. When we do a cp from the dataflash to ram like this: cp.b $(kerneladdr) 0x21600000 0x1 where kerneladdr is 0xC0040000 we have the following: data abort Resetting CPU ... -------------- next part -------------- A non-text attachment was scrubbed... Name: u-boot-1.1.6.at91.copy_from_dataflash_to_ram.chub.diff Type: application/octet-stream Size: 1576 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20070104/05f893af/attachment.obj