2010-10-11 11:46:22     BF526 sample project

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-10-11 11:46:22     BF526 sample project

alireza ashani (UNITED STATES)

Message: 94406   

 

I am a newbie to BF and uClinux and I'm working in Blackfin  BF526 platform for a DSP project. OS is going to be uClinux and i was wondering if you can direct me to some directive to jump start my project. If I could get a sample hello world project to show how to set thing, that would be very helpful.

QuoteReplyEditDelete

 

 

2010-10-11 13:26:34     Re: BF526 sample project

Mike Frysinger (UNITED STATES)

Message: 94409   

 

  docs.blackfin.uclinux.org/doku.php?id=simple_hello_world_application_example

QuoteReplyEditDelete

 

 

2010-10-21 15:33:02     Re: BF526 sample project

alireza ashani (UNITED STATES)

Message: 94819   

 

I managed to setup toolchain and compile hello.c.

 

But I am getting the following error when I try 'make image':

 

debian:~/uClinux-dist# make image

 

[ -d /root/uClinux-dist/images ] || mkdir /root/uClinux-dist/images

 

make ARCH=blackfin   -C vendors image

 

make[1]: Entering directory `/root/uClinux-dist/vendors'

 

make -C /root/uClinux-dist/vendors/AnalogDevices/BF526-EZBRD/. dir_v=/root/uClinux-dist/vendors/AnalogDevices/BF526-EZBRD/. -f

 

/root/uClinux-dist/vendors/vendors-common.mak image

 

make[2]: Entering directory `/root/uClinux-dist/vendors/AnalogDevices/BF526-EZBRD'

 

mkdir -p /root/uClinux-dist/images

 

rm -rf /root/uClinux-dist/images/*

 

make image.rootfs.all

 

make[3]: Entering directory `/root/uClinux-dist/vendors/AnalogDevices/BF526-EZBRD'

 

/bin/bash /root/uClinux-dist/linux-2.6.x/scripts/gen_initramfs_list.sh -u squash -g squash /root/uClinux-dist/romfs >

 

/root/uClinux-dist/images/rootfs.initramfs.contents

 

  /root/uClinux-dist/linux-2.6.x/scripts/gen_initramfs_list.sh: Cannot open '/root/uClinux-dist/romfs'

 

make[3]: *** [image.rootfs.initramfs.force] Error 1

 

make[3]: Leaving directory `/root/uClinux-dist/vendors/AnalogDevices/BF526-EZBRD'

 

make[2]: *** [image] Error 2

 

make[2]: Leaving directory `/root/uClinux-dist/vendors/AnalogDevices/BF526-EZBRD'

 

make[1]: *** [image] Error 2

 

make[1]: Leaving directory `/root/uClinux-dist/vendors'

 

make: *** [image] Error 2

 

any idea what could be wrong? I couldn't find 'romfs' folder in 'uclinux-dist'

 

thanks

 

Al

QuoteReplyEditDelete

 

 

2010-10-21 15:44:56     Re: BF526 sample project

Mike Frysinger (UNITED STATES)

Message: 94820   

 

you cant use `make image` if you havent actually compiled anything yet

 

also, you should not be building as root

QuoteReplyEditDelete

 

 

2010-10-21 17:36:11     Re: BF526 sample project

alireza ashani (UNITED STATES)

Message: 94824   

 

I am following the instructions here:

 

  docs.blackfin.uclinux.org/doku.php?id=basic_compilation

 

 

 

I logged in as a user and trying to make menuconfig, but I am getting the following error:

 

qa@debian:~/uClinux-dist$ make menuconfig

 

find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig

 

config/mkconfig > Kconfig

 

CC=cc CXX=c++ make -C /home/qa/uClinux-dist/config/kconfig conf

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

lxdialog/check-lxdialog.sh: line 9: cc: command not found

 

make[1]: Entering directory `/home/qa/uClinux-dist/config/kconfig'

 

cc -DCURSES_LOC="<curses.h>" -DKBUILD_NO_NLS  -c -o conf.o conf.c

 

/bin/sh: cc: command not found

 

make[1]: *** [conf.o] Error 127

 

make[1]: Leaving directory `/home/qa/uClinux-dist/config/kconfig'

 

make: *** [/home/qa/uClinux-dist/config/kconfig/conf] Error 2

 

Any idea what could be missing? Am I following the right instructions?

QuoteReplyEditDelete

 

 

2010-10-21 17:46:00     Re: BF526 sample project

Mike Frysinger (UNITED STATES)

Message: 94826   

 

if you dont have a basic compiler installed, then you havent installed any of the basic packages the documentation says to

 

please read:

  docs.blackfin.uclinux.org/doku.php?id=installing_linux

QuoteReplyEditDelete

 

 

2010-10-22 10:59:33     Re: BF526 sample project

alireza ashani (UNITED STATES)

Message: 94878   

 

I have already installed the blackfin toolchain which includes both 'bfin-linux-uclibc' and 'bfin-uclinux' folders.

 

Do I need to install any othere packages in addition to that to compile 'uClinux-dist' ?

QuoteReplyEditDelete

 

 

2010-10-22 11:23:12     Re: BF526 sample project

Mike Frysinger (UNITED STATES)

Message: 94879   

 

you were given a wiki page to review.  please do so.

QuoteReplyEditDelete

 

 

2010-10-22 12:00:49     Re: BF526 sample project

alireza ashani (UNITED STATES)

Message: 94882   

 

Thanks Mike,

 

 

 

I installed all the missing packages and now I am able to run 'make xconfig' however, in the wiki page it is asking:

 

 

 

Select 'y' for Customize Kernel Setting and Customize Vendor/User Settings

 

 

 

I don't see that option (Customize Vendor/User Settings), I only see the following options and I already selected 'Customize Kernel Setting' :

 

--- Kernel is linux-2.6.x

 

--- Libc is    None

 

[ ] Default all settings (lose changes)

 

[ ] Customize Kernel Settings

 

[ ] Customize Application/Library Settings

 

[ ] Update Default Vendor Settings

 

Should I ignore it?

QuoteReplyEditDelete

 

 

2010-10-22 12:32:03     Re: BF526 sample project

alireza ashani (UNITED STATES)

Message: 94884   

 

I got it to work, vendor setting shows on a separate line option.

 

 

 

Thanks

Attachments

    Outcomes