Author:wmmwang(unc,王敏敏)
Enviroment:fedora8.0
CrossCompile:arm-linux-gcc3.4.1
Busybox:1.10.1
步骤:
make defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-
make CONFIG_PREFIX=../nfsroot install
make的时候出错:
1.
miscutils/taskset.c:17: error: parse error before '*' token
miscutils/taskset.c:18: warning: function declaration isn't a prototype
miscutils/taskset.c: In function `__from_cpuset':
miscutils/taskset.c:22: error: `CPU_SETSIZE' undeclared (first use in this function)
miscutils/taskset.c:22: error: (Each undeclared identifier is reported only once
miscutils/taskset.c:22: error: for each function it appears in.)
miscutils/taskset.c:26: warning: implicit declaration of function `CPU_ISSET'
miscutils/taskset.c:26: error: `mask' undeclared (first use in this function)
miscutils/taskset.c: In function `taskset_main':
miscutils/taskset.c:47: error: `cpu_set_t' undeclared (first use in this function)
miscutils/taskset.c:47: error: parse error before "mask"
miscutils/taskset.c:68: warning: implicit declaration of function `CPU_ZERO'
miscutils/taskset.c:68: error: `new_mask' undeclared (first use in this function)
miscutils/taskset.c:69: error: `CPU_SETSIZE' undeclared (first use in this function)
miscutils/taskset.c:71: warning: implicit declaration of function `CPU_SET'
miscutils/taskset.c:78: error: `mask' undeclared (first use in this function)
make[1]: *** [miscutils/taskset.o] Error 1
make: *** [miscutils] Error 2
解决:
把 Miscellaneous Utilities
->task set
去掉。
2.
libbb/time.c:20: error: "CLOCK_MONOTONIC" undeclared (first use in this function)
解决:
去掉Busybox Settings
->Busybox Library Tuning
->[]Use clock_gettie(CLOCK_MONOTONIC) syscall
3.
/usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/../../../../arm-linux/bin/ld: Warning: gc-sections option ignored
modutils/lib.a(insmod.o)(.text.insmod_main+0x370): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0x3a4): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0x44c): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0x49c): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0x574): In function `insmod_main':
: undefined reference to `query_module'
modutils/lib.a(insmod.o)(.text.insmod_main+0xc0c): In function `insmod_main':
: undefined reference to `create_module'
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
解决:
把Linux Module Utilities
[]Support version 2.2.x to 2.4.x Linux kernels
选项去掉
4.
最后启动遇到如下错误:
Freeing init memory: 124K
/sbKernel panic - not syncing: Attempted to kill init!
in/ init: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
还没解决……,期待高人解决。
阅读(4345) | 评论(3) | 转发(1) |