Linux-Development-Sys Digest #32, Volume #7       Sun, 8 Aug 99 19:14:08 EDT

Contents:
  Re: My first linux program: non-bios boot loader (Kees J Bot)
  ANNOUNCE: 6th International Linux Kongress - Registration Started ("Jens Chr. 
Bachem")
  Re: Device driver programming and C++ ("Andrey Fisunenko")
  Re: How many thread can I use with Linux (Sami Tikka)
  Re: how does "top" work (Michael Haardt)
  Re: Optimize Linux for AMD K6-2/3 (Marco Al)
  Re: How to program PC-speaker to beep using C under Linux without being (John 
Forkosh)
  Cannot find binfmt-0000 ("Jeff Chua")
  Re: problems with two network cards. Fundamental limitation? ("Shamsuddin, Amir")
  Re: ppp autodial (Robin Becker)
  Re: How to program PC-speaker to beep using C under Linux without being  root? 
(Justin Tripp)
  Modules bomb after kernel compile ([EMAIL PROTECTED])
  Re: My first linux program: non-bios boot loader (H. Peter Anvin)
  IEEE 802.1Q (hwj)
  Creating a distribution ("Justin W. Williams")
  Re: printk ??? (David Warren)
  Re: My first linux program: non-bios boot loader (H. Peter Anvin)

----------------------------------------------------------------------------

From: [EMAIL PROTECTED] (Kees J Bot)
Subject: Re: My first linux program: non-bios boot loader
Date: Sun, 8 Aug 1999 18:58:39 +0200

In article <[EMAIL PROTECTED]>,
Neil Koozer  <[EMAIL PROTECTED]> wrote:
>Charles Sullivan wrote:
>
>> Sounds like a great idea.  I assume it is consistant with
>> having other operating systems on the system.
>
>I think so, but then I don't know why NT can't handle lilo being in the
>MBR.  I would assume that nuni would work in /hda1 (for example) the same as
>lilo for NT users.

The LILO code doesn't by any chance start with a jump instruction, does
it?  I had problems with NT no longer booting if the Minix (yes, the
little teaching O.S.) master bootstrap was installed into the MBR.

If the first instruction of the MBR is a short jump then NT will hang at
boot telling it can't find it's boot file system.  My guess is that if
the MBR starts with a short jump then NT assumes that the disk isn't
partitioned, but a large single file system instead.  (The MS-DOS
FAT bootstrap starts with a short jump.)

If I put a NOP in front of the JMP then the problem would go away.  I
took this as a sign that it was time to add EBIOS support and rewrote
the bootstraps completely.  I'm always happy with an excuse to do some
assembly programming.  :-)
-- 
Kees J. Bot, Systems Programmer, Sciences dept., Vrije Universiteit Amsterdam
Minix:       http://www.cs.vu.nl/pub/minix/   ftp://ftp.cs.vu.nl/pub/minix/
Minix-vmd:   http://www.Minix-vmd.org/        ftp://ftp.Minix-vmd.org/

------------------------------

From: "Jens Chr. Bachem" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.os.linux.advocacy,comp.os.linux.alpha,comp.os.linux.development.apps,comp.os.linux.hardware,comp.os.linux.m68k,comp.os.linux.misc,comp.os.linux.networking,comp.os.linux.portable,comp.os.linux.powerpc,comp.os.linux.setup,comp.os.linux.x
Subject: ANNOUNCE: 6th International Linux Kongress - Registration Started
Date: 8 Aug 1999 17:41:11 GMT
Reply-To: [EMAIL PROTECTED]


6th International Linux Kongress - Registration started
=======================================================

The program of the 6th Kongress has been nearly completed, and a lot
of interesting  speakers will find their way to Augsburg, Germany:

        http://www.linux-kongress.de/program.html

Visitor registration has been started on August 1st - the registration 
form is available online:

        http://www.linux-kongress.de/registration.html

There will be an exhibition by companies with Linux-related products
at the Kongress. There are still booths available:

        http://www.linux-kongress.de/exhibition.html

We are still looking for sponsors helping us with the speakers travel
expenses or supporting the Social Event:

        http://www.linux-kongress.de/sponsoring.html

Feel free to direct any questions regarding the Kongress to
<[EMAIL PROTECTED]> or the GUUG office (see address below).

The Kongress Team

GUUG Office
Elsenheimerstra�e 61
80687 M�nchen
Germany
Phone: +49 89 5707697
Fax: +49 89 71019582


------------------------------

From: "Andrey Fisunenko" <[EMAIL PROTECTED]>
Subject: Re: Device driver programming and C++
Date: Sun, 8 Aug 1999 20:36:23 +0300



>> Where can I read more detail g++ information like that?
>You'd better read `info gcc'.
>Eugene
>
>--


unfortunely `info gcc' contens the same info as 'man gcc'

Andrey





------------------------------

From: [EMAIL PROTECTED] (Sami Tikka)
Crossposted-To: comp.os.linux.development,comp.os.linux.development.apps
Subject: Re: How many thread can I use with Linux
Date: Sun, 8 Aug 1999 13:41:53 +0300
Reply-To: [EMAIL PROTECTED]

On Sat, 7 Aug 1999 08:37:49 +0900, Junedong Kim <[EMAIL PROTECTED]> wrote:
>I wish to use a lot of java thread on JVM on my Linux
>as I know, Linux java thread are implemented linux native thread.

Last time I looked (JDK 1.1.7) it was possible to choose if you wanted to
use system threads (native) or emulated threads (green). It might be
possible to generate more green threads than native threads. 

It is true, however, that even though threads are lighter than processes,
there is still some overhead in switching them. So if you use an enormous
number of threads, your system will not do much more than switch threads and
your performance will suffer.

So even though the streight-forward solution would be to use really a lot of
threads, it might be worthwile to think of a solution which uses only a
moderate number of threads and does some multiprocessing internally.

This is of course an optimization and as Kernighan and Pike tell us: "The
first rule of optimization is _don't_". Do it first the way you feel good
and think is natural. Try to fix it only if the performance is not good
enough.

As a sidenote: I've been told that in Linux processes are already so
lightweight that the difference of overhead between processes and threads is
very small.

-- 
Sami Tikka, [EMAIL PROTECTED], http://www.iki.fi/sti/
"One World, One Web, One Program" - Microsoft Promotional Ad
"Ein Volk, Ein Reich, Ein Fuhrer" - Adolf Hitler

------------------------------

From: [EMAIL PROTECTED] (Michael Haardt)
Subject: Re: how does "top" work
Date: 7 Aug 1999 15:36:46 +0200

[EMAIL PROTECTED] (Paul Kimoto) writes:
> In article <7o3d6n$p4m$[EMAIL PROTECTED]>, Yung-Hsiang Lu wrote:
> >  Is there a place I can get the source code of top?
> 
> It's in "procps".  The LSM entry says
> : Primary-site: tsx-11.mit.edu /pub/linux/sources/usr.bin/
> :         185kB procps-2.0.2.tar.gz
> : Alternate-site: sunsite.unc.edu /pub/Linux/system/Status/ps
> :         185kB procps-2.0.2.tar.gz

I recommend using the real thing: ftp://ftp.groupsys.com/pub/top/
Beside Linux, it also works on several other major operating systems.

Michael

------------------------------

From: Marco Al <[EMAIL PROTECTED]>
Subject: Re: Optimize Linux for AMD K6-2/3
Date: Sun, 08 Aug 1999 19:55:57 +0200

A Guy Called Tyketto wrote:

>         Which may give you an even BUGGIER kernel than optimised. That's
> why Linus mainly hasn't gone with egcs/gcc-2.95/pgcc/etc. There are some
> bugs in the COMPILER, that still need to be majorly worked out, and thus
> is why he suggests using gcc-2.7.2.3 for compiling kernels. Want to use
> something newer, than you may be on your own. Newer doesn't always mean
> 'better'. ;)

I have seen 2 different things said about this, what you just said... and that
Linux kernel source relies on non ANSI compliant behaviour in the old gcc :) (or
in other words, Linux kernel source relies on bugs wich have been removed)

Marco

------------------------------

From: [EMAIL PROTECTED] (John Forkosh)
Subject: Re: How to program PC-speaker to beep using C under Linux without being
Date: 8 Aug 1999 14:33:20 -0400

MyName ([EMAIL PROTECTED]) wrote:
: as subject.  thank you.

The bel character is Ctrl-G or hex 7 (x007).  Just try
     printf("\007");
Better yet,
     #define bel printf("\007")
     ...
     bel;
     ...
John ([EMAIL PROTECTED])


------------------------------

From: "Jeff Chua" <[EMAIL PROTECTED]>
Subject: Cannot find binfmt-0000
Date: Mon, 9 Aug 1999 02:17:16 +0800

I can't boot 2.3.xx (tried even 2.3.12). Boot up to the point where the
kernel failed trying modprobe binfmt-0000.

Where is binfmt-0000 ?



Thanks,
Jeff.
[[EMAIL PROTECTED]]



------------------------------

From: "Shamsuddin, Amir" <[EMAIL PROTECTED]>
Subject: Re: problems with two network cards. Fundamental limitation?
Date: Tue, 03 Aug 1999 14:52:11 +0100

Chetan Ahuja wrote:
> Steve Hier ([EMAIL PROTECTED]) wrote:
> : Ah -- but if your router is trying to do a reverse lookup for the IP
> : that is connecting, you have to wait for that to time out -- which I've
> : seen take up to 5 minutes on some systems.
> 
>   I don't see why it should do a reverse IP lookup seeing that the IP
> that I am connecting from is on the same subnet which is one of the "internal"
> IP's anyway ( 10.0.0 series). I do hope that the networking code
> is not THAT brain-dead.

What's wrong with reverse DNS on a reserved intranet IP, if there's a
request 
from that IP? It just means that it assumes your computers have names.

------------------------------

From: Robin Becker <[EMAIL PROTECTED]>
Subject: Re: ppp autodial
Date: Sun, 8 Aug 1999 19:17:54 +0100

In article <[EMAIL PROTECTED]>, Robin Becker
<[EMAIL PROTECTED]> writes
>I'm trying to configure RH6.0 to handle autodialup via ppp. The ppp
>devices appear to be configured ok and I can use ifup ppp0 to get the
>connection up. I would like to get a ping to an outside system to bring
>up ppp0 if required. In my old system this was handled by request-route.
>Is it not possible with the newer kernel and net code? I have a lot of
>scripts to alter if this cannot be done.
to answer my own question I managed this with the following setup; I
have no ether card. RH seems to disregard entirely the built in
persistence and on demand features of pppd preferring instead some
bizarre looping shell script thing with sleeps etc.

/etc/hosts
127.0.0.1       localhost loghost
194.222.4.163   jessikat.demon.co.uk    jessikat

/etc/resolv.conf
nameserver 158.152.1.43
nameserver 158.152.1.58


/etc/sysconfig/networkscripts/ifcfg-ppp0
DEVICE="ppp0"
ONBOOT="yes"
USERCTL="yes"
MODEMPORT="/dev/ttyS0"
LINESPEED="57600"
PERSIST="yes"
DEFABORT="yes"
DEBUG="yes"
INITSTRING="ATZ"
DEFROUTE="yes"
HARDFLOWCTL="yes"
ESCAPECHARS="yes"
PPPOPTIONS="demand idle 120 holdoff 5"
PAPNAME=""
REMIP="194.222.4.163"
NETMASK="255.255.255.255"
IPADDR="194.222.4.163"
MRU=""
MTU=""
DISCONNECTTIMEOUT="120"
RETRYTIMEOUT="5"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"

/etc/sysconfig/networkscripts/chat-ppp0
# configured as required

-- 
Robin Becker

------------------------------

From: Justin Tripp <[EMAIL PROTECTED]>
Subject: Re: How to program PC-speaker to beep using C under Linux without being  root?
Date: 8 Aug 1999 18:32:21 GMT

MyName <[EMAIL PROTECTED]> wrote:
: as subject.  thank you.
: Regards.

Why not:

printf("\a");

?

This is subject to terminal emulation and Window manager control, but in
general, the speaker under Unix will beep using the Bell or alert character.

                        .justin.

-- 
========================================================================
Justin Leonard Tripp                              [EMAIL PROTECTED]
Configurable Computing Laboratory Research Assistant      CB 461 x8-7206
Electrical and Computer Engineering Department  Brigham Young University

------------------------------

From: [EMAIL PROTECTED]
Subject: Modules bomb after kernel compile
Date: Sun, 08 Aug 1999 19:08:25 GMT

Hi,

HELP! I must be doing something wrong here.

I have red hat 6.0 and a dual processor computer.  I can not
get my modules to work after I recompile a new kernel.

When I boot to the new kernel, it will stop at the first instance of a
module.  I can not boot at all if I compile my scsi controller as a
module.

If I compile all my critical stuff as non-modules, the non-critical
stuff won't work (like my sound card).  Changing these modules
to non-modules and re-compiling fixes the problem.

I have attached a note I wrote myself on compiling a
new kernel.  What am doing wrong?

Many thanks,
--Tony
[EMAIL PROTECTED]
Please email me as well as respond to the news group (my nntp server
only gets back about 1 in 10 replies and I have to dig them out out
dejanews).


================== Note on compiling a kernel:============
1) login as root


2) cd /usr/src/linux


3) startx


4) Note: Red Hat 5.2 and lower: If you are compiling an SMP (multiple
processors) kernel,
edit "Makefile" and set SMP=1 (note that "1" stands for true not
the number of processors)


5) make xconfig
Make desired changes
Red Hat 6.0 and higher: for SMP support is enabled in "Processor Type
and Features".  You
also must turn off APM support in "General" AND enable "Enhanced Real
Time Support"
in Character Devices


6) make dep; make clean


7) "make zImage"   or    "make bzImage" if the kernel is large


8) compile your modules:
   a)  move the old modules out of the way.  Example:
            mv /lib/modules/2.2.5-15 /lib/modules/2.2.5-15-old

   b)  run "make modules"

   c)  run "make modules_install"

   Now make an empty .rhkvmtag in the new modules directory.  Example:
      touch /lib/modules/<version>/.rhkvmtag
      touch /lib/modules/2.2.5-15/.rhkvmtag


9) cp /usr/src/linux/arch/i386/boot/zImage  /boot/vmlinuz.smp
                       or
   cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz.smp

Note: change vmlinuz.smp's name as needed.  NEVER overwrite the
original kernel.

   Also, update /boot/System.map from the System.map found in the linux
directory after compilation
         mv /boot/System.map /boot/System.map.000
         cp /usr/src/linux/System.map /boot/.

   And, make a backup copy of /boot/module-info (not the link, but the
file pointed to by the link)


10) fix initrd image:
        turn on module loopback device
              insmod loop

        create new module dependancy file
              depmod -av

        create a new initrd in the boot directory with mkinitrd.  Make
sure that
        the lilo.conf entry points to it.  Examples:
              /sbin/mkinitrd /boot/<newinitrd-image>  <version>
              /sbin/mkinitrd /boot/initrd.smp.img     2.2.5-15

   Note: 2.2.5-15 is the current version of the modules you are
   using (see "ls -alg /lib/modules"); subsitute your version


11) edit /etc/lilo.conf as needed.  Example:

boot=/dev/sda5
map=/boot/map
install=/boot/boot.b
append="mem=131072K"
default=linux.smp
#default=linux
prompt
timeout=50
image=/boot/vmlinuz.smp
        label=linux.smp
        root=/dev/sda5
        initrd=/boot/initrd.smp.img
        read-only
image=/boot/vmlinuz-2.2.5-15smp
        label=linux
        root=/dev/sda5
        initrd=/boot/initrd-2.2.5-15smp.img
        read-only
image=/boot/vmlinuz-2.2.5-15
        label=linux-up
        root=/dev/sda5
        initrd=/boot/initrd-2.2.5-15.img
        read-only
other=/dev/sda1
        label=dos
        table=/dev/sda


12) run "lilo".  Fix any error that pop up with 10 & 11


13) shutdown -r now


14) after reboot, update .rhkvmtag:
     cat /proc/version > /lib/modules/<version>/.rhkvmtag
     cat /proc/version > /lib/modules/2.2.5-15/.rhkvmtag


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

------------------------------

From: [EMAIL PROTECTED] (H. Peter Anvin)
Subject: Re: My first linux program: non-bios boot loader
Date: 7 Aug 1999 21:48:58 GMT
Reply-To: [EMAIL PROTECTED] (H. Peter Anvin)

Followup to:  <[EMAIL PROTECTED]>
By author:    Neil Koozer <[EMAIL PROTECTED]>
In newsgroup: comp.os.linux.development.system
>
> Charles Sullivan wrote:
> 
> > Sounds like a great idea.  I assume it is consistant with
> > having other operating systems on the system.
> 
> I think so, but then I don't know why NT can't handle lilo being in the
> MBR.  I would assume that nuni would work in /hda1 (for example) the same as
> lilo for NT users.
> 

Because NT stores nonstandard data in the MBR (quite possibly to
intentionally screw up other OSes).

        -hpa
-- 
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!

------------------------------

From: hwj <[EMAIL PROTECTED]>
Subject: IEEE 802.1Q
Date: Sun, 08 Aug 1999 22:21:09 +0200

Is anybody working on IEEE 802.1Q (VLAN) for Linux?. Is anybody
coordinating work like that?

Kind regards
Henrik Winther Jensen



------------------------------

From: "Justin W. Williams" <[EMAIL PROTECTED]>
Subject: Creating a distribution
Date: Sun, 8 Aug 1999 14:50:41 -0500

Hi, I was wondering if there was any documentation or information to pass
along about creating a Linux distribution.  I am interested in knowing what
goes into creating one, etc.

Just curious.

--
----
Justin W. Williams
[EMAIL PROTECTED]
http://www.cyberpunks.net/
"Fascism is not defined by the number of its victims, but by the way it
kills them." -- Jean-Paul Sartre



------------------------------

From: David Warren <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: printk ???
Date: Sun, 08 Aug 1999 17:01:56 +0000

NF Stevens wrote:

> "Hung P. Tran" <[EMAIL PROTECTED]> wrote:
>
> >I am having trouble getting printk to work in my driver.
> >I tried:
> >
> >printk(KERN_CRIT "start of init_module\n");
> >
> >It's NOT working. I also get a warning when compiling my driver:
> >
> >warning: implicit declaration of function printk_R1d7b4074
> >
> >Any idea what happened ???
> >
> Are you trying to compile it as C++ (the function name
> looks a bit mangled to me). If you are you will need
> to put extern "C" before the declaration of printk.
>
> Norman

Could this have to do with the "Use versioning on kernel syms" setting?
Just a wild idea...


------------------------------

From: [EMAIL PROTECTED] (H. Peter Anvin)
Subject: Re: My first linux program: non-bios boot loader
Date: 8 Aug 1999 22:01:55 GMT
Reply-To: [EMAIL PROTECTED] (H. Peter Anvin)

Followup to:  <[EMAIL PROTECTED]>
By author:    Peter Mutsaers <[EMAIL PROTECTED]>
In newsgroup: comp.os.linux.development.system
>
> >> "HPA" == H Peter Anvin <[EMAIL PROTECTED]> writes:
> 
>     >> I think so, but then I don't know why NT can't handle lilo
>     >> being in the MBR.  I would assume that nuni would work in /hda1
>     >> (for example) the same as lilo for NT users.
>     >> 
> 
>     HPA> Because NT stores nonstandard data in the MBR (quite possibly
>     HPA> to intentionally screw up other OSes).
> 
> Hmm, not knowing this, I installed Linux at work (RH6.0) with lilo
> using the MBR. I can still boot NT. How can this be, did RH modify
> lilo to make this possible?
> 

No, Werner did, AFAIK.

        -hpa
-- 
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> in private!

------------------------------


** 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
******************************

Reply via email to