From: alex Date: Mon, 19 Nov 2012 13:40:06 +0800 (CST) Subject: [U-Boot] sam9x5 can't find Nand flash In-Reply-To: <31f4d5f2.6c66.13b172ba82e.Coremail.laub923@163.com> References: <33d0ae3.3d99.13b1697bd61.Coremail.laub923@163.com> <50A9A53D.4060000@atmel.com> <31f4d5f2.6c66.13b172ba82e.Coremail.laub923@163.com> Message-ID: <75d85c55.6d24.13b172e466a.Coremail.laub923@163.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de more information. samba script as below: ## Falshing binaries puts "-I- === Initialize the NAND access ===" NANDFLASH::Init puts "-I- === Enable PMECC OS Parameters ===" NANDFLASH::NandHeaderValue HEADER 0xc0c00405 puts "-I- === Erase all the NAND flash blocs and test the erasing ===" NANDFLASH::EraseAllNandFlash puts "-I- === Load the bootstrap: nandflash_at91sam9-ek in the first sector ===" NANDFLASH::SendBootFilePmeccCmd $bootstrapFile puts "-I- === Load the u-boot image ===" send_file {NandFlash} "$ubootFile" $ubootAddr 0 puts "-I- === Load the u-boot env image ===" send_file {NandFlash} "$ubootenvFile" $ubootenvAddr 0 puts "-I- === Load the Kernel image ===" send_file {NandFlash} "$kernelFile" $kernelAddr 0 puts "-I- === Enable trimffs ===" NANDFLASH::NandSetTrimffs 1 puts "-I- === Load the linux file system ===" send_file {NandFlash} "$rootfsFile" $rootfsAddr 0 puts "-I- === DONE. ===" At 2012-11-19 13:37:15,alex wrote: I use u-boot v2010.06 with atmel's patch. I give u-boot 512K size. U-Boot 2010.06-00002-gb006d3d-dirty (Nov 19 2012 - 09:53:38) DRAM: 128 MiB NAND: No NAND device found!!! NAND Flash not found ! No NAND device found!!! 0 MiB At 2012-11-19 11:19:25,"Bo Shen" wrote: >Hi Alex, > >On 11/19/2012 10:55, alex wrote: >> Hi MAINTAINER: >> Now I develop our product based on sam9x25 EVK, and redefine our NAND >> partitions. I set u-boot environment in flash address0x80000. >> if "saveenv" and "reset", u-boot will print "can't find NAND flash". If >> I set u-boot environment in the address 0xc0000 as EVK board, it's OK. I >> cant' know the reason. > >Which u-boot version do you use? Please also paste the u-boot boot log here. > >Please also check the u-boot file size, will the env overlap with it? > >Best Regards, >Bo Shen >