starterware emmc beaglebone black

744 views
Skip to first unread message

matheusd.v...@gmail.com

unread,
Oct 16, 2014, 4:28:31 PM10/16/14
to beagl...@googlegroups.com
Hi everybody,
My question is, I can boot starterware examples in flash EMMC (MLO+app), I did this in uSD card, but  want to use the USB or Serial to flash EMMC and boot my application.
There is anyway to do this ?


Thanks in advance.

karlka...@gmail.com

unread,
Oct 27, 2014, 5:16:30 AM10/27/14
to beagl...@googlegroups.com
Starterware does not support access to eMMC. To do that, you would have to implement MMC-support to their HSMMCSD-library in order to make MLO able to boot APPs from there.

Jason Kridner

unread,
Oct 28, 2014, 12:23:22 AM10/28/14
to beagl...@googlegroups.com
On Mon, Oct 27, 2014 at 5:16 AM, <karlka...@gmail.com> wrote:
Starterware does not support access to eMMC. To do that, you would have to implement MMC-support to their HSMMCSD-library in order to make MLO able to boot APPs from there.

Have you done anything to confirm what you are saying? It would be helpful to say when you suspect something vs. when you know something.

Neither the bootloader is in ROM nor the MLO app make any use of Starterware, so if Starterware supports eMMC or not is irrelevant to if you can boot a Starterware application from eMMC using the ROM and MLO. There's no reason you couldn't skip MLO entirely unless your Staterware image is particularly large. If you want to use MLO, again, there's no reason that couldn't target a Starterware application.

Also, as far as I know, MMC-support is not required to use an eMMC as it should support one of the other modes.

 

Am Donnerstag, 16. Oktober 2014 22:28:31 UTC+2 schrieb TheMdv18:
Hi everybody,
My question is, I can boot starterware examples in flash EMMC (MLO+app), I did this in uSD card, but  want to use the USB or Serial to flash EMMC and boot my application.
There is anyway to do this ?


Thanks in advance.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karl Karpfen

unread,
Oct 28, 2014, 3:30:27 AM10/28/14
to beagl...@googlegroups.com
2014-10-28 5:23 GMT+01:00 Jason Kridner <jkri...@beagleboard.org>:
On Mon, Oct 27, 2014 at 5:16 AM, <karlka...@gmail.com> wrote:
Starterware does not support access to eMMC. To do that, you would have to implement MMC-support to their HSMMCSD-library in order to make MLO able to boot APPs from there.

Have you done anything to confirm what you are saying? It would be helpful to say when you suspect something vs. when you know something.

This is confirmed by TI in StarterWare support forum. Google or the search function at http://e2e.ti.com/support/embedded/starterware/f/790.aspx is your friend.
 
Neither the bootloader is in ROM nor the MLO app make any use of Starterware, so if Starterware supports eMMC or not is irrelevant to if you can boot a Starterware application from eMMC using the ROM and MLO. There's no reason you couldn't skip MLO entirely unless your Staterware image is particularly large. If you want to use MLO, again, there's no reason that couldn't target a Starterware application.

Also, as far as I know, MMC-support is not required to use an eMMC as it should support one of the other modes.

No, that's not correct. The MLO that comes with Starterware and normally is used to boot a Starterware-application itself bases on Starterware. So it depends on its (not existant) features. One of course can create an MLO as only application and try to put all its functionality into that MLO - then the CPU will be able to boot the MLO and eMMC support is not required. But as soon as an separate APP is requied - e.g. because the available space for MLO is not enough - the MLO definitely needs to come with eMMC support.
 

 

Am Donnerstag, 16. Oktober 2014 22:28:31 UTC+2 schrieb TheMdv18:
Hi everybody,
My question is, I can boot starterware examples in flash EMMC (MLO+app), I did this in uSD card, but  want to use the USB or Serial to flash EMMC and boot my application.
There is anyway to do this ?


Thanks in advance.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/CGxyNJFa_H8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Karl Karpfen

unread,
Nov 4, 2014, 5:20:14 AM11/4/14
to beagl...@googlegroups.com
By the way: your own link contains the information that MMC is not supported: http://processors.wiki.ti.com/index.php/StarterWare_MMCSD_Driver#Features_not_supported ;-)

Karl Karpfen

unread,
Nov 18, 2014, 3:54:55 AM11/18/14
to beagl...@googlegroups.com
Please check out http://e2e.ti.com/support/embedded/starterware/f/790/t/272577.aspx#1344119

There somebody posted the missing MMC-code meanwhile.


Am Donnerstag, 16. Oktober 2014 22:28:31 UTC+2 schrieb TheMdv18:

Jason Kridner

unread,
Nov 18, 2014, 1:02:49 PM11/18/14
to beagl...@googlegroups.com
On Tue, Oct 28, 2014 at 3:29 AM, Karl Karpfen <karlka...@gmail.com> wrote:
>
> 2014-10-28 5:23 GMT+01:00 Jason Kridner <jkri...@beagleboard.org>:
>>
>> On Mon, Oct 27, 2014 at 5:16 AM, <karlka...@gmail.com> wrote:
>>>
>>> Starterware does not support access to eMMC. To do that, you would have
>>> to implement MMC-support to their HSMMCSD-library in order to make MLO able
>>> to boot APPs from there.
>>
>>
>> Have you done anything to confirm what you are saying? It would be helpful
>> to say when you suspect something vs. when you know something.
>
>
> This is confirmed by TI in StarterWare support forum. Google or the search
> function at http://e2e.ti.com/support/embedded/starterware/f/790.aspx is
> your friend.

You don't need support in the library in order to BOOT. MLO can boot
applications out of eMMC just fine. How do you think we are loading
u-boot?

>
>>
>> Neither the bootloader is in ROM nor the MLO app make any use of
>> Starterware, so if Starterware supports eMMC or not is irrelevant to if you
>> can boot a Starterware application from eMMC using the ROM and MLO. There's
>> no reason you couldn't skip MLO entirely unless your Staterware image is
>> particularly large. If you want to use MLO, again, there's no reason that
>> couldn't target a Starterware application.
>>
>> Also, as far as I know, MMC-support is not required to use an eMMC as it
>> should support one of the other modes.
>
>
> No, that's not correct. The MLO that comes with Starterware

Probably better to use the MLO that is part of mainline u-boot than a
TI fork. The recent primary maintainer of u-boot works for TI and is
pretty good at bringing in support for TI devices.

> and normally is
> used to boot a Starterware-application itself bases on Starterware. So it
> depends on its (not existant) features. One of course can create an MLO as
> only application and try to put all its functionality into that MLO - then
> the CPU will be able to boot the MLO and eMMC support is not required.

Yes, that is part of what I was trying to assert. Sorry to not make
that more clear.

> But
> as soon as an separate APP is requied - e.g. because the available space for
> MLO is not enough - the MLO definitely needs to come with eMMC support.

Mainline MLO has eMMC support. It is only when the StarterWare
application ITSELF needs to access the eMMC that the StarterWare
library needs to include eMMC support.

With regards to accessing the eMMC using the StarterWare library, my
issue was with the term "MMC support". It is still my assertion that
other modes supported by the StarterWare library, like 4-bit SD mode,
should work well with eMMC devices[3], though I haven't confirmed with
the eMMC that is on BeagleBone Black.

The fix supplied in the attached diff (extracted from the forum post)
adds an 8-bit MMC mode, so it doesn't address my assertion.
[3] http://arasan.com/products/sd-emmc/emmc-4-5-device/
[4] https://www.linkedin.com/groups/SPI-mode-in-eMMC-Devices-37565.S.77338175
mmcsdlib.diff

Jason Kridner

unread,
Nov 18, 2014, 1:05:01 PM11/18/14
to beagl...@googlegroups.com
On Tue, Nov 4, 2014 at 5:20 AM, Karl Karpfen <karlka...@gmail.com> wrote:
> By the way: your own link contains the information that MMC is not
> supported:
> http://processors.wiki.ti.com/index.php/StarterWare_MMCSD_Driver#Features_not_supported
> ;-)

That has to do with MMC modes and support of the MMC standard. eMMC
devices are known to often support 4-bit SD mode, despite the name of
"eMMC". Honestly, I'm not just making crap up to try to attack you. I
think it sucks that StarterWare hasn't been updated for all the
features of BeagleBone Black as well, but that doesn't mean it should
be blown out of detail.

Karl Karpfen

unread,
Nov 19, 2014, 8:20:08 AM11/19/14
to beagl...@googlegroups.com
Hi Jason,

2014-11-18 19:02 GMT+01:00 Jason Kridner <jason....@hangerhead.com>:

You don't need support in the library in order to BOOT. MLO can boot
applications out of eMMC just fine. How do you think we are loading
u-boot?


That's true as long as you can use that u-boot's MLO "as is" and without further modifications. In my special case I had to modify MLO. Here u-boot is - comparing to the simple, single project in Starterware - way too complex. Own compiler is needed and software structure is not easy to understand (at least for me, I could not find out where to find the sources that will result in the MLO-file).

So I think for somebody that already uses Starterware with TI's compiler and perhaps CCS it would be the more direct way to use the MLO sources that come with this package.

Karl


Jason Kridner

unread,
Nov 19, 2014, 10:54:02 AM11/19/14
to beagl...@googlegroups.com
On Wed, Nov 19, 2014 at 8:19 AM, Karl Karpfen <karlka...@gmail.com> wrote:
> Hi Jason,
>
> 2014-11-18 19:02 GMT+01:00 Jason Kridner <jason....@hangerhead.com>:
>>
>>
>> You don't need support in the library in order to BOOT. MLO can boot
>> applications out of eMMC just fine. How do you think we are loading
>> u-boot?
>>
>
> That's true as long as you can use that u-boot's MLO "as is" and without
> further modifications. In my special case I had to modify MLO. Here u-boot
> is - comparing to the simple, single project in Starterware - way too
> complex. Own compiler is needed and software structure is not easy to
> understand (at least for me, I could not find out where to find the sources
> that will result in the MLO-file).

Admittedly, it is a complex set of source. FYI, it is found here:
http://git.denx.de/?p=u-boot.git;a=summary

Robert has patch and build instructions at
https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader:U-Boot.

>
> So I think for somebody that already uses Starterware with TI's compiler and
> perhaps CCS it would be the more direct way to use the MLO sources that come
> with this package.

It seems like removing u-boot entirely would make for the simplest
example. The code for producing an image from an executable binary is
there in the u-boot tools directory. I wouldn't think it'd be that
hard to break it out.

>
> Karl
Reply all
Reply to author
Forward
0 new messages