2008-02-18 00:21:38 about compilation of bfin-uclinux kernel
sj tian (CHINA)
Message: 51174
hi,
when I compiled the kernel of bfin-uclinux, I met a question.
The kernel is uclinux-dist -2007R1.1-RC3,Tool chain is blackfin-toolchain-07r1.1-3.i386.rpm.
I have setup toolchain and modified the environment variable PATH.
after configturing this kernel, I used make command to compile the kernel, and there is a error"there is no file linux/autoconf.h or cannot open file linux/autoconf.h" . but in fact there is autoconf.h file under the directory of linux.
why ?
QuoteReplyEditDelete
2008-02-18 00:34:33 Re: about compilation of bfin-uclinux kernel
Mike Frysinger (UNITED STATES)
Message: 51176 no kernel file should be including linux/autoconf.h
you should post the actual error message you're seeing instead of describing it
QuoteReplyEditDelete
2008-02-18 02:54:05 Re: about compilation of bfin-uclinux kernel
sj tian (CHINA)
Message: 51180
I see.
Error information as following:
bfin-uclinux-gcc-O2-Wall-D__uClinux__ -DEMBED –fno-builtin -I/home/tsj/uClinux-dist.R1.1-RC3 –isystem /home/tsj/uClinux-dist.R1.1-RC3/staging/usr/include –isystem/home/tsj/uClinux-dist.R1.1-RC3/staging/usr/include -c –o cmd_uclinux.o cmd_uclinux.c
cmd_uclinux.c:4:28: error: linux/autoconf.h: No such file or Cannot open
make[2]: *** [cmd_uclinux.o] Error 1
make[2]: Leaving directory ‘/home/tsj/uClinux-dist.R1.1-RC3/user/sash’
make[1] *** [all] Error 2
make[1] Leaving directory ‘/home/tsj/uClinux-dist.R1.1-RC3/user’
make: *** [subdirs] Error 1
thanks!
QuoteReplyEditDelete
2008-02-18 03:42:48 Re: about compilation of bfin-uclinux kernel
Mike Frysinger (UNITED STATES)
Message: 51182 do not build the sash shell, you do not need/want it
QuoteReplyEditDelete
2008-02-19 01:32:09 Re: about compilation of bfin-uclinux kernel
sj tian (CHINA)
Message: 51255
thanks!
I canceled sash and chose other item in core application, then compilation is ok.
But there is another error. Cpu is bf537.
bfin-uclinux-gcc-O2 –pipe –fno-builtin –Wall -DEMBED -D__uClinux__ –isystem /home/tsj/uClinux-dist.R1.1-RC3/staging/usr/include –Wall –fno-builtin –isystem /home/tsj/uClinux-dist.R1.1-RC3/staging/usr/include -I ../include –D__ADSPBLACKFIN__ -c –o cadd16.o cadd16.c
make: expand.c:489: allocated_variable_append: Assertion”current_variable_set_listànext !=0” failed.
make[2]: *** [all] abort
make[2]: Leaving directory ‘/home/tsj/uClinux-dist..R1.1-RC3/lib/libbfdsp’
make[1] *** [all] Error 2
make[1] Leaving directory ‘/home/tsj/uClinux-dist.R1.1-RC3/lib’
make: *** [subdirs] Error 1
When I canceled build libbfdsp item, compilation is ok. But build libbfdsp item need not be chosen?
By the way, when I compiled, I found kernel image file is up to 11.8M, why so big? I need a small kernel image about 1M,how to configure? Where to find a help document to introduce kernel configuration.
QuoteReplyEditDelete
2008-02-19 02:06:41 Re: about compilation of bfin-uclinux kernel
Mike Frysinger (UNITED STATES)
Message: 51257 please review the FAQ ... the error you're showing is covered there
as for image size, you'll have to enable/disable whatever options you want