<?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: Booting both u-boot and Linux from SD P2041RDB in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/Booting-both-u-boot-and-Linux-from-SD-P2041RDB/m-p/316123#M1222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the following procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Connect the card reader with SD card to the Linux Host PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create the partitions by "fdisk /dev/sdb", one MS-DOS partition(sdb1 and this partition usually for u-boot) and one ext2 partition(sdb2) in the SD card.&lt;/P&gt;&lt;P&gt;&amp;nbsp; #fdisk /dev/sdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use the mkfs.ext2 command to create the filesystems.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # mkfs.vfat /dev/sdb1&lt;/P&gt;&lt;P&gt;&amp;nbsp; # mkfs.ext2 /dev/sdb2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Write u-boot.bin to SD with the method you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Copy the file system to SD card by extracing the QorIQ_SDK_V1.5_E500MC_20131219_ROOTFS_Image.tar.gz ,Remove the tarball after extracting rootfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # cp QorIQ_SDK_V1.5_E500MC_20131219_ROOTFS_Image.tar.gz&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp; # tar -zxvf QorIQ_SDK_V1.5_E500MC_20131219_ROOTFS_Image.tar.gz&lt;/P&gt;&lt;P&gt;&amp;nbsp; # rm QorIQ_SDK_V1.5_E500MC_20131219_ROOTFS_Image.tar.gz&lt;/P&gt;&lt;P&gt;&amp;nbsp; Note:You could find this image in the ISO QorIQ-SDK-V1.5-PPCE500MC-IMAGE-20131219-yocto.iso&lt;/P&gt;&lt;P&gt;6. Plug in the SD card to the target board and power on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Set the environment in uboot for SD boot.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # setenv bootfile uImage&lt;/P&gt;&lt;P&gt;&amp;nbsp; # setenv fdtfile uImage.dtb&lt;/P&gt;&lt;P&gt;&amp;nbsp; # setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr&amp;nbsp; /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr'&lt;/P&gt;&lt;P&gt;&amp;nbsp; # boot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: uImage and dtb have already built into the above rootfs filesystem /boot folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping Wang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 11 Jun 2014 11:08:44 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2014-06-11T11:08:44Z</dc:date>
    <item>
      <title>Booting both u-boot and Linux from SD P2041RDB</title>
      <link>https://community.nxp.com/t5/P-Series/Booting-both-u-boot-and-Linux-from-SD-P2041RDB/m-p/316122#M1221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I previously made a thread here: &lt;A href="https://community.nxp.com/thread/324298"&gt;Boot P2041RDB-PB from SD Card?&lt;/A&gt; and got my question answered about how to boot u-boot from an SD card on the Freescale P2041RDB board. Now I am trying to load Linux onto the same SD card, and boot everything from it, so that it is easier to distribute a complete working image to our customers. I noticed this page, &lt;A href="https://community.nxp.com/docs/DOC-1238"&gt;Booting to Linux from an SD Card/MMC for P2040/P2041 &lt;/A&gt;, but it only shows how to boot Linux with JUST Linux, no u-boot on the SD card. What is the process to load the kernel, rootfs, and fdt from the SD card?&lt;/P&gt;&lt;P&gt;If you need anymore information please ask and I'll be happy to provide it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your help,&lt;/P&gt;&lt;P&gt;Connor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 19:11:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Booting-both-u-boot-and-Linux-from-SD-P2041RDB/m-p/316122#M1221</guid>
      <dc:creator>cquick</dc:creator>
      <dc:date>2014-06-09T19:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Booting both u-boot and Linux from SD P2041RDB</title>
      <link>https://community.nxp.com/t5/P-Series/Booting-both-u-boot-and-Linux-from-SD-P2041RDB/m-p/316123#M1222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the following procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Connect the card reader with SD card to the Linux Host PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create the partitions by "fdisk /dev/sdb", one MS-DOS partition(sdb1 and this partition usually for u-boot) and one ext2 partition(sdb2) in the SD card.&lt;/P&gt;&lt;P&gt;&amp;nbsp; #fdisk /dev/sdb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use the mkfs.ext2 command to create the filesystems.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # mkfs.vfat /dev/sdb1&lt;/P&gt;&lt;P&gt;&amp;nbsp; # mkfs.ext2 /dev/sdb2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Write u-boot.bin to SD with the method you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Copy the file system to SD card by extracing the QorIQ_SDK_V1.5_E500MC_20131219_ROOTFS_Image.tar.gz ,Remove the tarball after extracting rootfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # cp QorIQ_SDK_V1.5_E500MC_20131219_ROOTFS_Image.tar.gz&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&amp;nbsp; # tar -zxvf QorIQ_SDK_V1.5_E500MC_20131219_ROOTFS_Image.tar.gz&lt;/P&gt;&lt;P&gt;&amp;nbsp; # rm QorIQ_SDK_V1.5_E500MC_20131219_ROOTFS_Image.tar.gz&lt;/P&gt;&lt;P&gt;&amp;nbsp; Note:You could find this image in the ISO QorIQ-SDK-V1.5-PPCE500MC-IMAGE-20131219-yocto.iso&lt;/P&gt;&lt;P&gt;6. Plug in the SD card to the target board and power on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Set the environment in uboot for SD boot.&lt;/P&gt;&lt;P&gt;&amp;nbsp; # setenv bootfile uImage&lt;/P&gt;&lt;P&gt;&amp;nbsp; # setenv fdtfile uImage.dtb&lt;/P&gt;&lt;P&gt;&amp;nbsp; # setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr&amp;nbsp; /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr'&lt;/P&gt;&lt;P&gt;&amp;nbsp; # boot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: uImage and dtb have already built into the above rootfs filesystem /boot folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Yiping Wang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Wed, 11 Jun 2014 11:08:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Booting-both-u-boot-and-Linux-from-SD-P2041RDB/m-p/316123#M1222</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2014-06-11T11:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Booting both u-boot and Linux from SD P2041RDB</title>
      <link>https://community.nxp.com/t5/P-Series/Booting-both-u-boot-and-Linux-from-SD-P2041RDB/m-p/316124#M1223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works flawlessly, thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 12:30:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Booting-both-u-boot-and-Linux-from-SD-P2041RDB/m-p/316124#M1223</guid>
      <dc:creator>cquick</dc:creator>
      <dc:date>2014-06-11T12:30:20Z</dc:date>
    </item>
  </channel>
</rss>

