Linux-Development-Sys Digest #306, Volume #8     Tue, 28 Nov 00 14:13:15 EST

Contents:
  Re: Help on booting linux (LuisMiguel Figueiredo)
  CIFS.. (Ivan Ostres)
  Re: Dynamic loading ? (LuisMiguel Figueiredo)
  Re: [HELP] struct proto udp_prot : how to? (Maurizio Piana)
  Re: CIFS.. (Daryl Fonseca-Holt)
  Linux and RAID (webbgroup)
  proute2 source code / package ? (Sasha)
  Re: XTI o TLI (Warren Young)
  nvidia kernel module under 2.4.0-test11 (Helmut Jarausch)
  Re: nvidia kernel module under 2.4.0-test11 (Anes Lihovac)
  Re: gcc-2.95.2 forces ALL c++ programs to be GPL !!??!# (Philip Armstrong)
  Re: Runtime file size modifying (Alexander Viro)
  Re: Errors when insmod (Rick Ellis)
  Re: gcc-2.95.2 forces ALL c++ programs to be GPL !!??!# ([EMAIL PROTECTED])
  Re: [Q] How to get the Ethernet address ? (Rick Ellis)
  Re: hi, i need some help with a parallel port (Pete Zaitcev)
  Re: Developing  ipchain / IP (Rick Ellis)
  Re: Device Driver Advice (Rick Ellis)
  Re: make C prog put itself in background??? (Rick Ellis)

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

From: LuisMiguel Figueiredo <[EMAIL PROTECTED]>
Subject: Re: Help on booting linux
Date: 28 Nov 2000 13:09:54 GMT

[EMAIL PROTECTED] (Dirk) wrote in <3a227941$[EMAIL PROTECTED]>:

>Hello,
>
>I have got a problem understanding the boot process of Linux.
>The files bootsect.S and setup.S are in binary file format. The Kernel
>vmlinux is in ELF format. The kernel vmlinux will be loaded to address
>0x1000 or 0x100000. How can setup.S jump to this address when there is the
>ELF header of the file vmlinux.
>
>Please tell me what my mistake is.
>
>Thanks.
>
>Dirk
>
>
>

there are some comments on the files with boot related code. The comments 
are very good and sure will give you a help.
 BTW i think vmlinuz isn't on ELF format but in raw binary mode. I think 
the explanation is on the comments of boot/*.s. Take a look there are 
several source code files talkin' about it.

Hope this will help,

+--------------------------------+
|elmig                           |
|http://www.alunos.ipb.pt/~ee3931|
|Luis.Figueiredo AT pt.bosch.com |
+--------------------------------+

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

From: [EMAIL PROTECTED] (Ivan Ostres)
Subject: CIFS..
Date: 28 Nov 2000 13:14:26 GMT
Reply-To: [EMAIL PROTECTED]

does linux have a CIFS support in new kernel version???

                                                johnny

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

From: LuisMiguel Figueiredo <[EMAIL PROTECTED]>
Subject: Re: Dynamic loading ?
Date: 28 Nov 2000 13:18:31 GMT

[EMAIL PROTECTED] (Peter) wrote in <[EMAIL PROTECTED]>:

>Hello all
>
>
>I am little confused about the difference of dynamic and boot time
>loading in kernel and also the difference between protected and  real
>mode.

To fully understand real mode vs protected mode seek some pdf files located on 
Intel developer's. Look for the 486 specification. There's also a protected 
mode document. It's the best information source you can get.

 In a very simplistic way: real mode allows addressing only 2^20 bytes of 
memory (1 MB), while on protected mode you can address 2^32 bytes of memory. 
And if you don't have it will be swapped.
 As i said this is a very simplistic description. Read the docs.

Hope this help,

+--------------------------------+
|elmig                           |
|http://www.alunos.ipb.pt/~ee3931|
|Luis.Figueiredo AT pt.bosch.com |
+--------------------------------+

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

From: Maurizio Piana <[EMAIL PROTECTED]>
Subject: Re: [HELP] struct proto udp_prot : how to?
Date: 28 Nov 2000 13:13:43 GMT

Maurizio Piana <[EMAIL PROTECTED]> wrote:

-> _Please_ does any of you knows how steps i must do to develop an udp packet?

I forgot to say that I _MUST_ develop udp packets using _only_ functions
in net/ipv4/udp.c file in user space.

Now my problem is to understand which steps to do to develop an UDP packet
in this way.

Can any of you help me in some way?


Thanx

MAU


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

From: [EMAIL PROTECTED] (Daryl Fonseca-Holt)
Subject: Re: CIFS..
Reply-To: [EMAIL PROTECTED]
Date: Tue, 28 Nov 2000 08:43:08 -0600

Linux has smbfs (Samba) support and has for a long time. CIFS is MicroSoft's
name for smb. I use the smbfs support in the kernel along with the Samba
package to connect a Network Neighborhood of two Win98 machines via my Linux
server.

wyatt


On 28 Nov 2000 13:14:26 GMT, Ivan Ostres <[EMAIL PROTECTED]> wrote:
>does linux have a CIFS support in new kernel version???
>
>                                               johnny

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

From: webbgroup <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,alt.linux,alt.os.linux
Subject: Linux and RAID
Date: Tue, 28 Nov 2000 15:42:34 GMT

 The price and space on IDE drives now really give the home computer
geek the ability to get some great size on their computers. I haven't
put RAID on my home server yet because I am really going to have to get
a new computer. Turns out my old Packard Bell Pentium 100 doesn't have
a sencond IDE controller. Only has one and I would rather have a hard
drive - cdrom than two drives.

I will probably set up something really nice when I get another
computer.

DO you guys agree with the software raid HOW-TO configuration?

disk partition mount pt.  size    device
  1      1       /        300M   /dev/hda1
  1      2       swap      64M   /dev/hda2
  1      3       /home    800M   /dev/hda3
  1      4       /var     900M   /dev/hda4
  2      1       /root    300M   /dev/hdc1
  2      2       swap      64M   /dev/hdc2
  2      3       /home    800M   /dev/hdc3
  2      4       /var     900M   /dev/hdc4

In this HOW-TO they talk about the mounting configuration. I am
wondering why they don't make a mirror image of the /,/root

--
  ^*
 0 0    Happy Holidays!!
( V )


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: Sasha <[EMAIL PROTECTED]>
Subject: proute2 source code / package ?
Date: Tue, 28 Nov 2000 16:09:23 GMT


Hi all

Sorry, i couldnt find the source code / package for iproute2 and traffic
shaper.
I tried with searching engine but dident found what i need. Does any
body knows, where i could find it

Thanks in advance Sasha




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

Date: Tue, 28 Nov 2000 09:32:32 -0700
From: Warren Young <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: XTI o TLI

Andi Kleen wrote:
> 
> If your application uses STREAMS directly it'll get a bit more
> difficult.

If your app only uses the basic XTI calls documented in Comer's
Internetworking with TCP/IP volume 3 (TLI version), porting it to
sockets is fairly simple.  In many cases, you can do the port with a
search-and-replace.  I ported a 30,000 line UnixWare app to Linux in a
few days this way once.  

Actually twice.  :)  My first port was when Linux was less popular, so
the UnixWare version kept getting shipped to customers, so I had to
re-do the port a year later.

The nice thing about porting it to sockets is that you can then
back-port it to Solaris without much trouble, since every current Unix
has sockets support.
-- 
= Warren Young, maintainer of the Winsock Programmer's FAQ at:
=     http://www.cyberport.com/~tangent/programming/winsock/
= 
= ICBM Address: 36.8274040 N, 108.0204086 W, alt. 1714m

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

From: Helmut Jarausch <[EMAIL PROTECTED]>
Subject: nvidia kernel module under 2.4.0-test11
Date: Tue, 28 Nov 2000 17:52:43 +0100
Reply-To: [EMAIL PROTECTED]

Hi,
I am desparately trying to build the NVIDIA kernel module to support the

NVIDIA  GeForce graphics card.

I have got a version which is claimed to compile on 2.3.x but
it fails on 2.4.0-test11.
It's missing
mem_map_inc_count
mem_map_dec_count
etc.

Does anybody know a source of a patch to this driver?

Thanks a lot,
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
Institute of Technology, RWTH Aachen
D 52056 Aachen, Germany



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

Date: Tue, 28 Nov 2000 17:02:32 +0000
From: Anes Lihovac <[EMAIL PROTECTED]>
Subject: Re: nvidia kernel module under 2.4.0-test11

Helmut Jarausch wrote:
> 
> Hi,
> I am desparately trying to build the NVIDIA kernel module to support the
> 
> NVIDIA  GeForce graphics card.
> 
> I have got a version which is claimed to compile on 2.3.x but
> it fails on 2.4.0-test11.
> It's missing
> mem_map_inc_count
> mem_map_dec_count
> etc.
> 
> Does anybody know a source of a patch to this driver?
> 
> Thanks a lot,
> Helmut Jarausch
> 
> Lehrstuhl fuer Numerische Mathematik
> Institute of Technology, RWTH Aachen
> D 52056 Aachen, Germany



go to irc.openprojects.net #nvidia !

Regards
Anes

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

From: [EMAIL PROTECTED] (Philip Armstrong)
Subject: Re: gcc-2.95.2 forces ALL c++ programs to be GPL !!??!#
Date: 28 Nov 2000 16:14:26 -0000

In article <9007fu$ijo$[EMAIL PROTECTED]>,  <[EMAIL PROTECTED]> wrote:
>Ok folks,
>
>I've just finished as rigorous an analysis as I've yet seen of the
>licensing issues surrounding C++ programs compiled with the GCC
>compiler.
>
>The bottom line is that since C++ programs statically link in
>libstdc++.a and the libstdc++.a library includes 2 files (./gcc-
>2.95.2/include/ansidecl.h and ./gcc-2.95.2/texinfo/lib/strerror.c)
>that fall under GPL (not LGPL or special exceptions), therefore these
>files must either be removed or the rest of the executable's source
>must be made freely available to the public.  This would seem to apply
>to all C++ programs compiled with gcc-2.95.2.
>
>Someone please prove me wrong.  My detailed analysis is posted in my
>public folder at:
>http://briefcase.yahoo.com/rw78a
>

You'll need a GPL familiar lawyer to really argue the case, but
(taking your analysis as correct in that strerror.o is linked in to
libstdc++) I can point out that strerror is a very simple function
which is also defined in /lib/libc.so.6 . It can therefore be replaced
with an equivalent non-GPL version with no difficulty whatsoever.

ansidecls.h is a big bunch of #defines and hence can't be 'linked' in
any meaningful sense.

Have you emailed any the relevant gcc lists to enquire about this?

Phil
-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt


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

From: [EMAIL PROTECTED] (Alexander Viro)
Subject: Re: Runtime file size modifying
Date: 28 Nov 2000 12:59:24 -0500

In article <[EMAIL PROTECTED]>,
Nix  <$}xinix{[email protected]> wrote:
>(But of course the automatic scheme would be *almost* as much of a
>horror...  or would it? Because you could choose not to autopunch a hole

It would, but at least it avoids useless API changes...

>> [3] Example of braindamage: chdir(2) requires exec permissions on new pwd.
>> That's nice, but what, in name of Cthulhu, does it mean for a union? And
>
>God only knows. You could cheat and steal it from the way mounts work;
>the permissions/ownership of the last mount point are inherited by the

Huh? With the normal mount it doesn't happen - all you see is permissions
of the covering object. The problem being: in case of unions there is no
such thing as _the_ covering object - too many candidates/

>mountee. (Er. No you couldn't. That would let you union-mount
>/home/foo/bin (writable by you) on /bin (not so writable) and then
>delete /bin/ls. But that would just delete it from the topmost mount,
>not from /bin, wouldn't it? ... )

Not a problem - if you can do that you can pull all sorts of interesting
tricks with the standard programs anyway. IOW, anything with elevanted
privileges will have to sanitize its namespace (as it currently has to
sanitize the environment).

Taking the permissions of the first object in union is bogus - we need
different treatment for different bits. Sigh...

>> it's not like we had a warranty that pwd is searchable - chmod 0 . does
>> the trick quite fine... Good for Plan 9 folks, they could send POSIX to
>> hell where it belongs. We are slightly less lucky...
>
>Still, at least it's pronounceable. (IEEIX, ugh.)

<wry>
IMO FPOSIX would be more appropriate.
</wry>

-- 
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid.  Get yourself a better computer" - Dilbert.

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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Errors when insmod
Date: 28 Nov 2000 18:04:08 GMT

In article <[EMAIL PROTECTED]>,
Josef Moellers  <[EMAIL PROTECTED]> wrote:

>Do an "fgrep request_region /proc/ksyms". If the result looks something
>like
>       c011be4c request_region_Rsmp6d32b2d7
>(note the _R thing!), then your kernel was compiled using modversions,
>an additional safety measure to prevent incompatible modules from
>entering your kernel.
>You will need at least to include "-DMODVERSIONS" in your gcc
>invocation.

Why are so many people getting hit by this?

--
http://www.spinics.net/linux

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

From: [EMAIL PROTECTED]
Subject: Re: gcc-2.95.2 forces ALL c++ programs to be GPL !!??!#
Date: Tue, 28 Nov 2000 18:14:33 GMT

In article <900ll2$r5$[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] (Philip Armstrong) wrote:
> You'll need a GPL familiar lawyer to really argue the case, but
> (taking your analysis as correct in that strerror.o is linked in to
> libstdc++) I can point out that strerror is a very simple function
> which is also defined in /lib/libc.so.6 . It can therefore be replaced
> with an equivalent non-GPL version with no difficulty whatsoever.
>
> ansidecls.h is a big bunch of #defines and hence can't be 'linked' in
> any meaningful sense.
>
> Have you emailed any the relevant gcc lists to enquire about this?

Thanks for the additional information and I've just now posted this
query to the gnu.gcc.help newsgroup.

As far as ansidecls.h goes, even though it is a big bunch of #defines,
it does seem to be included in the source base that makes up
libstdc++.a so by the letter of the licenses it needs to be considered.

Regards,
Ralph


Sent via Deja.com http://www.deja.com/
Before you buy.

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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: [Q] How to get the Ethernet address ?
Date: 28 Nov 2000 18:36:55 GMT

In article <[EMAIL PROTECTED]>,
scz  <[EMAIL PROTECTED]> wrote:

>Since the original post reads "the Ethernet address", one might
>infer that the machine has one (1) Ethernet interface.  Tricky,
>eh? 

That is often a groundless assumption.  All too often someone comes
on here and asks the question without even thinking about the possibility
of more than one NIC or having IP aliases.

It's probably better to find out what the poster is really trying to
do rather than just blindly providing an answer that may not work.

--
http://www.spinics.net/linux

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

From: [EMAIL PROTECTED] (Pete Zaitcev)
Subject: Re: hi, i need some help with a parallel port
Date: Tue, 28 Nov 2000 18:37:05 GMT

On Tue, 28 Nov 2000 00:48:35 -0500, Glitch <[EMAIL PROTECTED]> wrote:

> here is the source code:
> #include <stdio.h>
> #include <unistd.h> /* needed for ioperm() */
> #include <asm/io.h> /* for outb() and inb() */
 ^^^^^^^^^^^^^^^^^^^^^^^
 First thing is my pet peeve. You are not supposed to use <asm/io.h>
 in an application code. Your code WILL work if you do, but by pure
 luck (because such is i386 implementation). You must copy the definition
 over to your application. Better yet, use /dev/port - I have an example
 attached.
   
> #define DATA 0x300    /* this is what address we are told the
> custom-made board is located */
 ^^^^^^^^^^^^^^^^^^^^^^^
 For more fun, place it on 0x80
      
> int main(void)
>   {
>    int x = 0x32;
>       
>    if (ioperm(DATA,3,1)) {
>         printf("Sorry, you were not able to gain access to the
> ports\n");
>         printf("You must be root to run this program\n");
>         exit(1);
>         }
>    
>    outb(DATA, x); /* Sends 0011 0010 to the Data Port */   
 ^^^^^^^^^^^^^^^^^^
 Other poster showed you already that that your arguments are
 reversed.

>    return (0);
>   }
> 
> Now after some reading i know i have to compile with the -O option b/c
> of the outb function.  I do that but receive this warning: large integer
> implicitly truncated to unsigned integer. As this is a warning I'm not
> too concerned however I get a segfault when I run the program. I use

That will teach you to pay attention to compiler warnings :)
Of course, 0x300 cannot fit into byte because your arguments
were reversed.

--Pete

P.S. Here is the promised example, ripped off from real code
(look ma, no hands! no ioperm! no <asm/io.h>!):

=============================================================
/*
 * Test of alpha-blending on IGS5000
 */

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>

#define NAME "alphu"

void xioinit(void);
unsigned int xinb(unsigned int port);
void xoutb(unsigned int val, unsigned int port);

int
main(int argc, char *argv[])
{
        unsigned char chipid[3];
        unsigned char b;
        // struct par par0;

        // params(&par0, argc, argv);

        xioinit();

        /*
         * Read the chip ID. This is to make sure we have the board.
         * For IGS 5050 the ID yields A3:0B:00.
         */
        xoutb(0x91, 0x3ce);
        chipid[0] = xinb(0x3cf);
        xoutb(0x92, 0x3ce);
        chipid[1] = xinb(0x3cf);
        xoutb(0x93, 0x3ce);
        chipid[2] = xinb(0x3cf);
        printf("IGST Chip ID: %02x:%02x:%02x\n", chipid[0],chipid[1],chipid[2]);
        /* Comment out this piece if you know what you are doing. */
        if (chipid[0] != 0xa3 || chipid[1] != 0x0b) {
                fprintf(stderr, NAME ": chip ID mismatch\n");
                exit(1);
        }

...................................

/* P3 */ printf("Done.\n");
        exit(0);
        return 0;
}

#if DEVPORT

// OK, this is bad. Gotta have a class and xioyyy() a member XXX
static int xiofd;

void
xioinit() {
        int fd;

        if ((fd = open("/dev/port", O_RDWR)) == -1) {
                fprintf(stderr, NAME ": Cannot open /dev/port: %s\n",
                    strerror(errno));
                exit(1);
        }
        xiofd = fd;
}

unsigned int
xinb(unsigned int port) {
        unsigned char val;

        if (lseek(xiofd, (off_t)port, SEEK_SET) == (off_t)-1) {
                fprintf(stderr, NAME ": Cannot seek to %u\n", port);
                exit(1);
        }
        if (read(xiofd, &val, 1) != 1) {
                fprintf(stderr, NAME ": Cannot read from %u\n", port);
                exit(1);
        }
        return val;
}

void
xoutb(unsigned int val, unsigned int port) {
        unsigned char valb = val;

        if (lseek(xiofd, (off_t)port, SEEK_SET) == (off_t)-1) {
                fprintf(stderr, NAME ": Cannot seek to %u\n", port);
                exit(1);
        }
        if (write(xiofd, &valb, 1) != 1) {
                fprintf(stderr, NAME ": Cannot write to %u\n", port);
                exit(1);
        }
}

#endif /* DEVPORT */

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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Developing  ipchain / IP
Date: 28 Nov 2000 18:41:13 GMT

In article <[EMAIL PROTECTED]>,
David  <[EMAIL PROTECTED]> wrote:

>I am a student, want to develop a program that  passes packet entering
>IP protocol (the packet placed in IP queue ) through a queue to be able
>to generate delay and reduce the bandwidth for testing the network.  For
>doing  this i want to work with ipchain and IP protocol.
>
>I was wondering if some  body knows,  which files in IP protocol, and
>which files in IP chain i should look at.

Have you look at drivers/net/shaper.c?

--
http://www.spinics.net/linux

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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: Device Driver Advice
Date: 28 Nov 2000 18:44:12 GMT

In article <SH0T5.3185$[EMAIL PROTECTED]>,
Norman Dresner <[EMAIL PROTECTED]> wrote:

>Why does the work have to be done on-site?

That's what I was wondering too.

--
http://www.spinics.net/linux

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

From: [EMAIL PROTECTED] (Rick Ellis)
Subject: Re: make C prog put itself in background???
Date: 28 Nov 2000 18:48:32 GMT

In article <[EMAIL PROTECTED]>,
Erik Hensema <[EMAIL PROTECTED]> wrote:

>I reopen the low fd's because sometimes some calls like to write to stdout
>or stderr, cluttering up the console. Writing to /dev/null hurts nobody.

Also if you just close them, another open might get one of their fd's and
bad things could happen.


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


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