ubuntu下编译uboot-1.20,kernel-2.6.23,busybox-1.7.2成功

内核编译和嵌入式产品的设计与开发
回复
marui139980
帖子: 26
注册时间: 2007-03-06 19:45

ubuntu下编译uboot-1.20,kernel-2.6.23,busybox-1.7.2成功

#1

帖子 marui139980 » 2007-11-11 13:03

最近在做一个关于嵌入式的项目,用的是at91rm9200芯片。用ubunut已经有快一年了,感觉很不错。
编译uboot-1.2.0的时候用arm-q3编译器,因为cross编译器对1.2.0支持的不好;
编译kernel和busybox的时候用的是3.4.1的编译器;
一旦编译器选择好以后就很方便了,具体的如果大家有什么想要知道的,可以回帖!
freeubuntu
帖子: 35
注册时间: 2007-04-12 17:18

#2

帖子 freeubuntu » 2007-12-17 19:39

请教那有问题呢?我编译basybox的时候出错了,报错如下:
root@freedom-desktop:/home/freedom/Downloads/busybox/busybox-1.00-pre10# make menuconfig
make -C scripts/config ncurses conf mconf
make[1]: Entering directory `/home/freedom/Downloads/busybox/busybox-1.00-pre10/scripts/config'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I. -c conf.c -o conf.o
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I. -c zconf.tab.c -o zconf.tab.o
gcc conf.o zconf.tab.o -o conf
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<ncurses.h>" -I. -c mconf.c -o mconf.o
mconf.c:104: error: static declaration of 'current_menu' follows non-static declaration
lkc.h:63: error: previous declaration of 'current_menu' was here
mconf.c: In function 'conf_string':
mconf.c:574: warning: pointer targets in passing argument 2 of 'sym_set_string_value' differ in signedness
mconf.c: In function 'conf_load':
mconf.c:595: warning: pointer targets in passing argument 1 of 'conf_read' differ in signedness
mconf.c: In function 'conf_save':
mconf.c:616: warning: pointer targets in passing argument 1 of 'conf_write' differ in signedness
make[1]: *** [mconf.o] Error 1
make[1]: Leaving directory `/home/freedom/Downloads/busybox/busybox-1.00-pre10/scripts/config'
make: *** [scripts/config/mconf] Error 2
freeubuntu
帖子: 35
注册时间: 2007-04-12 17:18

#3

帖子 freeubuntu » 2007-12-17 19:55

我编译的是/busybox-1.00-pre10

我又用高版本的busybox-1.8.2编译了一下,发现这个虽然可以编译过去但是有个问题,他没有Do you want to build BusyBox with a Cross Compiler这个选项
回复