From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2130 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: microblaze: big endian or little endian (or both)? Date: Tue, 16 Oct 2012 21:18:13 -0700 Message-ID: <20121016211813.c8aaacb4.idunham@lavabit.com> References: <20121016200541.b68eef72.idunham@lavabit.com> <20121017031344.GY254@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350447515 13001 80.91.229.3 (17 Oct 2012 04:18:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Oct 2012 04:18:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2131-gllmg-musl=m.gmane.org@lists.openwall.com Wed Oct 17 06:18:38 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TOL5W-0002mt-2V for gllmg-musl@plane.gmane.org; Wed, 17 Oct 2012 06:18:34 +0200 Original-Received: (qmail 3735 invoked by uid 550); 17 Oct 2012 04:18:26 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3727 invoked from network); 17 Oct 2012 04:18:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=4ioqVvnKlB49SnXObbCXbgaq0xeitRiIyjGr1qWVYR3B/z0w9IVyMbqrYZ2pQpwnMxy6kU2woy+LbWzCiZgsc0HhKUSE+5WfTlrVZy4UQx5Edli6sJ6bvaTmTZDs0771IWjX+5m/PkdvXDzehVW2QaTL20rimYvtR2+w66Trpzc=; h=Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <20121017031344.GY254@brightrain.aerifal.cx> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:2130 Archived-At: On Tue, 16 Oct 2012 23:13:44 -0400 Rich Felker wrote: > On Tue, Oct 16, 2012 at 08:05:41PM -0700, Isaac Dunham wrote: > > I'm trying to get stuff set up to run microblaze musl (first user > > emulation, then system emulation if all goes well). > > > > Anyhow, I'm wondering about whether to just use microblaze or if > > microblazeel should work also (configure only says microblaze-* > > which seems to imply that only the BE version is supported). > > I don't see any reason little endian wouldn't work; I wasn't aware > that it even existed. Aside from some workarounds for kernel struct > layout and other ugly ABI issues on some archs, musl is completely > endian-agnostic. OK, thanks! Somehow this gets me wondering about the endian.h issue... #set ENDIAN in the first round to the per-arch default case "$target" in *el-* | *el) ENDIAN=BE ;; *eb-* | *eb) ENDIAN=LE ;; *) ;; #Just use the default endianness esac then, have ENDIAN determine whether to use the big-endian or little-endian header: ln -s arch/$ENDIAN/endian.h include/bits/endian.h clean: cleanendian cleanendian: rm include/bits/endian.h > > Other than that, I have a few random thoughts on microblaze systems > > to experiment with: > > > > 1. The xldk git repos have initrds for microblaze; if you inject > > musl binaries in there, how does that work in qemu? > > Haven't tried. I'd really rather figure out how to get rootfs-on-9p > working and use that for all my qemu-system experimentation. Yikes. That might take a while... > > 2. Apparently it's possible (just barely) to get a Linux-capable > > microblaze design onto a Spartan 6, which runs ~$90... > > Nice. Any idea what the performance is like? According to http://billauer.co.il/blog/2011/09/dma-capture-frame-grabbing-xilinx-fpga-linux-microblaze/ it's 70-100mhz effectively; microblaze seems to be extremely slow. And yet they stuck a gigabit ethernet port on it. -- Isaac Dunham