1 |
Tomasz Chmielewski wrote: |
2 |
> I was wondering if gentoo-mips is a right distribution/tool for me. |
3 |
> |
4 |
> Here's the summary what I have and what I want to achieve. |
5 |
> |
6 |
> I am interested in porting apps for wrt54 and similar hardware (they |
7 |
> have Broadcom CPUs). When I connect a 2 GB usb-stick to such a device |
8 |
> (i.e., to ASUS WL-500g Deluxe or to any other device listed on |
9 |
> http://wiki.openwrt.org/TableOfHardware), a small router could turn into |
10 |
> a really useful, rock-stable (no moving parts like hard-disk, fan etc.), |
11 |
> cheap, small, quiet, multi-purpose device (domain controller, print |
12 |
> server, web server etc.). |
13 |
|
14 |
A good idea...which is already facilitated by openwrt. |
15 |
|
16 |
|
17 |
> As compiling software on these devices directly isn't really a good |
18 |
> idea, at first I thought I'd just cross-compile the software. |
19 |
> However, very often, cross-compiling is not that easy (sometimes |
20 |
> involves lots of patching, which in my case turned out to be duplicating |
21 |
> someone's job). |
22 |
|
23 |
Duplicating...you mean like the work openwrt has already done? |
24 |
|
25 |
|
26 |
> So I searched the web a bit, and came to a conclusion: |
27 |
> |
28 |
> I have to run gentoo-mips in qemu on my x86 hardware, compile/port apps |
29 |
> there, strip the binaries, and move them to these tiny routers. |
30 |
> |
31 |
> Is my thinking correct? |
32 |
|
33 |
Theoretically, our mipsel uclibc stages would let you do that, except |
34 |
that apparently qemu for mips still has problems with userland programs. |
35 |
That and I don't think qemu is particularly fast. |
36 |
|
37 |
|
38 |
> Will such compiled software compiled on gentoo-mips run on |
39 |
> Broadcom-based routers? |
40 |
|
41 |
If you use the mipsel uclibc stages, and optimize for -march=mips32, sure. |
42 |
|
43 |
|
44 |
> Or maybe I just should give up this idea, as it's totally wrong from the |
45 |
> beginning? |
46 |
|
47 |
This is really the smartest thing you have said thus far. Gentoo is |
48 |
really not set up to run on these devices. It is far too heavy to |
49 |
directly run on them (they don't have enough RAM, and typically not |
50 |
enough disk space), and cross-compiling everything is a pain in the ass. |
51 |
Folks behind distros like openwrt have already done a lot of hard work |
52 |
porting apps and making them compile inside of their buildroot environment. |
53 |
|
54 |
|
55 |
> I could check it myself, but as I failed to run the gentoo-mips livecd |
56 |
> in quemu, I'd like to know if I'm doing something reasonable before I |
57 |
> invest some time in running gentoo-mips on qemu. |
58 |
|
59 |
The gentoo-mips livecd is definitely not what you want. The userland on |
60 |
the cd and included kernels are only for big endian SGI hardware. It |
61 |
has no chance of working on anything else. If I recall, qemu emulates a |
62 |
little endian, MIPS 4kc cpu. |
63 |
|
64 |
-Steve |
65 |
|
66 |
-- |
67 |
gentoo-mips@g.o mailing list |