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????
Didn't find your answer? Ask the community — no account required.
F
Francesco
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
J
John Williams
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
P
Pablo
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.
P
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.
J
John Williams
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
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.