Linux-Development-Sys Digest #138, Volume #8 Tue, 12 Sep 00 02:13:07 EDT
Contents:
Re: lilo problems with 19GB IDE drive (Karl Heyes)
Re: ethernet over non ethernet hardware (Frank Neuber)
Writing to ISA hole question (Steve Helding)
Re: Threads on Linux (Karl Heyes)
Re: New OS Project (DOSIUS)
Re: Writing to ISA hole question (Pete Zaitcev)
Re: Installing Win98, Win2000 and Linux on one PC?! (=?ISO-8859-1?Q?Xos=E9?= Calvo)
Re: Zip 100 Parallel Port Drive (Peter Rodriguez)
Re: Writing to ISA hole question (Karl Heyes)
Re: Caching files from CD---problem when playing MP3s on CD ("Les Mikesell")
Re: library to implement NFS (Victor Wagner)
Receive timeout (Bhavin Shah)
Re: lilo problems with 19GB IDE drive (John in SD)
Beta Test 2.4.0-test8 is no longer posted I just noticed! ("Emu")
Re: OFF_T and 64bit Qustation?? (Tim Roberts)
Is it possible to invoke shell command using java application in linux? ("Richard
Lim")
Re: Forte, linux and IBM's java. (Tony de la Lama)
Re: Newbie question on programming? ("eric07")
----------------------------------------------------------------------------
From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: lilo problems with 19GB IDE drive
Date: Mon, 11 Sep 2000 19:19:50 +0000
In article <8phlp3$16q$[EMAIL PROTECTED]>, Jeremy A Carlson
<[EMAIL PROTECTED]> wrote:
> I have two drives installed on my system, one is IDE, the other SCSI. Linux
> runs off of the SCSI drive, while Win98 runs on the IDE drive. I cannot get
> lilo to boot Win98 from the IDE drive. I have to tell the bios to boot from
> IDE if I want to get into Win98, and switch it to boot from SCSI if I want to
> boot into linux. The IDE drive is 20GB and the SCSI drive is 17.5GB. I am
> using lilo version 21.5.
> When I put lilo on the SCSI drive and tell lilo to boot the windows
> partition it says "booting windows" and returns back to the lilo prompt. If
> I put lilo on the IDE drive, I get the two letters "LI" and the computer
> halts. I have tried both the large geometries and the LBA geometries for the
> lilo configuration and nothing changes. Both values were obtained from the
> bios.
> Any help would be appreciated.
with 21.5 use lba32 for large disks as well, boot menu seems to works as well.
other than that post the lilo.conf file.
karl
------------------------------
From: [EMAIL PROTECTED] (Frank Neuber)
Subject: Re: ethernet over non ethernet hardware
Date: Mon, 11 Sep 2000 19:58:17 +0200
In article <[EMAIL PROTECTED]>, Kaz Kylheku wrote:
Thanks for this quick answer ...
I have not so much experience in writing network device drivers. I look for a
device independent ethernet driver module. This module should base on simple
functions like open(), close() etc.
I heard from an implementation ethernet over TCP/IP. (The reason was to
connect two offices over an ISDN line including ARP, IPX and TCP/IP)
But I can not found the source :-(
>I have implemented ethernet emulation in the Mobitex radio modem driver.
Is this a change in the original module or another module?
>In a
>nutshell, your driver's header building function has to construct the 14 byte
>Ethernet MAC headers for outgoing packets. You later thunk them to whatever
>format the actual network needs. Similarly, the headers of received packets are
>thunked to ethernet format before being handed off to the kernel. Also when
>you register your device, you specify the ethernet arp hardware
>type.
Interesting. After registration my device as ethernet arp hardware I have an
ethX ethernet device? But, how can I do that.
Which steps are importend to register my device as an ethernet device?
Do you have an advice for some related documentation?
Would you be so kind to give me a look at your driver?
thanks in advance
Frank
--
_/_/_/_/ _// _/ Frank Neuber
_/ _/_/ _/ [EMAIL PROTECTED] (private)
_/_/_/ _/ _/ _/
_/ _/ _/_/ [EMAIL PROTECTED]
_/ _/ // http://www.opensource-systemberatung.de
------------------------------
From: Steve Helding <[EMAIL PROTECTED]>
Subject: Writing to ISA hole question
Date: 11 Sep 2000 18:46:23 GMT
Reply-To: [EMAIL PROTECTED]
I need to be able to write to ISA memory at 15 M. I just want a simple
way to grab hold of that memory and do simple 32 bit writes to a custom
board without developing a device driver. Is there a simple way to do
that? I tried using mmap but it gives me an error when I specify
MAP_FIXED.
------------------------------
From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: Threads on Linux
Date: Mon, 11 Sep 2000 19:56:23 +0000
In article <jERu5.80061$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> Karl Heyes <[EMAIL PROTECTED]> wrote:
>>> 1. No threads modify the data segment.
>>>
>>> 2. Access to the data segment is authored so they aren't reading the
>>> same portion at the same time. (By design of the algorithm, not enforced by
>>> locking
>>>
>
>> So, in general you can't!. The above cases are not typical.
>
> The first is typical of network services, the second is typical of many
> matrix operations. They also crop up mix-and matched in various places in
> GUIs, IO routines, etc.
>
The second example is a good example for threads on different processors, it
can have the effect of killing the cache element though depending on the
amount of data vs threads vs processors. The first is a bit too vague, network
services can account for many things.
> Even in the "typical" program, whatever that is, locking is required for
> extremly small sections of the whole. By definition, if every load and store
> needed to be locked, it wouldn't have been a canidate for a threaded
> application.
>
The larger the section you have locked the more you limit your programs
ability to scale, I think is the general rule.
karl
------------------------------
From: DOSIUS <[EMAIL PROTECTED]>
Crossposted-To: comp.os.minix
Subject: Re: New OS Project
Date: Mon, 11 Sep 2000 21:10:17 GMT
In article <8p5n2a$sdi$[EMAIL PROTECTED]>,
"Gatien Gillon" <[EMAIL PROTECTED]> wrote:
> I was thinking on writing a new Operating System based on Minix 2.0.
The OS
> would be aimed at Internet Terminals and Network Computers.
>
> Here are the expected specifications :
>
> Full multiprogramming (multiple programs can run at once)
> Support for extended memory up to 16M on 286; 4 GB on 386, 486, and
Pentium
> RS-232 serial line support with terminal emulation, kermit, zmodem,
etc.
> Up to 3 simultaneous users on one machine
> Total POSIX compatibility
> Full C source code (OS, utilities, libraries, etc.) supplied
> ANSI C compiler
> Shell that is functionally identical to the Bourne shell
> Networking with TCP/IP
> A GUI and a Web Browser
> Smallest Possible size
> Online manual pages
>
> I'm looking for some help since I not very experienced in OS
programming.
>
> Sorry for my English but I'm French ...
>
>
Ditto here. I like your idea, especially since I have a similar one.
Moi, j'aime cette id�e, parce que je pensais faire quelque chose
similaire. (Pardon my French ^_-)
--
Dosius - hobbyist computer programmer and translator
"Kompyuutaa-ni kawatte oshioki-yo!"
(I have my own free-mail site! Visit http://dosius.zzn.com for info)
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Pete Zaitcev)
Subject: Re: Writing to ISA hole question
Date: Mon, 11 Sep 2000 21:22:42 GMT
On 11 Sep 2000 18:46:23 GMT, Steve Helding <[EMAIL PROTECTED]> wrote:
> I need to be able to write to ISA memory at 15 M. I just want a simple
> way to grab hold of that memory and do simple 32 bit writes to a custom
> board without developing a device driver. Is there a simple way to do
> that? I tried using mmap but it gives me an error when I specify
> MAP_FIXED.
MAP_FIXED refers to a virtual address in the space of your process,
not to the bus address.
You actually want to open /dev/mem and mmap a part of that.
But please trust me, you do want to develop your own driver.
It is not difficult.
--Pete
------------------------------
From: =?ISO-8859-1?Q?Xos=E9?= Calvo <[EMAIL PROTECTED]>
Subject: Re: Installing Win98, Win2000 and Linux on one PC?!
Crossposted-To: alt.os.linux,comp.os.linux.setup,microsoft.public.win2000.applications
Date: Mon, 11 Sep 2000 21:43:43 GMT
> I could be wrong, but I don't think win98 and 2000 will be able to=20
coexist.
> Won't they just install over each other?
No, they'll be fine.
Have you thought of using a common partition for both Windows(X) and=20
Linux? It could be FAT32 and you could share all your files.
------------------------------
Date: Tue, 12 Sep 2000 09:22:37 +1200
From: Peter Rodriguez <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: Zip 100 Parallel Port Drive
This has become quite an interesting thread.
As it happens, from my point of view, the PnP switch was irrelevant. The
Parallel Port option I chose was the important thing, and all I know is
that it worked :-)
--
Peter Rodriguez
136, Kolmar Road, Papatoetoe LINUX RULES
Auckland, NEW ZEALAND
------------------------------
From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: Writing to ISA hole question
Date: Tue, 12 Sep 2000 00:12:13 +0000
In article <[EMAIL PROTECTED]>, Steve Helding
<[EMAIL PROTECTED]> wrote:
> I need to be able to write to ISA memory at 15 M. I just want a simple way
> to grab hold of that memory and do simple 32 bit writes to a custom board
> without developing a device driver. Is there a simple way to do that? I
> tried using mmap but it gives me an error when I specify MAP_FIXED.
>
open /dev/kmem or /dev/mem and mmap that. it's what the X server drivers
do. Need to run as root to access the file though.
karl
------------------------------
From: "Les Mikesell" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: Caching files from CD---problem when playing MP3s on CD
Date: Tue, 12 Sep 2000 00:59:09 GMT
"Kasper Dupont" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Les Mikesell wrote:
> [...]
> >
> > Stdio only performs a small amount of read-ahead and buffering doesn't
> > help until something reads the data. If you did a 'cat file >/dev/null'
> > you would force the contents to be read into the buffer and the disk
> > would not be accessed on subsequent reads until something else
> > forces it out of the buffer. If you really want to control physical
> > access, create a ramdisk and copy there first.
> >
> Isn't the kernel supported to do readahead in the background?
> If that is the case is it supported on all filesystems?
>
Yes, but it is tuned more toward minimizing head contention on a
multi-user system instead of pre-reading huge files. The idea is
to read a whole track in one revolution so you don't have to seek
back there after another operation happens on a different track
and moves the head before the application is ready for more.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Victor Wagner)
Crossposted-To: comp.unix.programmer,comp.os.linux.development.apps
Subject: Re: library to implement NFS
Date: 11 Sep 2000 23:13:19 +0400
In comp.unix.programmer phil hunt <[EMAIL PROTECTED]> wrote:
: Because what I want to do is the opposite.
: I want to write a program that emulates an NFS server. So other
: programs will call my program, using the NFS protocol, and ask it
: for files, etc. Then my program will respond by sending the files.
On most Unixes nfs server is implemented in the kernel for the sake of
efficiency. But there is user-space NFS server for Linux. As almost
anything for Linux it is available in source form.
If you couldn't find it on ftp://metalab.unc.edu, check on
http://www.debian.org
or even directly go to
ftp://ftp.debian.org/debian-archive/slink/main/source/net/nfs-server*.orig.tar.gz
(I'm not sure that it is still avaliable from current version)
There is also couple of products which do exactly what you want -
emulate NFS filesystem over some other file-sharing protocol. Check for
instance, rumba - it does convert nfs calls to SMB calls allowing
programs on any Unix to access NT shares transparently. I'm not sure
although, that it is Open Source and you'll be free to borrow code from
it.
BTW recently I often see such a products built over CODA filesystem
rather then over NFS. May be there is a reason?
--
Just go ahead and write your own multitasking multiuser os!
Worked for me all the times.
-- Linus Torvalds
------------------------------
From: Bhavin Shah <[EMAIL PROTECTED]>
Subject: Receive timeout
Date: Mon, 11 Sep 2000 20:11:25 -0700
Is there a way to set a timeout on a recv call?
I checked the man page for setsockopt, and I see that
the SO_RECVTIMEO option may only be used for getsockopt,
not setsockopt. Are there alternatives, or a way
around this.
RH6.0, g++ compiler.
TIA.
Bhavin
------------------------------
From: John in SD <[EMAIL PROTECTED]>
Subject: Re: lilo problems with 19GB IDE drive
Reply-To: [EMAIL PROTECTED]
Date: Tue, 12 Sep 2000 03:46:33 GMT
The problem is not the size of the disk; the problem is the mixture of IDE and
SCSI. LILO uses BIOS calls to load the system. Hence, it must know the BIOS
device code of each drive.
If you are using 21.5, you probably have the source code. Do a 'make floppy'
in your source directory. Then boot the diagnostic floppy to see which disk
is associated with BIOS drives 0x80, 0x81, etc.
LILO tries to assign the device codes in sequential order. It generally gets
things right on pure IDE, or pure SCSI, systems. However, it really has no
idea what the BIOS has done in mixed systems.
If all drives are accessible from the BIOS, then insert the following global
lines in lilo.conf to tell LILO what device is associated with what drive:
...
disk=/dev/hda
bios=0x80
disk=/dev/sda
bios=0x81
...
If your drives are different, or your device codes are assigned differently,
then insert the appropriate values.
--John
On 11 Sep 2000 04:06:59 GMT, Jeremy A Carlson <[EMAIL PROTECTED]> wrote:
>I have two drives installed on my system, one is IDE, the other SCSI. Linux
>runs off of the SCSI drive, while Win98 runs on the IDE drive. I cannot get
>lilo to boot Win98 from the IDE drive. I have to tell the bios to boot from
>IDE if I want to get into Win98, and switch it to boot from SCSI if I want
>to boot into linux. The IDE drive is 20GB and the SCSI drive is 17.5GB. I am
>using lilo version 21.5.
> When I put lilo on the SCSI drive and tell lilo to boot the windows
>partition it says "booting windows" and returns back to the lilo prompt. If
>I put lilo on the IDE drive, I get the two letters "LI" and the computer
>halts. I have tried both the large geometries and the LBA geometries for
>the lilo configuration and nothing changes. Both values were obtained from the
>bios.
> Any help would be appreciated.
LILO version 21.5 (18-Jul-2000) source at
ftp: brun.dyndns.org dir: /pub/linux/lilo
------------------------------
From: "Emu" <[EMAIL PROTECTED]>
Subject: Beta Test 2.4.0-test8 is no longer posted I just noticed!
Date: Mon, 11 Sep 2000 22:11:13 -0700
They are back to the Pre releases. I have no idea how I got the Beta test 8
but is was posted last week :( and no longer psoted.
------------------------------
From: Tim Roberts <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.os.linux.portable
Subject: Re: OFF_T and 64bit Qustation??
Date: Mon, 11 Sep 2000 22:27:10 -0700
"Sean Oh" <[EMAIL PROTECTED]> wrote:
>Well.. this is what I did on Solaris 2.6 after reading your message..
>
>ok.. the source file is the same except this time I put %lld instead %d.
But did you change the %x to %llx as well? If you didn't, then the "%x"
will yank the first four bytes of "r", and the %lld" will yank the next
four bytes of r and the first four bytes of the NEXT r, but with the dwords
swapped. That looks like exactly what you got.
># cc `getconf LFS_CFLAGS` oh.c
>oh.c: In function `main':
>oh.c:18: warning: assignment from incompatible pointer type
>]# ./a.out
>sizeof off_t= 8
>returned = 0x1 1
>00 00 00 01 00 00 00 00
>
>Wrong result again..
--
- Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
------------------------------
From: "Richard Lim" <[EMAIL PROTECTED]>
Crossposted-To:
comp.lang.java,comp.lang.java.gui,comp.lang.java.help,comp.lang.java.programmer,comp.os.linux.development.apps,comp.unix.programmer,linux.redhat
Subject: Is it possible to invoke shell command using java application in linux?
Date: Tue, 12 Sep 2000 13:31:20 +0800
I am currently programming a GUI java application that run in kde or gnome
to invoke certain shell command in linux such as chmod, ls, less etc.
Is it possible to invoke shell command using java application in linux, are
there any restrictions.
please advice.
regards,
richard lim
------------------------------
From: Tony de la Lama <[EMAIL PROTECTED]>
Crossposted-To: comp.lang.java.softwaretools
Subject: Re: Forte, linux and IBM's java.
Date: Mon, 11 Sep 2000 22:55:10 -0700
This is a multi-part message in MIME format.
==============6E28317995C68381916FAB1B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi Thaddeus,
In case you haven't Borland JBuilder before, we've licensed IBM's
Development Kit version 1.3 for Linux and will include it on our JBuilder
4 CDs. This press release describes the new relationship:
http://www.borland.com/about/press/2000/java4linux.html JBuilder 4 was
announced on 9/5 and will be widely available later in the month. It is
all-Java and runs on Solaris, Linux and Windows. Check out our web page
at http://www.borland.com/jbuilder.
Best of Luck,
Tony
Thaddeus L Olczyk wrote:
> Since using Sun's version of java for linux in a no-no on SMP
> machines (check the toplevel readme under System Requirements
> Note to linux users). I've been using IBM's version of java for linux.
>
> Recently I've tried out forte, but have a problem with IBM's java and
> forte. When I get to loading javadoc I get an exception No class
> definition found: class name sun/tools/javac/BatchEnvironment.
> The IDE then hangs.
>
> Any idea how to fix this?
>
> ( PS I haven't tried out blackdowns latest and greatest yet. Does
> forte work with it?)
==============6E28317995C68381916FAB1B
Content-Type: text/x-vcard; charset=us-ascii;
name="tonyd.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Tony de la Lama
Content-Disposition: attachment;
filename="tonyd.vcf"
begin:vcard
n:de la Lama;Tony
x-mozilla-html:FALSE
org:Inprise/Borland
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:VP, General Manager, Java Business Unit
fn:Tony de la Lama
end:vcard
==============6E28317995C68381916FAB1B==
------------------------------
From: "eric07" <[EMAIL PROTECTED]>
Subject: Re: Newbie question on programming?
Date: Tue, 12 Sep 2000 06:08:08 GMT
I'm new to c++ coming from a c world. I'm so used to using c functions
that I only end up using some c++ in programming. I mean I use the
inheritane, overloading, virtual functions, etc. But when It comes to ex
file io i end up using fopen(),
fclose(), etc instead of the iostream. Is this a big deal in mixing and
matching?
Any problems when doing stuff like this?
Thanks
"eric07" <[EMAIL PROTECTED]> wrote in message
news:dKzu5.34752$[EMAIL PROTECTED]...
> I'm new to linux and trying to play with make some of the programs like
> apache, etc.
>
> I noticed that the majority of the major apps I'm interested in is written
> in C not c++. Apache for example is written in C not c++.
>
> I thought there was such a big push to c++. I want to learn how to
program
> in either c or c++.
>
> So I'm trying to get some info on this.
> Is there a reason why most of these apps are written in c and not c++?
> Are there some restriction or something in c++ not found in c?
>
> Any info would be appreciated.
>
> Thanks
>
>
------------------------------
** 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
******************************