From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EGGaC-0007Nz-LC for garchives@archives.gentoo.org; Fri, 16 Sep 2005 13:48:53 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j8GDhZgq030447; Fri, 16 Sep 2005 13:43:35 GMT Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j8GDhYTQ007048 for ; Fri, 16 Sep 2005 13:43:35 GMT Received: from steiner.cc.vt.edu (IDENT:mirapoint@evil-steiner.cc.vt.edu [10.1.1.14]) by lennier.cc.vt.edu (8.12.11/8.12.11) with ESMTP id j8GDmdqI022218 for ; Fri, 16 Sep 2005 09:48:39 -0400 Received: from [128.173.184.73] (gs4073.geos.vt.edu [128.173.184.73]) by steiner.cc.vt.edu (MOS 3.6.4-CR) with ESMTP id DYA60558; Fri, 16 Sep 2005 09:48:35 -0400 (EDT) Message-ID: <432ACD32.5030209@gentoo.org> Date: Fri, 16 Sep 2005 09:48:34 -0400 From: "Stephen P. Becker" User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050807) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-mips@gentoo.org Reply-to: gentoo-mips@lists.gentoo.org MIME-Version: 1.0 To: gentoo-mips@lists.gentoo.org Subject: Re: [gentoo-mips] bootstrap.sh on asus wl500g References: <20050916133443.GA1024@ices.utexas.edu> In-Reply-To: <20050916133443.GA1024@ices.utexas.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 2b4b0567-ae60-4aae-8fd4-1cfb450e02a0 X-Archives-Hash: ed88a47190317caef7820bed1d7fd836 Ok, there are several serious problems with what you are trying to do... > Hi, > > I have an asus wl500g (same chip as the linksys wrt54g). Actually, it isn't identical, but that doesn't really matter... > I put openwrt > on it and chrooted into a > experimental/mips/embedded/stages/stage1-mipsel-uclibc-2005.0.tar.bz2 > tarball, with the idea of changing the profile and rebuiling. Ok, stop right here. Do you realize how little memory this device has? You would be lucky to even be able to build some of the more simple programs without some sort of ICE or out of memory error. > I set up make.conf like so: > > CFLAGS="-Os -pipe -march=mips1" You would really want -march=mips32 anyway. > CHOST="mipsel-unknown-linux-gnu" > > and the profile like so: > > make.profile -> /usr/portage/profiles/default-linux/mips/2005.0 That is not even close to the correct profile for uclibc. You really want /usr/portage/profiles/uclibc/mips > then ran scripts/bootstrap.sh You'll be extremely lucky if this ever works on that device...again, not enough memory. > gnuconfig had some bus errors, but didn't stop the script: This is probably telling that you have some serious issues... *snip* > and glibc failed during configure: > > checking for suffix of object files... configure: error: cannot compute > suffix of object files: cannot compile > See `config.log' for more details. > > !!! ERROR: sys-libs/glibc-2.3.5 failed. > !!! Function glibc_do_configure, Line 938, Exitcode 1 > !!! failed to configure glibc Uhhh...you realize you can't install glibc on a uclibc userland, right? This is from selecting the wrong profile, aside from the fact that glibc even doesn't have a snowballs chance in hell of building on such a device. > any ideas? I see the mips project website was just updated today, and I > just realized last night that the cobalt images are little endian (the > asus wl500g is little endian), so I'll try chrooting into one of those > images next. That is an even worse idea. The cobalt stages are optimized for -march=mips4, which probably won't run on that cpu. Not only that, but they are glibc based, which is way too heavy to run on a wl500g The moral of this story is, a broadcom based router is not good for using gentoo in the capacity you are trying to. What you *really* want to do is emerge crossdev on a nice fast box, use that to build a crosstoolchain, and cross-compile a custom userland to run on your router. -Steve -- gentoo-mips@gentoo.org mailing list