Linux-Development-Sys Digest #665, Volume #8 Mon, 23 Apr 01 16:13:28 EDT
Contents:
Raw I/O patch ("Mike Austin")
How come cdrecord 1.10 no longer uses the configure script? (jtnews)
NEC 1.2MB 9801 Format ("Jan")
Re: SIGSEGV signal handler and pthread ("Arthur H. Gold")
shell programming question ("Simon Bretin")
cdrecord 1.10 LG CD-RW CED-8080B audio write won't work (jtnews)
Re: stripped down kernel
Re: ide vs. scsi why so much slower (Tom Roberts)
Re: ide vs. scsi why so much slower ("J. E. Garrott, Sr")
Re: A Linux emulator for Linux, does this exist? (bill davidsen)
Re: A Linux emulator for Linux, does this exist? (bill davidsen)
Re: pcmcia (bill davidsen)
Re: How do I initiate Gnome? (Lee Webb)
Re: ide vs. scsi why so much slower (Chronos Tachyon)
IP packet rewrite (Snehal Khandkar)
Documentation on Linux scripts ? (Tarkus)
Re: A Linux emulator for Linux, does this exist? (Jonathan Buzzard)
----------------------------------------------------------------------------
From: "Mike Austin" <[EMAIL PROTECTED]>
Subject: Raw I/O patch
Date: Mon, 23 Apr 2001 10:12:56 -0400
I've been looking, but I can not find the raw i/o patch for the RedHat
2.2.14-5.0 kernel. Where can I find this?
------------------------------
From: jtnews <[EMAIL PROTECTED]>
Subject: How come cdrecord 1.10 no longer uses the configure script?
Date: Mon, 23 Apr 2001 15:21:35 GMT
How come cdrecord 1.10 no longer uses
the configure script? It also seems
to be switching to smake instead of GNU
make.
Is everyone going in this direction now?
------------------------------
From: "Jan" <[EMAIL PROTECTED]>
Subject: NEC 1.2MB 9801 Format
Date: Mon, 23 Apr 2001 18:52:43 +0300
Reply-To: "Jan" <[EMAIL PROTECTED]>
I have a "NEC FD1231T 3.5" floppy disk drive (mode 3)
using 1.2MB diskettes. Does the Linux (RedHat 7, Kernel v2.2.17)
support this kind of disk drives?
------------------------------
Date: Mon, 23 Apr 2001 11:07:37 -0500
From: "Arthur H. Gold" <[EMAIL PROTECTED]>
Subject: Re: SIGSEGV signal handler and pthread
Sang-Kwon Lee wrote:
>
> I want to capture the SIGSEGV signal.
> So, I registered a SIGSEGV signal handler.
> It works. It captures correct fault address.
> But, when I link this code to pthread library, the fault address is not
> correct.
> The same source code puts different result according to linkage of
> pthread library.
> Can anybody help me solve this problem?
> I wil really appreciate any kind of comments or help.
> Thanks in advance.
>
> My system is Intel P-III dual CPU, Linux 2.2.13-7mdksmp.
> The following is my source code for test:
>
> // main.c
> // test SIGSEGV signal and pthread
>
> #include <pthread.h>
> #include <signal.h>
> #include <stdio.h>
>
> // SIGSEGV signal handler
> void SigSegvHandler(int signo, struct sigcontext_struct sigctx)
> {
> unsigned addr; // fault address
> unsigned error;
>
> addr = sigctx.cr2; // fault address
> error = (sigctx.err & 2);
> printf("fault address = 0x%X\n", addr);
> printf("error = 0x%X\n", error);
> fflush(stdout);
> exit(1);
> }
>
> // install SIGSEGV signal handler
> void InstallSigSegvHandler()
> {
> struct sigaction act;
>
> act.sa_handler = (void (*)()) SigSegvHandler;
> sigemptyset(&act.sa_mask);
> act.sa_flags = 0;
> if (sigaction(SIGSEGV, &act, NULL))
> {
> printf("segv sigaction problem\n");
> fflush(stdout);
> exit(1);
> }
> }
>
> char *ptr;
>
> main()
> {
> char temp;
>
> InstallSigSegvHandler();
>
> ptr = NULL;
> temp = *ptr;
>
> return 0;
> }
>
> The following result is when I don't link pthread library. It is correct
> result:
>
> fault address = 0x0
> error = 0x0
>
> The following result is when I link pthread library. It is incorrect
> result:
>
> fault address = 0x23
> error = 0x0
How did you do your linking? That's likely to be your
problem.
HTH,
--ag
--
Artie Gold, Austin, TX (finger the cs.utexas.edu account
for more info)
mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED]
--
Clone Bernie!
------------------------------
From: "Simon Bretin" <[EMAIL PROTECTED]>
Subject: shell programming question
Date: Mon, 23 Apr 2001 16:58:31 GMT
Hi all,
I'm kind of a newbie in shell porgramming and I'm wanting to do something I
can't do.
So I hope somebody will be able to help me.
The purpose of the script is to launch a program. The problem is that the
program often crashes and has to be relaunched. Also, when the program
crashes, some processe stays alive and have ot be killed before trying to
launch the program antoher time.
To do that I did a simple while loop :
while [ 1 -ne 0 ];
do
echo launching prog
./prog > prog.log 2>&1
done
You can see that I did not write the part that kills the processes...
Because I do not know how to do that !
If somebody could help me !
Thanks a lot !
Simon
------------------------------
From: jtnews <[EMAIL PROTECTED]>
Subject: cdrecord 1.10 LG CD-RW CED-8080B audio write won't work
Date: Mon, 23 Apr 2001 17:22:04 GMT
Anyone have a solution to this problem?
I tried cdrecord 1.9 (the cdrecord that
comes prepackaged with RedHat 7.1 (2.4 kernel))
and the same error results.
I also tried the same thing on RedHat 7.0
(2.2 kernel) and a similar error occurs.
I'm running on RedHat 7.1 on a Dell Dimension
L700cx.
Ordinary isofs data writing works correctly
with all configurations mentioned above.
+ cdrecord -v blank=fast speed=4 dev=0,0,0 -audio -pad
+'/auto/cdrw/log/cdrw-write-audio/./2001-04-23/13-16-20--0400/audio-cd/The Corrs -
+Breathless.wav'
+'/auto/cdrw/log/cdrw-write-audio/./2001-04-23/13-16-20--0400/audio-cd/The Corrs -
+Give Me A Reason.wav'
'/auto/cdrw/log/cdrw-write-audio/./2001-04-23/13-16-20--0400/audio-cd/The Corrs - I
Never Loved You Anyways.wav'
'/auto/cdrw/log/cdrw-write-audio/./2001-04-23/13-16-20--0400/audio-cd/The Corrs -
Looking in the Eyes of Love.wav'
'/auto/cdrw/log/cdrw-write-audio/./2001-04-23/13-16-20--0400/audio-cd/The Corrs -
Runaway.wav' '/auto/cdrw/log/cdrw-write-audio/./2001-04-23/13-16-20--0400/audio-cd/The
Corrs - There She Goes.wav'
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.17
Cdrecord 1.10 (i686-pc-linux-gnu) Copyright (C) 1995-2001 J�rg Schilling
TOC Type: 0 = CD-DA
Using libscg version 'schily-0.5'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'LG '
Identifikation : 'CD-RW CED-8080B '
Revision : '1.04'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : SWABAUDIO
Drive buf size : 1024000 = 1000 KB
FIFO size : 4194304 = 4096 KB
Track 01: audio 34 MB (03:26.36) no preemp pad
Track 02: audio 35 MB (03:29.68) no preemp pad
Track 03: audio 44 MB (04:24.04) no preemp pad
Track 04: audio 45 MB (04:32.48) no preemp pad
Track 05: audio 46 MB (04:35.20) no preemp
Track 06: audio 27 MB (02:40.57) no preemp pad
Total size: 235 MB (23:18.40) = 104880 sectors
Lout start: 235 MB (23:20/30) = 104880 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Reference speed: 2
Is not unrestricted
Is erasable
ATIP start of lead in: -11239 (97:32/11)
ATIP start of lead out: 335100 (74:30/00)
speed low: 0 speed high: 4
power mult factor: 4 5
recommended erase/write power: 3
A2 values: 00 00 00
Disk type: Phase change
Manuf. index: 27
Manufacturer: Prodisc Technology Inc.
Blocks total: 335100 Blocks current: 335100 Blocks remaining: 230220
Starting to write CD/DVD at speed 4 in write mode for single session.
Last chance to quit, starting real write in 9 seconds.8 seconds.7
seconds.6 seconds.5 seconds.4 seconds.3
seconds.2 seconds.1 seconds.0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Blanking PMA, TOC, pregap
Blanking time: 43.668s
Performing OPC...
Starting new track at sector: 0
Track 01: 0 of 34 MB written.cdrecord: Input/output error. write_g1: scsi sendcmd:
no error
CDB: 2A 00 00 00 00 00 00 00 1B 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 64 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x64 Qual 0x00 (illegal mode for this track) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.002s timeout 40s
Sense Bytes: 70 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00
write track data: error after 0 bytes
Writing time: 5.021s
Fixating...
cdrecord: Input/output error. close track/session: scsi sendcmd: no error
CDB: 5B 00 02 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 2C 04 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x2C Qual 0x04 (current program area is empty) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.000s timeout 480s
cmd finished after 0.000s timeout 480s
Fixating time: 0.001s
cdrecord: fifo had 64 puts and 1 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
+ set +x
------------------------------
From: [EMAIL PROTECTED] ()
Subject: Re: stripped down kernel
Date: Mon, 23 Apr 2001 17:54:55 -0000
In article <D_FE6.2797$[EMAIL PROTECTED]>,
Shiva Shankar Chetan <[EMAIL PROTECTED]> wrote:
>I am trying to building a bare minimum kernel which can boot. Could anyone
>tell me which are the required components for a bootable kernel ?
That would depend on what "bare minimum" means to you. Do you want to
be able to access a disk drive? What drivers do you need? What services
will you require?
You'll have to figure out most of this one for yourself. Start by
configuring a kernel to what you think you need and see if it runs.
--
http://www.spinics.net/linux/
------------------------------
From: Tom Roberts <[EMAIL PROTECTED]>
Subject: Re: ide vs. scsi why so much slower
Date: Mon, 23 Apr 2001 11:49:38 -0500
bill davidsen wrote:
> In article <[EMAIL PROTECTED]>,
> Eric Taylor <[EMAIL PROTECTED]> wrote:
> | scsi 33 meg/second
> | ide 4.5 meg/second - no dma
> | ide 12.7 meg/second - with dma
> | The ide drives are ata 100 7200 rpm
> DMA is nice, did you put the drive in ATA/100 mode? You should download
> the current hdparm (4.1 I believe) and set the options:
> -d1 -u1 -m8 -c3 -W1 -A1
> which I got from the IDE God, Mark Lord, and see if that make a small
> improvement of about 500%.
I have an Asus A7V133 motherboard with a 30 GByte WesternDigital ATA-100
7200 RPM drive. hdparm -Tt gives:
3.6 MBytes/sec with no DMA
32.0 MBytes/sec with DMA
All I did was "hdparm -d 1 /dev/hda". Different values of -u and -m gave
no change.
Tom Roberts [EMAIL PROTECTED]
------------------------------
From: "J. E. Garrott, Sr" <[EMAIL PROTECTED]>
Subject: Re: ide vs. scsi why so much slower
Date: Mon, 23 Apr 2001 11:57:09 -0700
Tom Roberts wrote:
>
> bill davidsen wrote:
> > In article <[EMAIL PROTECTED]>,
> > Eric Taylor <[EMAIL PROTECTED]> wrote:
> > | scsi 33 meg/second
> > | ide 4.5 meg/second - no dma
> > | ide 12.7 meg/second - with dma
> > | The ide drives are ata 100 7200 rpm
> > DMA is nice, did you put the drive in ATA/100 mode? You should download
> > the current hdparm (4.1 I believe) and set the options:
> > -d1 -u1 -m8 -c3 -W1 -A1
> > which I got from the IDE God, Mark Lord, and see if that make a small
> > improvement of about 500%.
>
> I have an Asus A7V133 motherboard with a 30 GByte WesternDigital ATA-100
> 7200 RPM drive. hdparm -Tt gives:
> 3.6 MBytes/sec with no DMA
> 32.0 MBytes/sec with DMA
>
> All I did was "hdparm -d 1 /dev/hda". Different values of -u and -m gave
> no change.
>
> Tom Roberts [EMAIL PROTECTED]
Hmmm. Be careful with this. I tried messing with -u, -m, and
-c and destroyed my / partition. fsck couldn't repair it.
(Actually, it put all the files under lost+found with names
like #32454. Haven't figured out what to do with them. Since
I have a recent backup of the / partition, it was easier to
just copy it back.)
Oh, ASUS A7V133 motherboard, 800 MHz Athlon, 30 G Maxtor.
John
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: A Linux emulator for Linux, does this exist?
Date: 23 Apr 2001 19:01:59 GMT
In article <[EMAIL PROTECTED]>,
Jonathan Buzzard <[EMAIL PROTECTED]> wrote:
| Probably a large part of it is that a three phase supply runs at 415V
| as opposed to 230V of a normal supply. This basically means that the
| current draw for a 13kW load is 31A as opposed to 56A. If you have ever
| wired in a shower with 40A cable you will understand why you might want
| to avoid having to wire up something drawing 56A.
Depends on the three phase config, wye vs. delta, of course, and what
country or continent you measure. In the USA 120/208 is one popular
configuration.
"Wiring up a shower" is a European thing for sure, in the USA mixing
electricity and plumbing is a spectacular way to investigate using the
human body as a conductor. I've never felt comfortable with the idea of
grounding the tub and putting 230v into the water heater and not
expecting an insulation breakdown.
In any case, I would not expect to run a mainframe in my home, the air
cooled units probably have more aggregate horsepower than my car.
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait." -seen in a doctor's office
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: Re: A Linux emulator for Linux, does this exist?
Date: 23 Apr 2001 19:03:41 GMT
In article <[EMAIL PROTECTED]>,
Jonadab the Unsightly One <[EMAIL PROTECTED]> wrote:
| At some kind of signal from the user, the kernel writes
| the entire contents of RAM, plus the CPU registers and
| any other relevant data, to a big file on disk, saves
| a pointer to this so that it'll see it at boot time,
| and then just powers down.
|
| Next boot time, it sees that flag file, loads the big
| file off the disk to RAM, restores everything, and
| picks up right where it left off, in the middle of
| whatever it was doing.
Like a laptop...
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait." -seen in a doctor's office
------------------------------
From: [EMAIL PROTECTED] (bill davidsen)
Subject: Re: pcmcia
Date: 23 Apr 2001 19:05:39 GMT
In article <RjJE6.46$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
| Well, Er, Ahh, I continuously manage to stump myself. Having had a modicum
| of success in other areas, I foolishly am trying to get a PCMCIA network
| card working in a laptop. It is a Xircom XE-2000. I can see that cardmgr
| says in the log file that it loads the entry I gave this card in
| /etc/pcmcia/config which is "pcnet_cs". After the "executing insmod
| pcnet_cs.o" message I see cardmgr say "get dev info on socket 0 failed: No
| such device". I can hear the computer give a high beep followed by a low
| beep (which according to my researches at
| http://pcmcia-cs.sourceforge.net/ftp/doc/PCMCIA-HOWTO-4.heml is 'a card was
| identified, but could not be configured for some reason'. Invoking 'cardctl
| ident' shows the card is in the socket with the appropriate product info and
| manfid of 0x0105, 0x010a.
|
| Any suggestions, will as always, be greatly appreciated.
1 - how about config for this device, is it setup?
2 - hardware / kernel info?
--
bill davidsen <[EMAIL PROTECTED]> CTO, TMR Associates, Inc
"I am lost. I am out looking for myself. If I should come back before I
return, please ask me to wait." -seen in a doctor's office
------------------------------
From: [EMAIL PROTECTED] (Lee Webb)
Subject: Re: How do I initiate Gnome?
Date: 23 Apr 2001 19:10:09 GMT
Reply-To: [EMAIL PROTECTED]
On Mon, 23 Apr 2001 10:55:40 +0800, ray wrote:
>> If you want to have Gnome running with FVWM, load up Gnome and then get
>Gnome
>> to load up FVWM as its WM of choice:
>>
>Yes, I want Gnome running with FVWM
>
>> Edit .Xclients (and make sure it's executable afterwards!) to have:
>>
>> exec gnome-session
>>
>I have done this part, but the startx command fails. It says command not
>found. I suspect that it could be the path but when I search around in the
>whole directory for gnome-session file, I could not find it.
Try
$ whereis gnome-session
gnome-session: /usr/bin/gnome-session /usr/share/man/man1/gnome-session.1.bz2
$
/usr/bin is a standard PATH entry, so I don't think it's that.
Do you have anything else in your .Xclients? Also, can you output your startx
for us?
Lee.
------------------------------
From: Chronos Tachyon <[EMAIL PROTECTED]>
Subject: Re: ide vs. scsi why so much slower
Date: Mon, 23 Apr 2001 19:21:13 GMT
On Mon 23 Apr 2001 01:57, J. E. Garrott, Sr wrote:
[Snip]
>
> Hmmm. Be careful with this. I tried messing with -u, -m, and
> -c and destroyed my / partition. fsck couldn't repair it.
> (Actually, it put all the files under lost+found with names
> like #32454. Haven't figured out what to do with them. Since
> I have a recent backup of the / partition, it was easier to
> just copy it back.)
>
> Oh, ASUS A7V133 motherboard, 800 MHz Athlon, 30 G Maxtor.
>
>
> John
>
Whenever you tinker with hdparm settings, you should go to single user
mode, remount all of your filesystems as read-only, and do a sync before
continuing. Usually unnecessary, but well worth it for that rare occasion
that your drive doesn't like the hdparm settings you throw at it.
--
Chronos Tachyon
Guardian of Eristic Paraphernalia
Gatekeeper of the Region of Thud
[Reply instructions: My real domain is "echo <address> | cut -d. -f6,7"]
------------------------------
From: Snehal Khandkar <[EMAIL PROTECTED]>
Subject: IP packet rewrite
Date: Mon, 23 Apr 2001 14:53:24 -0500
Hi,
I have to make a load balancer between servers. My machine is a host (with
one IP addr) and the servers are on the same network as the machine. So I
can't use masquerade.
So I am trying to rewrite the IP addresses (src and dest) and the ports,
ie. every packet that comes from client to loadbalancer, I select a
server. Then I change the src addr from CLIENT_ADDR to LODBAL_ADDR and the
dest addr from LOAD_BAL addr to SERVER_ADDR and give it a new sourse
port right when it comes in ip_rcv. I assume that this packet should now
be treated as a packet that should be sent to the server from the load
balancer.
I have also commented out the check for RTN_UNICAST in
fib_validate_source. But this packet goes as follows -
ip_rcv -> ip_route_input_slow (just for the first time) -> ip_forward
->ip_send ->ip_finish_output -> dev_queue_xmit (gets enqueued here)
I can't trace where it goes after that. It certainly doesnt come on the
wire.
Can someone please tell me what may be happening? Is there something else
that I should change when I change the ip source and dest addresses and
source port? Or is changing this in ip_rcv not okay?
Or is there anything else I am missing. I will really appreciate any help.
Thanks,
Snehal
------------------------------
From: Tarkus <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Documentation on Linux scripts ?
Date: Mon, 23 Apr 2001 22:04:49 +0200
Hi,
Where can I find documentation about linux scripting (Bash) ? I have got
documentation about linux commands via several books and the man
command, but I don't find anything about variable settings, or if
structures, or loops syntax, etc...
Any direction ?
Thanks for your help.
Tarkus
------------------------------
From: [EMAIL PROTECTED] (Jonathan Buzzard)
Subject: Re: A Linux emulator for Linux, does this exist?
Date: Mon, 23 Apr 2001 21:06:59 +0100
In article <9c1u77$34k6$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (bill davidsen) writes:
> In article <[EMAIL PROTECTED]>,
> Jonathan Buzzard <[EMAIL PROTECTED]> wrote:
>
>| Probably a large part of it is that a three phase supply runs at 415V
>| as opposed to 230V of a normal supply. This basically means that the
>| current draw for a 13kW load is 31A as opposed to 56A. If you have ever
>| wired in a shower with 40A cable you will understand why you might want
>| to avoid having to wire up something drawing 56A.
>
> Depends on the three phase config, wye vs. delta, of course, and what
> country or continent you measure. In the USA 120/208 is one popular
> configuration.
>
> "Wiring up a shower" is a European thing for sure, in the USA mixing
> electricity and plumbing is a spectacular way to investigate using the
> human body as a conductor. I've never felt comfortable with the idea of
> grounding the tub and putting 230v into the water heater and not
> expecting an insulation breakdown.
Not quite sure how you usefully ground a bath tub? They are generally
acrylic or if metal enamalled so rather unconductive. Electric showers
are of course just as safe as having an immersion heater, or for that
matter an electric kettle. They also have to be on a ELB if you
want to meet the regulations.
JAB.
--
Jonathan A. Buzzard Email: [EMAIL PROTECTED]
Northumberland, United Kingdom. Tel: +44(0)1661-832195
------------------------------
** 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 by posting to the
comp.os.linux.development.system newsgroup.
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
******************************