From: Dharmosoth Seetharam Date: Wed, 28 Nov 2007 10:45:12 +0000 (GMT) Subject: [U-Boot-Users] Problem in writing downloaded image to NAND device In-Reply-To: <20071127220850.2174A24075@gemini.denx.de> Message-ID: <794354.44331.qm@web94811.mail.in2.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, Thank you for quick suggestion. I have one doubt in NAND write/read PATH. > > nand_write() --> nand_write_ecc() --> > > nand_write_page() --> nand_write_buf() --> > > > > > > in nand_write_buf() : > > > > for (i=0; i > writeb(buf[i], this->IO_ADDR_W); > > > > << writeb is defined as > > (*(volatile unsigned char *)(a) = (v)) >> How can be "n" (where n=len) characters are going to written this->IO_ADDR_W. As per the above fro loop, I am getting confuse that is - for each character from buf ( ie. buf[i]) the dest. address will be the same. So, there will be a overwriting to the same dest. address in NAND. Is there any logic behind this stmt ?? Please suggest me the right way to understand the NAND write PATH from U-Boot code. Thanks, Seetharam --- Wolfgang Denk wrote: > In message > <914704.38072.qm@web94807.mail.in2.yahoo.com> you > wrote: > > > > I have downloaded the file > u-boot-1.3.0-rc1.tar.bz2 > > from the following link. > > ftp://ftp.denx.de/pub/u-boot/ > > Why didn't you use one of the more recent versions > like > > > But, U_BOOT_VERSION is having 1.2.0 only. > > Oops? Make sure to unpack, configure and build the > downloaded tarball, > please. > > > Is it wrong ?? OR any other U-boot 1.3 is there ? > > Please point me if i am wrong. > > A short look at the FTP server shows: > > -rw-rw-r-- 6866983 Sep 8 01:09 > u-boot-1.3.0-rc1.tar.bz2 > -rw-r--r-- 6876009 Sep 20 00:07 > u-boot-1.3.0-rc2.tar.bz2 > -rw-rw-r-- 8783437 Oct 14 00:13 > u-boot-1.3.0-rc3.tar.gz > -rw-rw-r-- 6896029 Nov 19 22:25 > u-boot-1.3.0-rc4.tar.bz2 > -rw-rw-r-- 6898443 Nov 19 22:26 > u-boot-1.3.0.tar.bz2 > > So indeed it seems there are never versions > available. > > > > Best regards, > > Wolfgang Denk > > -- > DENX Software Engineering GmbH, MD: Wolfgang > Denk & Detlev Zundel > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 > Groebenzell, Germany > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 > Email: wd at denx.de > "There are things that are so serious that you can > only joke about > them" > - Heisenberg > Why delete messages? Unlimited storage is just a click away. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html