mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Yazdani, Reyhaneh" <RYazdani@data-modul.com>
Cc: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: Re: build barebox for imx8mqevk
Date: Fri, 11 Jan 2019 12:13:16 +0100	[thread overview]
Message-ID: <20190111111316.i4sbti24awp2in3e@pengutronix.de> (raw)
In-Reply-To: <1b58b623-806b-7e15-7419-7fdd97a85f2a@data-modul.com>

Hi,

On Fri, Jan 11, 2019 at 07:53:15AM +0000, Yazdani, Reyhaneh wrote:
> Hello everyone,
> 
> I am going to build Barebox for my imx8mq evaluation kit and in this process, I
> have faced a problem.
> 
> At first, I used a 32bit-armtoolchain(arm-poky-linux-gnueabi-gcc), which I have
> used for building barebox for imx6..
> $ make imx_v8_defconfig
> $ make
> 
> Then I got this error:
> arm-poky-linux-gnueabi-gcc: error: unrecognized argument in option ‘-mabi=lp64’

This cannot work. You need a 64bit toolchain.

> 
> 
> Then, I used a 64bit-arm-toolchain(aarch64-poky-linux-gcc).
> When I try again:
> 
> $ make imx_v8_defconfig
> Makefile:405: /development/gitarchives/barebox/arch/arm64/Makefile: No such file
> or directory
> make: *** No rule to make target
> '/development/gitarchives/barebox/arch/arm64/Makefile'.  Stop.
> 
> I would appreciate if you help me, how to compile Barebox for imx8.

You have to pass ARCH=arm as environment variable. It seems that you
pass ARCH=arm64.

In barebox both ARM 32bit and 64bit are handled under arch/arm,
nevertheless you have to pass a suitable toolchain.

Regards,
  Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
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:[~2019-01-11 11:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-11  7:53 Yazdani, Reyhaneh
2019-01-11 11:13 ` Sascha Hauer [this message]
2019-01-15 14:42   ` Yazdani, Reyhaneh
2019-01-25 13:16   ` Christian Hemp
2019-01-28  8:58     ` Sascha Hauer

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=20190111111316.i4sbti24awp2in3e@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=RYazdani@data-modul.com \
    --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