Compile uCLinux for Spartan 3e

Does anyone Know how can I compile uClinux-dist for Spartan 3E. I have done the next:

download uClinux-dist download uClinux-2.4.x cd uClinux-dist ln -s ../uClinux-2.4.x linux-2.4.x copy auto-config.in to arch/microblaze/platform.... PATH=$PATH:/usr/local/microblaze-elf-tools

make clean (an error occurr with images/CVS, I have to delete manually) make menuconfig

I can pass this. I have an error in arch/microblaze/config.in

Does I need to do something else????

Reply to
Pablo
Loading thread data ...

Yes try make distclean... or somethink like that. if makedistclean doesn't work have a look in the makefile and look for somethink like distclean.

What you should do is to say... "look I changed something in the SW and also in the HW because my config.in file is different"

Francesco

Reply to
Francesco

Instead of this, I recommend you start using PetaLinux:

formatting link

We've bundled together the kernel and dist sources, tools, BSP generation and hardware reference designs into a single downloadable package.

There is lots of documentation and scripts to ease the process of working with Embedded Linux on the MicroBlaze platform.

I hope you find it useful.

Regards,

John

Reply to
John Williams

Thanks.

Only one question.

I want to use "Condition Variables" implemented in pthread.h. I have tried to use Xilkernel, but its pthread has not functions like "pthread_cond_init" or "pthread_cond_wait". Does petalinux support for this kind of functions??

Thanks again.

Reply to
Pablo

Sorry for the structure of my question. I am trying to explain as better as I could:

I want to implement an application over a FPGA. In the app I need to use "Condition Variables" with Pthread, but Xilkernel does not support for this. So I have thought in uClinux. Could I compile my app with functions such as "pthread_cond_init", "pthread_cond_wait" over uClinux??

Thank you very much for your help.

Reply to
Pablo

We are using uClibc, which includes the LinuxThreads library for pthreads support. Condition variables are included in the linuxthreads functionality - the full API from the source is below.

I hope this answers your question.

[jwilliams@g512-9423 linuxthreads]$ grep "pthread_cond.*(" condvar.c int pthread_cond_init(pthread_cond_t *cond, int pthread_cond_destroy(pthread_cond_t *cond) int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) pthread_cond_timedwait_relative(pthread_cond_t *cond, int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, return pthread_cond_timedwait_relative(cond, mutex, abstime); int pthread_cond_signal(pthread_cond_t *cond) int pthread_cond_broadcast(pthread_cond_t *cond) int pthread_condattr_init(pthread_condattr_t *attr) int pthread_condattr_destroy(pthread_condattr_t *attr) int pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared) int pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)

Regards,

John

Reply to
John Williams

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.