Linux-Development-Sys Digest #246, Volume #8 Tue, 31 Oct 00 01:13:07 EST
Contents:
Re: Advansys SCSI gives kernel oops (mst)
Re: kernel-2.4.0-test9 and modules (Robert Lynch)
visual process management tool for linux ("plato")
source code.. ("plato")
Re: System.map problem! ("John Hall")
mouse block ("Chen Yung-Mu")
Re: mount cdrom problem ("Karl Heyes")
Re: Multiple groups per file (Jeff Walters)
spinlock (call to __dummy_lock) ([EMAIL PROTECTED])
Re: Memory Allocation Problem (Christopher Browne)
Found a working solution ([EMAIL PROTECTED])
alternative to classlib\array ("tamar lahav")
Re: (Urgent) Linux-on-PowerPC Assemblers (Christopher Browne)
good tutorials for gdb (krishnakanth)
packet overruns vs. dropped ? (NortonNg)
----------------------------------------------------------------------------
From: mst <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: Advansys SCSI gives kernel oops
Date: Mon, 30 Oct 2000 17:26:28 -0500
Jan wrote:
>
> I have just bought an Advansys SCSI card (2930U+ it
> says on the box), and it detects the three (elderly)
> disks I have connected to it without problems.
>
> But when I build a kernel (2.2.12) with advansys enabled in
> 'SCSI low-level', the kernel oopses as soon as it tries
> to do whatever it does to to /dev/sga.
/dev/sga? This is a generic scsi device, generally used for cd-writers,
not for disks.
I have an ABP940U which works perfectly well, and has for some time in
all the kernels since 2.2.4.
One thing you have to avoid, which I have learned the hard way, is: if
you have support for a Advansys scsi card built into the kernel, don't
try to load the same driver again as a module, since it will bring your
system to a grinding stop :(((. Maybe that's what happens in your case,
too.
Check if there's some configuration script that tries to load the module
on top of a kernel with the driver already built-in.
MST
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Subject: Re: kernel-2.4.0-test9 and modules
Date: Mon, 30 Oct 2000 15:14:44 -0800
Reply-To: [EMAIL PROTECTED]
Timothy Murphy wrote:
>
> As far as I can see, the changes to Rules.make in the latest kernel
> (compared to 2.4.0-test5, the last kernel I compiled)
> means that modules are no longer installed by "make modules_install".
> Instead, there is a symbolic link established
>
> /usr/src/liunx -> /lib/modules/2.4.0-test9/build
>
> It is not clear to me what this symbolic link is meant to achieve,
> or indeed why the previous arrangement, which seemed to work perfectly well,
> was changed.
>
> I find it difficult to believe that I am the only person
> who has met this problem.
> Has anyone compiled this kernel with modules,
> and found things worked OK?
> I'm running RedHat-7.0 with egcs as compiler.
>
> --
> Timothy Murphy
> e-mail: [EMAIL PROTECTED]
> tel: 086-233 6090
> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
I've been using the whole test series, I'm up to test10-pre6,
everything works fine. What version of modutils do you have? I
have:
$ rpm -qv modutils
modutils-2.3.14-3
Running RH7.
HTH. Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
From: "plato" <[EMAIL PROTECTED]>
Subject: visual process management tool for linux
Date: Tue, 31 Oct 2000 01:13:36 +0200
i'm developing a visual process management tool for linux and i have some
questions:
1. how can i get the owner of a process whose pid i have? i use the
/proc/"pid"/stat file to retrieve information about the process and i don't
want to have to open /proc/"pid"/status too just to get the user id. so
please advise. also i want to know how to get the username of a user whose
uid i have.
2. this is a gtk+ question. i need to know what signals are sent for a right
mouse button click. i've looked everywhere and i can't seem to find anything
useful.
3. how do i convert jiffies to any practical time unit (seconds, for
instance)?
please someone answer quickly as this is very urgent..
thanks all.
------------------------------
From: "plato" <[EMAIL PROTECTED]>
Subject: source code..
Date: Tue, 31 Oct 2000 01:15:45 +0200
can anyone provide me with the source code for ps or top (process management
tools on linux)?
------------------------------
From: "John Hall" <[EMAIL PROTECTED]>
Subject: Re: System.map problem!
Date: Mon, 30 Oct 2000 23:44:42 GMT
This is probably pretty simple;
2 things:
First; to overcome lilo limitations, and to "protect" your kernel, RedHat
cleverly has your system boot from a small [probably 25 megs or so]
partition. This partition has to be at the beginning of the hard disk. The
boot partition is mounted in /boot when you're booting up, but then it is
likely unmounted so you can't accidentally make changes to it or delete it.
Make sure when you're copying these files to /boot _when it's mounted_ and
not just the "boot" folder in your root partition. Look in /etc/fstab to see
how /boot is mounted. [obviously the first thing you should do is type mount
by itself to see if anything is mounted into /boot]
Also - System.map has to be called "System.map" and be in the right
location; the reason that you see the "System.map-2.2.16" is for your
convenience if you're booting multiple kernels. There is a symbolic link
called "System.map" that points to "System.map-xxxx". Make sure that the
symbolic link in /boot is pointing at your new System.map-2.2.17 file. [Or
just replace /boot/System.map with your new System.map if you're bold]
<[EMAIL PROTECTED]> wrote in message news:8tgnvc$4v6$[EMAIL PROTECTED]...
> Hi all,
> I have installed Redhat 6.0 with the kernel version of 2.2.5-15.
> recently when i downloaded the latest kernel 2.2.17 from kernel.org and
> compiled using the following commands:
>
> make menuconfig
> make dep
> make clean
> make bzImage
> make modules
> cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.17
>
> then edited lilo.conf as follows
>
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> image=/boot/vmlinuz-2.2.5-15
> label=linux old
> root=/dev/hda2
> read-only
>
> image=/boot/vmlinuz-2.2.17
> label=linux new
> root=/dev/hda2
> read-only
>
> and i ran lilo:
>
> added linux old
> added linux new
>
> when i boot my system with the new kernel its says error with
> modules.dep and System.map
> then i copied my new System.map from /usr/src/linux/System.map to
> /boot/System.map-2.2.17. then also i got te same error. i am not able to
> connect to internet using my new kernel.
> i read many tutorials in the web and also the discussion boards but i am
> not able to solve this problem. kindly help me!
>
> regards,
> Dharan
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
------------------------------
From: "Chen Yung-Mu" <[EMAIL PROTECTED]>
Subject: mouse block
Date: Tue, 31 Oct 2000 08:47:26 +0800
Reply-To: "Chen Yung-Mu" <[EMAIL PROTECTED]>
Hi all ,
We can usr mouse to block some word or command to copy post .
Does it use a buffer to storage those word or command when we block
somethimg ?
If I want get those word or command in the buffer , how can I do ?
I know it is something about gpm . But I don't know which function call
can get this buffer and I
can read it .
------------------------------
From: "Karl Heyes" <[EMAIL PROTECTED]>
Subject: Re: mount cdrom problem
Date: Tue, 31 Oct 2000 01:04:06 +0000
In article <[EMAIL PROTECTED]>, "Kasper Dupont" <[EMAIL PROTECTED]>
wrote:
> CDM wrote:
>>
>> Check your kernel configuration (missing ISO9660 filesystem?), switch it on
>> and rebuild.
>>
>> "Christos Karayiannis" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]...
>> > When I try to:
>> >
>> > mount /dev/cdrom
>> >
>> > I take the message
>> >
>> > mount: iso 9660 not sypported by kernel
>> >
>> > What did I miss. I have to confess that I played with the kernel
>> recently.
>> > How can I restore things back?
>> >
>> > Thank you
>> >
>
> It might not be necesarry to rebuild the kernel, if iso9660 is present in a
> module you could just do an insmod iso9660. With a properly setup
> /etc/conf.modules that could be done automatically.
>
try modprobe isofs instead. There's usually an alias in the above file for
iso9660 to isofs
karl.
------------------------------
From: Jeff Walters <[EMAIL PROTECTED]>
Subject: Re: Multiple groups per file
Date: 31 Oct 2000 00:27:57 GMT
Robert Redelmeier <[EMAIL PROTECTED]> wrote:
> 'Scuse my ignorance, but why would you want multiple groups
> per file? Can't you just create new groups that are the
> appropriate union sets of users? I don't know if /etc/group
> will accept group names to make this easier. (groups of groups)
> -- Robert
Multiple groups per file would let you create one group with read-only
and another with read-write on the same file. Create a union set and
you still have to decide if they all get read-only or all read-write.
ACL's basically are trying to do the same thing. They were good on
VMS, but seem like overkill when you're just trying to set up three
simple permission bits. The current Unix model does 99% of what you
want except allowing more than one "group" of people unique
permissions on the same file.
--
Message of the Message:
It is now pitch dark. If you proceed, you will likely fall into a pit.
------------------------------
From: [EMAIL PROTECTED]
Subject: spinlock (call to __dummy_lock)
Date: Tue, 31 Oct 2000 01:19:22 GMT
hi,
i have a question on the spinlock primitives implemented on x86 systems,
kernel 2.2.14 SMP
in /usr/include/asm/spinlock.h:
typedef struct { unsigned long a[100]; } __dummy_lock_t;
#define __dummy_lock(lock) (*(__dummy_lock_t *)(lock))
#define spin_lock_string \
"\n1:\t" \
"lock ; btsl $0,%0\n\t" \
"jc 2f\n" \
".section .text.lock,\"ax\"\n" \
"2:\t" \
"testb $1,%0\n\t" \
"jne 2b\n\t" \
"jmp 1b\n" \
".previous"
#define spin_lock(lock) \
__asm__ __volatile__( \
spin_lock_string \
:"=m" (__dummy_lock(lock)))
why do we have the __dummy_lock (lock) macro? and why do the spinlock
primitives use this call everytime? if this has been documented
somewhere, just a pointer to the docs would be sufficient.
thanks
-nj
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: Memory Allocation Problem
Reply-To: [EMAIL PROTECTED]
Date: Tue, 31 Oct 2000 01:55:05 GMT
In our last episode (Wed, 25 Oct 2000 15:29:59 GMT),
the artist formerly known as James Moe said:
>Michael Schoettner wrote:
>> I want to allocate a virtual memory block and I want to suggest a
>> starting address (like VirtualAlloc in MS-Windows). Does anybody
>> know the proper system call? A short e-mail would be great.
>
> What do you mean by "virtual memory"?
I wonder why it is assumed that there is some point to doing anything
more specific than using malloc() to allocate some memory.
If there's RAM to satisfy the request, then it'll sit in RAM. If
there's not, something will get pushed to swap.
I think Mr. Schoettner needs to step back and elaborate on why he
feels some need to specify a starting address. I would think it
spectacularly unlikely that he _actually_ needs this, based on the
scanty specifications provided.
One of the points of having a functional operating system is that you
can leave many of the nagging details to the OS so that you don't have
to care where things get put.
--
(concatenate 'string "cbbrowne" "@" "acm.org")
<http://www.ntlug.org/~cbbrowne/linux.html>
"There is no psychiatrist in the world like a puppy licking your
face." -- Ben Williams
------------------------------
From: [EMAIL PROTECTED]
Subject: Found a working solution
Date: Tue, 31 Oct 2000 01:47:14 GMT
Hello,
I found a solution to this problem. The rboot solution
http://www.bs.ni.schule.de/support/rboot/ writes a magic cookie at
0x70, 0x71.
outb(0x70, 0x05); outb(0x71, 0x1f);
Then when the PXE code again gets control, it checks for this magic
cookie, and if present, it exits. Before exiting, it resets the magic
cookie.
outb(0x70, 0x5);
if (inb(0x71) == 0x1f) {
outb(0x70, 0x5);
outb(0x71, 0x00);
exit(0);
}
I have checked out this solution, and it seems to be working. Only I
do not know if it is ok to use these addresses.
Thanks,
nitu
In article <8tkngv$6ti$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> In my scenario, PXE is allowed to boot before the hard disk. So, if I
> allow reset to happen, the PXE code will always run first, and then
> download the stuff off the network, and the hard disk code will never
> get executed. My main problem, is how to tell PXE not to run the next
> time.
>
> Thanks,
> nitu
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] wrote:
> > On Fri, 27 Oct 2000 23:27:09 GMT [EMAIL PROTECTED] wrote:
> >
> > | I have a requirement to use PXE to download linux kernel, do some
> work,
> > | and then boot to the os on the disk.
> > |
> > | The problems that I am having is that I am unable to program the
> reboot
> > | code to switch to the next boot device. The plug and play bios
> > | specification says that int 18h could be sent to the bios to boot
to
> > | next device. I have verified this by sending the interrup in
> Setup.s,
> > | and the next boot device gets control.
> > |
> > | However, when I program the reboot code to send interrupt 18h
> seems to
> > | hang the machine. I am sending that interrup after the linux code
> > | switches itself to the real mode (modified the process.c code). I
> guess
> > | linux when loading destroys the bios data area, which might be
> causing
> > | the machine to hang? Any clues? Is it possible to access bios
> services
> > | when running under linux. If not, what kind of cleanup I need to
do
> to
> > | achieve the same functionality?
> >
> > I do believe the BIOS will have to be restarted from reset once
Linux
> has
> > been running in protected mode. So many things besides the CPU mode
> can
> > be "out of whack" that the reset sequence is the only way to do
this.
> >
> > I, too, have wanted to do this with PXE to do things like reload a
> fresh
> > system over the network, possibly selected differently each time
> based on
> > the current services provisioning.
> >
> > If the first stage OS boot were to always take place using PXE, then
> that
> > OS run code could install a modified LILO or other boot loader onto
> the
> > hard drive and eventually do a full reset. That modified boot
loader
> > would, just before actually loading the second stage OS, wipe itself
> off
> > the hard drive by rewriting the MBR with zeros for the bootable code
> > (but leaving the partition table intsact). Then the boot loader
would
> > load the OS of choice from the partition boot record. That way you
> could
> > run the BIOS through a full reset reboot, using the MBR as the
> toggling
> > state memory.
> >
> > I'm working with an Intel ISP1100 box to experiment (haven't got to
> the
> > stage of doing the boot loader thing yet).
> >
> > --
> > | Phil Howard - KA9WGN | My current websites: linuxhomepage.com,
> ham.org
> > | phil (at) ipal.net +--------------------------------------------
--
> ------
> > | Dallas - Texas - USA | phil-evaluates-email-ads-750-dollars-
> [EMAIL PROTECTED]
> >
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
From: "tamar lahav" <[EMAIL PROTECTED]>
Subject: alternative to classlib\array
Date: Mon, 30 Oct 2000 16:16:38 +0200
This is a multi-part message in MIME format.
=======_NextPart_000_000A_01C0428C.C7C4EC00
Content-Type: text/plain;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
I am locking for alternative to classlib\array, specifically for sorted =
array of templates.
is gvector.h good?
Tamar
=======_NextPart_000_000A_01C0428C.C7C4EC00
Content-Type: text/html;
charset="windows-1255"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1255" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>I am locking for alternative to classlib\array,=20
specifically for sorted array of templates.</FONT></DIV>
<DIV><FONT face=3DArial>is gvector.h good?</FONT></DIV>
<DIV><FONT face=3DArial>Tamar</FONT></DIV></BODY></HTML>
=======_NextPart_000_000A_01C0428C.C7C4EC00==
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Crossposted-To: comp.os.linux.powerpc,comp.os.linux.misc
Subject: Re: (Urgent) Linux-on-PowerPC Assemblers
Reply-To: [EMAIL PROTECTED]
Date: Tue, 31 Oct 2000 04:09:41 GMT
In our last episode (26 Oct 2000 13:44:44 GMT),
the artist formerly known as nathan wagner said:
>On Thu, 26 Oct 2000 06:12:19 -0400,
>Stack Offset <[EMAIL PROTECTED]> wrote:
>>Please respond to this by e-mail *only* : I do not ordinarily browse internet
>>newsgroups.
>
>Post it here, read it here. We're not your personal research assistant.
>*plonk*
... Unless the one requiring the research assistance is prepared to
pay our low, low hourly consulting rates. $100/hour, minimum of 8
hours, _cash_ in advance... PayPal likely acceptable...
--
(concatenate 'string "cbbrowne" "@" "ntlug.org")
<http://www.hex.net/~cbbrowne/lsf.html>
"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: [EMAIL PROTECTED] (krishnakanth)
Subject: good tutorials for gdb
Date: 31 Oct 2000 04:19:46 GMT
Hi group
can anyone suggest me a good tutorials for gdb .Thanks in advance.
KrishnaKanth
==============================================
It's how u rose up after falling that counts
Not how many times u fell
------------------------------
From: [EMAIL PROTECTED] (NortonNg)
Subject: packet overruns vs. dropped ?
Date: Tue, 31 Oct 2000 05:30:15 +0000 (UTC)
hello,
I notice that the ifconfig output of my eth0 & eth1 interface have
overruns = 19167 . What is it means? What is the different between dropped
and overruns? any suggestion will be appreciated.
eth0 Link encap:Ethernet HWaddr 00:AF:00:00:01:39
inet addr:140.113.216.185 Bcast:140.113.216.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9191091 errors:0 dropped:0 overruns:0 frame:0
TX packets:9452028 errors:0 dropped:0 overruns:19167 carrier:0
collisions:0 txqueuelen:100
Interrupt:12 Base address:0xe800
eth1 Link encap:Ethernet HWaddr 00:AF:00:00:01:3A
inet addr:192.168.101.254 Bcast:192.168.101.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:11977321 errors:0 dropped:0 overruns:0 frame:0
TX packets:11732171 errors:0 dropped:0 overruns:7 carrier:0
collisions:0 txqueuelen:100
Interrupt:10 Base address:0xec00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:6702 errors:0 dropped:0 overruns:0 frame:0
TX packets:6702 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
------------------------------
** 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
******************************