I recently went through a similar situation as this, NAND would work then it wouldn't... After carefully working out where things should go (looking at the default MTD maps) and getting some advice on this list, I can offer the following:
Linux MTD partitions will (by default) organize your flash as follows (I'm doing this from memory): 0-0x3FFFFF - bootloader 20000-0x5fffff - configuration 60000-45fffff - linux kernel 460000-5ffffffff - file system So, I used this as a map to start with: setenv ipaddr 'xx.xx.xx.xx' (your ip) setenv serveraddr 'yy.yy.yy.yy' (your tftp) setenv bootargs '' (apropriate boot args) tftp 0x80700000 uImage nand erase 0x60000 0xZZZZZZZ (size of kernel in blocks) nand write 0x80700000 0x60000 0xZZZZZZZ setenv bootcmd "nand read 80700000 60000 ZZZZZZZ; nboot 80700000 60000 ZZZZZZ; bootm" saveenv # boot Kernel should be in the "right" place in NAND, and Linux should be ready to make a JFFS2/YAFFS file system on the remaining 61MB of your flash. Most importantly, because things are in the "right" place, Linux won't womp on itself (went through that while building the FS), and putting Linux on won't womp on U-Boot (I did that too). The one piece of magic that helped me figure out where things are going is the flash memory addresses above : they are an offset from 0x2000000, not an absolute address. In the process of debugging this problem myself, I used the latest U-Boot 1.3.4 (?) from "GIT" and UBL 1.12 from one of the later restoration packages. I also found that the DVFlasher utility correctly flashed both UBL and U-Boot through the serial port where the instructions to flash them using the JTAG and CCS did not. Good luck, -tom 2008/8/5 <[EMAIL PROTECTED]> > > Hi Arun : > > Have you solved the problem of rebooting from Nand? > Does somebody have encountered this? > Appreciate any comments! Thanks in advance! > > Best regards! > > YuHuanhuan > from ZTE > > >>>> > *arun thomas whitchurch* *arunthomasw at gmail.com > *<davinci-linux-open-source%40linux.davincidsp.com?Subject=Problem%20while%20rebooting&In-Reply-To=> > * > Thu Dec 27 16:15:47 CST 2007* > > - Previous message: *SPI driver for davinci > *<http://linux.omap.com/pipermail/davinci-linux-open-source/2007-December/004836.html> > - Next message: *Question about MMC/SD in MVL2.6.10 > *<http://linux.omap.com/pipermail/davinci-linux-open-source/2007-December/004839.html> > - *Messages sorted by:* *[ date > ]*<http://linux.omap.com/pipermail/davinci-linux-open-source/2007-December/date.html#4838> > *[ thread > ]*<http://linux.omap.com/pipermail/davinci-linux-open-source/2007-December/thread.html#4838> > *[ subject > ]*<http://linux.omap.com/pipermail/davinci-linux-open-source/2007-December/subject.html#4838> > *[ author > ]*<http://linux.omap.com/pipermail/davinci-linux-open-source/2007-December/author.html#4838> > > ------------------------------ > > Hi Everybody, > I am running uboot 1.1.4 on the dvevm . I have burned the UBL, uboot > and montavista kernel image to NAND flash. Whenever i reboot the > board, either using 'reset' from uboot or 'reboot' from linux, it > shuts down properly but while booting again it gets stuck at 'Booting > PSP Boot Loader'. I have to turn the board off and on again to get it > working again. Could anyone help me with this. > Thanks, > Arun > > -------------------------------------------------------- > ZTE Information Security Notice: The information contained in this mail is > solely property of the sender's organization. This mail communication is > confidential. Recipients named above are obligated to maintain secrecy and > are not permitted to disclose the contents of this communication to others. > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. If > you have received this email in error please notify the originator of the > message. Any views expressed in this message are those of the individual > sender. > This message has been scanned for viruses and Spam by ZTE Anti-Spam system. > > > _______________________________________________ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > > -- -------------------------------------------------------- Tom Briggs Assistant Professor Department of Computer Science [EMAIL PROTECTED]
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source