All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Errors when compiling uboot for rpi 3
@ 2019-12-05 12:20 Ben Edwards
  2019-12-05 20:36 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Edwards @ 2019-12-05 12:20 UTC (permalink / raw)
  To: buildroot

Hi,

I am very new to buildroot, so I am probably making some fundamental
mistake. I have configured buildroot with the raspberrypi3 defconfig and
then enabled uboot. The diff is

--- configs/raspberrypi3_defconfig	2019-12-04 19:27:02.700303546 +0000
+++ configs/raspberrypi3_defconfig	2019-12-05 11:15:07.073552770 +0000
@@ -1,37 +1,26 @@
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_3"

I am using tag 2019.11 of buildroot. The uboot build log can be found @ https://pastebin.com/J7LagF5V

I've tried a few different bits like varying the uboot version etc, but
nothing seems to help, judging by the errors it seems to be some kind of
architecture mismatch, but I'm really new to the embedded space and
would appreciate all the help I can get.

Best,
Ben

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

* [Buildroot] Errors when compiling uboot for rpi 3
  2019-12-05 12:20 [Buildroot] Errors when compiling uboot for rpi 3 Ben Edwards
@ 2019-12-05 20:36 ` Thomas Petazzoni
  2019-12-09 11:39   ` Arthur COURTEL
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2019-12-05 20:36 UTC (permalink / raw)
  To: buildroot

On Thu, 05 Dec 2019 12:20:09 +0000
Ben Edwards <ben@artfuldodge.io> wrote:

> Hi,
> 
> I am very new to buildroot, so I am probably making some fundamental
> mistake. I have configured buildroot with the raspberrypi3 defconfig and
> then enabled uboot. The diff is
> 
> --- configs/raspberrypi3_defconfig	2019-12-04 19:27:02.700303546 +0000
> +++ configs/raspberrypi3_defconfig	2019-12-05 11:15:07.073552770 +0000

This Buildroot defconfigs builds an ARM 32 bits system for the RaspberryPi.

> @@ -1,37 +1,26 @@
> +BR2_TARGET_UBOOT=y
> +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_3"

This U-Boot configuration apparently builds an ARM 64 bits bootloader
for the RaspberryPi, and therefore uses some assembly code that cannot
build with the ARM 32 compiler built as part of the
raspberrypi3_defconfig.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] Errors when compiling uboot for rpi 3
  2019-12-05 20:36 ` Thomas Petazzoni
@ 2019-12-09 11:39   ` Arthur COURTEL
  2019-12-09 11:43     ` Ben Edwards
  0 siblings, 1 reply; 4+ messages in thread
From: Arthur COURTEL @ 2019-12-09 11:39 UTC (permalink / raw)
  To: buildroot

Hello,
There is a defconfig for uboot rpi3 32b.
Use this to get it:
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_3_32b"
It builds a "uboot.bin" but I didn't tested it.

Best regards,
Arthur

On Thu, Dec 5, 2019 at 9:36 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Thu, 05 Dec 2019 12:20:09 +0000
> Ben Edwards <ben@artfuldodge.io> wrote:
>
> > Hi,
> >
> > I am very new to buildroot, so I am probably making some fundamental
> > mistake. I have configured buildroot with the raspberrypi3 defconfig and
> > then enabled uboot. The diff is
> >
> > --- configs/raspberrypi3_defconfig    2019-12-04 19:27:02.700303546 +0000
> > +++ configs/raspberrypi3_defconfig    2019-12-05 11:15:07.073552770 +0000
>
> This Buildroot defconfigs builds an ARM 32 bits system for the RaspberryPi.
>
> > @@ -1,37 +1,26 @@
> > +BR2_TARGET_UBOOT=y
> > +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_3"
>
> This U-Boot configuration apparently builds an ARM 64 bits bootloader
> for the RaspberryPi, and therefore uses some assembly code that cannot
> build with the ARM 32 compiler built as part of the
> raspberrypi3_defconfig.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] Errors when compiling uboot for rpi 3
  2019-12-09 11:39   ` Arthur COURTEL
@ 2019-12-09 11:43     ` Ben Edwards
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Edwards @ 2019-12-09 11:43 UTC (permalink / raw)
  To: buildroot

Excerpts from Arthur COURTEL's message of December 9, 2019 11:39 am:
> Hello,
> There is a defconfig for uboot rpi3 32b.
> Use this to get it:
> BR2_TARGET_UBOOT_BOARD_DEFCONFIG="rpi_3_32b"
> It builds a "uboot.bin" but I didn't tested it.
> 
> Best regards,
> Arthur
> 

Hi Arthur,

I must apologise, I accidentally replied only to Thomas in my last mail.
I have used the 32b config for pi 3 and can confirm it works (it boots).
There is some weirdness with the hdmi display but it's my understanding
that that's a uboot problem so I won't bother this list with it.

Best,
Ben

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

end of thread, other threads:[~2019-12-09 11:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-05 12:20 [Buildroot] Errors when compiling uboot for rpi 3 Ben Edwards
2019-12-05 20:36 ` Thomas Petazzoni
2019-12-09 11:39   ` Arthur COURTEL
2019-12-09 11:43     ` Ben Edwards

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.