public inbox for gentoo-mips@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Stephen P. Becker" <geoman@gentoo.org>
To: gentoo-mips@lists.gentoo.org
Subject: Re: [gentoo-mips] is gentoo-mips right for me?
Date: Sun, 25 Dec 2005 11:01:43 -0500	[thread overview]
Message-ID: <43AEC267.7080109@gentoo.org> (raw)
In-Reply-To: <43AEB38E.4060800@wpkg.org>

Tomasz Chmielewski wrote:
> I was wondering if gentoo-mips is a right distribution/tool for me.
> 
> Here's the summary what I have and what I want to achieve.
> 
> I am interested in porting apps for wrt54 and similar hardware (they 
> have Broadcom CPUs). When I connect a 2 GB usb-stick to such a device 
> (i.e., to ASUS WL-500g Deluxe or to any other device listed on 
> http://wiki.openwrt.org/TableOfHardware), a small router could turn into 
> a really useful, rock-stable (no moving parts like hard-disk, fan etc.), 
> cheap, small, quiet, multi-purpose device (domain controller, print 
> server, web server etc.).

A good idea...which is already facilitated by openwrt.


> As compiling software on these devices directly isn't really a good 
> idea, at first I thought I'd just cross-compile the software.
> However, very often, cross-compiling is not that easy (sometimes 
> involves lots of patching, which in my case turned out to be duplicating 
> someone's job).

Duplicating...you mean like the work openwrt has already done?


> So I searched the web a bit, and came to a conclusion:
> 
> I have to run gentoo-mips in qemu on my x86 hardware, compile/port apps 
> there, strip the binaries, and move them to these tiny routers.
> 
> Is my thinking correct?

Theoretically, our mipsel uclibc stages would let you do that, except 
that apparently qemu for mips still has problems with userland programs. 
  That and I don't think qemu is particularly fast.


> Will such compiled software compiled on gentoo-mips run on 
> Broadcom-based routers?

If you use the mipsel uclibc stages, and optimize for -march=mips32, sure.


> Or maybe I just should give up this idea, as it's totally wrong from the 
> beginning?

This is really the smartest thing you have said thus far.  Gentoo is 
really not set up to run on these devices.  It is far too heavy to 
directly run on them (they don't have enough RAM, and typically not 
enough disk space), and cross-compiling everything is a pain in the ass. 
  Folks behind distros like openwrt have already done a lot of hard work 
porting apps and making them compile inside of their buildroot environment.


> I could check it myself, but as I failed to run the gentoo-mips livecd 
> in quemu, I'd like to know if I'm doing something reasonable before I 
> invest some time in running gentoo-mips on qemu.

The gentoo-mips livecd is definitely not what you want.  The userland on 
the cd and included kernels are only for big endian SGI hardware.  It 
has no chance of working on anything else.  If I recall, qemu emulates a 
little endian, MIPS 4kc cpu.

-Steve

-- 
gentoo-mips@gentoo.org mailing list



  reply	other threads:[~2005-12-25 16:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-25 14:58 [gentoo-mips] is gentoo-mips right for me? Tomasz Chmielewski
2005-12-25 16:01 ` Stephen P. Becker [this message]
2005-12-25 16:28   ` Tomasz Chmielewski
2005-12-25 18:28     ` Kumba
2005-12-27 12:38       ` Stuart Longland
2006-01-18  2:29       ` ilya_y (sent by Nabble.com)
2006-01-18  5:43         ` Kumba

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=43AEC267.7080109@gentoo.org \
    --to=geoman@gentoo.org \
    --cc=gentoo-mips@lists.gentoo.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