* Altera Cyclone V u-boot-spl with meta-altera
@ 2016-01-22 15:18 Usman, Fahad
2016-01-22 15:59 ` Randle, William C
0 siblings, 1 reply; 5+ messages in thread
From: Usman, Fahad @ 2016-01-22 15:18 UTC (permalink / raw)
To: yvanderv, Khem Raj, yocto
[-- Attachment #1: Type: text/plain, Size: 625 bytes --]
Hi, I am using meta-altera layer (https://github.com/kraj/meta-altera)
to build u-boot for Altera Cyclone V socfpga board. Building the
u-boot-socfpga_2013.01.01 recipe does generate the u-boot-spl binary,
but it cannot be directly used on the board as it has to be signed using
Altera's tool "mkpimage" that comes with Altera's toolset (SoC EDS
<http://rocketboards.org/foswiki/view/Documentation/AlteraSoCDevelopmentBoardYoctoGettingStarted#SoC_EDS>).
Is there a way to produce a signed u-boot-spl image during the build,
that can be used directly on the target without using the EDS?
Thanks,
Fahad.
[-- Attachment #2: Type: text/html, Size: 968 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Altera Cyclone V u-boot-spl with meta-altera
2016-01-22 15:18 Altera Cyclone V u-boot-spl with meta-altera Usman, Fahad
@ 2016-01-22 15:59 ` Randle, William C
2016-01-22 20:31 ` Jon Szymaniak
0 siblings, 1 reply; 5+ messages in thread
From: Randle, William C @ 2016-01-22 15:59 UTC (permalink / raw)
To: Usman, Fahad, yvanderv@opensource.altera.com, Khem Raj,
yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]
I’m not aware of a tool outside of Altera’s EDS mkpimage. What I ended up doing was installing a subset of the EDS tools (mkpimage and the jre directory), then tweaked the u-boot spl/Makefile to automatically invoke mkpimage to create the preloader. I also tweaked the meta-altera u-boot-socfpga.inc do_deploy() rules to copy the newly built preloader-mkpimage-* files to the deploy directory.
I’d be happy to send those to you, if you’re interested. Likewise, if you find a third party tool to add the preloader image header, let me know.
-Bill
From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Usman, Fahad
Sent: Friday, January 22, 2016 7:19 AM
To: yvanderv@opensource.altera.com; Khem Raj <raj.khem@gmail.com>; yocto@yoctoproject.org
Subject: [yocto] Altera Cyclone V u-boot-spl with meta-altera
Hi, I am using meta-altera layer (https://github.com/kraj/meta-altera) to build u-boot for Altera Cyclone V socfpga board. Building the u-boot-socfpga_2013.01.01 recipe does generate the u-boot-spl binary, but it cannot be directly used on the board as it has to be signed using Altera's tool "mkpimage" that comes with Altera's toolset (SoC EDS<http://rocketboards.org/foswiki/view/Documentation/AlteraSoCDevelopmentBoardYoctoGettingStarted#SoC_EDS>).
Is there a way to produce a signed u-boot-spl image during the build, that can be used directly on the target without using the EDS?
Thanks,
Fahad.
[-- Attachment #2: Type: text/html, Size: 4512 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Altera Cyclone V u-boot-spl with meta-altera
2016-01-22 15:59 ` Randle, William C
@ 2016-01-22 20:31 ` Jon Szymaniak
2016-01-22 20:33 ` Jon Szymaniak
2016-01-25 16:07 ` Usman, Fahad
0 siblings, 2 replies; 5+ messages in thread
From: Jon Szymaniak @ 2016-01-22 20:31 UTC (permalink / raw)
To: Randle, William C; +Cc: yocto@yoctoproject.org, yvanderv@opensource.altera.com
[-- Attachment #1: Type: text/plain, Size: 805 bytes --]
> Is there a way to produce a signed u-boot-spl image during the build, that
> can be used directly on the target without using the EDS?
>
>
If you upgrade to the U-Boot 2016.01 (or maybe even earlier?), mkimage
actually supports adding the Bootrom signature to the SPL for you. The
current makefile is kind enough to concatenate the U-Boot SPL and its DTS
for you, and then run mkpimage to create an 'spl/u-boot-spl-dts.sfp' file
[1].
If that doesn't work for you, you might find [2] to be useful. The bootrom
"signature" is simple enough to implement in a do_compile_append() or
custom task.
[1]
http://git.denx.de/?p=u-boot.git;a=blob;f=Makefile;h=c9c2cbedc641853c7886ffb023e5798362152899;hb=6905f4d3c7be46fed4859f51f0a8f9a1107c22e7#l1012
[2] https://github.com/maximeh/mkpimage
[-- Attachment #2: Type: text/html, Size: 1448 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Altera Cyclone V u-boot-spl with meta-altera
2016-01-22 20:31 ` Jon Szymaniak
@ 2016-01-22 20:33 ` Jon Szymaniak
2016-01-25 16:07 ` Usman, Fahad
1 sibling, 0 replies; 5+ messages in thread
From: Jon Szymaniak @ 2016-01-22 20:33 UTC (permalink / raw)
To: Randle, William C; +Cc: yocto@yoctoproject.org, yvanderv@opensource.altera.com
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
>
>
> If you upgrade to the U-Boot 2016.01 (or maybe even earlier?), mkimage
> actually supports adding the Bootrom signature to the SPL for you. The
> current makefile is kind enough to concatenate the U-Boot SPL and its DTS
> for you, and then run mkpimage to create an 'spl/u-boot-spl-dts.sfp' file
> [1].
>
> If that doesn't work for you, you might find [2] to be useful. The
> bootrom "signature" is simple enough to implement in a do_compile_append()
> or custom task.
>
> [1]
> http://git.denx.de/?p=u-boot.git;a=blob;f=Makefile;h=c9c2cbedc641853c7886ffb023e5798362152899;hb=6905f4d3c7be46fed4859f51f0a8f9a1107c22e7#l1012
>
> [2] https://github.com/maximeh/mkpimage
>
>
>
Typo correction: u-boot-with-spl-dtb.sfp
[-- Attachment #2: Type: text/html, Size: 1375 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Altera Cyclone V u-boot-spl with meta-altera
2016-01-22 20:31 ` Jon Szymaniak
2016-01-22 20:33 ` Jon Szymaniak
@ 2016-01-25 16:07 ` Usman, Fahad
1 sibling, 0 replies; 5+ messages in thread
From: Usman, Fahad @ 2016-01-25 16:07 UTC (permalink / raw)
To: Jon Szymaniak, Randle, William C
Cc: yocto@yoctoproject.org, yvanderv@opensource.altera.com
On 01/23/2016 01:31 AM, Jon Szymaniak wrote:
>
> If you upgrade to the U-Boot 2016.01 (or maybe even earlier?), mkimage
> actually supports adding the Bootrom signature to the SPL for you.
> The current makefile is kind enough to concatenate the U-Boot SPL and
> its DTS for you, and then run mkpimage to create an
> 'spl/u-boot-spl-dts.sfp' file [1].
Thanks Jon Szymaniak,
I was not aware that the bootrom signature support has been added to the
current version of u-boot. I was able to built the
u-boot-with-spl-dtb.sfp target and the single concatenated u-boot file
worked on Cyclone 5 board right away.
Regards,
Fahad.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-25 16:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 15:18 Altera Cyclone V u-boot-spl with meta-altera Usman, Fahad
2016-01-22 15:59 ` Randle, William C
2016-01-22 20:31 ` Jon Szymaniak
2016-01-22 20:33 ` Jon Szymaniak
2016-01-25 16:07 ` Usman, Fahad
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.