How to build sysroot for nohost?

4 views
Skip to first unread message

hkr2000

unread,
Oct 8, 2008, 8:51:12 PM10/8/08
to tmlinux
Hi, there is a sysroot for tmsim, but how to develop a sysroot for
nohost?

Guo Hongruan

unread,
Oct 8, 2008, 9:14:56 PM10/8/08
to tml...@googlegroups.com
This afternoon, I will finish the PlatformDeveloperGettingStart in google
code tmlinux project in which I state this how to.

On Thu, 09 Oct 2008 08:51:12 +0800, hkr2000 <hkr...@gmail.com> wrote:

> Hi, there is a sysroot for tmsim, but how to develop a sysroot for
> nohost?
> >

--
Guo Hongruan, Embedded Linux Consultant
Mobile: +86-0-13484056007
Skype: camelguo
http://www.gulessoft.com

hkr2000

unread,
Oct 8, 2008, 9:49:43 PM10/8/08
to tmlinux
Does the uclibc and busybox is the right source that could be rebuild
the sysroot?

Guo Hongruan

unread,
Oct 8, 2008, 9:52:01 PM10/8/08
to tml...@googlegroups.com
The sysroot is built from linux kernel and uClibc. And do not need to
build busybox.

hkr2000

unread,
Oct 8, 2008, 9:56:54 PM10/8/08
to tmlinux
I know, but a root filesystem needs the busybox.
I try to compile the uclibc from your svn, but there are too many
errors

hkr2000

unread,
Oct 8, 2008, 10:51:44 PM10/8/08
to tmlinux
有个建议,可以把环境设置和编译写成一个脚本,通过脚本中路径修改完成编译器环境设置,这样就可以简单运行脚本完成编译了。

Guo Hongruan

unread,
Oct 8, 2008, 11:02:49 PM10/8/08
to tml...@googlegroups.com
I have updated the PlatformDeveloperGettingStart, in which I stated how to
build linux kernel, uClibc and generate sysroots. Of course, I just state
how to do them on ttisim. For nohost, I have never validated it, because I
have not hardware board.

hkr2000

unread,
Oct 8, 2008, 11:53:33 PM10/8/08
to tmlinux
I build it follow it, but come some error msg:
CC libcrypt/des.o "libcrypt/des.c", line 70: error: identifier
"u_char" is undefined static u_char inv_key_perm[64]; ^
"libcrypt/des.c", line 71: error: identifier "u_char" is undefined
static u_char inv_comp_perm[56]; ^
"libcrypt/des.c", line 72: error: identifier "u_char" is undefined
static u_char u_sbox[8][64]; ^
"libcrypt/des.c", line 73: error: identifier "u_char" is undefined
static u_char un_pbox[32]; ^
"libcrypt/des.c", line 74: error: identifier "u_int32_t" is undefined
static u_int32_t en_keysl[16], en_keysr[16]; ^

hkr2000

unread,
Oct 8, 2008, 11:57:09 PM10/8/08
to tmlinux
"libm/s_atan.c", line 86: error: floating constant is out of range
huge = 1.0e300;

Guo Hongruan

unread,
Oct 9, 2008, 12:12:28 AM10/9/08
to tml...@googlegroups.com
It is obvious that you have not set the include pathes correctly. Follow
PlatformDeveloperGettingStart
(http://code.google.com/p/tmlinux/wiki/PlatformDeveloperGettingStart)
instructions.

hkr2000

unread,
Oct 9, 2008, 12:35:19 AM10/9/08
to tmlinux
But ""libm/s_atan.c", line 86: error: floating constant is out of
range
huge = 1.0e300; " is why?

Guo Hongruan

unread,
Oct 9, 2008, 12:51:17 AM10/9/08
to tml...@googlegroups.com
I guess you compile uclibc using -fp32 option.

freeoicq freeoicq

unread,
Oct 9, 2008, 1:02:05 AM10/9/08
to tml...@googlegroups.com
yes, I see that in the Rules.make, there are CONFIG_FP32 and CONFIG_FP64, but I can not see anywhere define it?

2008/10/9 Guo Hongruan <came...@gmail.com>

hkr2000

unread,
Oct 9, 2008, 2:42:18 AM10/9/08
to tmlinux
能否在cygwin下提供编译个版本啊

On 10月9日, 下午1时02分, "freeoicq freeoicq" <hkr...@gmail.com> wrote:
> yes, I see that in the Rules.make, there are CONFIG_FP32 and CONFIG_FP64,
> but I can not see anywhere define it?
>
> 2008/10/9 Guo Hongruan <camel...@gmail.com>

Guo Hongruan

unread,
Oct 9, 2008, 4:02:03 AM10/9/08
to tml...@googlegroups.com
Ok, can not compile them under cygwin. Can you compile the standard Linux
kernel under cygwin?

Guo Hongruan

unread,
Oct 9, 2008, 4:04:25 AM10/9/08
to tml...@googlegroups.com
At first, you should define it at kernel configuration, then build the
kernel.

Then, you should set the linux kernel location when configuring uclibc.

Now, you can compile uclibc using correct float-point option.

On Thu, 09 Oct 2008 13:02:05 +0800, freeoicq freeoicq <hkr...@gmail.com>
wrote:

freeoicq freeoicq

unread,
Oct 9, 2008, 4:26:00 AM10/9/08
to tml...@googlegroups.com
Yes,the kernel now can be built。But the uClibc could not。

2008/10/9 Guo Hongruan <guo.ho...@gulessoft.com>
Reply all
Reply to author
Forward
0 new messages