public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] How to program u-boot in eMMC/MMC on iMX
@ 2015-02-23 14:11 Marco Cavallini
  2015-02-23 14:20 ` Fabio Estevam
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Cavallini @ 2015-02-23 14:11 UTC (permalink / raw)
  To: u-boot

Hello,

I'd like to know if exists a method to store in eMMC a bootolader
without kobs-ng, so without using linux, but simply running a command
from u-boot.
I booted my i.MX28 system (I have the same question for i.MX6 as well)
using the u-boot.sb (u-boot-2015.01 with SPL) file loaded with mxsldr
(or imx-bootlets).
Now I am trying to save it in eMMC with the following command
 loady    (load u-boot.sb with ymodem)
 mmc write ${loadaddr} 0 ${filesize}
but at reboot nothing happens.
Is it possible?

TIA
--
Marco

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] How to program u-boot in eMMC/MMC on iMX
  2015-02-23 14:11 [U-Boot] How to program u-boot in eMMC/MMC on iMX Marco Cavallini
@ 2015-02-23 14:20 ` Fabio Estevam
  2015-02-23 14:57   ` Marco Cavallini
  0 siblings, 1 reply; 7+ messages in thread
From: Fabio Estevam @ 2015-02-23 14:20 UTC (permalink / raw)
  To: u-boot

Hi Marco,

On Mon, Feb 23, 2015 at 11:11 AM, Marco Cavallini
<cavallini.koan@gmail.com> wrote:
> Hello,
>
> I'd like to know if exists a method to store in eMMC a bootolader
> without kobs-ng, so without using linux, but simply running a command
> from u-boot.
> I booted my i.MX28 system (I have the same question for i.MX6 as well)
> using the u-boot.sb (u-boot-2015.01 with SPL) file loaded with mxsldr
> (or imx-bootlets).
> Now I am trying to save it in eMMC with the following command
>  loady    (load u-boot.sb with ymodem)
>  mmc write ${loadaddr} 0 ${filesize}
> but at reboot nothing happens.
> Is it possible?

You should flash u-boot.sd, not u-boot.sb.

Please check doc/README.mxs on how to generate u-boot.sd.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] How to program u-boot in eMMC/MMC on iMX
  2015-02-23 14:20 ` Fabio Estevam
@ 2015-02-23 14:57   ` Marco Cavallini
  2015-02-23 15:03     ` Otavio Salvador
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Cavallini @ 2015-02-23 14:57 UTC (permalink / raw)
  To: u-boot

2015-02-23 15:20 GMT+01:00 Fabio Estevam <festevam@gmail.com>:
> Hi Marco,
>
> On Mon, Feb 23, 2015 at 11:11 AM, Marco Cavallini
> <cavallini.koan@gmail.com> wrote:
>> Hello,
>>
>> I'd like to know if exists a method to store in eMMC a bootolader
>> without kobs-ng, so without using linux, but simply running a command
>> from u-boot.
>> I booted my i.MX28 system (I have the same question for i.MX6 as well)
>> using the u-boot.sb (u-boot-2015.01 with SPL) file loaded with mxsldr
>> (or imx-bootlets).
>> Now I am trying to save it in eMMC with the following command
>>  loady    (load u-boot.sb with ymodem)
>>  mmc write ${loadaddr} 0 ${filesize}
>> but at reboot nothing happens.
>> Is it possible?
>
> You should flash u-boot.sd, not u-boot.sb.
>
> Please check doc/README.mxs on how to generate u-boot.sd.


Hi Fabio,
I did the following steps on the host
$ make u-boot.sb
$ ./tools/mxsboot sd u-boot.sb u-boot.sd

then in u-boot
> loady    (load u-boot.sd with ymodem)
> mmc write ${loadaddr} 0 ${filesize}

but at reboot no output on serial port.
Maybe do I need to format the eMMC before?

Thank you
--
Marco

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] How to program u-boot in eMMC/MMC on iMX
  2015-02-23 14:57   ` Marco Cavallini
@ 2015-02-23 15:03     ` Otavio Salvador
  2015-02-23 15:16       ` Marco Cavallini
  0 siblings, 1 reply; 7+ messages in thread
From: Otavio Salvador @ 2015-02-23 15:03 UTC (permalink / raw)
  To: u-boot

On Mon, Feb 23, 2015 at 11:57 AM, Marco Cavallini
<cavallini.koan@gmail.com> wrote:
> 2015-02-23 15:20 GMT+01:00 Fabio Estevam <festevam@gmail.com>:
>> Hi Marco,
>>
>> On Mon, Feb 23, 2015 at 11:11 AM, Marco Cavallini
>> <cavallini.koan@gmail.com> wrote:
>>> Hello,
>>>
>>> I'd like to know if exists a method to store in eMMC a bootolader
>>> without kobs-ng, so without using linux, but simply running a command
>>> from u-boot.
>>> I booted my i.MX28 system (I have the same question for i.MX6 as well)
>>> using the u-boot.sb (u-boot-2015.01 with SPL) file loaded with mxsldr
>>> (or imx-bootlets).
>>> Now I am trying to save it in eMMC with the following command
>>>  loady    (load u-boot.sb with ymodem)
>>>  mmc write ${loadaddr} 0 ${filesize}
>>> but at reboot nothing happens.
>>> Is it possible?
>>
>> You should flash u-boot.sd, not u-boot.sb.
>>
>> Please check doc/README.mxs on how to generate u-boot.sd.
>
>
> Hi Fabio,
> I did the following steps on the host
> $ make u-boot.sb
> $ ./tools/mxsboot sd u-boot.sb u-boot.sd
>
> then in u-boot
>> loady    (load u-boot.sd with ymodem)
>> mmc write ${loadaddr} 0 ${filesize}
>
> but at reboot no output on serial port.
> Maybe do I need to format the eMMC before?

The eMMC is handled as a SD Card so yes you need the partitioning, the
label and all same things you need in the SD. Check the README about
the partitioning details.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] How to program u-boot in eMMC/MMC on iMX
  2015-02-23 15:03     ` Otavio Salvador
@ 2015-02-23 15:16       ` Marco Cavallini
  2015-02-23 15:19         ` Otavio Salvador
  0 siblings, 1 reply; 7+ messages in thread
From: Marco Cavallini @ 2015-02-23 15:16 UTC (permalink / raw)
  To: u-boot

2015-02-23 16:03 GMT+01:00 Otavio Salvador <otavio@ossystems.com.br>:
> On Mon, Feb 23, 2015 at 11:57 AM, Marco Cavallini
> <cavallini.koan@gmail.com> wrote:
>> 2015-02-23 15:20 GMT+01:00 Fabio Estevam <festevam@gmail.com>:
>>> Hi Marco,
>>>
>>> On Mon, Feb 23, 2015 at 11:11 AM, Marco Cavallini
>>> <cavallini.koan@gmail.com> wrote:
>>>> Hello,
>>>>
>>>> I'd like to know if exists a method to store in eMMC a bootolader
>>>> without kobs-ng, so without using linux, but simply running a command
>>>> from u-boot.
>>>> I booted my i.MX28 system (I have the same question for i.MX6 as well)
>>>> using the u-boot.sb (u-boot-2015.01 with SPL) file loaded with mxsldr
>>>> (or imx-bootlets).
>>>> Now I am trying to save it in eMMC with the following command
>>>>  loady    (load u-boot.sb with ymodem)
>>>>  mmc write ${loadaddr} 0 ${filesize}
>>>> but at reboot nothing happens.
>>>> Is it possible?
>>>
>>> You should flash u-boot.sd, not u-boot.sb.
>>>
>>> Please check doc/README.mxs on how to generate u-boot.sd.
>>
>>
>> Hi Fabio,
>> I did the following steps on the host
>> $ make u-boot.sb
>> $ ./tools/mxsboot sd u-boot.sb u-boot.sd
>>
>> then in u-boot
>>> loady    (load u-boot.sd with ymodem)
>>> mmc write ${loadaddr} 0 ${filesize}
>>
>> but at reboot no output on serial port.
>> Maybe do I need to format the eMMC before?
>
> The eMMC is handled as a SD Card so yes you need the partitioning, the
> label and all same things you need in the SD. Check the README about
> the partitioning details.
>
> --
> Otavio Salvador                             O.S. Systems
> http://www.ossystems.com.br        http://code.ossystems.com.br
> Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


Hi Otavio,
so I need to clarify my question:

Does exists a method to store a u-boot bootolader in an unpartitioned
unformatted eMMC (without kobs-ng, so without using linux), but simply
running a command from u-boot?

So in case I have only USB-OTG as connection method to my board I am
forced to use MfgTools?

TIA
--
Marco

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] How to program u-boot in eMMC/MMC on iMX
  2015-02-23 15:16       ` Marco Cavallini
@ 2015-02-23 15:19         ` Otavio Salvador
  2015-02-23 16:21           ` Marek Vasut
  0 siblings, 1 reply; 7+ messages in thread
From: Otavio Salvador @ 2015-02-23 15:19 UTC (permalink / raw)
  To: u-boot

On Mon, Feb 23, 2015 at 12:16 PM, Marco Cavallini
<cavallini.koan@gmail.com> wrote:
> 2015-02-23 16:03 GMT+01:00 Otavio Salvador <otavio@ossystems.com.br>:
...
> Does exists a method to store a u-boot bootolader in an unpartitioned
> unformatted eMMC (without kobs-ng, so without using linux), but simply
> running a command from u-boot?
>
> So in case I have only USB-OTG as connection method to my board I am
> forced to use MfgTools?

Not in U-Boot code, up to now.

You could add fastboot, dfu or thor. So it would be possible.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] How to program u-boot in eMMC/MMC on iMX
  2015-02-23 15:19         ` Otavio Salvador
@ 2015-02-23 16:21           ` Marek Vasut
  0 siblings, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2015-02-23 16:21 UTC (permalink / raw)
  To: u-boot

On Monday, February 23, 2015 at 04:19:39 PM, Otavio Salvador wrote:
> On Mon, Feb 23, 2015 at 12:16 PM, Marco Cavallini
> 
> <cavallini.koan@gmail.com> wrote:
> > 2015-02-23 16:03 GMT+01:00 Otavio Salvador <otavio@ossystems.com.br>:
> ...
> 
> > Does exists a method to store a u-boot bootolader in an unpartitioned
> > unformatted eMMC (without kobs-ng, so without using linux), but simply
> > running a command from u-boot?
> > 
> > So in case I have only USB-OTG as connection method to my board I am
> > forced to use MfgTools?
> 
> Not in U-Boot code, up to now.
> 
> You could add fastboot, dfu or thor. So it would be possible.

Or use USB mass storage support in U-Boot (UMS) to export the eMMC to the
host PC as a regular USB stick.

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-23 16:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-23 14:11 [U-Boot] How to program u-boot in eMMC/MMC on iMX Marco Cavallini
2015-02-23 14:20 ` Fabio Estevam
2015-02-23 14:57   ` Marco Cavallini
2015-02-23 15:03     ` Otavio Salvador
2015-02-23 15:16       ` Marco Cavallini
2015-02-23 15:19         ` Otavio Salvador
2015-02-23 16:21           ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox