Linux-Development-Sys Digest #535

2001-03-02 Thread Digestifier

Linux-Development-Sys Digest #535, Volume #8  Fri, 2 Mar 01 12:13:16 EST

Contents:
  Re: http loopback taking 14 minutes (Dean Thompson)
  boot problem - hanging at LIL- (Brian Horton)
  Re: Can linux be trusted? (Robert Redelmeier)
  Re: Clear (Kasper Dupont)
  Re: Kernel Image??? (Kasper Dupont)
  Re: How to share memory with modules inside the kernel (Kasper Dupont)
  Re: How to share memory with modules inside the kernel ("tlin")
  Re: using ramdisk, ramfs (Kasper Dupont)
  Re: pts/x (fwd) ("Guennadi V. Liakhovetski")
  Can HTTP use as a file transfer application? ("Alan Po")
  Re: Lilo boot disk (Kasper Dupont)



From: Dean Thompson [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.misc,comp.os.linux.setup
Subject: Re: http loopback taking 14 minutes
Date: Sat, 03 Mar 2001 01:16:53 +1100


Hi!,

Thanks for the information, just one quick question, what is in your
/etc/hosts file ?

See ya

Dean Thompson

--
+__++
|   Dean Thompson  | E-mail  - [EMAIL PROTECTED] |
|   Bach. Computing (Hons) | ICQ - 45191180 |
|   PhD Student| Office  - Off-Campus |
|   School Comp.Sci  Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)|
|   MONASH (Caulfield Campus)  | Fax - +61 3 9903 1077  |
|   Melbourne, Australia   ||
+--++

--

From: Brian Horton [EMAIL PROTECTED]
Subject: boot problem - hanging at LIL-
Date: Fri, 02 Mar 2001 09:04:56 -0600

Hope someone can help me.. this machine was working fine, and then
'something happened' and now lilo freezes with: LIL- on boot. Found the
error description for that and tried everything listed, but nothing
seems to point to what the problem is. (Error description says: 'The
descriptor table is corrupt. This can either be caused by a geometry
mismatch or by moving /boot/map without running the map installer. ')

My setup is that I have one /boot partition, and 3 partitions that I can
use as /root. The last thing that I did before things stopped working,
was to boot w/ hda8 as the root (which I had done before OK) and then
tried to go back to the default hda6. Like I said, this worked before... 

The geometry info in 'fdisk -l' matches what I see when I boot with
PartitionMagic disks; 

Comments? Suggestions of anything else to try? I've tried w/ and w/out
'linear' in the lilo.conf - same result. I tried w/ and w/out the
'disk=' stanza - same result.

More info - I played w/ the rescue floppy. My /boot is on hda1 and my
root is hda6. I even tried copying the stuff from my hda1 boot into the
/boot directory on hda6, changed lilo.conf to have boot=/dev/hda6, and
that still didn't work - still froze at LIL-

fsck on /dev/hda1 came back with no errors..

thx for any and all help!

.bri.

=
RH6.2; 2.2.14 kernel from that install. 2.2.16 kernel downloaded
from RedHat ftp site. NO kernel's rebuilt - all from rpm's.

[root@onelesscar /root]# rpm -qa|grep lilo
lilo-0.21-15
[root@onelesscar /root]# cat /etc/lilo.conf
boot=/dev/hda1
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
default=6_2214
#linear
#disk=/dev/hda
#   bios=0x80
#
# note - there is a limit of 16 different images!!
#
# hda6: RedHat 6.2 with various RedHat kernel levels:
image=/boot/vmlinuz-2.2.14-5.0
label=6_2214
read-only
root=/dev/hda6
image=/boot/vmlinuz-2.2.14-5.0smp
label=6_2214smp
read-only
root=/dev/hda6
# hda8: RedHat 6.2 with various RedHat kernel levels
#   and with Mandrake g++ upgrades for other build env
image=/boot/vmlinuz-2.2.16-3
label=8_2216
read-only
root=/dev/hda8
image=/boot/vmlinuz-2.2.16-3smp
label=8_2216smp
read-only
root=/dev/hda8

# hda9: RedHat 7.0 with various RedHat kernel levels:
# RH7.0 not installed yet!!
image=/boot/vmlinuz-2.2.14-5.0
label=9_2214
read-only
root=/dev/hda9
#

[root@onelesscar /root]# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 2482 cylinders
Units = cylinders of 16065 * 512 bytes

   Device BootStart   EndBlocks   Id  System
/dev/hda1   * 1 5 40131   83  Linux
/dev/hda2 6  2482  19896502+   f  Win95 Ext'd (LBA)
/dev/hda5 6   395   3132643+  83  Linux
/dev/hda6   396   785   3132643+  83  Linux
/dev/hda7   786  1047   2104483+  83  Linux
/dev/hda8  1048  1437   3132643+  83  Linux
/dev/hda9  1438  1827   3132643+  83  Linux
/dev/hda10 2450  2482265041   82  Linux swap
[root@onelesscar /root]# lilo -v -v -v
[root@onelesscar /root]#

Linux-Development-Sys Digest #535

1999-03-26 Thread Digestifier

Linux-Development-Sys Digest #535, Volume #6 Fri, 26 Mar 99 16:14:10 EST

Contents:
  Security issues (Michael Schuerig)
  Re: RS485  Linux: Must toggle DTR quickly (Gerard van der Sel)
  generic SCSI for ATAPI devices (SUMIT)
  Problem adding a hook into kernel (Andy Vogel)
  Re: RS485  Linux: Must toggle DTR quickly (Tony Williams)
  Re: Using Linux TCP/IP source for an embedded uP? (John Sheehy)
  Re: Devloping Linux apps on NT? (Lewis Perin)
  Re: Building Linux ([EMAIL PROTECTED])
  Re: Devloping Linux apps on NT? ("Seyed Razavi")
  Re: Devloping Linux apps on NT? ("Seyed Razavi")
  Re: How about /dev/web? (Bill Anderson)
  Re: RS485  Linux: Must toggle DTR quickly (Ralph Goff)
  Re: RS485  Linux: Must toggle DTR quickly ("Tewpin Andrey (ôÀÐÉÎ áÎÄÒÅÊ)")
  Re: RS485  Linux: Must toggle DTR quickly ("Rufus V. Smith")
  Re: How about /dev/web? (Nix)
  Re: RS485  Linux: Must toggle DTR quickly (Stephen Tell)
  sleep_on (Wlmet)
  adding a user (Aaron Faby)
  Re: no setuid for scripts (Frank Sweetser)
  Re: Devloping Linux apps on NT? (steve mcadams)



From: [EMAIL PROTECTED] (Michael Schuerig)
Subject: Security issues
Date: Fri, 26 Mar 1999 17:18:23 +0100


Most of the stuff on security I've seen is concerned with administrative
issues, that I'm not particularly intersted in. Rather, I'd like to get
an idea of the programming side of things: What do I have to do to
ensure my programs aren't easily exploitable? Any pointers, where I can
get started?

Thanks,
Michael

-- 
Michael Schuerig
mailto:[EMAIL PROTECTED]
http://www.schuerig.de/michael/

--

From: Gerard van der Sel [EMAIL PROTECTED]
Crossposted-To: comp.arch.embedded
Subject: Re: RS485  Linux: Must toggle DTR quickly
Date: Fri, 26 Mar 1999 15:55:29 +0100
Reply-To: [EMAIL PROTECTED]

Olav Woelfelschneider wrote:
 
 Keywords: RS485-Network, Linux
 
 I try to run a small RS485 network off the serial port of a PC. The PC polls
 some gadgets with microcontrollers in them.
 
 The PC is coupled via a RS232-RS485 converter which uses DTR to
 switch between transmit and receive. (I use the half-duplex approach with
 only one pair of wires.)
 

Well there is a software solution. Since you are using halduplex
protocol I persume that transmit is coupled with receive through the
rs485. When you get an receive interrupt from the last character you can
savely turn the transmitter of :-).
So no extra hardware is necessary
-- 
Met vriendelijke groet,

Gerard van der Sel
Mailto:[EMAIL PROTECTED]
"De dinosaurussen hadden hun komeet, wij hebben de Windows computer" -
me
"The box said: 'install on Windows 95, NT 4.0 or better'. 
So I installed it on Linux."

--

From: SUMIT [EMAIL PROTECTED]
Subject: generic SCSI for ATAPI devices
Date: Fri, 26 Mar 1999 08:23:47 -0800

Hi

I am running 2.0.36, trying to play around with a CD-RW drive on
the 2nd IDE-channel. I have enabled ide-scsi emulation and booting
through LILO with the following parameter.
hdd=ide-scsi

The problem is that when I read the results back, sg_header.result
is not getting set. i.e. If a command results in Check condition,
sg_header.result should say 2. But it is still 0 though I can
see SENSE information in the sense buffer !

Any ideas ?

Thanks in advance.
Sumit

--

From: Andy Vogel [EMAIL PROTECTED]
Subject: Problem adding a hook into kernel
Date: Fri, 26 Mar 1999 16:53:59 GMT

Hiya,

I've added a hook into the IP source code (2.0.36) - following some
example code from other kernel mods. I defined my function hook it
netsyms.c and everything, but the problem is when I compile and boot the
kernel my new hook/variable isn't there!

When I do a "make vmlinux" the System.map that's created has my hook
listed, but a "ksyms -a" doesn't list it, and as a result my module code
can't see it.

Am I missing something simple?

Thanks
Andy


--

From: Tony Williams [EMAIL PROTECTED]
Crossposted-To: comp.arch.embedded
Subject: Re: RS485  Linux: Must toggle DTR quickly
Date: Fri, 26 Mar 1999 14:59:22 + (GMT)

In article [EMAIL PROTECTED],
 Peter [EMAIL PROTECTED] wrote:
 They do give the "all sent" info but only as a status bit - you cannot
 program an interrupt from it.

   The main problem here is hardware: none of the 16450, 16550 and
  other UART give the information "char completely sent", they just
  give the information "Tx serialisator empty"...

 I had a very similar problem in "2-wire" RS-485
 comms, where each Tx/Rx only gets switched into
 Tx when required, and *must* drop back into an
 Rx'er asap.  5-byte packets into an 8-byte fifo.
 With a receiver hanging on the line you simply
 receive your own outgoing bytes, and as soon as
 the last byte ends, smack it back into Rx, an