<?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: board testing with u-boot command line in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/board-testing-with-u-boot-command-line/m-p/809477#M124856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; The thread you link regarding GPIO from u-boot unfortunately isn't much help, because all it says is "set iomixing for for your board" using the appropriate board.c file (in my case presumably that's &amp;lt;uboot&amp;gt;/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c) and that there should already be iomuxing examples, but it doesn't say at all what I should be looking for. I see a lot of functions that have "iomux" in them, but this is all incredibly vague.&amp;nbsp; every pad on the IC seems to be called out somewhere, but there's nothing in this file that tells me what or how I call anything from the u-boot gpio api.&amp;nbsp; The u-boot gpio api wants something like a bank number and an io number, and none of that is specified in the board.c file.&amp;nbsp; The "instructions" then go on to say to "use the u-boot gpio api" and it links to what I assume is the source code for the gpio tool, but there is no clue at all in that c file as to how the gpio tool is actually used.&amp;nbsp; I don't see a list of gpio numbers that the tool wants, nothing that maps, for example, the actual processor io named "gpio01_05" to a number or a bank and number that I can toggle or set using the u-boot gpio command.&amp;nbsp; I feel even more confused and lost now than I did before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the display stuff, you mention using the linux BSP, which I believe I downloaded, but none of those files make sense either.&amp;nbsp; What I've been doing all along so far is: building u-boot, running dd to place the u-boot-imx file on the sd card, and building the device tree, kernel, and linux file system and copying those to the sd card.&amp;nbsp; I've tried messing around with the yocto project stuff, but that documentation is incredibly hard to follow, and while I think I've successfully run a bitbake command once, I'm not seeing a lot of info on how to modify build like how I'm modifying config and c files in u-boot and the kernel directly with my current method, and on top of that, I've tried building with the yocto project 2 times now, and both times it took literally all day and night to complete the build, so i don't want to keep going through that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried looking at the document "i.MX Linux® User's Guide, Rev. L4.9.88_2.0.0-ga, 05/2018" in section 8 it mentions that there are "a number of graphics tools, tests, and example programs that are built and installed in the Linux rootfs" but I don't even have linux up and running yet.&amp;nbsp; right now I'm (trying) to do everything from u-boot because I'm stuck on an issue where the filesystem isn't loading (stuck on the console message "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Waiting for root device /dev/mmcblk0p2", although that's definitely the right device and partition, and I've recreated partitions, reformatted, everything, on multiple sd cards, thought the sd cards and hardware interface have to be correct because i can load u-boot and the kernel).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2018 22:20:19 GMT</pubDate>
    <dc:creator>dluberger</dc:creator>
    <dc:date>2018-09-11T22:20:19Z</dc:date>
    <item>
      <title>board testing with u-boot command line</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/board-testing-with-u-boot-command-line/m-p/809475#M124854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a new custom board, and i want to do things like test gpio connections, test my display etc. my display, for example, is being held in a disabled state (i.e., the backlight and logic power supplies) so i can't even see if the backlight works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm having trouble compiling and flashing u-boot, so i was wondering: using the i.mx6ull evk sd card demo, can i use the u-boot command line to toggle gpios and do other things like set a test image on the lcd if it comes up? i see that i can read and write registers directly, and i also see there is a gpio command, but i can't get any of it to work because i don't know the proper syntax to go with the demo sd u-boot build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i test my board with the demo sd u-boot, without having to modify and re-compile underlying c-code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 14:33:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/board-testing-with-u-boot-command-line/m-p/809475#M124854</guid>
      <dc:creator>dluberger</dc:creator>
      <dc:date>2018-09-10T14:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: board testing with u-boot command line</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/board-testing-with-u-boot-command-line/m-p/809476#M124855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David Luberger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following thread may be of help in regards of toggling GPIOs in U-boot:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/345948"&gt;https://community.nxp.com/thread/345948&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also recommend looking at the unit tests available as part of the Linux BSP. You can find more information on this on the Linux BSP documentation. There is a test that may help you test the screen for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 20:50:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/board-testing-with-u-boot-command-line/m-p/809476#M124855</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2018-09-11T20:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: board testing with u-boot command line</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/board-testing-with-u-boot-command-line/m-p/809477#M124856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp; The thread you link regarding GPIO from u-boot unfortunately isn't much help, because all it says is "set iomixing for for your board" using the appropriate board.c file (in my case presumably that's &amp;lt;uboot&amp;gt;/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c) and that there should already be iomuxing examples, but it doesn't say at all what I should be looking for. I see a lot of functions that have "iomux" in them, but this is all incredibly vague.&amp;nbsp; every pad on the IC seems to be called out somewhere, but there's nothing in this file that tells me what or how I call anything from the u-boot gpio api.&amp;nbsp; The u-boot gpio api wants something like a bank number and an io number, and none of that is specified in the board.c file.&amp;nbsp; The "instructions" then go on to say to "use the u-boot gpio api" and it links to what I assume is the source code for the gpio tool, but there is no clue at all in that c file as to how the gpio tool is actually used.&amp;nbsp; I don't see a list of gpio numbers that the tool wants, nothing that maps, for example, the actual processor io named "gpio01_05" to a number or a bank and number that I can toggle or set using the u-boot gpio command.&amp;nbsp; I feel even more confused and lost now than I did before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the display stuff, you mention using the linux BSP, which I believe I downloaded, but none of those files make sense either.&amp;nbsp; What I've been doing all along so far is: building u-boot, running dd to place the u-boot-imx file on the sd card, and building the device tree, kernel, and linux file system and copying those to the sd card.&amp;nbsp; I've tried messing around with the yocto project stuff, but that documentation is incredibly hard to follow, and while I think I've successfully run a bitbake command once, I'm not seeing a lot of info on how to modify build like how I'm modifying config and c files in u-boot and the kernel directly with my current method, and on top of that, I've tried building with the yocto project 2 times now, and both times it took literally all day and night to complete the build, so i don't want to keep going through that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried looking at the document "i.MX Linux® User's Guide, Rev. L4.9.88_2.0.0-ga, 05/2018" in section 8 it mentions that there are "a number of graphics tools, tests, and example programs that are built and installed in the Linux rootfs" but I don't even have linux up and running yet.&amp;nbsp; right now I'm (trying) to do everything from u-boot because I'm stuck on an issue where the filesystem isn't loading (stuck on the console message "&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Waiting for root device /dev/mmcblk0p2", although that's definitely the right device and partition, and I've recreated partitions, reformatted, everything, on multiple sd cards, thought the sd cards and hardware interface have to be correct because i can load u-boot and the kernel).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 22:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/board-testing-with-u-boot-command-line/m-p/809477#M124856</guid>
      <dc:creator>dluberger</dc:creator>
      <dc:date>2018-09-11T22:20:19Z</dc:date>
    </item>
  </channel>
</rss>

