<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Jarielle,<br>
      Excellent!<br>
      Couple of  comments...<br>
      1. Since you've got so much detail in there, you may want to
      include the names of <br>
      the TRM chapter and sections that you reference.  I say this
      because a later revision may insert<br>
      a chapter or a section and that will make the chapter/section
      numbers you have confusing.<br>
      2. For raw mode description, in the 'dd' line, change
      "of=/dev/sdc" to "of=<device>" (where <device> is the
      sd card).<br>
      3. For fat mode description, you may want to add a "dd
      if=/dev/zero of=<device> bs=1M count=1" as the first step
      just to<br>
           make sure there is no partition table at the base of the SD
      card.  If there is, then the first 'n' in your instructions<br>
           may not do what you want.  I know you mention that the card
      is assumed to not be formatted.  This just<br>
           makes sure of that.  So, I walked through your steps, using
      this to automate:<br>
      <blockquote><tt>export SDDEV=/dev/sdc</tt><tt>  # User should
          verify this device.<br>
        </tt><tt>sudo dd if=/dev/zero of=${SDDEV} bs=128K count=1</tt><tt><br>
        </tt><tt>echo "n\np\n1\n\n+1M\nt\nc\na\n1\np\nw\n" | fdisk
          ${SDDEV}</tt><br>
      </blockquote>
           But when I did the mkfs line in your text, it returned an
      error: Not enough clusters for a 32bit FAT.<br>
           So, I just did "mkfs.vfat /dev/sdc1" and that worked fine. 
      Honestly, I don't know the details here,<br>
           so if you can investigate this, that would be great.  Suggest
      adding something like the script above as<br>
           a shortcut.<br>
      <br>
      4. For UART boot mode, mention that the uMon image that is
      transferred is boot.bin, not the MLO.<br>
      <br>
      Some other stuff you could add:<br>
      - To know for sure what device is your uSD card in your linux box,
      run "cat /proc/partitions" before and after<br>
      inserting the card and note the difference.<br>
      <br>
      Good stuff,<br>
      Ed<br>
      <br>
    </div>
    <blockquote
cite="mid:CANjxxd1OCSWaypo+mpCzE9Vg9sq4VMPF2+GzxOXMGcbP_AUwDA@mail.gmail.com"
      type="cite">
      <pre wrap="">Ed,

I finished the first draft of the document.  It can be found here:
<a class="moz-txt-link-freetext" href="https://github.com/jrcatbagan/umon/commit/7f751486d5ca3ba5f6449adf5561df527a5cfde1">https://github.com/jrcatbagan/umon/commit/7f751486d5ca3ba5f6449adf5561df527a5cfde1</a>
. Please feel free to give me any suggestions on how I can improve it
or if I am missing something.  Once you give the green light, I'll
send it to umon-devel as a patch.

Thanks.

On Mon, Jul 6, 2015 at 5:21 AM, Ed Sutter <a class="moz-txt-link-rfc2396E" href="mailto:ed.sutter@alcatel-lucent.com"><ed.sutter@alcatel-lucent.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On 7/5/2015 6:46 PM, Chris Johns wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">
On 5/07/2015 4:19 am, Ed Sutter wrote:
</pre>
          <blockquote type="cite">
            <pre wrap="">
Ok, I managed to get it to boot using only Linux for formatting the card.
It wasn't working for me until I just read your email and realized I did
not mark
the partition active.  After doing that it booted!
So here are the steps I walked through
(extracted from: <a class="moz-txt-link-freetext" href="http://forum.xda-developers.com/showthread.php?t=502095">http://forum.xda-developers.com/showthread.php?t=502095</a>)
:

1. Verify the partition that the SD card installs as:
      - cat /proc/paritions (without the uSD)
      - Insert uSD card
      - cat /proc/paritions (note the difference)
Using /dev/sdc as our partition:
2. sudo fdisk /dev/sdc
     - delete all paritions with 'd' command (d1/d2/d3/d4) as needed
     - use 'n' command to create partition 1
     - use 't' command to relabel partition 1 to 'c'
     - use 'a' command to make the parition active
     - use 'p' to show something like:

    Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048     3932159     1965056    c  W95 FAT32 (LBA)

      - use 'w' to write to the card

3. Run sudo mkfs.vfat /dev/sdc1
4. Mount /dev/sdc1 as /media/boot (or whatever)
5. Copy MLO to /media/boot
6. Run sync; unmount /media/boot
7. Put card in BBB, reset with boot button depressed.

</pre>
          </blockquote>
          <pre wrap="">A simple request to place in the doco early is to create a root
partition only as large as you need and not use whole disk size in the
root partition. Users should be encouraged to add other partitions they
can mount as read/write to store a kernel and/or user data.

Chris
_______________________________________________

</pre>
        </blockquote>
        <pre wrap="">Yep, for sure... my example above was lame...
Functionally ok, but not considering the fact that the SD card will have
other "stuff".  Also, Chris, IIRC, you mentioned that FAT-booting may not be
the right way to go ultimately.  So, for now at least, it will be good to
cover
both modes of booting until we get a better grip on which approach to
take.
Jarielle, I can add detail on raw mode to whatever you initially write up
if you want me to...
Ed

_______________________________________________
umon-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:umon-devel@rtems.org">umon-devel@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/umon-devel">http://lists.rtems.org/mailman/listinfo/umon-devel</a>
</pre>
      </blockquote>
      <pre wrap="">_______________________________________________
umon-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:umon-devel@rtems.org">umon-devel@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/umon-devel">http://lists.rtems.org/mailman/listinfo/umon-devel</a>

</pre>
    </blockquote>
    <br>
  </body>
</html>