<div dir="ltr">Hi Dwayne,<br><br><div class="gmail_quote">On Mon, Jan 28, 2013 at 7:34 PM,  <span dir="ltr"><<a href="mailto:teslarode@yahoo.com" target="_blank">teslarode@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:verdana,helvetica,sans-serif"><br><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div style="font-family:times new roman,new york,times,serif;font-size:12pt">
<div><div><div style="font-size:10pt;font-family:verdana,helvetica,sans-serif"><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:verdana,helvetica,sans-serif">I've found a very interesting article about SciphoneDream G2 published on your webpage at <a href="http://bb.osmocom.org/trac/wiki/SciphoneDreamG2" target="_blank">http://bb.osmocom.org/trac/wiki/SciphoneDreamG2</a> that covers pretty detailed information about MT6235 SoC, bootstrapping as well as JTAG. This is the only article I have ever found on internet about MTK SoC and JTAG.</div>
</div></div></div></div></div></div></div></blockquote><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:verdana,helvetica,sans-serif">
<div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><div><div style="font-size:10pt;font-family:verdana,helvetica,sans-serif">
<div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:verdana,helvetica,sans-serif">What I am trying to accomplish is to access NAND flash and write to it over JTAG (in order to recover from corruption after bad flash) on MTK8555 SoC which according to my in-depth research and analysis has
 very similar architecture to MT6235. If I can't write to NAND over JTAG but would be able to launch u-boot that would be a solution too. I am very good at ARM assembly and debugging, however I am not very experienced with JTAG. Do you think you (or anyone else) could help me out, by giving me guidance what hardware, software, config files should I use to make JTAG work on this SoC ? Any help or advise would be more then appreciated!</div>
</div></div></div></div></div></div></div></blockquote><div><br></div><div>For JTAG debugging of MT6235 I used commercial debugger Trace32 from Lauterbach. I know that it was also working with OpenOCD.</div><div>In case when your NAND is corrupted completely it can be pretty hard to get your board running. The biggest problem is in initialising SDRAM/DDR RAM controller, to get external RAM working.</div>
<div>When I had MT6235 running (booting without issues), I was able to break running processor and load my code into external RAM as RAM was already initialised by bootloader.</div><div>Later on when I learnt Mediatek boot process and new where bootloader is placed in NAND, I extracted SDRAM initialisation procedure. NAND layout is described in the link you mentioned.</div>
<div>MT6235 had static RAM (64KB or 128KB) available from start (without initialisation), and you could place your code for SoC init there (this is where DRAM initialisation was copied from NAND and then executed).</div><div>
<br></div><div>I have never flashed NAND using JTAG  on MT6235 as I haven't found it useful. I focused on getting U-Boot running and this is the first place which has flash driver for NAND found on Sciphone G2.</div><div>
<br></div><div>In case of any further questions you can contact me directly as this group covers different topics.</div><div><br></div><div>BR,</div><div>Marcin</div><div><br></div><div><br></div></div></div>