Linux-Development-Sys Digest #170, Volume #8 Mon, 25 Sep 00 12:13:17 EDT
Contents:
R: -lcrypt ("GianLuca Valecchi")
CAN-Bus (St. Rosik)
How can I strip the kernel ? ("St. Otto")
Re: Compresses root filesystem (Jerome Corre)
lilo problems with 2.4.0-testx (F. Heitkamp)
nocachable memory on non-PC? (F. Heitkamp)
Re: nocachable memory on non-PC? (Arne Driescher)
RS232 / Mitutoyo Counter and Basic example ("O.Petzold")
technical question about PF_PACKET/SOCK_DGRAM (Jerome Tollet)
Re: technical question about PF_PACKET/SOCK_DGRAM (Andi Kleen)
Re: technical question about PF_PACKET/SOCK_DGRAM (Jerome Tollet)
extract value form the kernel (Frank Contrepois)
Re: ioremap not in namespce...? (Sean Patrick McNamee)
Re: new windowing system (Dan Mercer)
Nuestro Portal sigue creciendo... ("Marcos N��ez (Tienda Digital.com)")
POSIX named semaphores on Linux ? (Stephane St-Hilaire)
Re: ioremap not in namespce...? (Arne Driescher)
How to intercept selected system calls (aslin)
Re: POSIX named semaphores on Linux ? (Kaz Kylheku)
----------------------------------------------------------------------------
From: "GianLuca Valecchi" <[EMAIL PROTECTED]>
Subject: R: -lcrypt
Date: Mon, 25 Sep 2000 10:21:12 +0200
B.Lim <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]
> Can anyone tell me where I can get 'lcrypt'? I'm trying to
> compile util-linux to enable serpent encryption support in
> losetup and mount so that I can use the loopback encrypted
> file system. When doing a './configure' it states that I
> need lcrypt. What library does lcrypt belong to? I'm running
> Debian 2.2 and would like to know if there's a deb package of
> that library that has 'lcrypt'.
>
> Thanks.
> Benjamin Lim.
>
Hi,
I don't know if this is what you need, but I think that you have to search
for :
libcrypt.<deb extension>
and not lcrypt.
"-lXXX" says that ln is searching for a library called libXXX.a or libXXX.so
to link to.
Perhaps I misunderstood your questio. if so I apologize
Bye,
GianLuca
------------------------------
From: [EMAIL PROTECTED] (St. Rosik)
Subject: CAN-Bus
Date: 25 Sep 2000 08:09:32 GMT
Dear list,
is there any software aviable (any patch, or kern-mod) to make a CAN-Bus Card from ESD
run ???
yours
Stefan
[EMAIL PROTECTED]
------------------------------
From: "St. Otto" <[EMAIL PROTECTED]>
Subject: How can I strip the kernel ?
Date: Mon, 25 Sep 2000 12:01:28 +0200
Hello,
we are looking for a way to strip the Suse kernel.
The destination is to eliminate as much functionality
as possible - all not called functions (not called from
an given application) and all functions, that are not called
from services used by this application (like ip, filesystem
and so on) should be removed.
What services we must use - currently we don't know finally.
Actually it would be sufficient to learn something about
the way to reach this destination.
Our first idea was using a tool like "calltree_2.0". But is this
the right way ? (Especially: calltree does not detect function
pointers !)
Has anyone a better idea ?
Thanks, Steffen
------------------------------
From: Jerome Corre <[EMAIL PROTECTED]>
Subject: Re: Compresses root filesystem
Date: Mon, 25 Sep 2000 10:06:45 GMT
In article <AOtz5.60057$[EMAIL PROTECTED]>,
"Sumit Birla" <[EMAIL PROTECTED]> wrote:
> Does anyone know how to instruct the kernel to load a compressed root
> filesystem into a ramdisk? The compressed root fs resides on a hard
drive
> and I would like it to run from /dev/ram0 so that I can spin down the
HD
> once the system has booted up. I have been able to get this to work
when I
> boot from a floppy, but no luck getting it to work when booting from
a hard
> drive.
>
I have done it using initrd (initial ramdisk) the kernel load an
initial ram disk into ram0 and start a script (call linuxrc) in the
script i mount the hard disk, retreive the compressed file system from
the hard disk, decompressed it into ram1, and then umount the hard disk
and ram0, the kernel then mount ram1 as root and run init from it.
look into man initrd for more detailed info. note that i use lilo to
retreive the initrd image from the hard disk.
Jerome
--
Jerome Corre
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Crossposted-To: linux.dev.kernel
From: [EMAIL PROTECTED] (F. Heitkamp)
Date: Mon, 25 Sep 2000 06:36:39
Subject: lilo problems with 2.4.0-testx
Reply-To: [EMAIL PROTECTED]
I have yet to figure out why I can't get lilo to boot
the 2.4.0-testx kernels I've compiled. The test8
version works fine booting from a floppy. I even tried the
latest Lilo from metalab and I get the famous (at least
to me) "No setup signature found". I have a AMD Athlon 650
and KX133 MB with all SCSI drives. I have Symbios 53c875 based
SCSI cards. Could some tell me how the have lilo setup to boot
2.4.0x kernels? I have all my kernels in the root directory.
Could this be causing the problem?
All of the 2.2.x kernels work fine.
Fred
------------------------------
Crossposted-To: linux.dev.kernel
From: [EMAIL PROTECTED] (F. Heitkamp)
Date: Mon, 25 Sep 2000 06:59:38
Subject: nocachable memory on non-PC?
Reply-To: [EMAIL PROTECTED]
I'm working on a device driver for a non PC Linux
system and I need to get a (noncachable) memory
range associated with the particular device. There
is no PC style I/O so check_region()/request_region()
will not work. Someone mentioned check_mem_region()/
request_mem_region(). These functions are not
available (evidently) on 2.2.10 kernel I'm using.
Is there any way I can roll my own version? Can I
use the get_free_pages call? If any guru can give me
some tips or point me to a good example, I'd
appreciated it. Thanks!
Fred
------------------------------
From: Arne Driescher <[EMAIL PROTECTED]>
Crossposted-To: linux.dev.kernel
Subject: Re: nocachable memory on non-PC?
Date: Mon, 25 Sep 2000 13:13:58 +0200
"F. Heitkamp" wrote:
>
> I'm working on a device driver for a non PC Linux
> system and I need to get a (noncachable) memory
> range associated with the particular device. There
> is no PC style I/O so check_region()/request_region()
> will not work. Someone mentioned check_mem_region()/
> request_mem_region(). These functions are not
> available (evidently) on 2.2.10 kernel I'm using.
> Is there any way I can roll my own version? Can I
> use the get_free_pages call? If any guru can give me
> some tips or point me to a good example, I'd
> appreciated it. Thanks!
>
> Fred
Hmm, what does non PC Linux mean? Basically there is old style
port pased i/o on the PC and mostly memory maped i/o on
systems like alpha, sparc ....
Your "(noncachable) memory
> range associated with the particular device."
is surly some kind of memory maped i/o range, right?
Therefore, have a look at any PCI driver to see how
i/o-memory is maped into your device driver.
I guess you look for something like
(u_long) ioremap_nocache(BaseAddr, SizeOfYourMemArea );
Hope this helps.
-Arne
------------------------------
From: "O.Petzold" <[EMAIL PROTECTED]>
Subject: RS232 / Mitutoyo Counter and Basic example
Date: Mon, 25 Sep 2000 12:47:27 +0200
Hallo,
I have here a Mitutoyo linear gauge with a counter. I want to connect
this
counter to my linux box using the RS323. In the manual there is an
example
in basic:
50 open "com:e72" as#1
60 print #1, "CS00"
70 input "ef-11pr ? Y or N", CS
80 print #1, "GA00"
90 print "GA00"
100 if LOC(1) = 0 then goto 100
110 line input #1, as
120 print " ", as;
130 if CS="Y" then 160
140 line input #1, AS
150 print " ", AS;
160 print
170 for i=0 to 100. next
180 goto 80
please don't stone me 8).
This should put the counter value to the display. My knowledge about
BASIC
is less than poor and I have to write a program for reading theses. The
program
has to be in C/C++, runinning in a linux box.
Now my questions:
- What happend above - translated to C
- How can I read/write to the serial port, what does it mean line 50 ?
(com:e72 and as #1 ?)
- line 60: print #1, "CS00": does it mean put cs00 into stream???? #1,
is it hex, ascii ???
- Is there allready source for the Mitotoyo Counter EF -11 series ?
Thanks Olaf
------------------------------
From: Jerome Tollet <[EMAIL PROTECTED]>
Subject: technical question about PF_PACKET/SOCK_DGRAM
Date: Mon, 25 Sep 2000 14:02:59 +0200
Hello,
I wrote a program that is listennig on port 3000. When a packet arrive,
i want to redistribute it on 2 other ports on the same host. I can't
simply use a sendto for 2 reasons:
-The source and destination addresses must be conserved in the IP packet
-I don't want the packet to be sent again on the network
So i created a packet socket using "socket(PF_PACKET, SOCK_DGRAM,
htons(ETH_P_IP))" :
/// start of code
void init_packet_socket(){
if ( (packet_socket = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) <
0) {
perror("packet socket");
exit(1);
}
atexit(close_packet_socket);
strncpy(ifr.ifr_name, "lo", sizeof(ifr.ifr_name));
if(ioctl(packet_socket, SIOCGIFINDEX, &ifr)) {
perror("lo doesn't exist");
exit(1);
}
ll_addr.sll_ifindex = ifr.ifr_ifindex;
if( ioctl(packet_socket, SIOCGIFHWADDR, &ifr) < 0) {
perror("can't get hw address");
exit(1);
}
ll_addr.sll_family = AF_PACKET;
ll_addr.sll_protocol = htons(ETH_P_IP);
ll_addr.sll_hatype = htons(ifr.ifr_hwaddr.sa_family);
ll_addr.sll_pkttype = PACKET_LOOPBACK;
ll_addr.sll_halen = 0;
memset(&ll_addr.sll_addr,0,8);
}
///// end of code
When i receive a packet (using a simple socket(AF_INET, SOCK_DGRAM, 0)
and a recvfrom), i build an IP/UDP packet, then i send it with my packet
socket.
It works fine with packets coming from other host, but if a packet is
coming from the same linux it fails :
case 1
======
-my addr is 192.168.2.4
-an host (192.168.2.3) send me a packet (using 192.168.2.255 broadcast
addr), my program receives the packet and forwards it correctly.
case 2 (buggy)
==============
-my addr is 192.168.2.4
-my host send a packet to others (192.168.2.255 broadcast address).
Other hosts receives the packet. my program receives the packet and
forward it. Forward fails without reporting error :-(
Thanks a lot for help
============
Jerome Tollet
[EMAIL PROTECTED]
=============
------------------------------
From: Andi Kleen <[EMAIL PROTECTED]>
Subject: Re: technical question about PF_PACKET/SOCK_DGRAM
Date: 25 Sep 2000 14:22:10 +0200
Jerome Tollet <[EMAIL PROTECTED]> writes:
> case 2 (buggy)
> --------------
> -my addr is 192.168.2.4
> -my host send a packet to others (192.168.2.255 broadcast address).
> Other hosts receives the packet. my program receives the packet and
> forward it. Forward fails without reporting error :-(
Try echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
-Andi
------------------------------
From: Jerome Tollet <[EMAIL PROTECTED]>
Subject: Re: technical question about PF_PACKET/SOCK_DGRAM
Date: Mon, 25 Sep 2000 14:56:01 +0200
Andi Kleen wrote:
>
> Jerome Tollet <[EMAIL PROTECTED]> writes:
>
> > case 2 (buggy)
> > --------------
> > -my addr is 192.168.2.4
> > -my host send a packet to others (192.168.2.255 broadcast address).
> > Other hosts receives the packet. my program receives the packet and
> > forward it. Forward fails without reporting error :-(
>
> Try echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
>
> -Andi
My /proc/sys/net/ipv4/conf/all/rp_filter was already to 0, so the
problem is not here.
Thanks
--
=============
Jerome Tollet
[EMAIL PROTECTED]
=============
------------------------------
From: Frank Contrepois <[EMAIL PROTECTED]>
Subject: extract value form the kernel
Date: Sun, 24 Sep 2000 22:37:38 +0200
I need to extract the values of diferent variables of the linux kernel
how can I do that .
I'm totaly new with kernel hacking
I've thought of using proc or a device...
thanx
--
Pazzooo
------------------------------
From: Sean Patrick McNamee <[EMAIL PROTECTED]>
Subject: Re: ioremap not in namespce...?
Date: Mon, 25 Sep 2000 14:27:05 GMT
Arne Driescher wrote:
> > Hmmm.... I tried re-compiling the kernel with CONFIG_MODVERSIONS = 0 via
> > make menuconfig, verified that it was #undef'd in
> > linxlude/config/modversions.h, and did the
> > compile the kernel thang, and also tried #inlcuding the linux/version.h in
> > my own module... neither worked.
> > Also, shouldn't I be able to see ioremap in the ksyms output??? Methinks my
> > kernel takes the 'short bus' to school....
> >
> Hmm, strange problem. What kernel version are you useing?
> ioremap is not presend in the 2.0.x series. It was called vremap.
> Try to include sysdep.h from the driver book. May be that
> will fix your problem.
>
> -Arne
>
> P.S. ioremap should be defined in io.h.
I am running kernel version 2.2.5-15, so I believe I am supposed to have access
to ioremap().
I tried including the sysdep.h file from the book just for the hell of it, but
with no luck.
The funny thing is, the module compiles just fine, it's when I try to load it
that I get the error.
I'm stilll unclear as to whether I shoule be able to see ioremap in the ksyms
output...
Thanks for your help,
Sean McNamee
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Dan Mercer)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: 25 Sep 2000 14:00:53 GMT
In article <dFuz5.13361$[EMAIL PROTECTED]>,
Jan D. <[EMAIL PROTECTED]> writes:
> In article <[EMAIL PROTECTED]>,
> Christopher Browne <[EMAIL PROTECTED]> wrote:
>
>> Hmmm... I thought CDE was essentially an HP 'innovation' that got
>> redeployed as an Open Group thing. Or did the committee run rampant
>> afterwards?
>
> Not by the looks of things. HP had VUE (Visual User Environment or
> something like that) before CDE existed. It looked exactly as CDE
> does now, pixel by pixel. I think CDE was just a name change.
>
> Jan D.
HP-VUE's look and feel has not essentially changed since I began using
version 2.0 in 1991. VUE predates Microsoft's first successful GUI,
Windows 3.0. (3.0 had so many holes in it it was rapidly replaced by 3.1).
CDE merged HP's VUE technology with Sun's ToolTalk, added a couple
of Motif 2.0 widgets (the DtComboBox and DtSpinBox) and enhanced
ksh93 to interface to X11 (dtksh). They also better modularized
the functionality. Still, the look and feel has not essentially
changed.
--
Dan Mercer
[EMAIL PROTECTED]
Opinions expressed herein are my own and may not represent those of my employer.
------------------------------
From: "Marcos N��ez (Tienda Digital.com)" <[EMAIL PROTECTED]>
Crossposted-To:
comp.os.linux.hardware,comp.os.linux.help,comp.os.linux.m68k,comp.os.linux.misc
Subject: Nuestro Portal sigue creciendo...
Date: Mon, 25 Sep 2000 16:49:01 +0200
El portal de tiendas y servicios de la red sigue creciendo, en el puedes
encontrar:
- M�s de 1000 tiendas y servicios en :
� �nete a nosotros: Reg�strate gratis en Tienda Naranja,
Orientada a tener una presencia b�sica en Internet. Totalmente gratuita.
� Alta ON LINE de Tienda Azul: Web especializada con 10
escaparates. Es un servicio profesional con opci�n de comercio electr�nico y
una imagen representativa suficiente para desenvolverse en la Red.
http://www.tiendadigital.com
-Hemos abierto para ti la mayor Sala de Exposiciones posible... Muestra
tu obra. Sorpr�ndenos con tu creatividad.
Y adem�s GRATIS. Si no eres artista cu�ntaselo a un amigo. �� Seguro que le
interesa!!
http://www.tiendadigital.com/sala/index1.asp
- El Rastreador: Descubre con nosotros la Comunidad Valenciana, sitios
curiosos e interesantes. Actividades tradicionales o vanguardistas. Sigue la
pista del Rastreador y disfruta con una escapada de fin de semana, la
lectura de nuestra propuesta literaria...
http://www.tiendadigital.com/rastreador0.asp
- Nuestros fondos de pantalla: Im�genes cedidas por el fot�grafo V�ctor
Ciscar, donde el tema en com�n es la naturaleza, disfr�talos como ya lo hace
mucha gente de la red.
http://www.tiendadigital.com/fondos.htm
������ �NETE A NOSOTROS !!!!!!!
������ REGISTRARSE ES GRATIS !!!!!!!
begin 666 Marcos Nu�ez Clemente.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..D-L96UE;G1E.TUA<F-O<SM.
M=?%E>@T*1DXZ36%R8V]S($YU\65Z($-L96UE;G1E#0I/4D<Z=W=W+G1I96YD
M861I9VET86PN8V]M.TEN9F]R;>%T:6-A#0I414P[5T]22SM63TE#13HY-C,T
M-C8S-#$-"E1%3#M73U)+.T9!6#HY-C,T-C8S-#$-"D%$4CM73U)+.CL[.U9A
M;&5N8VEA.U9A;&5N8VEA.S0V,# Y.T5S<&'Q80T*3$%"14P[5T]22SM%3D-/
M1$E.1SU154]4140M4%))3E1!0DQ%.E9A;&5N8VEA+"!686QE;F-I82 T-C P
M.3TP1#TP045S<&$]1C%A#0I54DPZ#0I54DPZ:'1T<#HO+W=W=RYT:65N9&%D
M:6=I=&%L+F-O;0T*14U!24P[4%)%1CM)3E1%4DY%5#IM87)C;W- =&EE;F1A
M9&EG:71A;"YC;VT-"E)%5CHR,# P,#DR-50Q-#0Y,#%:#0I%3D0Z5D-!4D0-
!"@``
`
end
------------------------------
From: Stephane St-Hilaire <[EMAIL PROTECTED]>
Subject: POSIX named semaphores on Linux ?
Date: Mon, 25 Sep 2000 10:56:50 -0400
Is there an implementation of the POSIX named semaphore available on
Linux ? I'm running 2.2.14 and I get "function not implemented" when
calling open_sem(). Any ideas ?
Steph
------------------------------
From: Arne Driescher <[EMAIL PROTECTED]>
Subject: Re: ioremap not in namespce...?
Date: Mon, 25 Sep 2000 17:23:43 +0200
Sean Patrick McNamee wrote:
>
> Arne Driescher wrote:
>
> > > Hmmm.... I tried re-compiling the kernel with CONFIG_MODVERSIONS = 0 via
> > > make menuconfig, verified that it was #undef'd in
> > > linxlude/config/modversions.h, and did the
> > > compile the kernel thang, and also tried #inlcuding the linux/version.h in
> > > my own module... neither worked.
> > > Also, shouldn't I be able to see ioremap in the ksyms output??? Methinks my
> > > kernel takes the 'short bus' to school....
> > >
> > Hmm, strange problem. What kernel version are you useing?
> > ioremap is not presend in the 2.0.x series. It was called vremap.
> > Try to include sysdep.h from the driver book. May be that
> > will fix your problem.
> >
> > -Arne
> >
> > P.S. ioremap should be defined in io.h.
>
> I am running kernel version 2.2.5-15, so I believe I am supposed to have access
> to ioremap().
Sure. There should be no problem.
> I tried including the sysdep.h file from the book just for the hell of it, but
> with no luck.
It would only help with kernel 2.0.x. You can savely remove it is you
don't need support for older versions.
> The funny thing is, the module compiles just fine, it's when I try to load it
> that I get the error.
> I'm stilll unclear as to whether I shoule be able to see ioremap in the ksyms
> output...
I get
c010ebe4 t remap_area_pages
c010ee54 T __ioremap (This is mapped to ioremap according to io.h)
c010ef34 T iounmap
in my System.map. So should you. If the symbol is not in your
System.map consider to rebuild your kernel. I can only think about
one case where symbols are not exported, but you surely have
enabled module-support in your kernel....
-Arne
------------------------------
From: aslin <[EMAIL PROTECTED]>
Subject: How to intercept selected system calls
Date: 25 Sep 2000 15:34:00 GMT
Hello,
I wanted to do something like this:
intercept OPEN system call in a user-level process to
check file if it is compressed, and decompress in other file
and run original open with this new file name;
I found many examples how to do thing like this, but all of them were
kernel modules. I don't like.. I want it a user-level, as Catcher does
from the UFO Global File System.
I know general concepts, but I need some help;
especialy example how to do it in user application, not in the kernel
module.
Thanks for any suggestions how to do it.
PS: I found something about the UFO GFS
in paper: "Extending the Operating System at the User Level:
the UFO Global File System" Proceedings of the USENIX 1997.
Annual Technical Conference.
--
=======================
Szczepan Konieczny
e-mail: [EMAIL PROTECTED]
=======================
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: POSIX named semaphores on Linux ?
Reply-To: [EMAIL PROTECTED]
Date: Mon, 25 Sep 2000 15:59:11 GMT
On Mon, 25 Sep 2000 10:56:50 -0400, Stephane St-Hilaire
<[EMAIL PROTECTED]> wrote:
>
>Is there an implementation of the POSIX named semaphore available on
>Linux ? I'm running 2.2.14 and I get "function not implemented" when
>calling open_sem(). Any ideas ?
The bleeding edge POSIX semaphores are not available; use traditional
UNIX semaphores if you need process sharing.
------------------------------
** FOR YOUR REFERENCE **
The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:
Internet: [EMAIL PROTECTED]
You can send mail to the entire list (and comp.os.linux.development.system) via:
Internet: [EMAIL PROTECTED]
Linux may be obtained via one of these FTP sites:
ftp.funet.fi pub/Linux
tsx-11.mit.edu pub/linux
sunsite.unc.edu pub/Linux
End of Linux-Development-System Digest
******************************