Hi,
I send to you the screenshoot of the dmesg and tail /var/log/messages in
the file Test in attachment. This is before and after running the hello
example from /rtl/examples/hello. All look to be the normal boot sequence.
Note: I have add the mbuff on the insrtl and rmrtl files. This is why the
mbuff messages are present.
What is the difference between rtl_printf and printk? Can I use printk in a
rt-threat?
Any other tips will be appreciate.
Regards,
Stephane Bouchard
A 13:55 00-01-31 -0700, vous avez �crit :
>
>Run
>dmesg
>and also
>tail /var/log/messages
>
>to make sure that nothing is really being printed.
>
>On Mon, Jan 31, 2000 at 02:28:21PM -0500, Stephane Bouchard wrote:
>> Hi,
>>
>> I have install rt-linux on a second machine and I have a problem with the
>> rtl_printf function. At the compilation time, all works fine but this
>> function produce exactly nothing in the Konsole. I have test all examples
>> on the rtl directory and the examples give all the same thing.
>>
>> I must fixe it as soon as possible to debug the rest of the program!
>>
>> I run rtl v2.0 prepatched on redhat (2.2.13). My computer is a P100 with 64
>> RAM and a ATI Mach64 video board.
>>
>> I also look for a example of shared memory with mbuff-0.6.4 between a
>> pthreat and a linux application. Where can I find this?
>>
>> Thanks a lot,
>>
>> Stephane Bouchard
>> [EMAIL PROTECTED]
>>
>> P.S. I also receive the empty message from [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/
>
>--
>---------------------------------------------------------
>Victor Yodaiken
>FSMLabs: www.fsmlabs.com www.rtlinux.com
>FSMLabs is a servicemark and a service of
>VJY Associates L.L.C, New Mexico.
>
>
>
[root@localhost /root]# cd /usr/src/rtlinux-2.0/rtl/examples/hello
[root@localhost hello]# make
make: Nothing to be done for `all'.
[root@localhost hello]# dmesg
Linux version 2.2.13-rtl2.0 ([EMAIL PROTECTED]) (gcc version egcs-2.91.6
6 19990314/Linux (egcs-1.1.2 release)) #2 SMP Wed Jan 26 14:18:14 EST 2000
mapped APIC to ffffe000 (002be000)
mapped IOAPIC to ffffd000 (002bf000)
Detected 99475690 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 39.63 BogoMIPS
Memory: 62688k/65536k available (1076k kernel code, 416k reserved, 1292k data, 64
k init)
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
Intel Pentium with F0 0F bug - workaround enabled.
POSIX conformance testing by UNIFIX
per-CPU timeslice cutoff: 1.56 usecs.
CPU0: Intel Pentium 75 - 200 stepping 06
SMP motherboard not detected. Using dummy APIC emulation.
RTL started
PCI: PCI BIOS revision 2.10 entry at 0xfcb71
PCI: Using configuration type 1
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
Starting kswapd v 1.5
parport0: PC-style at 0x378 [SPP]
parport0: no IEEE-1284 device present.
Detected PS/2 Mouse Port.
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
pty: 256 Unix98 ptys configured
lp0: using parport0 (polling).
Real Time Clock Driver v1.09
PIIX: IDE controller on PCI bus 00 dev 38
PIIX: not 100% native mode: will probe irqs later
PIIX: neither IDE port enabled (BIOS)
hda: ST51270A, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: ST51270A, 1223MB w/128kB Cache, CHS=621/64/63
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
scsi : 0 hosts.
scsi : detected total.
plip: parport0 has no IRQ.
plip: no devices registered
PPP: version 2.3.7 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
Partition check:
hda: hda1 hda2 < hda5 hda6 >
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 64k freed
Adding Swap: 133016k swap-space (priority -1)
[root@localhost hello]# tail /var/log/messages
Feb 1 10:30:15 localhost keytable: Loading system font:
Feb 1 10:30:15 localhost rc: Starting keytable succeeded
Feb 1 10:30:17 localhost sendmail: sendmail startup succeeded
Feb 1 10:30:18 localhost gpm: gpm startup succeeded
Feb 1 10:30:19 localhost xfs: xfs startup succeeded
Feb 1 10:30:20 localhost xfs: Warning: The directory "/usr/X11R6/lib/X11/fonts/1
00dpi" does not exist.
Feb 1 10:30:20 localhost xfs: Entry deleted from font path.
Feb 1 10:30:20 localhost linuxconf: Linuxconf final setup
Feb 1 10:30:23 localhost rc: Starting linuxconf succeeded
Feb 1 11:12:23 localhost PAM_pwdb[452]: (kde) session opened for user root by (u
id=0)
[root@localhost hello]# make test
This is the simplest RTL program
First we remove any existing rtl-modules
You may see error warnings from "make" - ignore them
Type <return> to continue
rmmod sound
rmmod: module sound not loaded
make: [test] Error 1 (ignored)
rmmod rt_process
rmmod: module rt_process not loaded
make: [test] Error 1 (ignored)
rmmod frank_module
rmmod: module frank_module not loaded
make: [test] Error 1 (ignored)
(cd ../../; ./rmrtl)
rmmod: module rtl_fifo not loaded
rmmod: module rtl_posixio not loaded
rmmod: module rtl_sched not loaded
rmmod: module rtl_time not loaded
rmmod: module mbuff not loaded
Now insert the fifo and scheduler
Type <return> to continue
(cd ../../; ./insrtl)
Now start the real-time tasks module
Type <return> to continue
Now let's stop the application
Type <return> to finish
[root@localhost hello]# dmesg
Linux version 2.2.13-rtl2.0 ([EMAIL PROTECTED]) (gcc version egcs-2.91.6
6 19990314/Linux (egcs-1.1.2 release)) #2 SMP Wed Jan 26 14:18:14 EST 2000
mapped APIC to ffffe000 (002be000)
mapped IOAPIC to ffffd000 (002bf000)
Detected 99475690 Hz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 39.63 BogoMIPS
Memory: 62688k/65536k available (1076k kernel code, 416k reserved, 1292k data, 64
k init)
Checking 386/387 coupling... OK, FPU using exception 16 error reporting.
Checking 'hlt' instruction... OK.
Intel Pentium with F0 0F bug - workaround enabled.
POSIX conformance testing by UNIFIX
per-CPU timeslice cutoff: 1.56 usecs.
CPU0: Intel Pentium 75 - 200 stepping 06
SMP motherboard not detected. Using dummy APIC emulation.
RTL started
PCI: PCI BIOS revision 2.10 entry at 0xfcb71
PCI: Using configuration type 1
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
Starting kswapd v 1.5
parport0: PC-style at 0x378 [SPP]
parport0: no IEEE-1284 device present.
Detected PS/2 Mouse Port.
Serial driver version 4.27 with no serial options enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
pty: 256 Unix98 ptys configured
lp0: using parport0 (polling).
Real Time Clock Driver v1.09
PIIX: IDE controller on PCI bus 00 dev 38
PIIX: not 100% native mode: will probe irqs later
PIIX: neither IDE port enabled (BIOS)
hda: ST51270A, ATA DISK drive
1plip:
no devices registered
PPP: version 2.3.7 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
Partition check:
hda: hda1 hda2 < hda5 hda6 >
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 64k freed
Adding Swap: 133016k swap-space (priority -1)
mbuff: kernel shared memory driver v0.6.3
mbuff: (C) Tomasz Motylewski et al., GPL
mbuff: registered as MISC device minor 254
[root@localhost hello]# tail /var/log/messages
Feb 1 10:30:18 localhost gpm: gpm startup succeeded
Feb 1 10:30:19 localhost xfs: xfs startup succeeded
Feb 1 10:30:20 localhost xfs: Warning: The directory
"/usr/X11R6/lib/X11/fonts/100dpi" does not exist.
Feb 1 10:30:20 localhost xfs: Entry deleted from font path.
Feb 1 10:30:20 localhost linuxconf: Linuxconf final setup
Feb 1 10:30:23 localhost rc: Starting linuxconf succeeded
Feb 1 11:12:23 localhost PAM_pwdb[452]: (kde) session opened for user root by (uid=0)
Feb 1 11:14:41 localhost kernel: mbuff: kernel shared memory driver v0.6.3
Feb 1 11:14:41 localhost kernel: mbuff: (C) Tomasz Motylewski et al., GPL
Feb 1 11:14:41 localhost kernel: mbuff: registered as MISC device minor 254
[root@localhost hello]#