Nand flash programming through JTAG

505 views
Skip to first unread message

Palash Patil

unread,
Feb 24, 2010, 11:02:35 AM2/24/10
to omapzoom
Hello
I have been working on JTAG flash programming scripts through
lauterbach on zoom2. Now I am able to erase as well as able to program
the flash through the algorithm shared by lauterbach; the issue is If
i attempt to execute the same; zoom2 board is not booting up; Not even
the x-loader prompt is coming up.
To evaluate the nand flash programming; I have followed
following steps
1. Loaded the nand through fastboot and ensure that x-loader ; uboot
is coming up properly. Then I took the nand flash dump.
2. Program the nand flash through the lauterbach and took the nand
dump of the same.
3. Ideally speaking both nand dump's should be same; but there is
difference and that could be the reason why zoom2 is not booting up
after lauterbach flash programming.

I have searched the forums but looks like very few developers are
using lauterbach for flashing.
Looking for the support


Thanks
Palash


Gunasekera, Nipuna

unread,
Feb 24, 2010, 11:39:46 AM2/24/10
to omap...@googlegroups.com
Not sure about the reason you're trying to flash the NAND via JTAG. I haven't tried that but I have been able to do debugging on Zoom2 using CCS and Lauterbach both and I have documented some of the steps here: http://www.omappedia.org/wiki/Android_Debugging

Hope this helps a bit.

Best Regards -Nipuna

Ghorai, Sukumar

unread,
Feb 24, 2010, 2:23:41 PM2/24/10
to omap...@googlegroups.com
Palash,
Will you please share your steps and .cmm file to Program the nand flash through the lauterbach?

Regards,
Ghorai
________________________________________
From: omap...@googlegroups.com [omap...@googlegroups.com] On Behalf Of Gunasekera, Nipuna
Sent: Wednesday, February 24, 2010 10:09 PM
To: omap...@googlegroups.com
Subject: RE: Nand flash programming through JTAG

Palash Patil

unread,
Feb 24, 2010, 11:43:22 PM2/24/10
to omapzoom
Ghorai,
Please find the .cmm file which can erase as well as program the
nand flash on zoom2.

Palash

> Palash- Hide quoted text -
>
> - Show quoted text -

Palash Patil

unread,
Feb 25, 2010, 9:15:21 AM2/25/10
to Ghorai, Sukumar, omap...@googlegroups.com

Sorry
Please find the same here in attachment.
 
Palash
On Thu, Feb 25, 2010 at 10:18 AM, Ghorai, Sukumar <s-gh...@ti.com> wrote:
No attachment.
Please send me again.

Regards,
Ghorai
Ti_nandflash_new.cmm

Ghorai, Sukumar

unread,
Feb 26, 2010, 2:13:47 AM2/26/10
to Palash Patil, omap...@googlegroups.com

Palash,

Still I did not able to look into your script you used.

 

But I just want to know - what’s outcome you are looking for?

          a. make ZOOM2 bootable from NAND? Or

          b. make .cmm file working ?

 

I will send you the script for ZOOM2 (3430). Last time I sent for 3630, by mistake.

 

Regards,

Ghorai

 


Palash Patil

unread,
Feb 26, 2010, 11:09:01 AM2/26/10
to Ghorai, Sukumar, omap...@googlegroups.com
Hello
     Thanks for the response. I have been looking into the flash script for some time now.If flash loading doesn't get successfully then definitely I will go for the 1st option
      Please share the omap3430 script
 
Thanks
Palash

Ghorai, Sukumar

unread,
Mar 1, 2010, 1:34:47 AM3/1/10
to Palash Patil, omap...@googlegroups.com

Palash,

 

1. Flush x-loader/ u-boot using Lauterbatch

Please find Zoom2_connect.cmm file attached with.

 

You can run as like below in T32 command prompt:

data.load c:\temp\u-boot.bin 0x80000000

register.set PC 0x80000000

ð        go

ð        this should give u-boot prompt (OMAP34XX ZOOM2 #)

ð        else check your u-boot.

 

And then you can flush the x-loader and u-boot from file or from network (tftp). Hope you know those command.

 

2. Flush x-loader/ u-boot using CSST

          Please refer the attached CSST-Linux-flush.doc.

 

Regards,

Ghorai

 

 


From: Palash Patil [mailto:palas...@gmail.com]

Sent: 2010-02-25 19:45
To: Ghorai, Sukumar; omap...@googlegroups.com

Zoom2_connect.cmm
CSST-Linux-flush.doc

Palash Patil

unread,
Mar 2, 2010, 2:27:49 AM3/2/10
to omapzoom, s-gh...@ti.com
Hello
      I have used the script which you have shared. Please find the same here with some minor modifications.
      With this; zoom2 board is crashing at udelay(10) in set_muxconf_regs function. Looks like clk related settings are not proper.
 
Precondition:
       Flash is entirely empty and I am not loading x-loader even into the Sram. Only u-boot will get loaded into the ddr and pc is set to ddr address as mentioned in the attached zoom2_connect.cmm script. 
 
Thanks,
Palash

Zoom2_connect.cmm

Ghorai, Sukumar

unread,
Mar 2, 2010, 3:33:58 AM3/2/10
to Palash Patil, omapzoom

Yes.

Crashing at udelay(10)  => is a known issue.  Because it has a dependency on x-loader.

If you try only u-boot, please replace udelay(10)  by  delay(10) .

  
Regards,

Ghorai

 


From: Palash Patil [mailto:palas...@gmail.com]
Sent: 2010-03-02 12:58
To: omapzoom; Ghorai, Sukumar
Subject: Re: Nand flash programming through JTAG

 

Hello

Palash Patil

unread,
Mar 2, 2010, 7:46:30 AM3/2/10
to Ghorai, Sukumar, omapzoom
Hello Ghorai,
 
         Thanks for the clarification. Now if I load x-load to the sram before loading the u-boot, x-loader itself is crashing in start.s at  
            mrs     r0,cpsr
Please find the same in attachment.
 
Thanks for the support
 
Palash
screenshot.docx
Zoom2_connect.cmm

Ghorai, Sukumar

unread,
Mar 2, 2010, 8:41:19 AM3/2/10
to Palash Patil, omapzoom

Palash,

x-loader is non XIP code.

And loadable address starts @ 0x40208800. Hope you taken care the same.

 

data.load.binary c:\temp\mlo 0x40208800

register.set PC 0x40208800

 

regards,

Palash Patil

unread,
Mar 2, 2010, 12:15:36 PM3/2/10
to Ghorai, Sukumar, omap...@googlegroups.com
Hello Ghorai,
 
         Thanks for your valuable inputs. I have attached a .cmm file in my last response regarding loading x-loader. I have loaded it at address 0x40208800(sram) but the issue is it is as well crashing. Please have a look at the screen shot attached. It is crashing in start.s itself.
         Looks like I am missing something as the same scripts are working at your place but failing in mine. I am using 25.16E release. I have not changed the bootloader and x-loader it is the same which came with 25.16E release.
        
 
Thanks

Ghorai, Sukumar

unread,
Mar 2, 2010, 12:17:59 PM3/2/10
to Palash Patil, omap...@googlegroups.com

Palash,

Would you please elaborate why you need to load x-loader in SRAM?

 

I have tried only u-boot in SDRAM.

Ghorai, Sukumar

unread,
Mar 2, 2010, 12:43:39 PM3/2/10
to Palash Patil, omap...@googlegroups.com

Palash,

I understand your motivation.

 

1. But you load x-loader in SRAM, then x-loader loads u-boot from which location – NAND or MMC/SD ?

    So I feel best option to replace the udelay() by delay() in u-boot.

 

2. Did you try CSST to flush the x-loader and u-boot in NAND? Do you think it’s easy? For this you need the latest x-loader/u-boot.

 

Regards,

Ghorai

 

 


From: Palash Patil [mailto:palas...@gmail.com]
Sent: 2010-03-02 23:06
To: Ghorai, Sukumar
Subject: Re: Nand flash programming through JTAG

 

Hello Ghorai

         As I communicated to you, just loading the u-boot resulting in a crash at udelay(10).

Replacing udelay with delay is a cumbersome job, as no of instances of udelay are available in u-boot. I feel instead of replacing it; If I take a approach of loading x-loader and get a u-boot prompt would solve my issue.

         But if it doesn;t get fixed in x-loader then I need to take a earlier approach of replacing udelay.

 

 

Thanks

Palash

On Tue, Mar 2, 2010 at 10:47 PM, Ghorai, Sukumar <s-gh...@ti.com> wrote:

Palash,

Would you please elaborate why you need to load x-loader in SRAM?

I have tried only u-boot in SDRAM.

Regards,

Ghorai

 


From: Palash Patil [mailto:palas...@gmail.com]
Sent: 2010-03-02 22:46


To: Ghorai, Sukumar; omap...@googlegroups.com

Reply all
Reply to author
Forward
0 new messages