public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: Aarch64 kernel with 32bit userspace question
Date: Fri, 10 Feb 2017 13:39:37 +0100	[thread overview]
Message-ID: <6172994.uov8zcY07Z@wuerfel> (raw)
In-Reply-To: <78db1867-9bd2-b1f6-ea3f-86aa08c199f5@denx.de>

On Thursday, February 9, 2017 9:38:41 PM CET Marek Vasut wrote:
> > 
> > The default kernel headers_install will want to place the headers into
> > <includepath>/asm along side <includepath>/asm-generic and
> > <includepath>/linux which is not what modern ARM distros want.
> 
> Thanks for all the help, it at least helped me get a better picture how
> the multilib stuff works on arm/aarch64 .
> 
> It turns out that OE is not yet able to generate multilib sdk, while it
> is able to generate multilib system image. Therefore, while I had two
> different compilers, only one sysroot was installed (aarch64 one) and
> both were pointing into it. The 32bit compiler used the wrong headers,
> so I ran into this issue.  I'll have to drill into the OE further to
> figure out the proper solution.

It seems the support for biarch headers was removed from the kernel
a few years before arm64 got merged: https://lkml.org/lkml/2008/6/30/467

You could still use "make headers_install_all" in place of
"make headers_install" in 
http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/recipes-kernel/linux-libc-headers/linux-libc-headers.inc
but you still have to figure out how to find the right headers,
either by moving the two asm directories to /usr/{arm,aarch64}-linux-gnu/include/asm
or by doing the same trick that we had before the 2008 patch.

	Arnd

  reply	other threads:[~2017-02-10 12:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-09 10:14 Aarch64 kernel with 32bit userspace question Marek Vasut
2017-02-09 10:29 ` Jisheng Zhang
2017-02-09 10:43   ` Marek Vasut
2017-02-09 10:46     ` Jisheng Zhang
2017-02-09 10:51 ` Ard Biesheuvel
2017-02-09 11:14   ` Marek Vasut
2017-02-09 11:24     ` Ard Biesheuvel
2017-02-09 12:25       ` Russell King - ARM Linux
2017-02-09 20:38         ` Marek Vasut
2017-02-10 12:39           ` Arnd Bergmann [this message]
2017-02-18 22:20             ` Marek Vasut

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=6172994.uov8zcY07Z@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@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