Re: [rtl] OpenRTLinux, patches, and its future.

2002-03-28 Thread Wolfgang Denk

In message [EMAIL PROTECTED] you 
wrote:
 In my opinion it seems like the *moderators* of these lists are 

s/moderators/censors/

 Until Richard Reeve's email earlier today, and consequential remarks, I had 
 little clue, but certain suspicions, as to why current kernel patches were 
 not being made publicly available.

...or why certain messages are filtered so they never show up on  the
list.

 Most of the rtlinux subscribers do not read the advocacy list, which should 
 hopefully change after today, and were not completely aware of the wizardry going on 
 behind the curtains.

You don't expect really free speach on the rtl-advocacy list, now  do
you?

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
Stupidity, like virtue, is its own reward.
-- 
-
Edgar F. Hilton Director of Industrial Programs
FSMLabs, Inc.   voice: (850) 322-4054
http://www.rtlinux.com  fax: (206) 350-4EFH

-- [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/




Re: [rtl] Can not use BDM on linux

2001-07-05 Thread Wolfgang Denk

Dear Jerry,

in message 008601c104f4$1630e900$1c0114ac@jerry you wrote:

 I port the ppc linux to a 860 processor card . I download it into
 the flash, and reboot, it works very well.
 But when I use a BDM emulator (Macraigor Wiggler) to debug , it alwary

AFAIK the Wiggler does not suport the MMU, so it won't be any help as
soon a s Linux is running, but you are probably aware of this, and in
any case the system should not crash like your's.

  I do not do anythings else, just put the PC on reset vector, and go. No  any 
breakpoints or watchpoints set. The PC will be 0x3xxx .

I don't know how to configure the Wiggler. but you _have_ to do a few
preparations to run Linux: you have to  turn  off  the  8xx  internal
watchdog, and you have to configure the DER (Debug Event Register) to
a  value  that  does  not  jump  into  BDM  mode  during normal Linux
operation - 0x2002000F is a good value.

 Is there anyone can give me a hand.

You should consider to switch to a BDM  debugger  with  better  Linux
support;  I  recommend the BDI2000 by Abatron if you're looking for a
commercial tool (about $2200), or the BDM4GDB parallel  port  adapter
(which  you can either build yourself or buy for $50). Both have full
MMU support and interfaces to GDB, so they integrate smoothly into  a
Linux based development environment.

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
It is dangerous to be sincere unless you are also stupid.
- George Bernard Shaw
-- [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/




Re: [rtl] Modules

2001-03-06 Thread Wolfgang Denk

In message [EMAIL PROTECTED] you wrote:
 
 is there a way to check from a user space program if a module is
 installed or not ?

You mean,  something  like  reading  /proc/modules?  Or  running  the
/sbin/lsmod program?

"man execv popen" might give some more information.

 And if my module is mot installed how to do it inside the program ?

For instance, by running the /sbin/insmod program.

"man execv popen system" might give some more information.

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
"May your future be limited only by your dreams."
- Christa McAuliffe
-- [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] init method

2001-02-21 Thread Wolfgang Denk

In message 001401c09c27$02bad470$[EMAIL PROTECTED] Jeffrey Krasky wrote:

 this may not have to be a real-time question, but I am hoping someone
 knows the answer.  Someone told me that I can modify the file rc.sysinit
 so that I can have control of everything that happens when the machine
 boots.  Here is my ideal situation:

That way you cannot control "everything". At least, the "init"
process is still "in your way".

 right after the machine is done booting and mounting the file systems,
 it goes and finds my program and runs it.  I would like my program to
 first get the current time down to a microsecnd, then "run it's
 function", then get the time again, and output the total execution time
 down to the nearest microsecond.  Then I dont care what happens after
 that.  I would like to make sure that nothing else could be running,
 like a daemon or something.  Is this the way to go or are there better

Well, when you don't need any init levels and  associated  start/stop
scripts, then don't use the normal init process at all.

Instead, directly start your application INSTEAD of init. THis can be
easily done by passing a boot parameter
"init=/absolute/path/to/your/program".

But be aware that usually init sets  up  some  enviromnment  for  you
which is missing when you run your process instead of init.

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
It is easier to write an incorrect program than understand a  correct
one.
-- [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] root id

2001-02-21 Thread Wolfgang Denk

In message [EMAIL PROTECTED] Frederic Cazenave wrote:
 
 I have installed this files :
 521612 -rw-r--r--1 root root 19090206 Feb 14 20:56
 linux-2.2.18.tar.gz
 521622 -rw-r--r--1 root root   450860 Feb 16 15:10
 rtlinux-3.0.tar.gz
...
 gcc -v
 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
 gcc version 2.96 2731 (Red Hat Linux 7.0)

GCC as shipped with RH 7.0 is, ummm..., broken. Let's call it broken.

You cannot use it to  compile  Linux  kernel  code.  RedHat  includes
another  (older, working) version of GCC for kernel code; it's called
"kgcc":

- gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.0)
- kgcc -v
Reading specs from /usr/lib/gcc-lib/i386-glibc21-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)


You will find something like that in RedHat's kernel Makefiles:

CC := $(shell if which $(CROSS_COMPILE)kgcc  /dev/null 21; \
then echo $(CROSS_COMPILE) kgcc; else echo $(CROSS_COMPILE)gcc; fi) \
-D__KERNEL__ -I$(HPATH)

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
A direct quote from the Boss: "We passed over a lot of good people to
get the ones we hired."
-- [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] Bigphysarea

2001-01-04 Thread Wolfgang Denk

In message [EMAIL PROTECTED] you wrote:

   This is off topic I know, but I need to create a large chunk of contiguous
 physical ram.  I know that bigphysarea is a patch that can be applied to the
 kernel to do this.  The only patch I have seen is for 2.2.13.  Does anyone

I've also seen bigphysarea patches for later kernels, including 2.3.xx.

 know if there is a patch for 2.2.14? I'm fairly  certain  that  the
2.2.13   patch will work with 2.2.14 but it would be nice to know if
there is a

IIRC the 2/.2.13 patch will apply celanly (and run without problems) under 2.2.14.

   I've also heard another way is to use the memory function of lilo to tell
 linux it has less memory than is present.  Then you create a device to
 access the unseen area of memory.  Has anyone tried to do this, or ever
 heard of it being done?

Yes, we've used that, too. [I always use it as part of our regression
tests to see how much memory Linux really needs to run.]

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
Always try to do things in chronological order; it's  less  confusing
that way.
-- [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] Automatic Log In

2000-07-05 Thread Wolfgang Denk

In message [EMAIL PROTECTED] you wrote:
 How can I make Linux to automatically log in as root at boot and make the insmod's 
and start the user tasks??

Read the file 'initrd.txt' in the kernel  'Documentation'  directory,
then  build an initrd image where you put the needed commands in your
/linuxrc script.

Wolfgang

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
Heavier than air flying machines are impossible.
-- Lord Kelvin, President, Royal Society, c. 1895
-- [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/




No Subject

2000-06-07 Thread Wolfgang Denk

In message [EMAIL PROTECTED] you wrote:

  Can anyone suggest how we can build a single .O loadable module from
  many .O files that were individually compiled using GCC?
 
 What you need is partial linking (ld -r). My own example follows:
...
 I have worked in the DOS/Windows environment for many years and am
 now just getting started with RTLinux (by porting a real-time
 application.)  I am so impressed with this Linux "community"  - Never
 in my life have I ever been able to get such detailed help from
 Microsoft and they charge to the gills for their "support"!  I am

There is another important difference: Linux comes with  full  source
code,  you  don't  depend  on other people to help you - you can help
yourself by looking "how it's done".

With your problem, you could have found several examples how to build
modules from several object files in the kernel Makefiles.

But of course for a newbee it's difficult  to  know  where  to  start
looking.

Wolfgang

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: [EMAIL PROTECTED]
Systems programmers are the high priests of a low cult.
   -- R.S. Barton
-- [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/