Linux-Development-Sys Digest #1, Volume #8 Thu, 6 Jul 00 23:13:15 EDT
Contents:
Re: EZUSB in 2.4.x (Georg Acher)
insmod fails (device already occupied) (Thomas Berkefeld)
Re: insmod fails (device already occupied)
Virtual Segments ("Norm Dresner")
Re: device driver ("Norm Dresner")
uptime wrong (Ram Kalapatapu)
Re: insmod fails (device already occupied) ("Norm Dresner")
changing skbuff (rushi)
Re: Virtual Segments (Kaz Kylheku)
HowDoI get info out of ./.config? (Myint)
What are the proper tools/methods for dealing with core dump files... ("Kenneth J.
Ingram")
Re: I want make my own system call ("Paolo Romano")
Re: changing skbuff (Kaz Kylheku)
porting linux html code (Class Account)
Encryption libs (c++) (Bhavin Shah)
Re: Good Basic compiler for linux? (Christopher Browne)
Re: Java on SMP linux. (Juergen Kreileder)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Georg Acher)
Subject: Re: EZUSB in 2.4.x
Date: 6 Jul 2000 16:10:40 GMT
In article <DJt85.8794$[EMAIL PROTECTED]>,
James Lewis <[EMAIL PROTECTED]> writes:
|>
|>
|> I'm looking for information regarding the EZUSB driver... I noticed it
|> isn't apart of 2.3.x/2.4.x anymore...
It is obsolete, its funcionality is now implemented in usbdevfs. Have a look at
the usbstress-package (http://usb.in.tum.de in the download section). It is a
good example for usbdevfs usage.
--
Georg Acher, [EMAIL PROTECTED]
http://www.in.tum.de/~acher/
"Oh no, not again !" The bowl of petunias
------------------------------
From: [EMAIL PROTECTED] (Thomas Berkefeld)
Crossposted-To: comp.os.linux.powerpc,comp.os.linux.development.apps
Subject: insmod fails (device already occupied)
Date: Thu, 06 Jul 2000 18:43:32 +0200
Hi,
loading a driver module for a framegrabber board fails. The insmod command
writes into /var/log/messages that "this board is already under control
of another device driver (v255.255.255?)." What has happened, how can I find
this driver and unload it ? (lsmod does not list anything appropriate.)
Thanks
Thomas Berkefeld
------------------------------
From: <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.powerpc,comp.os.linux.development.apps
Subject: Re: insmod fails (device already occupied)
Date: Thu, 06 Jul 2000 13:07:32 -0400
In article <[EMAIL PROTECTED]>, Thomas
Berkefeld <[EMAIL PROTECTED]> wrote:
> loading a driver module for a framegrabber board fails. The insmod command
> writes into /var/log/messages that "this board is already under control
> of another device driver (v255.255.255?)." What has happened, how can I find
> this driver and unload it ? (lsmod does not list anything appropriate.)
check dmesg or /var/log/messages to see what module gets loaded during
boot up. You can also do a recursive listing of /lib/modules using
ls -R /lib/modules
to see what's what. My feeling is that the module for the framegrabber
is in the same sub dir as the module you are trying to install.
All this assumes that the framegrabber is using a driver compiled as a
module. It won't show if the kernel has the framegrabber driver built
in.
you can try and make an entry in your /etc/conf.modules
alias whatevertheframegrabberiscalled moduleyouwanttodriveit
you can also make an entry in /etc/rc.d/rc.modules
insmod framegrabbermodule
--
Bicycle Crash Test Dummy for Hire
[EMAIL PROTECTED]
------------------------------
Reply-To: "Norm Dresner" <[EMAIL PROTECTED]>
From: "Norm Dresner" <[EMAIL PROTECTED]>
Subject: Virtual Segments
Date: Thu, 06 Jul 2000 18:12:38 GMT
In the Microsoft assembler MASM (or Borland's TASM), I can create a
"virtual" segment (see example below) to specify the complete layout of a
section of memory and to specify exactly what it's addresses are, but no
data is created in the program. This is commonly used with memory-mapped
I/O cards where the segment describes the size and location of all of the
registers and any RAM on the card. An assembly-module with this segment can
be linked with normal .ASM and .C modules in which public symbols declared
in the "virtual" segment appear as external addresses in the code.
I know that I can construct a .C module with a list of explicit declarations
of pointers to the known addresses which can then be dereferenced in code,
but the "virtual" segment technique is more efficient because it creates
addresses which the linker resolves and saves dereferencing time for every
access to the data in these structures.
I think that I can do this with NASM's ABSOLUTE declaration. Is this true?
Can I do this in any other assembler which is compatible with gcc? If so,
which
one(s)?
(Although I've never found it, does such a capability exist within gcc
itself?
==================================================================
EXAMPLE
PUBLIC ByteData, WordDatum
IOSpace SEGMENT AT 0xD000
ORG 0x1234
ByteData LABEL BYTE
DB 24 DUP (?)
ORG 0xBEEF
WordDatum LABEL WORD
DW 3
IOSpace ENDS
when I link this module with normal .C code which has declared
extern char ASDF[];
extern short QWERTY
when I reference QWERTY, the linker will insert 0xD000:0xBEEF into the
executable with no pointer-dereferencing; similarly, ByteData appears at
0xD000:0x1234.
==================================================================
Norm Dresner
Fellow Systems Engineer
Radar Systems Engineering Department
Electronic Systems and Sensors Segment
Northrop Grumman Corporation
MS 520
Box 746
Baltimore MD 21203
Voice: (410) 993 - 2096 Mornings; all-day voice-mail
(410) 969 - 8068 Afternoons with answering machine
FAX: (410) 993 - 8084 On-site
(410) 969 - 8068 Afternoons; call first to arrange
E-Mail:Mornings: [EMAIL PROTECTED]
Afternoons: [EMAIL PROTECTED]
------------------------------
Reply-To: "Norm Dresner" <[EMAIL PROTECTED]>
From: "Norm Dresner" <[EMAIL PROTECTED]>
Subject: Re: device driver
Date: Thu, 06 Jul 2000 18:16:43 GMT
If it's a "WinModem" then there are no drivers for any other operating
system available. One of the reasons for this is that the manufacturers are
unwilling (for competitive reasons) to release any information on the inner
workings of their hardware. The other reason is that a WinModem is a very
stupid device that relies on the host CPU to do much of the work for it.
(Almost) Everything that the driver can do is embedded in the Win Device
Driver. If your a machocist, you might try to disassemble one of them.
Norm
Anders Johansson <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi!
> I found some problems finding drivers for my internal modem
> (SupraExpress). Seems like there is none, wonder if somebody knows
> anything about that? if not does someone knows where can I get useful
> information ( document, book, sample program
> source code,... ) for writing my one driver?
> br
> Anders
------------------------------
From: [EMAIL PROTECTED] (Ram Kalapatapu)
Subject: uptime wrong
Reply-To: [EMAIL PROTECTED]
Date: Thu, 06 Jul 2000 18:18:30 GMT
Hi,
I am not used to having long uptimes on my machine as I frequently used to
reboot to windows. Recently I discovered trelos win4lin (vmware is not an
option as I have a P100 with 48mb RAM) and since then I have not been
rebooting.
I noticed that the output of the command "uptime" is wrong.
As you can see from the /var/log/messages output here I last brought the
machine up on June 20 2000 at 21.30.
----
Jun 20 21:30:45 cc37058-a syslogd 1.3-3: restart.
Jun 20 21:30:45 cc37058-a syslog: syslogd startup succeeded
Jun 20 21:30:45 cc37058-a syslog: klogd startup succeeded
Jun 20 21:30:45 cc37058-a kernel: klogd 1.3-3, log source = /proc/kmsg
started.
Jun 20 21:30:45 cc37058-a kernel: Inspecting /boot/System.map-2.2.13-7trelos
---
However when I do uptime now
% date
Thu Jul 6 14:15:16 EDT 2000
%uptime
2:15pm up 15 days, 9:34, 6 users, load average: 0.05, 0.03, 0.00
I notice that the uptime is a few hours less than what it should be.
I looked into the source of uptime and noticed that it read from
/proc/uptime and therefore
%cat /proc/uptime
1330527.76 1221784.12
Calculating the uptime
%bc -l
1330527.76/(60*60*24)
15.39962685185185185185
% uname -a
Linux cc37058-a.vron1.nj.home.com 2.2.13-7trelos #1 Tue Jun 20 08:39:49 EDT
2000 i586 unknown
I am running the mandrake 6.1 kernel with trelos update. I don't think the
trelos update is the cause (But then I have never had such long uptimes
before I applied the trelos patch!)
---
Seems to me that /proc/uptime is wrong. How can this be??
--
Ram Kalapatapu
[EMAIL PROTECTED]
------------------------------
Reply-To: "Norm Dresner" <[EMAIL PROTECTED]>
From: "Norm Dresner" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.powerpc,comp.os.linux.development.apps
Subject: Re: insmod fails (device already occupied)
Date: Thu, 06 Jul 2000 18:18:50 GMT
Try 'lsmod'
It will tell you which modules are loaded.
Then try 'cat /proc/ioports' and 'cat /proc/interrupts' to see which
modules have coopted the resources for your device.
Norm
Thomas Berkefeld <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi,
>
> loading a driver module for a framegrabber board fails. The insmod command
> writes into /var/log/messages that "this board is already under control
> of another device driver (v255.255.255?)." What has happened, how can I
find
> this driver and unload it ? (lsmod does not list anything appropriate.)
>
> Thanks
>
>
> Thomas Berkefeld
------------------------------
Subject: changing skbuff
From: rushi <[EMAIL PROTECTED]>
Date: Thu, 06 Jul 2000 11:18:49 -0700
Hi all,
I have to implement MPLS (Multiprotocol Label Switching) in Linux
kernel. In that case, there would be one more layer in the IP
stack between the IP layer and the data link layer. Hence MPLS
domain packet would have one more header called label between the
IP header and the link layer header. But such a field does not
exist in conventional skbuff data structure in Linux. Is it
possible to add one more field in skbuff and use this field in
MPLS relevent code without affecting rest of the implementation?
If not what approach can be made? I will greatly appreciate any
help on this. Thanks in advance.
===========================================================
Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: Virtual Segments
Reply-To: [EMAIL PROTECTED]
Date: Thu, 06 Jul 2000 18:23:10 GMT
On Thu, 06 Jul 2000 18:12:38 GMT, Norm Dresner <[EMAIL PROTECTED]> wrote:
>I think that I can do this with NASM's ABSOLUTE declaration. Is this true?
>Can I do this in any other assembler which is compatible with gcc? If so,
>which
>one(s)?
>
>(Although I've never found it, does such a capability exist within gcc
>itself?
Reading the GNU info pages on gcc, particularly the sections that describe
the language extensions.
The __attribute__ (( section ("section-name" )) extension is what you
are looking for. The documentation states that:
Normally, the compiler places the objects it generates in sections
like `data' and `bss'. Sometimes, however, you need additional
sections, or you need certain particular variables to appear in
special sections, for example to map to special hardware.
Now the actual sections have to be set up using a linker script. For that, jump
to the GNU info about ``ld''. There is a linker script command called
SECTIONS in which you can define sections and associate them with
virtual addresses and give them other attributes.
------------------------------
From: Myint <[EMAIL PROTECTED]>
Subject: HowDoI get info out of ./.config?
Date: Thu, 06 Jul 2000 19:30:08 GMT
I am learning. Menuconfig got a lot of questions to answer to configure.
I have a distribution installed. Can any one help me how to get or what was
configured in that distribution.
Thanks,
Myint
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
From: "Kenneth J. Ingram" <[EMAIL PROTECTED]>
Subject: What are the proper tools/methods for dealing with core dump files...
Date: Thu, 06 Jul 2000 13:42:57 -0700
==============D21F663ACE1619FDDD5A8101
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
...when you want to "interrogate" them?
--
"Great spirits have always encountered violent opposition from
mediocre minds." - Albert Einstein
==============D21F663ACE1619FDDD5A8101
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
...when you want to "interrogate" them?
<pre>--
"Great spirits have always encountered violent opposition from
mediocre minds." - Albert Einstein</pre>
</html>
==============D21F663ACE1619FDDD5A8101==
------------------------------
From: "Paolo Romano" <[EMAIL PROTECTED]>
Subject: Re: I want make my own system call
Date: Thu, 6 Jul 2000 23:01:07 +0200
Add a new entry in /usr/src/linux/(something)/entry.S in the sys_table
named sys_(name of your sys call)
Then insert the code of your syscall somewhere (I've always added mine in
files which already contained other system calls if you don't want to you
have to let the compiler know where to find it) the function needs to be
called sys_.....
Add in
/usr/src/linux/include/asm/unistd.h
the number of your system call in the appropriate section
Then you have 2 ways:
1) easier: use the system _syscall??(output of your system call, name system
call, type first parameter passed to your sys call, name first parameter,
type 2� param. passed, name 2� param.,...) where ?? is the number of
parameter you pass to the system call.
You need to do because you don't have defined any wrapper routine which
actualy switches to kernel mode by int0x80 and which sets us the stack for
the execution of the system call.
2) Difficult. Insert the corresponding wrapper routine in lib.c and
recompile it (it takes several hours). So you save the invocation to
_syscall??.
Example of my system call:
_syscall5(ssize_t,lseek_read,unsigned int,fd,off_t,offset,unsigned
int,origin,char*,buf,ssize_t,count);
in the main when the system call is:
ssize_t lseel_read(unsigned int fd, off_t offset, unsigned int origin, char*
buf, ssize_t count);
"Eugene Shchepetov" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:8k1jlm$14nt$[EMAIL PROTECTED]...
> What I must do - please tell, I need full description - thanks
>
> Eugene
>
>
------------------------------
From: [EMAIL PROTECTED] (Kaz Kylheku)
Subject: Re: changing skbuff
Reply-To: [EMAIL PROTECTED]
Date: Thu, 06 Jul 2000 21:23:40 GMT
On Thu, 06 Jul 2000 11:18:49 -0700, rushi
<[EMAIL PROTECTED]> wrote:
>Hi all,
>I have to implement MPLS (Multiprotocol Label Switching) in Linux
>kernel. In that case, there would be one more layer in the IP
>stack between the IP layer and the data link layer. Hence MPLS
>domain packet would have one more header called label between the
>IP header and the link layer header. But such a field does not
>exist in conventional skbuff data structure in Linux. Is it
>possible to add one more field in skbuff and use this field in
>MPLS relevent code without affecting rest of the implementation?
>If not what approach can be made? I will greatly appreciate any
>help on this. Thanks in advance.
It's not clear what the requirements are: could you just route your IP
packets to the ``mpls0'' device and have it figure out what actual
hardware drivers to send packets to? Or do you need the normal routing to work
transparently through MPLS?
If you can treat all of MPLS as a single device, then you may be able to write
a network driver for it. Network drivers have a way of specifying an integer
which represents their header length. When the higher level protocol stacks
instantiate new outbound packets, they figure out what device these packets
will be routed through and then reserve that much room at the front. Later,
when the packet is passed into your driver to construct headers, you can be
assured that you have enough space to stuff your special headers there.
[[ You can reserve more bytes than you need for better alignment; it's good if
the beginning of the payload is aligned on a processor cache boundary. E.g.
although ethernet headers are only 14 bytes, I think that the ethernet
subsystem reserves 16. ]]
--
#exclude <windows.h>
------------------------------
From: Class Account <[EMAIL PROTECTED]>
Subject: porting linux html code
Date: Thu, 6 Jul 2000 16:30:36 -0700
hi,
i have a box that runs on a Motorola processor. I wanna
add html feature to it so that i can do web browsing on the box
from a pc attached to the same LAN together with
the box.
Since linux has html source code, I just wanna port the code
directly (without writing my own version of the code) into
my OS code.
I would think there should be no problem of doing this since both
linux html server code and my OS code are written in C.
Can anyone think of any limitations of porting the linux code
to my OS code?
thanks
------------------------------
From: Bhavin Shah <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development
Subject: Encryption libs (c++)
Date: Thu, 6 Jul 2000 17:34:00 -0700
Hi,
Anyone out there know of any good encryption libraries
for c++? I would like to be able to encrypt data sent
and recv'd from network sockets. Are there any libraries
or functions calls that would do the trick? Or other
alternatives? Thanks.
Bhavin
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Good Basic compiler for linux?
Reply-To: [EMAIL PROTECTED]
Date: Fri, 07 Jul 2000 02:25:19 GMT
Centuries ago, Nostradamus foresaw a time when Frank Ranner would say:
>John Gluck wrote:
>
>> AndyD wrote:
>>
>> > Not very helpful...
>> >
>> > I don`t think the person posting the message was ASKING for your opinion on
>> > BASIC or wished to see a list of your programming conquests.
>> >
>> > Visual Basic is used by a great number of people & if linux has a comparable
>> > application it would help it be adopted more in the real world.
>> >
>> > A large number of people make a living programming in a variety of BASIC`s
>> > and I for one would like to see a modern implementation of the language on
>> > LINUX.
>> >
>> > -AndyD
>> >
>>
>> [snip]
>>
>> You have a very good point... I don't like basic and don't have a use for it
>> but I suppose there are good reasons
>> for using it.
>>
>> Visual basic has a strong following because (from what I've heard) you can
>> develop pretty slick database apps fairly quickly.
>> That makes it attractive in the business world.
>>
>> --
>> John Gluck (Passport Kernel Design Group)
>>
>> (613) 765-8392 ESN 395-8392
>>
>> Unless otherwise stated, any opinions expressed here are strictly my own
>> and do not reflect any official position of Nortel Networks.
>
>There is a program called 'xbasic' which is available
>from http://www.maxreason.com/software/xbasic/linux.html
>
>I don't know if it is in any way compatible with MS VB but it
>certainly qualifies as a Linux Basic system.
a) It doesn't support ActiveX controls, or OLE, or DCOM, or CORBA.
b) It doesn't support ADO or DAO, nor does it integrate anything
equivalent to ODBC or JDBC.
c) It doesn't support the same language as MSFT Visual BASIC; it
rather more resembles "QuickBasic."
Which means that it's not particularly comparable to VB. Which means
that if you have been designing systems based on these aspects of VB,
it is no solution at all. On the other hand, many of those features
are somewhat controversial, so the lack of support of these things
isn't necessarily an all-bad thing...
--
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/>
"Ah, fall - when leaves turn to burnished colors upon darkling
branches, collars are turned up against a wind which murmurs of
winter, and homework assignments appear on Usenet. <sigh>"
-- Bob Jarvis
------------------------------
From: Juergen Kreileder <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.java.programmer
Subject: Re: Java on SMP linux.
Date: 07 Jul 2000 04:58:41 +0200
>>>>> "Mathias" == Mathias Waack <[EMAIL PROTECTED]> writes:
Mathias> Juergen Kreileder <[EMAIL PROTECTED]> writes:
Mathias> [Sun JVM for Linux]
>> Their native threads VM is based on very early and broken
>> snapshot of our code. It's not recommended to use native
>> threads with Sun's release, if you want a stable native threads
>> VM then use our latest version.
Mathias> This statement together with your email address sounds a
Mathias> bit like advertising. Is this message confirmed by Sun?
Mathias> If not, are there any studies which proof your statement?
http://java.sun.com/products/jdk/1.2/CREDITS.html should be enough to
show that it's based on Blackdown work (which in turn is based on
Sun's Solaris version). Sun's version was forked around August '99,
at this point several things in the native threads code were quite
broken, so Sun decided not support the native threads VM. Our current
version has a newer native threads implementation and is very stable.
Nowadays we are working together with Sun on J2SE 1.3 and new HotSpot
VM (which uses LinuxThreads).
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
JVM'01: http://www.usenix.org/events/jvm01/
------------------------------
** 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
******************************