Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Sébastien Bourdelin" <sebastien.bourdelin@savoirfairelinux.com>
To: buildroot@busybox.net
Subject: [Buildroot] SoCkit support question?
Date: Wed, 19 Feb 2014 14:50:02 -0500 (EST)	[thread overview]
Message-ID: <179193548.492145.1392839402433.JavaMail.root@mail> (raw)
In-Reply-To: <940580837.479152.1392839319094.JavaMail.root@mail>

Hi,

I would like to submit the support for the SoCkit from Altera, but i have some questions regarding the bootloader step and need some advices on the best way to handle it.

The SoC combines a hard processing system (HPS) and an FPGA, so the board design can change and the bootloader must provide a preloader.

This preloader is normally generated using the Altera tools (Quartus, Qsys, bsp-editor) and results in source files defining the board that will be used in a patched u-boot from rocketboard (rocketboard is altera i guess).
For more informations on this step, please look at : http://www.rocketboards.org/foswiki/Documentation/PreloaderUbootCustomization

Then the preloader must be sign using an other tool from Altera (mkpimage) that comes with all the Altera dev environment.
Maxime Hadjinlian has done a fork of this tool in GO (https://github.com/maximeh/mkpimage)

If i use the sources from the rocketboard repository (http://git.rocketboards.org/?p=u-boot-socfpga.git;a=summary),
regardless the branch, the preloader generated doesn't work, even if i'm signing it with the mkpimage tool from Altera (may be i'm missing something here).

If i use the Altera tools to generate my preloader using Qsys and an example design from Altera, then use the result sources files that define the u-boot/board/altera/socfpga/*, built u-boot and sign it with the mkpimage from Altera then it works.

So my question is what the best way to provide the support for this board in buildroot ?

Assuming I have not made mistake, if you want to provide support for the bootloader of this board without using any tools from Altera, you must :

- Use the patched u-boot from rocketboard
- Define the board with a sample design, ie patch the sources in u-boot/board/altera/socfpga/*
- Generate the bootloader (u-boot) and preloader (u-boot SPL)
- Sign the preloader with a fork to mkpimage tools (recode the mkpimage from Maxim  Hadjinlian in C ?)

Another approach would be to consider that the end user must provide their bootloader and flash it, the buildroot board config take care of building only Linux and the rootfs.

       reply	other threads:[~2014-02-19 19:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <940580837.479152.1392839319094.JavaMail.root@mail>
2014-02-19 19:50 ` Sébastien Bourdelin [this message]
2014-02-19 20:34   ` [Buildroot] SoCkit support question? Charles Manning
2014-02-20  9:08     ` Maxime Hadjinlian
2014-02-20 21:30       ` Sebastien Bourdelin
2014-02-20 22:24         ` Charles Manning
2014-02-21 11:30           ` Thomas Petazzoni
2014-02-21 15:54             ` Sebastien Bourdelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179193548.492145.1392839402433.JavaMail.root@mail \
    --to=sebastien.bourdelin@savoirfairelinux.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox