[uClinux-dev] enable pthread_create on in MCF5275

kishor kishor.s at amdlbct.com
Sat Oct 29 00:28:18 EDT 2005


Hi,

  I think you have to enable  SYSTEM V IPC to  work with threads, semaphores
and shared memory, at kernel 2.4 . We can enable SYSTEM V  IPC in uClibc
make menuconfig. Also add -lpthread  while compilation and check it out.

cheers


----- Original Message -----
From: "Javier Cardona" <javier at cozybit.com>
To: "uClinux development list" <uclinux-dev at uclinux.org>
Sent: Thursday, October 27, 2005 1:31 AM
Subject: Re: [uClinux-dev] enable pthread_create on in MCF5275


>
> Correction...
>
> On Wednesday 26 October 2005 10:53 am, Javier Cardona wrote:
> > I have only been able to run one of the three demos on the MCF5275, but,
> > strangely enough, it's the most complete demo of the three:
> >
> > /bin> ./thdm
> > pid 19: failed 11
> > /bin> ./mtdm
> > pid 23: failed 11
> > /bin> ./bcdm
> > master thread runs: 305
> > slave thread 0 runs: 307
> > slave thread 1 runs: 307
> > slave thread 2 runs: 307
> > slave thread 3 runs: 307
> > done ... terminate with kill command or CRTL+C
>
> I was able to execute each demo at least once, but not reliably:
>
> /bin> ./thdm
> pid 19: failed 4
> /bin> ./mtdm
> total runs: 15096
> /bin> ./mtdm
> total runs: 15111
> /bin> ./mtdm
> total runs: 15084
> /bin> ./thdm
> pid 43: failed 4
> /bin> ./thdm
> pid 49: failed 4
> /bin> ./bcdm
> master thread runs: 256
> slave thread 0 runs: 258
> slave thread 1 runs: 258
> slave thread 2 runs: 258
> slave thread 3 runs: 258
> done ... terminate with kill command or CRTL+C
> pid 55: failed 2
> /bin> ./mtdm
> pid 62: failed 11
> /bin> ./mtdm
> pid 68: failed 11
> /bin> ./thdm
> pid 73: failed 11
> /bin> ./bcdm
> pid 77: failed 11
>
> Any suggestions?
>
> Thanks,
>
>
> --
> Javier Cardona
> cozybit Inc.
>
>
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
>


Confidentiality Notice:

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at AMDLBCT or sysadmin at amdlbct.com immediately and destroy all copies of this message and any attachments.




More information about the uClinux-dev mailing list