2008-09-24 13:25:09 compile uClinux-dist-2008R1.5-RC3 error
Sam li (UNITED STATES)
Message: 62639
hi all,
I try to compile "uClinux-dist-2008R1.5-RC3" to get the image of uClinux to load to my BF537 STAMP board.
I successfully get "Embedded Linux Configuration" window by
bash$ make menuconfig
After I compelete the configuration setting, I compile the kernel by
bash$ make
I got the erroes below,
==================================================
rm -f linux-2.6.x/usr/initramfs_data.cpio.gz
make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -j1 -C linux-2.6.x || exit 1
make[1]: Entering directory `/media/ubuntu-data/uClinux-dist-2008R1.5-RC3/linux-2.6.x'
rm: cannot remove `include/config/kernel.release': Permission denied
make[1]: *** [include/config/kernel.release] Error 1
make[1]: Leaving directory `/media/ubuntu-data/uClinux-dist-2008R1.5-RC3/linux-2.6.x'
make: *** [linux] Error 1
===================================================
If I try to compile by root,
bash$ sudo make
I got the erroes below,
===================================================
rm -f linux-2.6.x/usr/initramfs_data.cpio.gz
make ARCH=blackfin CROSS_COMPILE=bfin-uclinux- -j1 -C linux-2.6.x || exit 1
bfin-uclinux-gcc: command not found; perhaps you need to fix your PATH?
make[1]: Entering directory `/media/ubuntu-data/uClinux-dist-2008R1.5-RC3/linux-2.6.x'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CC arch/blackfin/kernel/asm-offsets.s
bfin-uclinux-gcc: command not found; perhaps you need to fix your PATH?
make[2]: *** [arch/blackfin/kernel/asm-offsets.s] Error 127
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory `/media/ubuntu-data/uClinux-dist-2008R1.5-RC3/linux-2.6.x'
make: *** [linux] Error 1
===================================================
PLEASE HELP!
Thanks.
QuoteReplyEditDelete
2008-09-24 14:30:51 Re: compile uClinux-dist-2008R1.5-RC3 error
damien OLLIVE (UNITED STATES)
Message: 62642
bfin-uclinux-gcc: command not found; perhaps you need to fix your PATH?
you need to install the toolchain or set your path.
have you done that : http://docs.blackfin.uclinux.org/doku.php?id=toolchain:installing
QuoteReplyEditDelete
2008-09-24 14:41:23 Re: compile uClinux-dist-2008R1.5-RC3 error
Sam li (UNITED STATES)
Message: 62643
Thank you for your reply.
I did install all toolchain. I check the PATH by "which" command
$ which bfin-uclinux-gcc
/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-gcc
Is any thing I missed?
Thanks.
QuoteReplyEditDelete
2008-09-24 14:49:59 Re: compile uClinux-dist-2008R1.5-RC3 error
Kyle Schlansker (UNITED STATES)
Message: 62644
I bet bfin-uclinux-gcc isn't in your user path, but not root path (the only error about the binary not being found was when you ran make with 'sudo' ... did you run 'which' with sudo too?) It's not good practice to be developing as root anyways.
If you take a look at the first error message you posted when you ran as a normal user:
rm: cannot remove `include/config/kernel.release': Permission denied
make[1]: *** [include/config/kernel.release] Error 1
I'm pretty sure this is a permissions error ...
post the output of: `ls -la include/config/kernel.release`
QuoteReplyEditDelete
2008-09-24 15:04:18 Re: compile uClinux-dist-2008R1.5-RC3 error
Mike Frysinger (UNITED STATES)
Message: 62646
yeah, as Kyle hinted, it would seem you installed the toolchain as root (which is correct), but then you also unpacked the uclinux-dist as root (which is incorrect). just delete the uclinux-dist and unpack it again as your normal user.
QuoteReplyEditDelete
2008-09-24 16:58:33 Re: compile uClinux-dist-2008R1.5-RC3 error
Sam li (UNITED STATES)
Message: 62654
Yea...It works...
Thank you all for your help..