Re: [rtl] Comedi and Minirtl...

2000-07-14 Thread Herman Bruyninckx

On Thu, 13 Jul 2000, Nicholas Mc Guire wrote:

  On Wed, Jul 12, 2000 at 10:06:08AM -0700, Pete Buechler wrote:
   On Wed, 12 Jul 2000, Herman Bruyninckx wrote:
   
We are trying to make MiniRtl floppies with Comedi drivers. But Comedi
seems to need the libc, which is a couple of megabytes big. 
[...]
 libc is on minirtl (glibc 2.0.7) so I see no reason why comedi should have 
 a problem with that.

We tried this last suggestion: we installed a RedHat 5.2 with glibc 2.0.7
and everything went fine! Thanks...
Our libcomedi.so is 14732 bytes, stripped (18k unstripped). The libcomedi.a is
14240 bytes.
We also had to include libm, which brings in 104k, stripped.

--
[EMAIL PROTECTED] (Ph.D.)Fax: +32-(0)16-32 29 87
Dept. Mechanical Eng., Div. PMA, Katholieke Universiteit Leuven, Belgium

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Comedi and Minirtl...

2000-07-13 Thread Nicholas Mc Guire

 On Wed, 12 Jul 2000, Herman Bruyninckx wrote:
 
  We are trying to make MiniRtl floppies with Comedi drivers. But Comedi
  seems to need the libc, which is a couple of megabytes big. Is there
  another, much smaller ``embedded'' libc available? Is newlib from Cygnus
  such an alternative? Would it be possible to use it together with Comedi?
 
 1) Try statically linking Comedi, it may be using only a small part of the
 library.

statically linking things against glibc is sensless , you end up with huge 
binaries . also from beginning on the intention of miniRTL was to have a
system that will run binaries that are compatible to a full-featured desk-top
system, so minirtl has less libs on-disk naturally but they are unmodified 
exept for stiping them (which only influences debuging) 

list of libs on miniRTL (glibc-2.0.7) ,this I guess is cloase to the minimum
assuming network support,without network support libs could be reduced a littl.

  ld-2.0.7.solibc-2.0.7.so
  libcrypt-2.0.7.so  libdl-2.0.7.so
  libncurses.so.4libnsl-2.0.7.so
  libnss_db-2.0.7.so libnss_dns-2.0.7.so
  libnss_files-2.0.7.so  libresolv-2.0.7.so
  libss.so.2.0   libutil-2.0.7.so
  libuuid.so.1.1

addmited that glibc-2.0.7 is not the most current , but setting up a desk-top
system running on glibc-2.0.7 is no big problem and makes developement much
easier since you can do debugging/optimization on the full system , then 
strip your app and upload it to miniRTL for testing via tftp or scp . and
if you look at the front-ends from the rtlinux examples , you can see that
using the right compiler flags you can get very small binaries .

-rwxr-xr-x   1 root root 2080 Jul 13 10:41 monitor
-rwxr-xr-x   1 root root 3068 Jul 13 10:41 frank_app

check out ftp://ftp.rtlinux.org/pub/rtlinux/minirtl/minirtlV2.3/images , its
not done yet ,but its rtlinux-2.3 with all examples on it and a fiew littl
toys for the parallel port.

hofrat
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Comedi and Minirtl...

2000-07-12 Thread Pete Buechler

On Wed, 12 Jul 2000, Herman Bruyninckx wrote:

 We are trying to make MiniRtl floppies with Comedi drivers. But Comedi
 seems to need the libc, which is a couple of megabytes big. Is there
 another, much smaller ``embedded'' libc available? Is newlib from Cygnus
 such an alternative? Would it be possible to use it together with Comedi?

1) Try statically linking Comedi, it may be using only a small part of the
library.

2) Newlib is a C library, but not a Linux C library, i.e., it has none of the
system calls. If Comedi does not need those, perhaps you could make newlib work.

-- 
Pete Buechler   : SuSE Labs
Work e-mail : [EMAIL PROTECTED]
Work web page   : http://www.suse.com/~peterb
Personal e-mail : [EMAIL PROTECTED]
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Comedi and Minirtl...

2000-07-12 Thread David Schleef

On Wed, Jul 12, 2000 at 10:06:08AM -0700, Pete Buechler wrote:
 On Wed, 12 Jul 2000, Herman Bruyninckx wrote:
 
  We are trying to make MiniRtl floppies with Comedi drivers. But Comedi
  seems to need the libc, which is a couple of megabytes big. Is there
  another, much smaller ``embedded'' libc available? Is newlib from Cygnus
  such an alternative? Would it be possible to use it together with Comedi?
 
 1) Try statically linking Comedi, it may be using only a small part of the
 library.

libcomedi hits some rather sensitive areas of glibc, so statically
linking anything causes binary sizes of about 300 kB.  It shouldn't
be too hard to knock this down in some cases, i.e., changing a
sscanf() to strtol() dropped the average binary size of the demos
to 240 kB.  Think I'll keep that change.




dave...


-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Comedi and Minirtl...

2000-07-12 Thread David Olofson

Wed, 12 Jul 2000 Herman Bruyninckx wrote:
 We are trying to make MiniRtl floppies with Comedi drivers. But Comedi
 seems to need the libc, which is a couple of megabytes big. Is there
 another, much smaller ``embedded'' libc available? Is newlib from Cygnus
 such an alternative? Would it be possible to use it together with Comedi?

Almost every boot floppy (including MiniRTL, AFAIK) that runs "normal" commands
and tools has some kind of libc replacement. Size and features vary.

*digging out some links*

http://www.linuxrouter.org/
http://www.toms.net/rb/
http://sunsite.auc.dk/mulinux/#related_projects

You may need to adjust the application to use other functions (perhaps throw
in your own little helper lib) if you can't get everything you need in one
libc.


David Olofson
 Programmer
 Reologica Instruments AB
 [EMAIL PROTECTED]

..- M u C o S . .- David Olofson --.
|   A Free/Open Multimedia   | | Audio Hacker |
|  Plugin and Integration Standard   | |Linux Advocate|
` http://www.linuxdj.com/mucos -' | Open Source Advocate |
..- A u d i a l i t y . |Singer|
|  Rock Solid Low Latency Signal Processing  | |  Songwriter  |
`--- http://www.angelfire.com/or/audiality -' `- [EMAIL PROTECTED] -'
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl Your_email" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/