<?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: U-boot 2016.03bootlogo problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788540#M122192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the mmc_dev no is not match.after mmc_dev matched.uboot crashed and enter reset loop,then I modified board_late_init to print debug message,print as bellow&lt;/P&gt;&lt;P&gt;//debug message&lt;/P&gt;&lt;P&gt;U-Boot 2016.03 (Jun 16 2018 - 18:45:00 +0800)&lt;/P&gt;&lt;P&gt;CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)&lt;BR /&gt;CPU: Extended Commercial temperature grade (-20C to 105C) at 39C&lt;BR /&gt;Reset cause: WDOG&lt;BR /&gt;Board: myimx6-ek314&lt;BR /&gt;I2C: ready&lt;BR /&gt;DRAM: 1 GiB&lt;BR /&gt;MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2&lt;BR /&gt;SF: Detected SST25VF016B with page size 256 Bytes, erase size 64 KiB, total 2 MiB&lt;BR /&gt;*** Warning - bad CRC, using default environment&lt;/P&gt;&lt;P&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;mmcdev is 2&lt;BR /&gt;reading bmp data from 800 to 18800000&lt;BR /&gt;total count 12c0&lt;BR /&gt;mmc block size is 512&lt;BR /&gt;data abort&lt;BR /&gt;pc : [&amp;lt;4ff6ed1c&amp;gt;] lr : [&amp;lt;4ff514fc&amp;gt;]&lt;BR /&gt;reloc pc : [&amp;lt;17827d1c&amp;gt;] lr : [&amp;lt;1780a4fc&amp;gt;]&lt;BR /&gt;sp : 4ef44da8 ip : 00000020 fp : 00000000&lt;BR /&gt;r10: 00000000 r9 : 4ef44eb8 r8 : 000012c0&lt;BR /&gt;r7 : 00000800 r6 : 000012c0 r5 : 4ef453a8 r4 : 4ff6ed04&lt;BR /&gt;r3 : 18800000 r2 : 000012c0 r1 : 00000800 r0 : 00000002&lt;BR /&gt;Flags: nzCv IRQs off FIQs off Mode SVC_32&lt;BR /&gt;Resetting CPU ...&lt;/P&gt;&lt;P&gt;resetting ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//board_late_init&lt;/P&gt;&lt;P&gt;if (bmpReady == 0)&lt;BR /&gt; {&lt;BR /&gt; if (mmc) {&lt;BR /&gt; if (mmc_init(mmc) == 0) {&lt;BR /&gt; start = ALIGN(UBOOT_LOGO_BMP_ADDR, mmc-&amp;gt;read_bl_len) / mmc-&amp;gt;read_bl_len;&lt;BR /&gt; count = ALIGN(size, mmc-&amp;gt;read_bl_len) / mmc-&amp;gt;read_bl_len;&lt;BR /&gt; &lt;BR /&gt;printf("reading bmp data from %lx to %lx\ntotal count %lx\nmmc block size is %d\n", start , pData, count, mmc-&amp;gt;read_bl_len);&lt;BR /&gt; mmc-&amp;gt;block_dev.block_read(mmc_dev, start, count, pData);&lt;BR /&gt; bmpReady = 1;&lt;BR /&gt; }&lt;BR /&gt; else{&lt;BR /&gt; printf("mmc init failed!\n"); &lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; else{&lt;BR /&gt; printf("No mmc found!\n"); &lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Jun 2018 10:24:21 GMT</pubDate>
    <dc:creator>末班车上的乘客</dc:creator>
    <dc:date>2018-06-16T10:24:21Z</dc:date>
    <item>
      <title>U-boot 2016.03bootlogo problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788538#M122190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi qiang&lt;/P&gt;&lt;P&gt;I have patched uboot2016.03 from fsl-yocto-L4.1.15_2.1.0-ga with &lt;A _jive_internal="true" data-content-finding="Community" href="https://community.nxp.com/servlet/JiveServlet/download/339614-1-418994/L4.1.15_GA1.2.0_uboot_logo_keep_patch_2017-01-06.zip" style="color: #3d9ce7; background-color: #efefef; border: 0px; font-weight: 600; text-decoration: underline; font-size: 12px;"&gt;L4.1.15_GA1.2.0_uboot_logo_keep_patch_2017-01-06.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;after dd bmp file to emmc by following command,uboot print&amp;nbsp;&lt;SPAN&gt;MMC: no card present,can't read bmp file from emmc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sudo dd if=./logo1.bmp of=/dev/mmcblk3 bs=1 seek=1048576 skip=54&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then modified the board_late_init function,it's print bellow debug messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//boot log&lt;/P&gt;&lt;P&gt;U-Boot 2016.03 (Jun 15 2018 - 22:19:23 +0800)&lt;/P&gt;&lt;P&gt;CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)&lt;BR /&gt;CPU: Extended Commercial temperature grade (-20C to 105C) at 57C&lt;BR /&gt;Reset cause: WDOG&lt;BR /&gt;Board: myimx6-ek314&lt;BR /&gt;I2C: ready&lt;BR /&gt;DRAM: 1 GiB&lt;BR /&gt;MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2&lt;BR /&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;mmc is 2&lt;BR /&gt;MMC: no card present&lt;BR /&gt;mmc init failed!&lt;BR /&gt;config_ipu_lvds_clk: freq = 448000000.&lt;BR /&gt;config_ipu_lvds_clk: set pll2_pfd0 clock to 450MHz, divider = 21.&lt;BR /&gt;switch to partitions #0, OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//board late init&lt;/P&gt;&lt;P&gt;int board_late_init(void)&lt;BR /&gt;{&lt;BR /&gt;#ifdef CONFIG_UBOOT_LOGO_ENABLE&lt;BR /&gt; unsigned int size = DISPLAY_WIDTH * DISPLAY_HEIGHT * (DISPLAY_BPP / 8);&lt;BR /&gt; unsigned char * pData;&lt;BR /&gt; unsigned int start, count;&lt;BR /&gt; int i, bmpReady = 0;&lt;BR /&gt; char *fs_argv[5];&lt;BR /&gt; char addr[17];&lt;BR /&gt; char part[3];&lt;BR /&gt; int mmc_dev = mmc_get_env_devno();&lt;BR /&gt; struct mmc *mmc = find_mmc_device(board_mmc_get_env_dev(mmc_dev));&lt;/P&gt;&lt;P&gt;sprintf(addr, "%lx", CONFIG_FB_BASE);&lt;BR /&gt; sprintf(part, "%d:%s", mmc_dev, getenv("mmcpart"));&lt;BR /&gt; pData = (unsigned char *)CONFIG_FB_BASE;&lt;/P&gt;&lt;P&gt;fs_argv[0] = "fatload";&lt;BR /&gt; fs_argv[1] = "mmc";&lt;BR /&gt; fs_argv[2] = part;&lt;BR /&gt; fs_argv[3] = addr;&lt;BR /&gt; fs_argv[4] = getenv("bootlogobmp");&lt;/P&gt;&lt;P&gt;// if (fs_argv[4])&lt;BR /&gt;// {&lt;BR /&gt;// if (!do_fat_fsload(NULL, 0, 5, fs_argv)) {&lt;BR /&gt;// bmpReady = 1;&lt;BR /&gt;// }&lt;BR /&gt;// }&lt;BR /&gt; printf("mmc is %d\n", mmc_dev);&lt;BR /&gt; if (bmpReady == 0)&lt;BR /&gt; {&lt;BR /&gt; if (mmc) {&lt;BR /&gt; if (mmc_init(mmc) == 0) {//can not found emm there!&lt;BR /&gt; start = ALIGN(UBOOT_LOGO_BMP_ADDR, mmc-&amp;gt;read_bl_len) / mmc-&amp;gt;read_bl_len;&lt;BR /&gt; count = ALIGN(size, mmc-&amp;gt;read_bl_len) / mmc-&amp;gt;read_bl_len;&lt;BR /&gt; printf("reading bmp data...\n");&lt;BR /&gt; mmc-&amp;gt;block_dev.block_read(mmc_dev, start, count, pData);&lt;BR /&gt; bmpReady = 1;&lt;BR /&gt; }&lt;BR /&gt; else{&lt;BR /&gt; printf("mmc init failed!\n"); &lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if (bmpReady == 0) {&lt;BR /&gt; // Fill RGB frame buffer&lt;BR /&gt; // Red&lt;BR /&gt; for (i = 0; i &amp;lt; (DISPLAY_WIDTH * DISPLAY_HEIGHT * (DISPLAY_BPP / 8) / 3); i += (DISPLAY_BPP / 8)) {&lt;BR /&gt;#if (DISPLAY_BPP == 16)&lt;BR /&gt; pData[i + 0] = 0x00;&lt;BR /&gt; pData[i + 1] = 0xF8;&lt;BR /&gt;#else&lt;BR /&gt; pData[i + 0] = 0x00;&lt;BR /&gt; pData[i + 1] = 0x00;&lt;BR /&gt; pData[i + 2] = 0xFF;&lt;BR /&gt;#endif&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 15:02:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788538#M122190</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2018-06-15T15:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot 2016.03bootlogo problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788539#M122191</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;please try nxp uboot&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/?h=nxp/imx_v2016.03_4.1.15_2.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/?h=nxp/imx_v2016.03_4.1.15_2.0.0_ga"&gt;uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and patches&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-98109"&gt;Patch to support uboot logo keep from uboot to kernel for NXP Linux and Android BSP (HDMI, LCD and LVDS)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 23:21:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788539#M122191</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-15T23:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot 2016.03bootlogo problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788540#M122192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found the mmc_dev no is not match.after mmc_dev matched.uboot crashed and enter reset loop,then I modified board_late_init to print debug message,print as bellow&lt;/P&gt;&lt;P&gt;//debug message&lt;/P&gt;&lt;P&gt;U-Boot 2016.03 (Jun 16 2018 - 18:45:00 +0800)&lt;/P&gt;&lt;P&gt;CPU: Freescale i.MX6Q rev1.5 996 MHz (running at 792 MHz)&lt;BR /&gt;CPU: Extended Commercial temperature grade (-20C to 105C) at 39C&lt;BR /&gt;Reset cause: WDOG&lt;BR /&gt;Board: myimx6-ek314&lt;BR /&gt;I2C: ready&lt;BR /&gt;DRAM: 1 GiB&lt;BR /&gt;MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2&lt;BR /&gt;SF: Detected SST25VF016B with page size 256 Bytes, erase size 64 KiB, total 2 MiB&lt;BR /&gt;*** Warning - bad CRC, using default environment&lt;/P&gt;&lt;P&gt;In: serial&lt;BR /&gt;Out: serial&lt;BR /&gt;Err: serial&lt;BR /&gt;mmcdev is 2&lt;BR /&gt;reading bmp data from 800 to 18800000&lt;BR /&gt;total count 12c0&lt;BR /&gt;mmc block size is 512&lt;BR /&gt;data abort&lt;BR /&gt;pc : [&amp;lt;4ff6ed1c&amp;gt;] lr : [&amp;lt;4ff514fc&amp;gt;]&lt;BR /&gt;reloc pc : [&amp;lt;17827d1c&amp;gt;] lr : [&amp;lt;1780a4fc&amp;gt;]&lt;BR /&gt;sp : 4ef44da8 ip : 00000020 fp : 00000000&lt;BR /&gt;r10: 00000000 r9 : 4ef44eb8 r8 : 000012c0&lt;BR /&gt;r7 : 00000800 r6 : 000012c0 r5 : 4ef453a8 r4 : 4ff6ed04&lt;BR /&gt;r3 : 18800000 r2 : 000012c0 r1 : 00000800 r0 : 00000002&lt;BR /&gt;Flags: nzCv IRQs off FIQs off Mode SVC_32&lt;BR /&gt;Resetting CPU ...&lt;/P&gt;&lt;P&gt;resetting ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//board_late_init&lt;/P&gt;&lt;P&gt;if (bmpReady == 0)&lt;BR /&gt; {&lt;BR /&gt; if (mmc) {&lt;BR /&gt; if (mmc_init(mmc) == 0) {&lt;BR /&gt; start = ALIGN(UBOOT_LOGO_BMP_ADDR, mmc-&amp;gt;read_bl_len) / mmc-&amp;gt;read_bl_len;&lt;BR /&gt; count = ALIGN(size, mmc-&amp;gt;read_bl_len) / mmc-&amp;gt;read_bl_len;&lt;BR /&gt; &lt;BR /&gt;printf("reading bmp data from %lx to %lx\ntotal count %lx\nmmc block size is %d\n", start , pData, count, mmc-&amp;gt;read_bl_len);&lt;BR /&gt; mmc-&amp;gt;block_dev.block_read(mmc_dev, start, count, pData);&lt;BR /&gt; bmpReady = 1;&lt;BR /&gt; }&lt;BR /&gt; else{&lt;BR /&gt; printf("mmc init failed!\n"); &lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; else{&lt;BR /&gt; printf("No mmc found!\n"); &lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jun 2018 10:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788540#M122192</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2018-06-16T10:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot 2016.03bootlogo problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788541#M122193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried uboot-imx-imx_v2016.03_4.1.15_2.0.0_ga，get the same result。And then I tried U-boot-2015.04，It's work fine。I compared two board.c files,couldn't found any major difference make cause this problem.I even tried to swtich the complier,and got the same result&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2018 05:47:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788541#M122193</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2018-06-17T05:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: U-boot 2016.03bootlogo problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788542#M122194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all&lt;/P&gt;&lt;P&gt;I have fixed this issue。I compared two version’s mmc_bread() function，found out the param has changed in u-boot-2016.03.the old version pass a device num,new version pass a device point.&lt;/P&gt;&lt;P&gt;//in u-boot-2016.03&lt;/P&gt;&lt;P&gt;static ulong mmc_bread(block_dev_desc_t *block_dev, lbaint_t start,&lt;BR /&gt; lbaint_t blkcnt, void *dst)&lt;BR /&gt;{&lt;BR /&gt; int dev_num = block_dev-&amp;gt;dev;&lt;BR /&gt; int err;&lt;BR /&gt; lbaint_t cur, blocks_todo = blkcnt;&lt;/P&gt;&lt;P&gt;if (blkcnt == 0)&lt;BR /&gt; return 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//in u-boot-2015.04&lt;/P&gt;&lt;P&gt;static ulong mmc_bread(int dev_num, lbaint_t start, lbaint_t blkcnt, void *dst)&lt;BR /&gt;{&lt;BR /&gt; lbaint_t cur, blocks_todo = blkcnt;&lt;/P&gt;&lt;P&gt;if (blkcnt == 0)&lt;BR /&gt; return 0;&lt;/P&gt;&lt;P&gt;struct mmc *mmc = find_mmc_device(dev_num);&lt;BR /&gt; if (!mmc)&lt;BR /&gt; return 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//board.c fixed code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (bmpReady == 0)&lt;BR /&gt; {&lt;BR /&gt; if (mmc) {&lt;BR /&gt; if (mmc_init(mmc) == 0) {&lt;BR /&gt; start = ALIGN(UBOOT_LOGO_BMP_ADDR, mmc-&amp;gt;read_bl_len) / mmc-&amp;gt;read_bl_len;&lt;BR /&gt; count = ALIGN(size, mmc-&amp;gt;read_bl_len) / mmc-&amp;gt;read_bl_len;&lt;BR /&gt; &lt;BR /&gt; printf("reading bmp data from %lx to %lx\ntotal count is %lx\nmmc block size is %d\nmmc_dev is %d", start , pData, count, mmc-&amp;gt;read_bl_len, mmc_dev);&lt;BR /&gt; mmc-&amp;gt;block_dev.block_read(&amp;amp;mmc-&amp;gt;block_dev, start, count, pData);&lt;BR /&gt; printf("read bmp completed,flush_cache...");&lt;BR /&gt; flush_cache((ulong)pData, count * 512);&lt;BR /&gt; printf("bmp data is ready!");&lt;BR /&gt; bmpReady = 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2018 11:13:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/U-boot-2016-03bootlogo-problem/m-p/788542#M122194</guid>
      <dc:creator>末班车上的乘客</dc:creator>
      <dc:date>2018-06-17T11:13:42Z</dc:date>
    </item>
  </channel>
</rss>

