From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-mips+bounces-380-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1QtnSi-0001ya-08
	for garchives@archives.gentoo.org; Wed, 17 Aug 2011 21:15:46 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 4648221C092;
	Wed, 17 Aug 2011 21:15:34 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 14B3621C092
	for <gentoo-mips@lists.gentoo.org>; Wed, 17 Aug 2011 21:15:34 +0000 (UTC)
Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com [209.85.212.53])
	(using TLSv1 with cipher RC4-SHA (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: mattst88)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 652281B4011
	for <gentoo-mips@lists.gentoo.org>; Wed, 17 Aug 2011 21:15:33 +0000 (UTC)
Received: by vws13 with SMTP id 13so1247449vws.40
        for <gentoo-mips@lists.gentoo.org>; Wed, 17 Aug 2011 14:15:31 -0700 (PDT)
Received: by 10.52.20.173 with SMTP id o13mr1576824vde.21.1313615731058; Wed,
 17 Aug 2011 14:15:31 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-mips@lists.gentoo.org>
List-Help: <mailto:gentoo-mips+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-mips+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-mips+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-mips.gentoo.org>
X-BeenThere: gentoo-mips@lists.gentoo.org
Reply-to: gentoo-mips@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.52.165.101 with HTTP; Wed, 17 Aug 2011 14:15:11 -0700 (PDT)
In-Reply-To: <20110817203508.GC4105@alumni-linux.ccs.neu.edu>
References: <20110817203508.GC4105@alumni-linux.ccs.neu.edu>
From: Matt Turner <mattst88@gentoo.org>
Date: Wed, 17 Aug 2011 17:15:11 -0400
Message-ID: <CAEdQ38Es8D=iiAYA7-_dRownNLvSB5egZt3xMPY_rW-gOUBmXw@mail.gmail.com>
Subject: Re: [gentoo-mips] SGI O2 kernel binary that will work w/ Matt
 Turner's stages?
To: gentoo-mips@lists.gentoo.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 60c95072e2acec528984d31824d843b6

On Wed, Aug 17, 2011 at 4:35 PM, Jim Faulkner <jfaulkne@ccs.neu.edu> wrote:
> I'm trying to get gentoo going on an SGI O2. =A0I've booted into the
> Gentoo/MIPS livecd and installed Matt Turner's stage3-mips4_multilib
> stage onto my hard disk. =A0I can chroot into it and run some commands,
> but "ls" gives an "unknown error," and emerge doesn't work, presumably
> because the kernel on the livecd is too old.
>
> I setup as much as I could from the livecd, hoping to install Debian's
> IP32 kernel from the livecd, since arcload is available there. =A0However=
,
> Debian's IP32 kernels are 64-bit ELF. =A0When I try to boot it with
> sashARC, it tells me that it is not 32-bit and refuses to load it. =A0Whe=
n
> I try to boot it with sash64, it tells me "relocation failed."
>
> Does anybody have a kernel and modules for an SGI O2 that works with
> Matt's stages? =A0If so, would you be able to put it where I can download
> it? :)
>
> On a related note, how does Debian get arcload to boot its 64-bit kernel
> on an IP32 machine?

Hi Jim!

Right, the problem with `ls` is an incompatibility between old kernels
(older than 2.6.36) and new glibc built against newer kernel headers.
I've built an O2-compatible kernel (version 3.1.0-r2~) and put it
here: http://dev.gentoo.org/~mattst88/sgi-o2/

I haven't tested it, so if you run into trouble, please let me know
and I'll make some changes.

I'm very glad to see someone trying to use my stages. Please note that
before you rebuild gcc, you should patch
/usr/portage/eclass/toolchain.eclass with the attached patch in this
bug report: https://bugs.gentoo.org/show_bug.cgi?id=3D358149

I'm not sure, but perhaps the problem about sashARCS/sash64 is fixed
by using the vmlinux.32 I posted?

You can probably get help faster in the #gentoo-mips IRC channel on
Freenode as well. I'd be happy to help.

Thanks, and let me know how it goes,
Matt