linux-mips
[Top] [All Lists]

Re: custom kernel on lemote-3a-itx (Loongson-3A) crashes in userspace

To: Huacai Chen <chenhuacai@gmail.com>
Subject: Re: custom kernel on lemote-3a-itx (Loongson-3A) crashes in userspace
From: Mike Frysinger <vapier@gentoo.org>
Date: Thu, 26 Feb 2015 03:14:25 -0500
Cc: Linux MIPS Mailing List <linux-mips@linux-mips.org>
In-reply-to: <CAAhV-H5+kQm_qAz7DLV4Rk9EqB4xJjmu1NV7kKd46aneKFZO-A@mail.gmail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20150219194617.GT544@vapier> <CAAhV-H5+kQm_qAz7DLV4Rk9EqB4xJjmu1NV7kKd46aneKFZO-A@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
On 26 Feb 2015 15:47, Huacai Chen wrote:
> Please try the toolchain here:
> http://dev.lemote.com/files/resource/toolchain/cross-compile/

thanks, but that's kind of dodgy and kind of defeats what i'm going for ;)
 - looks like binary-only
 - they're x86_64 binaries (i'm doing everything native here, so mips/n32)
 - is pretty old (gcc-4.5 / gcc-4.6 / binutils-2.21 / binutils-2.22)

that said, i installed Debian/mipsel(o32) into a chroot.  building with the 
same 
sources & configs yielded a kernel that seems to be running OK -- i'm on 
mainline linux-3.19 now.  it too has an old toolchain: binutils-2.22 and 
gcc-4.6.4.  i guess there's a miscompilation / the kernel sources have problems 
with newer gcc versions.

installing older binutils in Gentoo was pretty easy, but trying to do gcc-4.6 
ran into an ICE while bootstrapping.  but at least it'll be easy to rule out 
weird assembler/linker problems.

might try to put together a script to rebuild the objects one-by-one with the 
newer compiler to try and narrow down the problem in the source.
-mike

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>