[U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues
Hi Sascha, The Nand port to imx27ads is booting when I use a Samsung device (128MiB, 3.3V, 8-bit, 512page). 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 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 0xa7f0 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: 0xc000 size: 0x0200 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: 23725 Hz arm: 398999390 Hz perclk1: 2910 Hz perclk2: 26599959 Hz perclk3: 66499898 Hz perclk4: 26599959 Hz clkin26: 2600 Hz ahb: 132999796 Hz ipg: 66499898 Hz Malloc space: 0xa7b0 - 0xa7f0 (size 4 MB) Stack space : 0xa7af8000 - 0xa7b0 (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:/ ** 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? 2. How can I reduce the frequency of operation through uboot? 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=0x0004. 4. How can I introduce more delay between each NAND operation? 5. How do I enable the DEBUG functions in uboot? or how do I start debuging from this point onwards? Help on these are very much appreciated. Thank You, Tiju Did you know? You can CHAT without downloading messenger. Go to http://in.webmessenger.yahoo.com/ - 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues
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 0xa7f0 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: 0xc000 size: 0x0200 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: 23725 Hz arm: 398999390 Hz perclk1: 2910 Hz perclk2: 26599959 Hz perclk3: 66499898 Hz perclk4: 26599959 Hz clkin26: 2600 Hz ahb: 132999796 Hz ipg: 66499898 Hz Malloc space: 0xa7b0 - 0xa7f0 (size 4 MB) Stack space : 0xa7af8000 - 0xa7b0 (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=0x0004. 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues
On Fri, Oct 31, 2008 at 7:57 AM, Sascha Hauer [EMAIL PROTECTED] wrote: Now my requirement is to boot from a Micron device (256MiB, 3.3V, 8-bit, 2k page). Part num: MT29F2G08AAD we used a similar part on beagleboard[1], and there is a related reset requirement which was posted to u-boot-v1 patch[2]. 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. chip_delay should handle the same, however ideally you dont need to do anything at all, mtd layer will be smart enough to handle the same. Regards, Nishanth Menon Ref: [1] http://beagleboard.org [2] http://www.nabble.com/-U-Boot--Pull-request%3A-nand-flash-to20236313.html - 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues
On Fri, Oct 31, 2008 at 07:35:42PM +0530, Tiju wrote: 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. It's basically diff -u old-file.c new-file.c Bug you should probably read this: http://lxr.linux.no/linux/Documentation/SubmittingPatches rsc -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues
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? 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? 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=0x0004. 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. Regards, Tiju Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ - 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 04/10 v2] [ARM] TQMA31: add new board with i.MX31 processor
Jean-Christophe PLAGNIOL-VILLARD schrieb: On 11:33 Tue 08 Jul , Jens Gehrlein wrote: Signed-off-by: Jens Gehrlein [EMAIL PROTECTED] --- Fixed two bugs: a) added NFS mount option rw to default environment b) added prefix $(obj) in front of .depend in Makefile. Thank you Magnus for catching that. MAINTAINERS |4 MAKEALL |1 Makefile |3 board/tqc/tqma31/Makefile | 48 board/tqc/tqma31/config.mk|2 board/tqc/tqma31/lowlevel_init.S | 375 + board/tqc/tqma31/tqma31.c | 95 board/tqc/tqma31/u-boot.lds | 72 ++ include/asm-arm/arch-mx31/mx31-regs.h | 42 include/configs/TQMA31.h | 271 10 files changed, 913 insertions(+), 0 deletions(-) create mode 100644 board/tqc/tqma31/Makefile create mode 100644 board/tqc/tqma31/config.mk create mode 100644 board/tqc/tqma31/lowlevel_init.S create mode 100644 board/tqc/tqma31/tqma31.c create mode 100644 board/tqc/tqma31/u-boot.lds create mode 100644 include/configs/TQMA31.h Do you have any plan to send a rebase patch? I suppose in Q1/2009. It depends on our customer and on my workload with other projects. But could you possibly consider [U-Boot-Users] [PATCH 01/10 v2] [ARM] MXC: insert bus busy check in i2c_probe from 2008-07-08 04:20 PM ? IMO it's independent of the other patches. Thank you for asking. It's curious: always, when replying to your e-mails, my e-mail address appears in the To field instead of your address. Do the others have this problem, too? (Thunderbird 2.0.0.14 on Linux) -- Kind regards, Jens - 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] UBOOT port to i.MX27ADS - NAND issues
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=0x0004. 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 04/10 v2] [ARM] TQMA31: add new board with i.MX31 processor
On 16:29 Fri 31 Oct , Jens Gehrlein wrote: Jean-Christophe PLAGNIOL-VILLARD schrieb: On 11:33 Tue 08 Jul , Jens Gehrlein wrote: Signed-off-by: Jens Gehrlein [EMAIL PROTECTED] --- Fixed two bugs: a) added NFS mount option rw to default environment b) added prefix $(obj) in front of .depend in Makefile. Thank you Magnus for catching that. MAINTAINERS |4 MAKEALL |1 Makefile |3 board/tqc/tqma31/Makefile | 48 board/tqc/tqma31/config.mk|2 board/tqc/tqma31/lowlevel_init.S | 375 + board/tqc/tqma31/tqma31.c | 95 board/tqc/tqma31/u-boot.lds | 72 ++ include/asm-arm/arch-mx31/mx31-regs.h | 42 include/configs/TQMA31.h | 271 10 files changed, 913 insertions(+), 0 deletions(-) create mode 100644 board/tqc/tqma31/Makefile create mode 100644 board/tqc/tqma31/config.mk create mode 100644 board/tqc/tqma31/lowlevel_init.S create mode 100644 board/tqc/tqma31/tqma31.c create mode 100644 board/tqc/tqma31/u-boot.lds create mode 100644 include/configs/TQMA31.h Do you have any plan to send a rebase patch? I suppose in Q1/2009. It depends on our customer and on my workload with other projects. But could you possibly consider [U-Boot-Users] [PATCH 01/10 v2] [ARM] MXC: insert bus busy check in i2c_probe from 2008-07-08 04:20 PM ? IMO it's independent of the other patches. is it the only one? Thank you for asking. It's curious: always, when replying to your e-mails, my e-mail address appears in the To field instead of your address. Do the others have this problem, too? (Thunderbird 2.0.0.14 on Linux) I use mutt and I receve the e-mail with your e-mail address as sender Best Regards, J. - 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 04/10 v2] [ARM] TQMA31: add new board with i.MX31 processor
It's curious: always, when replying to your e-mails, my e-mail address appears in the To field instead of your address. Do the others have this problem, too? (Thunderbird 2.0.0.14 on Linux) I use mutt and I receve the e-mail with your e-mail address as sender I have the same problem when replying to Jean-Christphe's replies. For some reason the reply-to field is set when JC posts a reply and I suppose that messes up Thunderbird/gmail etc. As an example, the email I'm replying to now has reply-to: set to [EMAIL PROTECTED] and [EMAIL PROTECTED] Follow ups from other people don't have the reply-to: field. So my guess is that JC's mutt adds that. Regards, Magnus - 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 04/10 v2] [ARM] TQMA31: add new board with i.MX31 processor
Magnus Lilja wrote: It's curious: always, when replying to your e-mails, my e-mail address appears in the To field instead of your address. Do the others have this problem, too? (Thunderbird 2.0.0.14 on Linux) I use mutt and I receve the e-mail with your e-mail address as sender I have the same problem when replying to Jean-Christphe's replies. For some reason the reply-to field is set when JC posts a reply and I suppose that messes up Thunderbird/gmail etc. As an example, the email I'm replying to now has reply-to: set to [EMAIL PROTECTED] and [EMAIL PROTECTED] Follow ups from other people don't have the reply-to: field. So my guess is that JC's mutt adds that. Regards, Magnus I noticed the same thing when doing a reply-all to one of JC's e-mails. It put my address in 'To'. I using Thunderbird with IMAP connection to Gmail. I've seen with both Windows and Linux versions of Thunderbird. regards, Ben - 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Re: [U-Boot-Users] [PATCH 04/10 v2] [ARM] TQMA31: add new board with i.MX31 processor
On 10:10 Fri 31 Oct , Ben Warren wrote: Magnus Lilja wrote: It's curious: always, when replying to your e-mails, my e-mail address appears in the To field instead of your address. Do the others have this problem, too? (Thunderbird 2.0.0.14 on Linux) I use mutt and I receve the e-mail with your e-mail address as sender I have the same problem when replying to Jean-Christphe's replies. For some reason the reply-to field is set when JC posts a reply and I suppose that messes up Thunderbird/gmail etc. As an example, the email I'm replying to now has reply-to: set to [EMAIL PROTECTED] and [EMAIL PROTECTED] Follow ups from other people don't have the reply-to: field. So my guess is that JC's mutt adds that. I noticed the same thing when doing a reply-all to one of JC's e-mails. It put my address in 'To'. I using Thunderbird with IMAP connection to Gmail. I've seen with both Windows and Linux versions of Thunderbird. I do nothing special in mutt I just use it for several years and it's the first time some one report me this problem If someone known why please tell us Best Regards, J. - 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=100url=/ ___ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users