1 |
Anthony, |
2 |
|
3 |
I have looked at this in my work and at home. Work we |
4 |
have used the 8248 and 8245. Home, I am working on a |
5 |
small x86 based system. Gentoo will work for your |
6 |
target... but, you really want to think about if you |
7 |
should. Think long term support. Also, think about |
8 |
the build system, stability. In working on my own |
9 |
mini x86 based linux distro based on Gentoo... So, |
10 |
far... you can do it. You can cross compile it, but, |
11 |
there are still some packages that don't seem to work |
12 |
just yet. You want the base layout lite. And you |
13 |
want a system based on Busybox for the size you are |
14 |
targeting. Check out the portage profiles: |
15 |
|
16 |
/usr/portage/profiles/embedded |
17 |
/usr/portage/profiles/uclibc |
18 |
/usr/portage/profiles/default-ppc-2004.3 |
19 |
|
20 |
I am now using the uclibc for my x86 project. I used |
21 |
the default-ppc-2004.3 to build a 8248 rootfs. The |
22 |
size was way too big to be burned into the flash |
23 |
though. |
24 |
|
25 |
You could come up with your own custom profile, inject |
26 |
any packages you need and then you could use portage. |
27 |
|
28 |
OR |
29 |
|
30 |
You could use something like Debian to build a mini |
31 |
root and strip it of all cruft. (hint, hint) You |
32 |
could even do this on an x86 system and then write a |
33 |
few scripts to fix the post scripts from the deb |
34 |
install. (hint hint) Then just sync the built root to |
35 |
another directory, clean the clone and build a jffs2 |
36 |
image. |
37 |
|
38 |
OR |
39 |
|
40 |
You can go the full custom route via LFS or your own |
41 |
home grown. |
42 |
|
43 |
|
44 |
I have learned quite a bit since I started with ppc |
45 |
embedded. I'm still learning with mini x86. |
46 |
|
47 |
Q |
48 |
|
49 |
|
50 |
|
51 |
--- Anthony Russello <arussello@××××××.com> wrote: |
52 |
> Hi, |
53 |
> |
54 |
> Thanks for the reply, I'm sorry it took so long to |
55 |
> get back to you, but |
56 |
> I never received an email to me until the digest |
57 |
> caught up. |
58 |
> |
59 |
> We're working on a small NAS-like device. Very |
60 |
> light weight, and |
61 |
> targetting to consumers rather than businesses, so |
62 |
> everything will be |
63 |
> pretty simple. |
64 |
> |
65 |
> I'm currently working on getting a 2.6.x kernel up |
66 |
> on the early boards. |
67 |
> Once that's up and running, I'll be working on the |
68 |
> rootfs. I've been |
69 |
> doing a lot of checking as far as dependencies go, |
70 |
> and I've got the |
71 |
> libraries narrowed down substantially. We're also |
72 |
> using the 2.2.x samba |
73 |
> branch, since the 3.x branch requires a large number |
74 |
> of libraries that |
75 |
> we don't want to include. |
76 |
> |
77 |
> I've been ensuring that every binary going into the |
78 |
> image is stripped so |
79 |
> far as well. |
80 |
> |
81 |
> I guess I was kind of hoping that the gentoo |
82 |
> embedded group was working |
83 |
> with small root filesystem sizes, and whether or not |
84 |
> there was a base |
85 |
> layout package that would simply contain things like |
86 |
> pre-populated /dev, |
87 |
> and other absolutely essential sources like that. |
88 |
> |
89 |
> Are there any plans for such a package? Perhaps |
90 |
> with makefiles that |
91 |
> would leverage cross compilers to create a base |
92 |
> system for target X on |
93 |
> host Y? |
94 |
> |
95 |
> It would make embedded development incredibly easy |
96 |
> with cross compilers |
97 |
> and base layout packages of that sort ready to be |
98 |
> emerged into /opt or |
99 |
> something like that. |
100 |
> |
101 |
> Thanks, |
102 |
> Anthony |
103 |
> |
104 |
> On Tue, 2005-04-12 at 08:29 -0700, Quentin Arce |
105 |
> wrote: |
106 |
> > |
107 |
> > One thing you may want to keep in mind when |
108 |
> building |
109 |
> > your system is to make sure all bins are stripped. |
110 |
> |
111 |
> > Also, some embedded companies have tools which |
112 |
> > determine which libs are being used on the system |
113 |
> and |
114 |
> > remove all others from the final image. Just to |
115 |
> > squeeze that last bit of space out. |
116 |
> > |
117 |
> > Also, don't forget to remove all other un-needed |
118 |
> > files. Like /var/db, all man, etc. |
119 |
> > |
120 |
> > Q |
121 |
> > |
122 |
> > |
123 |
> > --- Anthony Russello <arussello@××××××.com> wrote: |
124 |
> > > Hi All, |
125 |
> > > |
126 |
> > > I'm working on a base layout for an embedded |
127 |
> system |
128 |
> > > based on the |
129 |
> > > Freescale 8241 chip, and was wondering what |
130 |
> might be |
131 |
> > > available in the |
132 |
> > > world of gentoo for that purpose. |
133 |
> > > |
134 |
> > > Here are the requirements we've laid out: |
135 |
> > > |
136 |
> > > Read/write /etc (jffs2 filesystem) |
137 |
> > > /var is a ramdisk, /tmp is a symlink to /var/tmp |
138 |
> > > / is read only otherwise (cramfs filesystem) |
139 |
> > > |
140 |
> > > As far as apps, we basically just need: |
141 |
> > > |
142 |
> > > boa |
143 |
> > > busybox |
144 |
> > > samba 2.2.x (samba 3 requires additional |
145 |
> libraries |
146 |
> > > in the final image) |
147 |
> > > sysvinit |
148 |
> > > sqlite |
149 |
> > > quota-tools |
150 |
> > > sys-utils |
151 |
> > > e2fsprogs |
152 |
> > > |
153 |
> > > Now, we created one a while back using an axis |
154 |
> chip, |
155 |
> > > and they had a full |
156 |
> > > development package that we just modified as |
157 |
> needed. |
158 |
> > > In the end we |
159 |
> > > wound up with an image that had about 2 MB left |
160 |
> over |
161 |
> > > of the eight. |
162 |
> > > RIght now, we're kind of starting fresh with an |
163 |
> 8241 |
164 |
> > > based system, so I |
165 |
> > > wanted to get some input on what recommendations |
166 |
> you |
167 |
> > > might have. |
168 |
> > > |
169 |
> > > I've already been playing around with a custom |
170 |
> thing |
171 |
> > > from the ground up. |
172 |
> > > But just in case, I'd like to see if there is |
173 |
> > > something else we could |
174 |
> > > look into. |
175 |
> > > |
176 |
> > > I've been using gentoo for quite some time now |
177 |
> > > (since the 1.4 days) but |
178 |
> > > I haven't been following the gentoo embedded |
179 |
> list |
180 |
> > > for the most part. |
181 |
> > > |
182 |
> > > Cheers, |
183 |
> > > Anthony |
184 |
> > > |
185 |
> > > -- |
186 |
> > > gentoo-embedded@g.o mailing list |
187 |
> > > |
188 |
> > > |
189 |
> > |
190 |
> > |
191 |
> > |
192 |
> > __________________________________________________ |
193 |
> > Do You Yahoo!? |
194 |
> > Tired of spam? Yahoo! Mail has the best spam |
195 |
> protection around |
196 |
> > http://mail.yahoo.com |
197 |
> > -- |
198 |
> > gentoo-embedded@g.o mailing list |
199 |
> |
200 |
> -- |
201 |
> gentoo-embedded@g.o mailing list |
202 |
> |
203 |
> |
204 |
|
205 |
__________________________________________________ |
206 |
Do You Yahoo!? |
207 |
Tired of spam? Yahoo! Mail has the best spam protection around |
208 |
http://mail.yahoo.com |
209 |
-- |
210 |
gentoo-embedded@g.o mailing list |