On Fri, Oct 31, 2008 at 07:35:42PM +0530, Tiju wrote: > Hi Sascha, > > > > > > > > The Nand port to imx27ads is booting when I use a Samsung device (128MiB, > > 3.3V, 8-bit, 512page). > > > > Great! Care to send patches? That would help answering further questions > > as well.. > > Sorry, I know its a basic question but how do I make a patch file? Else I can > send you the file I modified. > > > > Now my requirement is to boot from a Micron device (256MiB, 3.3V, 8-bit, > > > 2k > > page). Part num: MT29F2G08AAD > > > > > > I modified the line in imx27ads.c to > > > > > > imx_nand_load_image((void *)TEXT_BASE, 256 * 1024, 2048, (2048 * 64)); > > //256MB, 2K > > > > I don't know your NAND chip, so I can't say anything about the block > > size, but otherwiese it looks correct. > > Thanks. I have verified that the block size is correct. > > > Can you access the NAND device? Before trying to boot from the device > > should make sure that it works using normal U-Boot commands. > > The only command related to the nand flash when I type help is "nand". Could > you please tell me some commands to read and write the nand that would work > from the uboot prompt? Where could I find more info on this?
Well the trick is that There are no other commands for nand. When the NAND device is initialized you should have a /dev/nand0. From there on you can partition the device using addpart, for example like this: addpart /dev/nand0 256k(uboot),256k(ubootenv),2M(kernel),-(root) This gives you the partition devices /dev/nand0.uboot and so on. You then add bad block aware devices ontop of these partitions: nand -a /dev/nand0.* You can use the standard commands like erase / cp / md on these devices. > > > > But once I program the uboot image to the micron flash, nothing seems to > > appear on the UART. I am using the Ronetix PEEDI JTAG programmer. > > > > > > 1. Is there anything/anywhere else I should modify the uboot code for the > > micron nand flash to boot? > > > > I think not, but then again, it would work, right? > > I went through the code and could find only this to be modified. I am worried > weather there are any timing related differences between the samsung and the > micron. > > > > > > 2. How can I reduce the frequency of operation through uboot? > > > > No. > You mean the frequency cannot be reduced? Oh, I overread the 'how'. No, it cannot be reduced through U-Boot commands. You either have to adjust a lower frequency in the startup code or add a command that does the trick for you. > > > > 3. If I do single stepping, it seems that the first 2k data is being > > > copied > > successfully from the SRAM to the DDR. But if I execute/give a "go" nothing > > appears on the UART, but PC=0x00000004. > > > > Place a breakpoint after the first 2k are copied and single step > > further. > > It looks if I single step all the 2K bytes are copied to DDR. But if I just > execute, in the 2K everything copies except the first 512bytes. Sorry, I'm afraid I can't help you here without access to the hardware. But it will give some hints if you can verify that the NAND is working in general under U-Boot (or under Linux, which basically is the same driver) Regards, Sascha -- Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users