All of lore.kernel.org
 help / color / mirror / Atom feed
* MX28 SD card image with imx-bootlets
@ 2013-05-07 21:47 Jeff Horn
  2013-05-08 12:31 ` Otavio Salvador
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Horn @ 2013-05-07 21:47 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]

Hi,

I have a mx28 based custom board that we are currently using Ptxdist to
build our BSP.  I'm in the process of migrating to Yocto and all is going
well.  I am stuck on the SD card generation.  We have made some changes to
the bootlets so I am using that code base instead of u-boot which is the
default for the mx28evk.  I have the bootlets building fine but the
generated SD card image does not boot.  I copied the generated
machine.sband compressed root file system from the yocto build and
used the FSL
provided mk_mx28_sd script and that card boots fine.  So, I am confident
the bootlets and kernel are building correctly.  We are using a HAB enabled
boot stream and I have the correct linux_ivt.bd file in the build.

The SD card generation in the image_types _fsl.bbclass is created with a
different SD card geometry than what is created by the mk_mx28_sd script.
 Could that be the issue?  Is anyone using the imx-bootlets for a mx28
based board?

I'll continue to look over card generation but thought I would ask.

Thanks in advance for any advice.

Jeff Horn

[-- Attachment #2: Type: text/html, Size: 1392 bytes --]

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

* Re: MX28 SD card image with imx-bootlets
  2013-05-07 21:47 MX28 SD card image with imx-bootlets Jeff Horn
@ 2013-05-08 12:31 ` Otavio Salvador
  2013-05-09  1:41   ` Jeff Horn
  0 siblings, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2013-05-08 12:31 UTC (permalink / raw)
  To: Jeff Horn; +Cc: meta-freescale@yoctoproject.org

On Tue, May 7, 2013 at 6:47 PM, Jeff Horn <jeff@everlook.net> wrote:
> The SD card generation in the image_types _fsl.bbclass is created with a
> different SD card geometry than what is created by the mk_mx28_sd script.
> Could that be the issue?  Is anyone using the imx-bootlets for a mx28 based
> board?

I tested and used the Bootlets in MX23. I think the issue is the '.bd'
file we use. Please check the imx-bootlets recipe, in do_configure. We
may need to have a variable to control the '.bd' file to be used for
the build.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br


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

* Re: MX28 SD card image with imx-bootlets
  2013-05-08 12:31 ` Otavio Salvador
@ 2013-05-09  1:41   ` Jeff Horn
  2013-05-09 11:54     ` Otavio Salvador
  2013-05-09 13:02     ` Daiane Angolini
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Horn @ 2013-05-09  1:41 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 1407 bytes --]

It seems to be related to the HAB.  With the MX28 FSL provides the
mk_mx28_sd script and and a mk_hdr script.  The mk_hdr script generates a
36 byte binary file.  I manually wrote that to the first sector of the boot
partition followed by my bootstream at the second sector and it works.  So,
I think I can get that header script into the build and I'll be good.

Yes, I changed my version of the image class to use the ivt.bd file when
running elftosb.  Once I get this patched in I can post in case others need
it.

Thanks,
Jeff Horn


On Wed, May 8, 2013 at 5:31 AM, Otavio Salvador <otavio@ossystems.com.br>wrote:

> On Tue, May 7, 2013 at 6:47 PM, Jeff Horn <jeff@everlook.net> wrote:
> > The SD card generation in the image_types _fsl.bbclass is created with a
> > different SD card geometry than what is created by the mk_mx28_sd script.
> > Could that be the issue?  Is anyone using the imx-bootlets for a mx28
> based
> > board?
>
> I tested and used the Bootlets in MX23. I think the issue is the '.bd'
> file we use. Please check the imx-bootlets recipe, in do_configure. We
> may need to have a variable to control the '.bd' file to be used for
> the build.
>
> --
> Otavio Salvador                             O.S. Systems
> E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
> Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
>

[-- Attachment #2: Type: text/html, Size: 2167 bytes --]

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

* Re: MX28 SD card image with imx-bootlets
  2013-05-09  1:41   ` Jeff Horn
@ 2013-05-09 11:54     ` Otavio Salvador
  2013-05-09 13:02     ` Daiane Angolini
  1 sibling, 0 replies; 5+ messages in thread
From: Otavio Salvador @ 2013-05-09 11:54 UTC (permalink / raw)
  To: Jeff Horn; +Cc: meta-freescale@yoctoproject.org

On Wed, May 8, 2013 at 10:41 PM, Jeff Horn <jeff@everlook.net> wrote:
> It seems to be related to the HAB.  With the MX28 FSL provides the
> mk_mx28_sd script and and a mk_hdr script.  The mk_hdr script generates a 36
> byte binary file.  I manually wrote that to the first sector of the boot
> partition followed by my bootstream at the second sector and it works.  So,
> I think I can get that header script into the build and I'll be good.
>
> Yes, I changed my version of the image class to use the ivt.bd file when
> running elftosb.  Once I get this patched in I can post in case others need
> it.

Please share your patches so we can try to come up with a good
solution and integrate it properly in the build system.

--
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br


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

* Re: MX28 SD card image with imx-bootlets
  2013-05-09  1:41   ` Jeff Horn
  2013-05-09 11:54     ` Otavio Salvador
@ 2013-05-09 13:02     ` Daiane Angolini
  1 sibling, 0 replies; 5+ messages in thread
From: Daiane Angolini @ 2013-05-09 13:02 UTC (permalink / raw)
  To: Jeff Horn; +Cc: meta-freescale, Otavio Salvador

On 05/08/2013 10:41 PM, Jeff Horn wrote:
> It seems to be related to the HAB.  With the MX28 FSL provides the
> mk_mx28_sd script and and a mk_hdr script.  The mk_hdr script generates
> a 36 byte binary file.  I manually wrote that to the first sector of the
> boot partition followed by my bootstream at the second sector and it
> works.  So, I think I can get that header script into the build and I'll
> be good.
>
> Yes, I changed my version of the image class to use the ivt.bd
> <http://ivt.bd> file when running elftosb.  Once I get this patched in I
> can post in case others need it.

Please, do share your patches. ;)

Daiane



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

end of thread, other threads:[~2013-05-09 13:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-07 21:47 MX28 SD card image with imx-bootlets Jeff Horn
2013-05-08 12:31 ` Otavio Salvador
2013-05-09  1:41   ` Jeff Horn
2013-05-09 11:54     ` Otavio Salvador
2013-05-09 13:02     ` Daiane Angolini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.