mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "r.hieber@pengutronix.de" <r.hieber@pengutronix.de>
To: Kai Che <Kai.Che@mixed-mode.de>
Cc: barebox@lists.infradead.org
Subject: Re: Issues compiling barebox on raspberry pi
Date: Wed, 17 Oct 2018 14:27:00 +0200	[thread overview]
Message-ID: <20181017122700.yl5xavieafvjrhav@pengutronix.de> (raw)
In-Reply-To: <1539777724792.91226@mixed-mode.de>

Hello,

please direct questions to the barebox mailing list (CCed), there are
more people there who can answer you :-)

On Wed, Oct 17, 2018 at 12:02:03PM +0000, Kai Che wrote:
> 
> Dear Mr. Roland Hieber,
> 
> I'm an electrical engineering student currently writing my master thesis and my topic is about enabling secure boot for the barebox bootloader with a TPM 2.0.
> 
> Unfortunetly, I am really struggling with booting barebox on raspberry pi 2 and 3.
> 
> I followed the documentation on: https://www.barebox.org/doc/latest/boards/bcm2835.html#raspberry-pi and did the following steps:
> 
> 1. git clone https://git.pengutronix.de/git/barebox (I tried with master, next and stable/v2018.09 branches)

Unfortunately the documentation was updated before the respective patch
series was merged. If you pull the branch v2018.04.0/topic/rpi from
git://git.pengutronix.de/rhi/barebox, you should get a
barebox-raspberry-pi-3.img. (I think that branch should also be able to
be rebased onto the current master, but I have not tested that.)

The rest of your steps below look fine to me.

 - Roland

> 
> 2. export ARCH=arm and export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
> 
> 3. make rpi_defconfig
> 
> 4. make => generates the images barebox-raspberry-pi-1.img and barebox-raspberry-pi-2.img but no barebox-raspberry-pi-3.img!
> 
> 5. copy barebox-raspberry-pi-2.img to SD card and rename to barebox.img
> 
> 6. create config.txt with kernel=barebox.img enable_uart=1 dtoverlay=pi3-miniuart-bt
> 
> 7. turn on raspberry pi (connected with HDMI and UART) but it gets stuck at the rainbowscreen with no UART output.
> 
> => But booting with the default image from NOOBS is working perfectly.
> 
> My PC is set up with gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04) and I tried with Raspberry Pi 2 Model B, Raspberry Pi Zero W and Raspberry Pi 3 Model B.
> 
> Do you have any idea why it is not working? Am I using a wrong compiler version?
> 
> Could you maybe provide me with a working barebox-raspberry-pi-2.img and barebox-raspberry-pi-3.img for testing?
> 
> Thank you very much.
> 
> Best Regards
> 
> Kai Che
> 
> 
> 
> Mixed Mode GmbH Lochhamer Schlag 17 D-82166 Gräfelfing/München Tel.     +49 / 89 / 89 86 8-200 Fax      +49 / 89 / 89 86 8-222 http://www.mixed-mode.de Mixed Mode - Ihr Partner für Embedded & Software Engineering! ------- Ein Unternehmen der PIXEL Group Mixed Mode GmbH Sitz der Gesellschaft: Gräfelfing Amtsgericht: München HRB 130778 Geschäftsführer: Helmut Süßmuth, Paul Privler ------- Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen.  Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.  Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.  Über das Internet versandte Emails können leicht unter fremden Namen erstellt oder manipuliert werden.  Aus diesem Grunde bitten wir um Verständnis, dass wir zu Ihrem und unserem Schutz die rechtliche Verbindlichkeit der vorstehenden Erklärungen und Äußerungen ausschließen.

-- 
Roland Hieber                     | r.hieber@pengutronix.de     |
Pengutronix e.K.                  | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

       reply	other threads:[~2018-10-17 12:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1539777724792.91226@mixed-mode.de>
2018-10-17 12:27 ` r.hieber [this message]
2018-10-17 12:45   ` Alexander Dahl
2018-10-17 12:46     ` Lucas Stach
2018-10-18 15:07   ` Kai Che

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=20181017122700.yl5xavieafvjrhav@pengutronix.de \
    --to=r.hieber@pengutronix.de \
    --cc=Kai.Che@mixed-mode.de \
    --cc=barebox@lists.infradead.org \
    /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