[U-Boot] How to program u-boot in eMMC/MMC on iMX

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

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.

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

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.

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

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.

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
participants (4)
-
Fabio Estevam
-
Marco Cavallini
-
Marek Vasut
-
Otavio Salvador