1 |
Hello, |
2 |
|
3 |
On Sunday 01 November 2009 14:44:23 Peter Stuge wrote: |
4 |
> > Is uClinux the proper alternative for this |
5 |
> |
6 |
> In general it is the proper alternative for machines without MMU. |
7 |
> |
8 |
> > or are the mips kernels available in the portage tree patched to |
9 |
> > cover this ? |
10 |
> |
11 |
> In theory that's possible, but I doubt it. |
12 |
|
13 |
Thanks for your hints. |
14 |
|
15 |
As far as i understand the cross compile system - the uclibc built by crossdev |
16 |
is the one the compiled software for the target to be linked against. |
17 |
Resulting from this the uclibc must reflect the target system (here |
18 |
especially: no-mmu). |
19 |
Hope i am right here. |
20 |
|
21 |
So i tried to do this using the savedconfig use-flag. I broke to compilation |
22 |
process while it is compiling uclibc. Then i did a "make menuconfig" (in |
23 |
/var/tmp/...) and disabled MMU and (as followup) the target file format to |
24 |
"STATIC FLAT" (i assume PIE is also not possible because of the missing MMU). |
25 |
|
26 |
At restarting the crossdev execution i got an error while installing uclibc. |
27 |
The compile step of the ebuild went well. At the installation stage it |
28 |
complains that it is missing "utils/ldconfig.host" when doing newbin. This can |
29 |
be seen in the ebuild in the src_install step. The offending line is |
30 |
newbin utils/ldconfig.host ${CTARGET}-ldconfig | die |
31 |
|
32 |
So this file seems not to be generated during the uclibc built process when |
33 |
PIE is off. This applies to ldd.host also. |
34 |
|
35 |
What to do now? |
36 |
Skip this files in the ebuild ? |
37 |
|
38 |
Or am i doing too much and the uclibc code is clever enough to disable mmu |
39 |
logic when the taget it is running on doesn't have it ? |
40 |
|
41 |
regards |
42 |
Petric |