Hi, On Fri, Oct 31, 2008 at 03:05:14PM +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 aswell. > > 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. > > Q>> Is this correct? > > I have also commented some lines in nand_get_flash_type which checks the > Manf./device ID again! > > Once modified, I loaded the image to the RAM location 0xa7f00000 and > executed. I get the following output. > > ************************************************************************************************************** > U-Boot 2.0.0-rc5-git (Oct 31 2008 - 09:03:01) > > Board: Freescale i.MX27 ADS > cfi_probe: cfi_flash base: 0xc0000000 size: 0x02000000 > NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V > 8-bit) > Scanning device for bad blocks > Using environment in NAND Flash > chip id: [1,882,1,01d] > mpll: 398999390 Hz > spll: 239999725 Hz > arm: 398999390 Hz > perclk1: 29555510 Hz > perclk2: 26599959 Hz > perclk3: 66499898 Hz > perclk4: 26599959 Hz > clkin26: 26000000 Hz > ahb: 132999796 Hz > ipg: 66499898 Hz > Malloc space: 0xa7b00000 -> 0xa7f00000 (size 4 MB) > Stack space : 0xa7af8000 -> 0xa7b00000 (size 32 kB) > envfs: wrong magic on /dev/env0 > no valid environment found on /dev/env0. Using default environment > running /env/bin/init... > Usage: > adds a partition table to a device > > Hit any key to stop autoboot: 3 > > type update_kernel [<imagename>] to update kernel into flash > type udate_root [<imagename>] to update rootfs into flash > > uboot:/ Can you access the NAND device? Before trying to boot from the device should make sure that it works using normal U-Boot commands. > ********************************************************************************************************************** > > 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? > 2. How can I reduce the frequency of operation through uboot? No. > 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. > 4. How can I introduce more delay between each NAND operation? You don't have udelay in this stage, so your only chance is to insert busy loops. 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