1 |
On Tue, Jul 31, 2012 at 7:30 PM, Luca Barbato <lu_zero@g.o> wrote: |
2 |
> On 07/31/2012 05:45 PM, Jing Huang wrote: |
3 |
>> Hi, |
4 |
>> |
5 |
>> == Progress of last Week == |
6 |
>> |
7 |
>> In the last week, my qemu-linux patches had been reviewed by the qemu |
8 |
>> community. |
9 |
>> |
10 |
>> I investigated how to config dynamic libraries in lxc container.: |
11 |
>> |
12 |
>> 1. mount host's /lib /usr/lib /usr/local/lib to lxc container |
13 |
>> |
14 |
>> 2. modify lxc container's ld.so.conf to link these libs. |
15 |
>> |
16 |
>> 3. ldconfig -Nf /etc/ld.so.conf to make settings available. (The |
17 |
>> ld.so.cache will include arm libraries by default. How to ignore |
18 |
>> them?) |
19 |
>> |
20 |
>> I am still debugging this method. |
21 |
>> |
22 |
>> Additionally, I found I must execute "qemu-static-i386 x86-program" |
23 |
>> in lxc container to make it run. Is it right? |
24 |
> |
25 |
> No it is wrong, you should call the runtime linker. |
26 |
|
27 |
When I execute x86-program(builded with dynamic libraries) in lxc |
28 |
container, it shows: |
29 |
"bash: x86-program: No such file or directory" |
30 |
|
31 |
Obviously, the container has not called the right dynamic |
32 |
linker(ld-linux.so) to interpret the x86-program. |
33 |
Maybe I could register this linker or the linker wrap to |
34 |
/proc/sys/fs/binfmt_misc ? |
35 |
|
36 |
> |
37 |
>> == Plans for this week == |
38 |
>> |
39 |
>> 1. Still investigate dynamic libraries configure. |
40 |
> |
41 |
> It will take probably more time. |
42 |
> |
43 |
>> 2. wait for vapier's help. If it is possible, would you offer me the |
44 |
>> rough tech roadmap of patching crossdev and/or the toolchain eclass |
45 |
>> you mentioned last letter? |
46 |
> |
47 |
> First let's try to wrap up what we have now available and get more |
48 |
> people trying it =) That means document all the steps in the wiki and |
49 |
> get voluteers to try them. |
50 |
|
51 |
OK. I am doing it. |
52 |
|
53 |
> |
54 |
> lu |
55 |
> |
56 |
> -- |
57 |
> |
58 |
> Luca Barbato |
59 |
> Gentoo/linux |
60 |
> http://dev.gentoo.org/~lu_zero |
61 |
> |