[rtl] Re: Failed in atoi sprintf

2000-03-29 Thread Pavel Andris

On Wed, Mar 29, 2000 at 09:53:22AM +0900, Huang Qiang wrote:

Hi Huang,

 
 3. no "atoi" but did "ld -r -o mod.o frank_module.o -L/usr/lib -lc"
insmod failed in sprintf call  and linux down, same as before.
why? after link standard C library, the sprintf call is diffrent
to 1.?


Yes. You may use either sprintf that is exported by your kernel or
sprintf from the library. See man ksyms (display exported kernel
symbols). Kernel's sprintf is less rich e.g. it does not support
floating point format (%f) because double-s are not needed in the
kernel.

 Pavel's project that port libc-2.1.2 functions for linking with RT 
 modules seem is the best solution for my problem
 
 Is there any way to do it smart?


Not too sure. May be impossible without good understanding of
glibc-2.1.2 functions, not easy. Anyway my ported sprintf works even
for %f.

I agreed with Phil Wilshire to put the ported glibc-2.1.2 on
www.realtimelinux.org after making it a bit more tidy in a couple of
days.
 
Regards,

pa
-- 
..
Pavel Andris   | tel: +421 7 5941 2167
Institute of Control Theory and Robotics   | fax: +421 7 5477 6045
Slovak Academy of Sciences | 
Dubravska cesta 9  | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava |
Slovakia   |
..
-- [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] booting from eprom/flash

2000-03-29 Thread Kulwinder Atwal

The ide module in 2.2.14 and thus mini-rtl supports flash cards.  To ide
they are just another type of ide drive.  If you want to use flash cards
then it is a no-brainer.  

Just mount it and use it like any other drive.  The ide-probe.c code in
the ide module will set it up correctly.  Look in ide.c for a list of
compatible flash cards.

For eprom check out the article on the Linux Journal site "Booting Linux
from Eprom".  Complete source files are located on the on the site. 
Just do a search for the keywords in the title.

- Kal.

Rich Bryant wrote:
 
 I am currently working on an embedded systems project in which I want to
 put minirtl on an eprom/flash device and boot directly too it rather than a
 disk drive or network connection.
 
 If anyone has any information on targeting the kernel to an eprom/flash
 I would appriciate a few hints.  :)
 
 Tips on creating a bare minimum kernel would also be helpful.  I don't need
 disk support, graphics, mouse, or anything like that since it is not
 intended to be a true PC, but rather a small 486 system connected to a
 tty terminal.  I can give more specifics if needed.
 
 Thanks in advance,
 
 Rich
 
 -- [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/
-- [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] problem with pcmcia

2000-03-29 Thread Phil Wilshire

Tiziano Rossi wrote:
 
 hi
 
 I´m writing to you from Italy, sorry for my English.
 
 - I've a pcmcia ethernet 3com card 3C589_CS.
 - I´ve installed rtlinux-2.2-prepatch.tar.gz.
 
 Netx make modules and make modules_install, the compiler don't create a
 module pcmcia.
 Can you help??
 
 Bye
 
 Tiziano Rossi
Hi,
Look at..
http://pcmcia.sourceforge.org/
You need to go to the above site and grab the pcmcia package.
Follow the instructions for your laptop if its memtioned  on the Linux
laptops site 
http://www.cs.utexas.edu/users/kharker/linux-laptop/

If not mentioned then 
a generic set of instructions are found here...
http://www.eecs.umich.edu/~steveh/inspiron/pcmcia-cs_redhat.txt

Hope this helps
  Phil Wilshire
-- [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] problem with pcmcia

2000-03-29 Thread Stuart Hughes

Tiziano Rossi wrote:
 
 hi
 
 I´m writing to you from Italy, sorry for my English.
 
 - I've a pcmcia ethernet 3com card 3C589_CS.
 - I´ve installed rtlinux-2.2-prepatch.tar.gz.
 
 Netx make modules and make modules_install, the compiler don't create a
 module pcmcia.
 Can you help??

Hi Tiziano,

The PCMCIA package for the 2.2 kernels is build and installed separately
to the main kernel.  Download the latest version, untar and then do a
make install.

Regards, Stuart
-- [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] the performance of linux run on MPC860

2000-03-29 Thread Kulwinder Atwal

Does not a lower time mean it runs faster?
It sounds like linux is running faster than pSOS and VxWorks.

Maybe I am mistaken by your test, but it sounds like Linux is faster.

- Kal.

shaolin zhang wrote:
 
Part 1.1Type: Plain Text (text/plain)
Encoding: base64
-- [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] the performance of linux run on MPC860

2000-03-29 Thread David Schleef

On Wed, Mar 29, 2000 at 01:57:30PM -0700, Kulwinder Atwal wrote:
 Does not a lower time mean it runs faster?
 It sounds like linux is running faster than pSOS and VxWorks.
 
 Maybe I am mistaken by your test, but it sounds like Linux is faster.
 
 - Kal.
 


Without knowing full details of the source code, it is impossible
to tell what might be happening.  There's no description about
what happens inside the loop, what compilers are used, etc.  It
could simply be a matter of one compiler inserting an extra
memory operation, in order to be more correct or to make debugging
easier.



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] problem with pcmcia

2000-03-29 Thread Grahame M. Kelly

On Wed, 29 Mar 2000, you wrote:
 hi 
 
 I´m writing to you from Italy, sorry for my English.
 
 - I've a pcmcia ethernet 3com card 3C589_CS.
 - I´ve installed rtlinux-2.2-prepatch.tar.gz.
 
 Netx make modules and make modules_install, the compiler don't create a
 module pcmcia.
 Can you help??

Hi Tiziano.

I had the same problem on my laptop. I just got the sources for the
newest PCMCIA code from Filewatcher.org, compiled and installed
without any problems. Not I got PCMCIA with RTLinux.

Cheers, Grahame 

-- 
SLUG (Sydney Linux User Group) www.slug.org.au

-- [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] the performance of linux run on MPC860

2000-03-29 Thread Bernhard Kuhn

Kulwinder Atwal wrote:
 shaolin zhang wrote:
  some result is:
  Linux  pSOS  VxWorks
 
  for(;;) for local variable:  0.52  usec/times  23.81 usec/times  4.79 
usec/times  
  for(;;) for global variable: 0.48  usec/times  9.58  usec/times  3.99 
usec/times  
  while() for local variable:  0.57  usec/times  11.90 usec/times  5.78 
usec/times  
  while() for global variable: 0.445 usec/times  11.90 usec/times  3.97 
usec/times  

 Does not a lower time mean it runs faster?
 It sounds like linux is running faster than pSOS and VxWorks.


At least, it is rather unclear what the meassured values
want to say anyway: how do you messure the execution time
of an endless loop? :-)

Do you think this "Empty-Loop-Benchmarks" say anything usefull for
a more complex application? I doupt, your main application
is an endless loop without content (maybe, you posted the whole
stuff in the linuxppc-mailinglist, but definitly not at
the RTL-Mailinglist)

BTW: RTLinux will not speed up the execution time of loops. This
only depends on the compiler. RTLinux just reduces latenciesjitters
and gives you guaranteed response times.

Please, can you be a little more specific and tell us exactly
how you did you performace tests including the code?

Bernhard
-- [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] the performance of linux run on MPC860

2000-03-29 Thread Wolfgang Denk

In message [EMAIL PROTECTED] you wrote:
 
 Without knowing full details of the source code, it is impossible
 to tell what might be happening.  There's no description about
 what happens inside the loop, what compilers are used, etc.  It

It's also interesting to know if caches are enabled, etc.

Wolfgang

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
For every complex problem, there is a solution that is simple,  neat,
and wrong.   -- H. L. Mencken
-- [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/