[Rtl]Kernel message
Hi, Does someone can explain me what's the meaning not of the life but fo this Fu.. kernel message ?? it seems when I wake up with a fifo handler a rt process, my linux process dies with this message. The only part share by the two process is a part of a top memory reserved by append in lilo.conf, but they don't go to the same place. thanks Fred invalid operand: CPU:0 EIP:0010:[<0007>] EFLAGS: 00013582 eax: 08040330 ebx: 0018 ecx: 08034754 edx: 08040330 esi: 0018 edi: 0010bb36 ebp: 0010 esp: 00cb0bb0 ds: 0018 es: 0018 fs: 002b gs: 002b ss: 0018 Process procradar (pid: 358, process nr: 38, stackpage=01726000) Stack: 0010bb36 0018 0010 00cb0bd0 0018 08040330 08034754 08040330 0010 0018 0018 0010bb36 0010 0202 001220b2 00fcef8e 003c 07b0003c 0051 00fc 001c5f38 000799b9 001dab28 Call Trace: [<0010bb36>] [<08040330>] [<08034754>] [<08040330>] [<0010bb36>] [<001220b2>] [<0010bb36>] [<0013dc30>] [<0802e2b1>] [<0802df34>] [<0010bb36>] [<0010e8e5>] [<0010d9d6>] [<0019871b>] [<0010bb36>] [<0013d065>] [<0802db36>] [<0010bb36>] [<0013cf8e>] [<0013db1b>] [<0010bb36>] [<0010bb36>] [<0010bb36>] [<001222e6>] [<0013cd4b>] [<0013c85b>] [<0013cb71>] [<0014b6b8>] [<0014c133>] [<00143f33>] [<08036c8e>] [<08038314>] [<0803cea0>] [<0803ce00>] [<08037c43>] [<0803ce14>] [<0803ce0c>] [<0803afc0>] [<0803ce00>] [<0803437b>] [<08040294>] [<08040294>] [<080403cc>] [<080403cc>] [<080344fa>] [<0803fd52>] [<080403cc>] [<08034010>] [<0803fb80>] Code: f0 c3 e2 00 f0 60 78 00 f0 60 78 00 f0 54 ff 00 f0 79 ea 00 -- _ | | | Frederic CAZENAVE | |_/\_ /^= LTHE / IRD | | \_/\//BP 53 | | | /-\ | 38041 Grenoble Cedex 9 | | || || France | | Tel 33 4 76 82 50 92 Fax 33 4 76 82 52 86 | | mailto:[EMAIL PROTECTED] | | http://www.lthe.hmg.inpg.from.fr/catch | |__| ___ Rtl mailing list [EMAIL PROTECTED] http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl
[rtl] Motion control
Hi, Does someone know where I can find a C code for a PID control motion of a motor. Fred -- _ | | | Frederic CAZENAVE | |_/\_ /^= LTHE / IRD | | \_/\//BP 53 | | | /-\ | 38041 Grenoble Cedex 9 | | || || France | | Tel 33 4 76 82 50 92 Fax 33 4 76 82 52 86 | | mailto:[EMAIL PROTECTED] | | http://www.lthe.hmg.inpg.from.fr/catch | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
[rtl] SMP and IRQ
Hi, sorry for this newbie question : is there a special way to set pci interrupt handler on a smp machine ? I cannot request_irq without frozen my system . if yes where could I find an exemple I'm working under rtlinux 3.1 kernel 2.4 Fred -- _ | | | Frederic CAZENAVE | |_/\_ /^= LTHE / IRD | | \_/\//BP 53 | | | /-\ | 38041 Grenoble Cedex 9 | | || || France | | Tel 33 4 76 82 50 92 Fax 33 4 76 82 52 86 | | mailto:[EMAIL PROTECTED] | | http://www.lthe.hmg.inpg.from.fr/catch | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
[rtl] printing float
Hi, What can I do to print float inside a fp thread ??? I tryed to do char f_print[128]; sprintf(f_print,"%f %f",128.5, 12.5); rtl_printf("%s \n",f_print); but the result is : %f %f Fred -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] out of topics but ...
Hi, I'm looking for a PCI DSP board I can use for signal processing. My acquisition board has 2 dma on board so I can put directly my data to the DSP board. I just want to compute this data and by dma place send them into my PC memory. Could you advice me a DSP board with 2 or 4 DSP not very expensive. Fred -- _ | | | Frederic CAZENAVE | | _/\_ /^= McGill Radar | | \_/ \// Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__|
[rtl] Modules
Hi, is there a way to check from a user space program if a module is installed or not ? And if my module is mot installed how to do it inside the program ? Fred -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] Environnement Advice
Hi, I have installed on my machine RedHat 7.0 with all this problems... Now I compile with gcc version 2.96 2731 (Red Hat Linux 7.0) (gcc-2.96-69) and glibc-devel-2.1.92-14. Now my problen concerning Root id has gone but I still get some problens : gcc -I../include -I/usr/src/linux/include -I/usr/src/rtlinux-3.0/include -I/usr/src/rtlinux-3.0/include/compat -D__KERNEL__ -Wall -Wstrict-prototypes -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -g -D__RTL__ -DMODULE -D_LOOSE_KERNEL_NAMES -O2 -I/usr/src/linux/include -I/usr/src/rtlinux-3.0/include -I/usr/src/rtlinux-3.0/include/compat -I/usr/src/rtlinux-3.0/include/posix -DDEBUG -c pii.c In file included from /usr/src/linux/include/asm/system.h:184, from /usr/src/linux/include/linux/sched.h:16, from /usr/src/linux/include/linux/vmalloc.h:4, from /usr/src/linux/include/asm/io.h:101, from pii.c:7: /usr/src/linux/include/asm/rtlinux_cli.h:24:13: warning: junk on line after #undef /usr/src/linux/include/asm/rtlinux_cli.h:25:13: warning: junk on line after #undef /usr/src/linux/include/asm/rtlinux_cli.h:26:20: warning: junk on line after #undef /usr/src/linux/include/asm/rtlinux_cli.h:27:23: warning: junk on line after #undef /usr/src/linux/include/asm/rtlinux_cli.h:33:17: warning: junk on line after #undef {standard input}: Assembler messages: {standard input}:46: Warning: Ignoring changed section attributes for .modinfo Could you advice me a better environement Best regards Fred Cazenave -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
Der Herr Hofrat 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 > > > > > what ever is going on here I don't think it realy is rtlinux related, with the > current rtlinux-3.0.tar.gz and 2.2.18 from kernel.org I can't reproduce this > problem on any of my boxes. > > could you specify what compiler-releas you are using ? > > also did you log in as root or did you su ? > > hofrat My gcc is 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) and I'm logged as root Fred -- _____ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
Thanks every buddies, I have upgraded my glibc (glibc-2.2.2-1.i686.rpm) and my problem seem to be solved. Fred Frederic Cazenave wrote: > The both files /etc/passwd and /etc/group the id of root is 0 !!! > > Fred > > Ludwig Öfele wrote: > > > Hello Frederic! > > > > I think, I had a similar problem after an update of Linux Kernel > > (without RT). Your effective user id is 4294967295 which corresponds to > > -1 if you look at it in 64-Bit-Terms. There seems to be a change of > > semantics (-1 changed to 4294967295) in the system and now the rights of > > user and the rights of files do not match any more. I can't explain it > > any better, but maybe this gives you an advice. > > I think, I fixed it by changing the id -1 in the groups or passwd file > > to something more sensful ( (unsigned int32)(-1) = 65535 ?). > > > > Have luck! > > > > Ludwig Öfele, Humantec Industriesysteme > > > > Frederic Cazenave wrote: > > > > > > Last week I have posted a question concerning the lost of my root > > > privilege > > > after installing rtlinux modules. I can summary all my mail with hofrat > > > ( Der Herr Hofrat <[EMAIL PROTECTED]> ), thanks to him, as following : > > > > > > 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 > > > > > > then patch linux with kernel_patch-2.2 and build the new rtlinux image > > > > > > when I reboot my machine and logged as root my id is > > > > > > [root@xport /root]# id > > > uid=0(root) gid=0(root) > > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) > > > > > > After installing all the modules of rtlinux my effective id changes : > > > > > > uid=0(root) gid=0(root) euid=4294967295 > > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) > > > (here there is no possibility to bring down the system propely !!) > > > > > > If I remove all the rt modules my id goes back to the original > > > > > > uid=0(root) gid=0(root) > > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) > > > > > > Rigth now I didn't find any solution > > > > > > Fred Cazenave > > > > > > -- > > > _ > > > | | > > > | Frederic CAZENAVE | > > > |_/\_ /^= McGill Radar | > > > | \_/\//Box 198, MacDonald College | > > > | | /-\ | Ste Anne de Bellevue | > > > | || || Quebec, Canada H9X 3V9 | > > > | Tel (514) 398 7733 fax (514) 398 7755 | > > > | mailto:[EMAIL PROTECTED] | > > > | http://www.mpl.orstom.fr/hydrologie/catch/ | > > > |__| > > > > > > -- [rtl] --- > > > To unsubscribe: > > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > > > echo "unsubscribe rtl " | 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 " | mail [EMAIL PROTECTED] > -- > For more information on Real-Time Linux see: > http://www.rtlinux.org/rtlinux/ -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] root id
The both files /etc/passwd and /etc/group the id of root is 0 !!! Fred Ludwig Öfele wrote: > Hello Frederic! > > I think, I had a similar problem after an update of Linux Kernel > (without RT). Your effective user id is 4294967295 which corresponds to > -1 if you look at it in 64-Bit-Terms. There seems to be a change of > semantics (-1 changed to 4294967295) in the system and now the rights of > user and the rights of files do not match any more. I can't explain it > any better, but maybe this gives you an advice. > I think, I fixed it by changing the id -1 in the groups or passwd file > to something more sensful ( (unsigned int32)(-1) = 65535 ?). > > Have luck! > > Ludwig Öfele, Humantec Industriesysteme > > Frederic Cazenave wrote: > > > > Last week I have posted a question concerning the lost of my root > > privilege > > after installing rtlinux modules. I can summary all my mail with hofrat > > ( Der Herr Hofrat <[EMAIL PROTECTED]> ), thanks to him, as following : > > > > 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 > > > > then patch linux with kernel_patch-2.2 and build the new rtlinux image > > > > when I reboot my machine and logged as root my id is > > > > [root@xport /root]# id > > uid=0(root) gid=0(root) > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) > > > > After installing all the modules of rtlinux my effective id changes : > > > > uid=0(root) gid=0(root) euid=4294967295 > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) > > (here there is no possibility to bring down the system propely !!) > > > > If I remove all the rt modules my id goes back to the original > > > > uid=0(root) gid=0(root) > > groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) > > > > Rigth now I didn't find any solution > > > > Fred Cazenave > > > > -- > > _ > > | | > > | Frederic CAZENAVE | > > |_/\_ /^= McGill Radar | > > | \_/\//Box 198, MacDonald College | > > | | /-\ | Ste Anne de Bellevue | > > | || || Quebec, Canada H9X 3V9 | > > | Tel (514) 398 7733 fax (514) 398 7755 | > > | mailto:[EMAIL PROTECTED] | > > | http://www.mpl.orstom.fr/hydrologie/catch/ | > > |__| > > > > -- [rtl] --- > > To unsubscribe: > > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > > echo "unsubscribe rtl " | 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 " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] root id
Last week I have posted a question concerning the lost of my root privilege after installing rtlinux modules. I can summary all my mail with hofrat ( Der Herr Hofrat <[EMAIL PROTECTED]> ), thanks to him, as following : 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 then patch linux with kernel_patch-2.2 and build the new rtlinux image when I reboot my machine and logged as root my id is [root@xport /root]# id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) After installing all the modules of rtlinux my effective id changes : uid=0(root) gid=0(root) euid=4294967295 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) (here there is no possibility to bring down the system propely !!) If I remove all the rt modules my id goes back to the original uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) Rigth now I didn't find any solution Fred Cazenave -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] Root privilege
After a boot, I'm logged as root [root@xport /root]# id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) [root@xport /root]# insrtl [root@xport /root]# id uid=0(root) gid=0(root) euid=4294967295 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) [root@xport /root]# rmrtl [root@xport /root]# id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) [root@xport /root]# There is a change of the effective ID of root Fred Cazenave Der Herr Hofrat wrote: > > Hi, > > > > I just updrate my machine with RTLinux V3 and I got a problem after > > installing the > > modules : > > >insrtl > > >lsmod > > Module Size Used by > > mbuff 5156 0 (unused) > > psc18264 0 (unused) > > rtl_fifo8536 0 [psc] > > rtl_posixio 6988 0 [rtl_fifo] > > rtl_sched 26692 0 [psc] > > rtl_time4964 0 [psc rtl_posixio rtl_sched] > > rtl17392 0 [psc rtl_fifo rtl_posixio rtl_sched > > rtl_time] > > rtl813912420 1 (autoclean) > > aic7xxx 137112 3 > > >reboot > > reboot: must be superuser. > > > > But I'm logged as root all the commands init shutdown etc provide > > the same message. > > > > my configuration is : Linux xport.mrwo.mcgill.ca 2.2.18-rtl #1 Fri Feb > > 16 15:26:45 EST 2001 i686 unknown > > > > Any idear > > > did you set /sbin/insmod suid 0 ?? > what does id give you befor you insrtl and after ?? > > hofrat -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] Root privilege 2
I just noticed when I remove all the rtlinux modules I get back all the root privileges. Is it a new feature of this release to prevent any shutdown Fred cazenave -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] Root privilege
Hi, I just updrate my machine with RTLinux V3 and I got a problem after installing the modules : >insrtl >lsmod Module Size Used by mbuff 5156 0 (unused) psc18264 0 (unused) rtl_fifo8536 0 [psc] rtl_posixio 6988 0 [rtl_fifo] rtl_sched 26692 0 [psc] rtl_time4964 0 [psc rtl_posixio rtl_sched] rtl17392 0 [psc rtl_fifo rtl_posixio rtl_sched rtl_time] rtl813912420 1 (autoclean) aic7xxx 137112 3 >reboot reboot: must be superuser. But I'm logged as root all the commands init shutdown etc provide the same message. my configuration is : Linux xport.mrwo.mcgill.ca 2.2.18-rtl #1 Fri Feb 16 15:26:45 EST 2001 i686 unknown Any idear Fred Cazenave -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] PCI advice
Hi, Could you tall me what is the best way to transfer data between a Dual Port Ram on a PCI board to a "mbuff" share memory. Rigth now I use a memcpy_fromio inside a RTL interrupt routine, but I wonder if I can implement something more efficient. regards Fred Cazenave -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] c4x-gcc
Hi, I would like to know if some of you use c4x-gcc to compile TMS320 program. I will need some help !!! regards Fred -- _ | | | Frederic CAZENAVE | |_/\_ /^= McGill Radar | | \_/\//Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] ioremap problem
Something strange : I can't change my TIMER_LATENCY !! I have added the few lines following : pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat); printk("PCI:latency timer of device %x equal to %d\n",dev->device,lat); if (lat < 16) { pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64); pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat); printk("PCI: Increasing latency timer of device %x set to %d\n", dev->device,lat); } and the result are not very good : Aug 22 19:24:34 Xport kernel: Starting Real Time Piraq II module Aug 22 19:24:34 Xport kernel: PCI:latency timer of device 5920 equal to 0 Aug 22 19:24:34 Xport kernel: PCI: Increasing latency timer of device 5920 set to 0 Aug 22 19:24:34 Xport kernel: @DPRAM = 0xc8c64000 d708 Aug 22 19:24:34 Xport kernel: @TIMER = 0xc8c85000 d70a Aug 22 19:24:34 Xport kernel: @STATUS = 0xc8c87000 d70a1000 Aug 22 19:24:34 Xport kernel: @LOOKUP = 0xc8c89000 d700 Aug 22 19:24:34 Xport kernel: Piraq II board found at 0xec01 interrupt 0xa Concerning the readl and readb, I have tested all the possibilities : read/wrire u8 : unsigned char read_mem (u32 * Base) { Mem_RW def; u8 *ptr,*mem; int i; #ifdef DEBUG printk("Cmd Mem_read received\n"); #endif ptr = (u8*)shm; memcpy (&def,(Mem_RW *)ptr,sizeof(Mem_RW)); mem = (u8*)(Base+def.offset); for(i=0;i begin:vcard n:Cazenave;Frederic tel;fax:514 398 77 55 tel;work:514 398 77 33 x-mozilla-html:FALSE org:IRD MRWO version:2.1 email;internet:[EMAIL PROTECTED] adr;quoted-printable:;;JS Marshall Observatory=0D=0AMac Donald College=0D=0ABox 198;Sainte Anne de Bellevue;Quebec;H9X 3V9;Canada x-mozilla-cpt:;0 fn:FredericCazenave end:vcard
[rtl] ioremap problem
Hi, Last week, I have sent a request concerning an ioremap problem. With the answers of Stephen Cohen I have change parts of my source and I have obtain a result. I can resume my problem like this : I use a PCI acquisition board for a weather experiment project. This board has onboard two memories : one is call DPRAM and this other on is LOOKUP. This two memories are read write and can be accessed via the pci bus. With a small module and a test program I try to fill the 2 memories and read back them to be sure every thing is correct. Before last thursday I was only able to pass the test for the DPRAM. When I tried to read the value from the LOOKUP I collected for the whole memory only the last value written. After a reboot on thursday afternoon I was able to pass the test for both memory. But with a new reboot the problem appeared again and now it still there. I have test the same code with a other pc and a other acquisition board without success. I do something wrong or I forget something but I don't know what. I add the code of my module and the small test program to this mail If someone is able to help me it will be great !!! Thanks a lot Fred //MODULE #include #include #include #include #include #include #include #include #include #include #include "globals.h" #include "dialog.h" pthread_t thread; #define PIRAQ_VENDOR 0x10E8 #define PIRAQ_ID 0x5920 #define PIRAQ_DEVICE 0xB102 #define OFFSET_DPRAM 0x1 #define FIFO_CMD 1 #define FIFO_RESULT 2 unsigned char state=0; unsigned int*PII_DPRAM; unsigned short *STATUS; unsigned int*TIMER; unsigned int*LOOKUP; unsigned char result; u32 *shm; int init_piraq(void) { u32 val; struct pci_dev * dev = NULL; printk("\nStarting Real Time Piraq II module\n"); dev = pci_find_device(PIRAQ_VENDOR,PIRAQ_ID, dev); if (dev == NULL) { printk("No Piraq board installed\n"); return (-1); } pci_read_config_dword (dev,0x14,&val); PII_DPRAM = ioremap(val,(u32)0x2); #ifdef DEBUG printk("@DPRAM = 0x%x %x\n",(u32)PII_DPRAM,val); #endif if(check_region((u32)PII_DPRAM,0x2)) { printk("Piraq Dpram is locked by someone else\n"); // return (-1); } request_region((u32)PII_DPRAM,0x2,"PII_dpram"); pci_read_config_dword (dev,0x18,&val); TIMER = ioremap(val,(u32)0x40); #ifdef DEBUG printk("@TIMER = 0x%x %x\n",(u32)TIMER,val); #endif if(check_region((u32)TIMER,0x40)) { printk("Piraq Timer is locked by someone else\n"); //return (-1); } request_region((u32)TIMER,0x40,"PII_Timer"); pci_read_config_dword (dev,0x1C,&val); STATUS = ioremap(val,(u32)0x02); #ifdef DEBUG printk("@STATUS = 0x%x %x\n",(u32)STATUS,val); #endif if(check_region((u32)STATUS,0x02)) { printk("Piraq Status is locked by someone else\n"); //return (-1); } request_region((u32)STATUS,0x02,"PII_Status"); pci_read_config_dword (dev,0x20,&val); LOOKUP = ioremap(val,(u32)0x4); #ifdef DEBUG printk("@LOOKUP = 0x%x %x\n",(u32)LOOKUP,val); #endif if(check_region((u32)LOOKUP,0x4)) { printk("Piraq Lookup Table is locked by someone else\n"); //return (-1); } request_region((u32)LOOKUP,0x4,"PII_lookup"); state = 0; printk("Piraq II board found at 0x%lx interrupt 0x%x\n",dev->base_address[0],dev->irq); return (0); } unsigned char read_mem (u32 Base) { Mem_RW def; unsigned int *ptr,*mem; int i; #ifdef DEBUG printk("Cmd Mem_read received\n"); #endif ptr = shm; memcpy (&def,(Mem_RW *)ptr,sizeof(Mem_RW)); mem = (u32 *)(Base+def.offset); // memcpy_fromio(ptr,mem,def.size*sizeof(u32)); for(i=0;i #include #include #include #include #include #include #include #include #include "dialog.h" #define IVALUE(a) ((a) * 0x52384745) int memtest(char mem, int offset, int size, char *str) { // offset and size are in bytes int fd0,fd2; unsigned int cmd; Mem_RW ram; int i; int success; unsigned int *shm,*ptr; unsigned char result; // shm =(unsigned int *) mbuff_alloc ("SHMEM",1024 * 1024 * 10); shm =(unsigned int *) mbuff_attach ("SHMEM",1024 * 1024 * 10); ptr= shm; if ((fd0 = open("/dev/rtf1", O_WRONLY)) < 0) { fprintf(stderr, "Error opening /dev/rtf8\n"); return(-1); } memset(shm,0,1024*1024*10); if ((fd2 = open("/dev/rtf2", O_RDONLY)) < 0) { fprintf(stderr, "Error opening /dev/rtf3\n"); exit(1); } printf ("Test %s started\n",str); /* first determine if there is anything wrong */ /* a) write deterministic uncorrelated number to every address */ if (mem == 'D' ) cmd = WDPRAM; else cmd = WLOOKUP; ram.offset=offset; ram.size= size/sizeof(int); memcpy((Mem_RW *)ptr,&ram,sizeof(Mem_RW)); ptr+=sizeof(Mem_RW); for (i=0;i" | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] ioremap problem
Dear Stephen, and all > Have you tried check_mem_region and request_mem_region? They would > seem to be the appropriate incantations here. > I'm not sure but I think this 2 functions are only available in V2.3. In my case I use a V2.2. > Alternatively, if you know > that you are the only one using the board you can just ignore the > check/request mechanisms entirely. I know that this is bad form, but I am a > fan of expedience over form in such cases. > When I write to my memory LOOKUP, and read it immediately, the read and the write are identical but If I read it just after, it seems the whole memory is filled with the last value The following source is part of my program. I write a value in memory pointed by ptr and write it at the address LOOKUP+lookup.offset+i. Then I read again all the values written. for (i=0;imailto:[EMAIL PROTECTED] | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__| -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] ioremap problem
Hi, I try to port a DOS program under rtl but I've a problem to map a pci memory : On my pci acquisition board I've got 0x2 bytes of DPRAM, 0x4 bytes for a table, 0x20 bytes for Timer and 2 for a status register. under /proc/pci I can see the physical adress of this four regions : Bus 0, device 9, function 0: Keyboard controller: AMCC Unknown device (rev 0). Vendor id=10e8. Device id=5920. Medium devsel. Fast back-to-back capable. IRQ 10. I/O at 0xf000 [0xf001]. Non-prefetchable 32 bit memory at 0xffac [0xffac]. Non-prefetchable 32 bit memory at 0xffabffc0 [0xffabffc0]. Non-prefetchable 32 bit memory at 0xffabffb0 [0xffabffb0]. Non-prefetchable 32 bit memory at 0xffa0 [0xffa0]. when I init my module I request this regions like this : int init_piraq(void) { u32 val; struct pci_dev * dev = NULL; printk("\nStarting Real Time Piraq II module\n"); dev = pci_find_device(PIRAQ_VENDOR,PIRAQ_ID, dev); if (dev == NULL) { printk("No Piraq board installed\n"); return (-1); } pci_read_config_dword (dev,0x20,&val); LOOKUP = ioremap(val,(u32)0x4); #ifdef DEBUG printk("@LOOKUP = 0x%x %x\n",LOOKUP,val); #endif if(check_region(*LOOKUP,0x4)) { printk("Piraq Lookup Table is locked by someone else\n"); } request_region(*LOOKUP,0x4,"PII_lookup"); pci_read_config_dword (dev,0x14,&val); PII_DPRAM = ioremap(val,(u32)0x2); #ifdef DEBUG printk("@DPRAM = 0x%x %x\n",PII_DPRAM,val); #endif if(check_region(*PII_DPRAM,0x2)) { printk("Piraq Dpram is locked by someone else\n"); } request_region(*PII_DPRAM,0x2,"PII_dpram"); pci_read_config_dword (dev,0x18,&val); TIMER = ioremap(val,(u32)0x40); #ifdef DEBUG printk("@TIMER = 0x%x %x\n",TIMER,val); #endif if(check_region(*TIMER,0x40)) { printk("Piraq Timer is locked by someone else\n"); } request_region(*TIMER,0x40,"PII_Timer"); pci_read_config_dword (dev,0x1C,&val); STATUS = ioremap(val,(u32)0x02); #ifdef DEBUG printk("@STATUS = 0x%x %x\n",STATUS,val); #endif if(check_region(*STATUS,0x02)) { printk("Piraq Status is locked by someone else\n"); } request_region(*STATUS,0x02,"PII_Status"); } All the printk provide the following result : Aug 15 20:36:58 kernel: Starting Real Time Piraq II module Aug 15 20:36:58 kernel: created RT-thread Aug 15 20:36:58 kernel: @LOOKUP = 0xc2a5a000 ffa0 Aug 15 20:36:58 kernel: Piraq Lookup Table is locked by someone else Aug 15 20:36:58 kernel: @DPRAM = 0xc2a9b000 ffac Aug 15 20:36:58 kernel: @TIMER = 0xc2abcfc0 ffabffc0 Aug 15 20:36:58 kernel: @STATUS = 0xc2abefb0 ffabffb0 Aug 15 20:36:58 kernel: Piraq II board found at 0xf001 interrupt 0xa Under /proc/ioports I can see all my request except the one for the LOOKUP. If I decrease the size of the LOOKUP to some thing very small I can make the request. Do you have any solution I can allocate all the LOOKUP size with djgpp. Thank in advance Fred Cazenave -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] Share Men
Hi, Sorry to send an other question concerning share memory but My system was working correctly until I've decided to increase my share memory to add a large ring buffer. Now the system crash hardly without debuging information. So I have tryed to run a small test program without success. my system is uname -a Linux lthemc19.hmg.inpg.fr 2.0.36.RTL1.1 #1 Fri Mar 26 21:27:38 CET 1999 i586 unknown my lilo.conf is : more /etc/lilo.conf boot=/dev/sda map=/boot/map install=/boot/boot.b prompt timeout=50 image=/boot/rt-vmlinuz-2.0.36 label=rtlinux root=/dev/sda1 read-only append="mem=126m" my meminfo : cat /proc/meminfo total:used:free: shared: buffers: cached: Mem: 128937984 126701568 2236416 23920640 85069824 18231296 Swap: 90439680 4096 90435584 MemTotal:125916 kB MemFree: 2184 kB MemShared:23360 kB Buffers: 83076 kB Cached: 17804 kB SwapTotal:88320 kB SwapFree: 88316 kB The total of mem should be around 126 meg and note 128 ?? my test program : #include #include #include #include #define ADDRESS (126*0x10) main(void) { char *user_ptr,*ptr; int fdm; int i; if ((fdm = open("/dev/mem", O_RDONLY)) < 0) { fprintf(stderr, "Error opening /dev/mem \n"); exit(1); } user_ptr = (char * ) mmap ( 0, 0x10, PROT_READ, MAP_FILE |MAP_PRIVATE, fdm, ADDRESS); if (MAP_FAILED == user_ptr) { /* handle error here */ close(fdm); printf("perdu\n"); } memset(user_ptr, 0,0x10); munmap ( user_ptr, 0x10 ); close(fdm); } On the memset I have a core dump ?? Where is my mistake ??? Thank you in advance for your help Fred --- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] For more information on Real-Time Linux see: http://www.rtlinux.org/~rtlinux/