1 |
On 23/03/2011 14:54, Kfir Lavi wrote: |
2 |
> Wow James thanks a lot for your insight. |
3 |
> It seems that WR is a giant BSP house, which is good for really preliminary |
4 |
> explorations of new hardware. I can see their benefit for an |
5 |
> organization that |
6 |
> don't really know what is Linux. |
7 |
> The company I work with have a lot of projects. Most of them relay on a |
8 |
> known |
9 |
> and debugged hardware. I'm not intending to change all of their working |
10 |
> way, |
11 |
> but for a start I'm trying to push Gentoo in the project I'm working on, |
12 |
|
13 |
I think the most important question for you is the "best tools for the |
14 |
job". I can't answer that, but just some advocacy for gentoo as an |
15 |
embedded tool, look back at the thread "Some good words for Gentoo |
16 |
Embedded"? |
17 |
|
18 |
I'm only building a small x86 board and I haven't mastered Catalyst so |
19 |
I'm building my root using what is popularly known as "Tiny Gentoo". |
20 |
However, the construction is incredibly simple and roughly my build is a |
21 |
script which wraps something like: |
22 |
|
23 |
ROOT=/builds/my-build emerge baselayout uclibc busybox openresolv\ |
24 |
dhcpcd dropbear your_other_stuff |
25 |
|
26 |
And pretty much that's it, you have a working, bootable, build. Give or |
27 |
take fixing a bunch of bugs in ebuilds which aren't tested on your |
28 |
architecture, this means you now have the entire portage library at your |
29 |
disposal for building your embedded system, and that's likely worth a lot? |
30 |
|
31 |
I think you end up deviating from standard portage quite a bit for |
32 |
embedded and surely lots of folks here have great experience that we |
33 |
don't seem to share much? But I find for example I need a lot of |
34 |
customised /etc/ scripts, or tweaks to init.d files, etc. It's tricky |
35 |
to decide if these should be overlays added at the end, or to patch the |
36 |
ebuild to install them pre-customised. I use a bit of a blend and |
37 |
recently I have started trying to use /etc/portage/patches/cat/pkg |
38 |
(badly documented) as a way to hook into ebuilds without having to patch |
39 |
every version, forever, and lightly tweak the install. |
40 |
|
41 |
|
42 |
I think "tools" are very personal and you can make a case for the tools |
43 |
which fit your needs. However, I guess the point here is only that |
44 |
Gentoo is a very nice tool for embedded and may meet the requirements of |
45 |
many folks have, but who otherwise pass it over for more well known |
46 |
alternatives. |
47 |
|
48 |
Good luck and if you do use Gentoo, please share something on what you |
49 |
learn? |
50 |
|
51 |
Ed W |