<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Re: Re: Re: Can I get working sources of U-BOOT 2013.07, nand? in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367936#M3814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in Hello Timesys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried building ts1 release. You may call it a wonder, but it also didn't work :-). I don't know how your old u-boot.nand image worked, maybe toolchain difference, maybe *.bs2 file missed latest changes, I don't know.&lt;/P&gt;&lt;P&gt;I made ts1.1 working the same like your u-boot.nand image. It works with original optimization settings and modified clock_init() routine. See attached modified files with matching directory structure, please don't ask for patch, I'm not familiar with it. clock_init routine now doesn't assume oscillator working and/or initial settings mad be boot ROM to CCM and ANADIG registers. U-boot's code is fine now to reset and debug from entry point. If it works on new boards and newer Vybrid chips, fell free to use it if you wish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding Linux driver. I added few #if-#else's to make modified driver compatible with SW ECC in kernel config, also compatible with MPC and other big-endian targets, that could use fsl_nfc driver. &lt;BR /&gt;Changes are as follows:&lt;/P&gt;&lt;P&gt;- remove !(page % 0x40) lines, which were disabling HW ECC for 0x40 aligned flash pages.&lt;/P&gt;&lt;P&gt;- enable ecc failure counters update so that nandtest and other tools will see current error counters&lt;/P&gt;&lt;P&gt;- different 45bytes ECC OOB layout for low endian machines like Vybrid&lt;/P&gt;&lt;P&gt;- changed some printk levels, probably bad idea, please ignore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone should try and review it, provided as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if it is a known nandtest -k issue. I guess it is, but driver is not compatible with "nandtest -k". -k keep switch restores flash contents, but it should not write erased pages with all-0xFF. UBI assumes free space erased, of course first write to nandtest -k modified page is likely to make UBIFS not bootable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 08:15:33 GMT</pubDate>
    <dc:creator>kef2</dc:creator>
    <dc:date>2014-09-22T08:15:33Z</dc:date>
    <item>
      <title>Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367928#M3806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I downloaded it here &lt;A href="http://git.timesys.com/cgi-bin/cgit.cgi/u-boot.git/snapshot/u-boot-2013.07-mvf-ts1.1.tar.bz2" title="http://git.timesys.com/cgi-bin/cgit.cgi/u-boot.git/snapshot/u-boot-2013.07-mvf-ts1.1.tar.bz2"&gt;http://git.timesys.com/cgi-bin/cgit.cgi/u-boot.git/snapshot/u-boot-2013.07-mvf-ts1.1.tar.bz2&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;did make vybrid_nand_config , did make u-boot.imx. did cat 1024zeros u-boot.imx &amp;gt; u-boot.nand. Unfortunately it doesn't work. Do I need to&amp;nbsp; add something else than ARCH=arm and gcc prefix to make command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 15:59:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367928#M3806</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2014-09-15T15:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367929#M3807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/timesyssupport"&gt;timesyssupport&lt;/A&gt; can you help to attend this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 20:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367929#M3807</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2014-09-15T20:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367930#M3808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you follow this procedure for writing U-Boot to NAND for Vybrid Tower:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://linuxlink.timesys.com/docs/projects/engineering/wiki/NAND_Boot_for_Vybrid_Tower#Writing-a-U-Boot-image-to-NAND" title="https://linuxlink.timesys.com/docs/projects/engineering/wiki/NAND_Boot_for_Vybrid_Tower#Writing-a-U-Boot-image-to-NAND"&gt;https://linuxlink.timesys.com/docs/projects/engineering/wiki/NAND_Boot_for_Vybrid_Tower#Writing-a-U-Boot-image-to-NAND&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, did you bridge the Boot Config jumpers 1-2 and 9-10 on the Vybrid Tower module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are still having issues, can you try flashing the following U-Boot 2013.07 image, which we have confirmed boots from NAND on Vybrid Tower:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.timesys.com/vybrid/u-boot-nand.bin"&gt;www.timesys.com/vybrid/u-boot-nand.bin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 21:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367930#M3808</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2014-09-15T21:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367931#M3809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Timesys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I'm able to use u-boot.nand image 2013.07, downloadable from timesys.com, so yes, I'm following your booting procedures and am setting Tower jumpers correctly. The problem is I can't rebuild u-boot 2013.07. It doesn't work, even if I pad produced u-boot.imx with zeros, as instructed. IVT, DCD and image vectors table are at&amp;nbsp; the same address as in working u-boot.nand, but it doesn't work. Looks like either sources are not working or some setting is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I fixed Linux driver so that HW ECC can be used. I'd like to try making u-boot able to flash rootfs properly. This is why I need working u-boot sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 04:00:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367931#M3809</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2014-09-16T04:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367932#M3810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Timesys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some debugging with DS5 revealed bugs in clock init routine. At least wait for PLL lock loop is missing.&lt;/P&gt;&lt;P&gt;Do you have somewhere fixed version or is it just an toolchains difference, perhaps one you compiled your u-boot.nand was producing slower code and it was producing long enough to lock delay?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 13:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367932#M3810</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2014-09-16T13:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367933#M3811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not aware of any bugs in U-Boot's clock init routine or toolchain-related issues pertaining to U-Boot (assuming you are using a Timesys cross-compile toolchain. The toolchain I am using has gcc version 4.8.3.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I downloaded the sources above (ts1.1 release), and was able to build a NAND-configured U-Boot image and boot from NAND successfully using this image. I used the following procedure, if you want to try this as well:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# make CROSS_COMPILE=/fully/qualified/path/to/toolchain distclean&lt;/P&gt;&lt;P&gt;# make vf610twr_nand_config&lt;/P&gt;&lt;P&gt;# make CROSS_COMPILE=/fully/qualified/path/to/toolchain u-boot.imx&lt;/P&gt;&lt;P&gt;# dd if=/dev/zero of=u-boot-pad bs=1024 count=1&lt;/P&gt;&lt;P&gt;# cat u-boot-pad u-boot.imx &amp;gt; u-boot.nand&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the resulting u-boot.nand file. If you are still experiencing issues, please send me your full build log and let me know if you are able to boot from the U-Boot image I have attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 16:19:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367933#M3811</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2014-09-16T16:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367934#M3812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Dear All and Timesys&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; First of all s&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;orry for long message.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Regarding U-boot clock init routine. Perhaps there is some MCU on the Earth, which works well clocked by unstable clock, but as a general rule in order to prevent runaways, MCU clock switching should be done only from stable clock to stable clock. Once PLL&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; is set up and going to stabilize and lock, there must be some delay waiting for &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;PLL&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; lock, switch to PLL clock should happen only after locked.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; clock_init() in vf610twr.c looks suspicious. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I'm also using Timesys gcc toolchain 4.8.3. I had a hope that your newly compiled u-boot.nand will work on my Tower. Unfortunately or fortunately it doesn't. I tried flashing it twice and nand dump'ing around to verify if it really went to flash and FCB is there at offset 0&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;. Your new U-boot.nand doesn't give any signs of life. But your old u-boot.nand (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt;&lt;A href="http://www.timesys.com/vybrid/u-boot-nand.bin"&gt;www.timesys.com/vybrid/u-boot-nand.bin&lt;/A&gt;, compile date &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt;May 08 2014&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt;11:56:21&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt;, filesize 253488&lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;) works well! Do you know gcc version, working u-boot was compiled with? Perhaps there's also Tower card difference? My Vybrid card is labeled &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;SCH&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;-27442 &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;REV&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; G1 and 700-27422 &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;REV&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; J. U-boot claims Vybrid family revision is 1.1.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Day ago I also tried zero padding u-boot.imx, that came with my most recent copy of Timesys SDK. It doesn't boot as well from nand. I remember some older u-boot.imx padded with zeros was booting fine from nand, but it was just complaining about missing SD card. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;I was able to build working image. But something still is wrong. First thing I tried was changing optimization level in config.mk file. Please find there OPTFLAGS = setting. Changing it from -Os to anything else like -O3 or -O2 or -Os -Og led to advice to use -fPIC option: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;armv7l-timesys-linux-gnueabi-ld.bfd: arch/arm/cpu/armv7/libarmv7.o: relocation R_ARM&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;_MOVW_&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ABS&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;arch/arm/cpu/armv7/libarmv7.o: error adding symbols: Bad value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;make: *** [u-boot] Error 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;So I tried adding -fPIC. Image builds with -fPIC. With original clock_init(), DS-5 debug stops at BKPR instruction somewhere in DDR RAM, some boot time strings are printed to UART. With modified clock_init() it even works, and I'm able to boot kernel and use root FS in NAND. The only problem I see is that target resets when I enter "boot" at U-boots command prompt. Strange thing is that after U-boot resets, also at power on reset, U-boot is able to autoboot... If it matters, bootcmd is set to 'nand read 0x80010000 0x100000 0x300000; bootm 0x80010000'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;So what do you think, is it toolchain 4.8.3 issue? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Few words about Linux fsl_nfc.c driver mods. By default you configure it for SW ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;. Since SW &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; over 512 byte subpages used in Linux differs from HW &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; over 2048 physical pages used in U-boot, it is not possible to tftpboot and nand write root FS from U-boot. Both U-boot and Linux should use the same &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; to make working U-boot NAND FS flashing. HW &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; in Linux fsl_nfc.c is broken as you know, and SW &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; for some reason uses different than U-boots &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; and page layout.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I didn't find where and how Linux decides to split 2048 physical pages into 512 subpages, but I managed to fix HW ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; in fsl_nfc.c driver. Unfortunately once HW ECC in Linux started to work, I somehow failed to flash root FS from old u-boot.nand for the first time and started claiming U-boot for this. This is why I dived into U-boot's code and why I made you involved in these problems. Sorry. In fact Timesys u-boot.nand dated &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;May 08 2014&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; flashes everything almost very well. What should be improved in U-boot is - missing one or two extra backup &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;FCB&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;'s with at least two U-boot instances for improved NAND boot reliability. nandinit and nandwrite commands initialize only primary &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;FCB&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; at offset 0. FW1 and FW2 in &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;FCB&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; @0 are made to point to the same and single U-boot copy. It should be improved, isn't it? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt;Now back again to my fsl_nfc.c mods. This thread &lt;A href="https://community.nxp.com/message/369202"&gt;VF6xxx NFC (NAND) module clocking&lt;/A&gt; was big help .&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/people/timesyssupport"&gt;&lt;SPAN style="color: #3778c7;"&gt;Timesys Support&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;'s patch was close, though driver still was just printing &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; error messages and not updating error counters as required, also there was a bunch of false positives.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/people/billpringlemeir"&gt;&lt;SPAN style="color: #3778c7;"&gt;Bill Pringlemeir&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;was close to the truth saying about un-needed &lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt;&lt;EM&gt;if(!(page%0x40))&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN" style="color: #3d3d3d; font-family: Helvetica; font-size: 8pt;"&gt;in &lt;EM&gt;fsl_nfc_command().&lt;/EM&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I believe one, who coded these !(page%0x40) cases perhaps was worrying about Manufacturer marked bad blocks, which are on each 0x40th page (true for flash used in Vybrid card). Maybe real story is different, but those %0x40 have to be removed, I'm surek it is a bug. Once buggy %0x40 code pieces are removed, there still are false &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; errors, which are caused by erased and not yet programmed &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;flash pages. Of course HW &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; fails on this. Once uncorrectable error occurs, driver has to check if page is erased and report error only in case page is empty. See attached fsl_nfc.c with fixes if you are interested.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;There's one more problem to notice. Micron, who is manufacturer of NAND flash on my Tower card, say that bad block mark is first spare location in bad block. I tried to verify where in NFC RAM&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; buffer one should check for first spare location. Do you think it should be at offset 2048? I doubt it. MQX has interesting NAND example. Instead of reading whole page with OOB to check if block is marked bad, MQX attempt to read just few bytes from OOB, and write just few bytes to mark block as bad. Bad block mark according to MQX NAND example is at offset 2048+3. I did &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;1) write 0x12345678 to NFC RAM&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; buffer and programm it to flash with NFC_SECSC register set to 2 (two bytes instead of four), then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;2) read bytes back from flash and got 0x1234FFFF. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Machine is low endian, 0x12 is at offset +3. Looks like first spare location is not at offset 2048, but at offset 2048+3. There must be some internal byte swap HW in NFC, which makes high order byte programmed first. I think MQX is right nad Linux with U-Boot are wrong regarding bad block marker position using Vybrid NFC controller.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Even if you don't agree regarding first byte location, reading erased block with HW ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; you should note a gap in &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; bytes locations. I think it is again NFC internal change of byte order. &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Experiments show also that odd bytelength &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; modes use even number of bytes in NFC &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;RAM&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; buffer. That is 45, 23 and 15 byte &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; modes respectively use 46, 24 and 16 bytes in NFC &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;RAM&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; buffer. Easy to verify again. Erase flash block and try reading it with all possible &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; modes. And if my observations are correct, then Linux driver nand_ecclayout struct for HW &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; is not initialized properly. Due to byte order swap first free spare byte I think should be not at offset 2 (first byte part 2 byte bad block marker), but at an offset 0. With 45/46bytes &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;, there's also two gaps in free spare bytes area , 45 bytes OOB layout should be as follows: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;byte 0,1 - free&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;2,3-bad block mark&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;4-15 - free&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;16,17 ECC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;18,19 - free&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: Times New Roman;"&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;20-63 - ECC&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;Edward&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 08:36:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367934#M3812</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2014-09-17T08:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367935#M3813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Edward,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using a Rev G3/Rev J Vybrid module to do the testing on. I tried switching to match your Rev G1/Rev J card, but was still able to boot the attached image from yesterday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The working U-Boot NAND image for you was based on the &lt;STRONG&gt;ts1 &lt;/STRONG&gt;release - while the U-Boot images/sources that have not worked for you have all been based on the &lt;STRONG&gt;ts1.1&lt;/STRONG&gt; release. There were some changes made to DDR controller configuration in ts1.1 to fix a boot in cold environment issue as well. Do you want to try building the ts1 release, and let me know if that works for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://git.timesys.com/cgi-bin/cgit.cgi/u-boot.git/snapshot/u-boot-2013.07-mvf-ts1.tar.bz2" title="http://git.timesys.com/cgi-bin/cgit.cgi/u-boot.git/snapshot/u-boot-2013.07-mvf-ts1.tar.bz2"&gt;http://git.timesys.com/cgi-bin/cgit.cgi/u-boot.git/snapshot/u-boot-2013.07-mvf-ts1.tar.bz2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also see the differences between each release here, if you are curious:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://linuxlink.timesys.com/git?repo=u-boot.git&amp;amp;view=log&amp;amp;h=2013.07-mvf" title="https://linuxlink.timesys.com/git?repo=u-boot.git&amp;amp;view=log&amp;amp;h=2013.07-mvf"&gt;https://linuxlink.timesys.com/git?repo=u-boot.git&amp;amp;view=log&amp;amp;h=2013.07-mvf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for attaching the changes you've made to the NFC Linux driver. If these are suitable to be applied to the 3.0 kernel tree, and if you can writeup some short notes about the changes, I can commit these and mark you as the author.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 17:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367935#M3813</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2014-09-17T17:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367936#M3814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in Hello Timesys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried building ts1 release. You may call it a wonder, but it also didn't work :-). I don't know how your old u-boot.nand image worked, maybe toolchain difference, maybe *.bs2 file missed latest changes, I don't know.&lt;/P&gt;&lt;P&gt;I made ts1.1 working the same like your u-boot.nand image. It works with original optimization settings and modified clock_init() routine. See attached modified files with matching directory structure, please don't ask for patch, I'm not familiar with it. clock_init routine now doesn't assume oscillator working and/or initial settings mad be boot ROM to CCM and ANADIG registers. U-boot's code is fine now to reset and debug from entry point. If it works on new boards and newer Vybrid chips, fell free to use it if you wish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding Linux driver. I added few #if-#else's to make modified driver compatible with SW ECC in kernel config, also compatible with MPC and other big-endian targets, that could use fsl_nfc driver. &lt;BR /&gt;Changes are as follows:&lt;/P&gt;&lt;P&gt;- remove !(page % 0x40) lines, which were disabling HW ECC for 0x40 aligned flash pages.&lt;/P&gt;&lt;P&gt;- enable ecc failure counters update so that nandtest and other tools will see current error counters&lt;/P&gt;&lt;P&gt;- different 45bytes ECC OOB layout for low endian machines like Vybrid&lt;/P&gt;&lt;P&gt;- changed some printk levels, probably bad idea, please ignore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone should try and review it, provided as is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if it is a known nandtest -k issue. I guess it is, but driver is not compatible with "nandtest -k". -k keep switch restores flash contents, but it should not write erased pages with all-0xFF. UBI assumes free space erased, of course first write to nandtest -k modified page is likely to make UBIFS not bootable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 08:15:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367936#M3814</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2014-09-22T08:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367937#M3815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I can not boot your image from nand on my custome vybrid board (2k page x8 nand), &lt;/P&gt;&lt;P&gt;yet I can boot the image from the zip file :vybrid MFG tool, which means the bootmode setting&lt;/P&gt;&lt;P&gt;is correct ,and FCB is burned ok. &lt;/P&gt;&lt;P&gt;please check the attachment&lt;/P&gt;&lt;P&gt;do you have any clues about this issue？i am totally confused ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 05:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367937#M3815</guid>
      <dc:creator>yibinjin</dc:creator>
      <dc:date>2015-06-12T05:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Can I get working sources of U-BOOT 2013.07, nand?</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367938#M3816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Yibin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have followed up on the ticket you have in our own Support queue regarding these issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Timesys Support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 18:17:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Can-I-get-working-sources-of-U-BOOT-2013-07-nand/m-p/367938#M3816</guid>
      <dc:creator>timesyssupport</dc:creator>
      <dc:date>2015-06-12T18:17:38Z</dc:date>
    </item>
  </channel>
</rss>

