Gentoo Archives: gentoo-soc

From: Jing Huang <jing.huang.pku@×××××.com>
To: lu_zero@g.o, gentoo-soc@l.g.o
Subject: [gentoo-soc] cross_container_support - progress report #7
Date: Tue, 10 Jul 2012 15:06:07
Message-Id: CAK8mDgrKjP_GUttkoy3_78gZC4=DFMAiGgPyO9nq9L8c6hnR=w@mail.gmail.com
1 Hi,
2
3 == Progress of last Week ==
4
5 In the last week, I continue to debug the lxc script for arm-gentoo
6 container and investigate how to execute x86 program in arm container.
7
8
9 First, I try to fix the ping issues in qemu-user of arm-gentoo
10 container. The patch is attached.
11
12 * The do_setsockopts function in qemu-user does not support SOL_RAW
13 socket which is used in ping program.
14
15 * The recvmsg in main_loop of ping_common.c could not fetch
16 sockaddr_in struct. That is because do_sendrecvmsg in qemu-user does
17 not pass the msg->msg_name to the target.
18 So the ping will show "64 bytes from 0.0.0.0: icmp_req=1 ttl=64 time=1.16 ms".
19
20
21 Second, I am investigating how to execute local gcc toolchain in
22 arm-gentoo container.
23
24 At begging, I want to use ldd to parse each cross-gcc toolchain
25 executable in arm container. Then copy the related libraries to
26 gentoo-arm rootfs and config the ld.so.conf to make cross-gcc running
27 locally.
28
29 Now, I think I could modify the crossdev script and build cross-gcc
30 with LDFLAGS="-static". So the cross-gcc can be executed locally in
31 arm-gentoo container.
32
33
34 I have about one week behind the schedule. I hope I could catch up it
35 as soon as possible.
36
37
38 Jing.

Attachments

File name MIME type
support-to-guest-ping-nettool.patch application/octet-stream

Replies

Subject Author
Re: [gentoo-soc] cross_container_support - progress report #7 Luca Barbato <lu_zero@g.o>