[uClinux-dev] Tips on checking that application can run on uClinux?

2010-06-26 Thread Gilles Ganault
Hello

I'm a self-taught programmer, and have absolutely no experience
working with embedded appliances.

I was wondering...

1. How do you check that a Linux application can run OK on uClinux,
especially with an MMU-less CPU like the Blackfin

2. What makes it easy/hard/impossible to port a Linux application to
such configuration?

From what I understood, problematic issues are the lack of fork(),
MMU-less CPU's require that the application manage its own memory to
avoid RAM being fragmented, etc.

Thank you.

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


Re: [uClinux-dev] Tips on checking that application can run on uClinux?

2010-06-26 Thread David McCullough

Jivin Gilles Ganault lays it down ...
 Hello
 
 I'm a self-taught programmer, and have absolutely no experience
 working with embedded appliances.
 
 I was wondering...
 
 1. How do you check that a Linux application can run OK on uClinux,
 especially with an MMU-less CPU like the Blackfin
 
 2. What makes it easy/hard/impossible to port a Linux application to
 such configuration?
 
 from what I understood, problematic issues are the lack of fork(),
 MMU-less CPU's require that the application manage its own memory to
 avoid RAM being fragmented, etc.

A little old,  but most of what you need to know is here:

http://www.linuxjournal.com/article/7221

And there is plenty more on the web to read if you need it :-)

On blackfin you also get fdpic for binaries/executbales/libs,  which give
you even more options under uClinux.

Cheers,
Davidm

-- 
David McCullough,  david_mccullo...@mcafee.com,  Ph:+61 734352815
McAfee - SnapGear  http://www.mcafee.com http://www.uCdot.org
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] Re: Tips on checking that application can run on uClinux?

2010-06-26 Thread Gilles Ganault
On Sat, 26 Jun 2010 21:31:41 +1000, David McCullough
david_mccullo...@mcafee.com wrote:
A little old,  but most of what you need to know is here:

   http://www.linuxjournal.com/article/7221

Thanks for the link.

And there is plenty more on the web to read if you need it :-)

Right. However, finding good, still-relevant, newbie-accessible stuff,
however... ;-)

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


[uClinux-dev] POSIX semaphores in uClibc

2010-06-26 Thread Dave Rensberger
I would like to use POSIX semaphores (sem_open(), sem_wait(), sem_post(), etc.) 
in a uClinux/uClibc system.   In the 20100315 distribution, the uClibc version 
is still old enough that these functions are not implemented (well, they are, 
but they simply return an errno indicating function does not exist).   

I think that the newest uClibc's do have these functions implemented.  Can I 
simply drop a newer uClibc into an existing uClinux-dist without introducing 
too many problems?   Alternately, should I consider just lifting the 
implementations of the functions I need from a newer uClibc and then compiling 
them into my system which is still based on the older uClibc, or is that asking 
for trouble?

Also, the POSIX semaphore functions that do exist (the ones for unnamed 
semaphores) appear to be implemented in a very pthread specific way.   Since 
I'm synchronizing access to shared memory regions between two _processes_, 
would the uClibc implementations even work for me at all?

Is there an altogether different mutual exclusion locking mechanism that I 
should consider using?

Thanks for any advice,
--Dave


  
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev