Message-ID: <4DF4LC$DK1@bbs.ustc.edu.cn>
Subject: freebsd-current Digest, Vol 68, Issue 32
Date: Thu, 15 Jul 2004 12:26:36 +0000
From: Galoisz.bbs@bbs.ustc.edu.cn (���博士)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.unix.mbox.zip!g2news1.google.com!news1.google.com!news.glorb.com!news3.optonline.net!news.bylinux.net!netnews.sdu.edu.cn!USTC
Newsgroups: cn.bbs.comp.unix
Organization: 嫺�����
X-Filename: Unix/M.1089894396.A
Lines: 773
Xref: 74.82.202.154 cn.bbs.comp.unix:1335


Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. vt100-type terminals in 2004 (Kim Culhan)
   2. -current freezes (DrVince)
   3. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch (M. Warner Losh)
   4. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch (Bruce Evans)
   5. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch 
      (Poul-Henning Kamp)
   6. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch 
      (Poul-Henning Kamp)
   7. acpi_video users needed (Mark Santcroos)
   8. Re: vt100-type terminals in 2004 (Thomas Dickey)
   9. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch (Cyrille Lefevre)
  10. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch  (Bruce Evans)
  11. Re: The recent TIOCREMOTE removal  (Poul-Henning Kamp)
  12. hm, how to recover from a fscked-up device.hints? (Wilko Bulte)
  13. Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch  (Mark Linimon)
  14. The recent TIOCREMOTE removal (samy@kerneled.org)
  15. Re: hm, how to recover from a fscked-up device.hints?
      (Ceri Davies)
  16. Re: hm, how to recover from a fscked-up device.hints?
      (Mark Santcroos)


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

Message: 1
Date: Wed, 14 Jul 2004 20:20:34 -0700 (PDT)
From: Kim Culhan <w8hdkim@yahoo.com>
Subject: vt100-type terminals in 2004
To: freebsd-current@FreeBSD.org
Message-ID: <20040715032034.10583.qmail@web50704.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

While researching some details of vt100 terminals and
console operation, happened across some info on the
vt100's of the present.

These are recent manufacture vt100 decendants with
lots of cool new features -I need one of these :)

Anyone have any experience with these new-generation
tubes?

One of the latest in vt100-type terminals is the VT-520

-kim



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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

Message: 2
Date: Wed, 14 Jul 2004 22:27:46 -0500
From: "DrVince" <drvince@anonymnet.net>
Subject: -current freezes
To: "freebsd-current" <freebsd-current@freebsd.org>
Message-ID: <20040715030031.M6547@anonymnet.net>
Content-Type: text/plain;	charset=iso-8859-1

Hi everyone,
I've been making lots of test to trace why my -current box was freezing.  Cuz 

it was, it really froze, I mean the Siberia kinda freeze, no error msg, no 
droping in debugger, nothing.

At the beginning it seemed random so I started to undo the last changes I made
. 
 So I made a plentyfull bunch of kernels, taking out one line at a time and 
deinstalled a few 3rd party ports.  And finally, I found out that it didn't 
help.  Bugger.  The last change I didn't undo was the cvsupdate.  So I deleted
 
all of my src and obj and cvsup tag=RELENG_5_2.  And sure as getting out of 
Siberia to move in Chernobyl, things went back to normal (execpt for sound, 
which I lost, and some other details that makes downgrading so much fun).

I think I can pinpoint 2 problems.  One is between atapicd and my DVD-RW, whic
h 
is being discussed in another email by someone else in this list.  The other i
s 
GEOM.  First, there were no more "GEOM: create disk ad0 dp=..." at boot time. 
 
Then, at shutdown, the syncer was taking much more time and tries then it 
usually takes.  Also, especially for my GBDE partition, whenever the "writing 

to disks" buffers were being very used, ice cube it went and much 
inconsistencies were detected at boot, even failing to background the fsck.

I don't have much more details then that as it wouldn't core dump, nor go in 

debugging or anything.  But I'll try to give as much details needed if asked 

so.  Here is the usual:

- dmesg after downgrading
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm)  (1094.15-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x6a0  Stepping = 0
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,

CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory  = 536805376 (511 MB)
avail memory = 515952640 (492 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 11 entries at 0xc00fcda0
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <memory, RAM> at device 0.3 (no driver attached)
pci0: <memory, RAM> at device 0.4 (no driver attached)
pci0: <memory, RAM> at device 0.5 (no driver attached)
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
pci0: <serial bus, USB> at device 2.0 (no driver attached)
pci0: <serial bus, USB> at device 2.1 (no driver attached)
pci0: <serial bus, USB> at device 2.2 (no driver attached)
pcib1: <PCIBIOS PCI-PCI bridge> at device 8.0 on pci0
pci1: <PCI bus> on pcib1
pci_cfgintr: 1:7 INTA BIOS irq 10
pci_cfgintr: 1:7 INTB BIOS irq 5
pci_cfgintr: 1:9 INTA BIOS irq 11
pci1: <multimedia, audio> at device 7.0 (no driver attached)
pci1: <serial bus, FireWire> at device 7.2 (no driver attached)
ed0: <NE2000 PCI Ethernet (RealTek 8029)> port 0xd800-0xd81f irq 11 at device 

9.0 on pci1
ed0: address 00:c0:a8:50:e2:f6, type NE2000 (16 bit) 
atapci0: <nVidia nForce2 UDMA133 controller> port 0xf000-0xf00f at device 9.0 

on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pcib2: <PCI-PCI bridge> at device 30.0 on pci0
pci2: <PCI bus> on pcib2
pci_cfgintr: 0:30 INTA routed to irq 10
pcib2: slot 0 INTA is routed to irq 10
pci2: <display, VGA> at device 0.0 (no driver attached)
orm0: <Option ROM> at iomem 0xc0000-0xc8fff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> at port 0x3f7,
0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: IEEE1284 device found /NIBBLE/ECP
Probing for PnP devices on ppbus0:
ppbus0: <HEWLETT-PACKARD DESKJET 990C> PRINTER MLC,PCL,PML
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0a03> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
Timecounter "TSC" frequency 1094147993 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to 

deny, logging disabled
GEOM: create disk ad0 dp=0xc441f760
ad0: 78167MB <Maxtor 6Y080L0> [158816/16/63] at ata0-master UDMA133
GEOM: create disk ad1 dp=0xc441f660
ad1: 76344MB <MAXTOR 6L080J4> [155112/16/63] at ata0-slave UDMA133
acd0: DVDR <PIONEER DVD-RW DVR-106D> at ata1-master UDMA33
GEOM: create disk cd0 dp=0xc448ee00
cd0 at ata1 bus 0 target 0 lun 0
cd0: <PIONEER DVD-RW  DVR-106D 1.07> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ad0s2a

- Custom kernel (GENERIC was also freezing)
machine         i386
cpu             I686_CPU
options         CPU_ATHLON_SSE_HACK
options         CPU_ENABLE_SSE
options         NO_F00F_HACK
ident           *ident*
options         SCHED_ULE               #4BSD scheduler
options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         SOFTUPDATES             #Enable FFS soft updates support
options         UFS_ACL                 #Support for access control lists
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP THIS!]

options         COMPAT_FREEBSD4         #Compatible with FreeBSD4
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         GEOM_GPT                # GUID Partition Tables.
device          isa
device          eisa
device          pci
device          fdc
device          ata
device          atadisk                 # ATA disk drives
device          atapicd                 # ATAPI CDROM drives
device          atapifd                 # ATAPI floppy drives
options         ATA_STATIC_ID           #Static device numbering
device          atapicam
device          scbus
device          cd
device          pass
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse
device          vga             # VGA video card driver
device          sc
device          npx
device          sio             # 8250, 16[45]50 based serial ports
device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          random          # Entropy device
device          loop            # Network loopback
device          ether           # Ethernet support
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          bpf             # Berkeley packet filter
options         HZ=2000

DrVince
DrVince@anonymnet.net

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

Message: 3
Date: Wed, 14 Jul 2004 22:47:18 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: marcel@xcllnt.net
Cc: phk@phk.freebsd.dk
Message-ID: <20040714.224718.93805530.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii

In message: <20040714180816.GA5503@dhcp50.pn.xcllnt.net>
            Marcel Moolenaar <marcel@xcllnt.net> writes:
: But anyway, if you think that all serial devices should have tty$#
: and cua$#, then just implement it that way. It's better to get this
: rework behind us. I can adjust. If not, then I can at least commit :-)

I know that a lot of people will have to adjust.  I have several files
with things like /dev/ucom0 in them....

: > The plan is to make them on-demand-devices (clonable) so that they
: > do not clutter up /dev but appear if you access them.  That would
: > leave only the ttyu0 and cuau0 devices.
: 
: Yes! I like the cloning.

What's the cloning plan?

Warner

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

Message: 4
Date: Thu, 15 Jul 2004 17:29:20 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>
Message-ID: <20040715171007.X2308@epsplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 14 Jul 2004, Marcel Moolenaar wrote:

> On Wed, Jul 14, 2004 at 12:04:57PM +0200, Poul-Henning Kamp wrote:
> > The traditional naming has been the inserted "i" and "l" which I
> > agree is arcane.  I'm not against changing it to ".init" and ".lock"
> > if we can get concensus.
>
> We can create a simple compatibility scheme: If the out argument
> to ttymakeslaves is a string of exactly 1 character, use the old
> naming scheme. Otherwise, a new naming scheme is used. In the old
> scheme, the slave (or out) devices are called cua*. In the new
> scheme the out devices have the name given by the out argument.
>
> Thus:
> sio(4) would call ttymakeslaves with in="d", out="a". This yields
> 	ttyd#, ttyid#, ttyld#
> 	cuaa#, cuaia#, cuala#
> uart(4) would call ttymakeslaves with in="u", out="uart". This could
> yield something like:
> 	ttyu#, ttyu#.init, ttyu#.lock
> 	uart#, uart#.init, uart#.lock

Compatibility is apparently unimportant, since the old names were not
simply ttyd#* for most multiport drivers.  They were often ttyd##*, where
the first # is for the adapter (card) and the second number is for the
port number within the adaptor.

'i' and 'l' were intentionally not placed at the end, to keep unit
numbers at the end and to keep the initial and lock state devices out
of the normal device namespace (so ttyd* matches only the data devices).

> > I would prefer to stick to the "tty" and "cua" prefixes however.
>
> I can agree on the tty prefix. I've always disliked the cua prefix,
> simply because it's nonsensical. It's the kind of prefix you pick
> when all the good (and bad) ones have been used and you randomly
> grab 3 letters from your scrabble box, sigh, and accept that once
> again luck hasn't been on your side :-) :-)
>
> Seriously: the origin of cua is mostly lost and systems like UUCP
> have already been removed from the source tree. Anybody new to
> FreeBSD and who hasn't been around since the epoch will completely
> fail to see why the device is called the way it is.

Actually, cu* makes considerably more sense and is less of an
anachronism than tty (teletypewriter, remember them? (*)).

(*) I last saw one in about 1985.  I've seen manual typewriters more
recently (had some stored in the gararge until 7 years ago).

Bruce

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

Message: 5
Date: Thu, 15 Jul 2004 09:29:42 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch 
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: stable@freebsd.org
Message-ID: <10536.1089876582@critter.freebsd.dk>

In message <20040714.224718.93805530.imp@bsdimp.com>, "M. Warner Losh" writes:

>In message: <20040714180816.GA5503@dhcp50.pn.xcllnt.net>
>            Marcel Moolenaar <marcel@xcllnt.net> writes:
>: But anyway, if you think that all serial devices should have tty$#
>: and cua$#, then just implement it that way. It's better to get this
>: rework behind us. I can adjust. If not, then I can at least commit :-)
>
>I know that a lot of people will have to adjust.  I have several files
>with things like /dev/ucom0 in them....
>
>: > The plan is to make them on-demand-devices (clonable) so that they
>: > do not clutter up /dev but appear if you access them.  That would
>: > leave only the ttyu0 and cuau0 devices.
>: 
>: Yes! I like the cloning.
>
>What's the cloning plan?

To make the "init" and "lock" devices only when they are accessed and
remove them on close.  This is the difference between 6 devices nodes
per port and 2 devices nodes per port in /dev

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

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

Message: 6
Date: Thu, 15 Jul 2004 09:48:10 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch 
To: Bruce Evans <bde@zeta.org.au>
Cc: stable@FreeBSD.org
Message-ID: <10970.1089877690@critter.freebsd.dk>

In message <20040715171007.X2308@epsplex.bde.org>, Bruce Evans writes:

>Compatibility is apparently unimportant, since the old names were not
>simply ttyd#* for most multiport drivers.  They were often ttyd##*, where
>the first # is for the adapter (card) and the second number is for the
>port number within the adaptor.

This makes sense.

>'i' and 'l' were intentionally not placed at the end, to keep unit
>numbers at the end and to keep the initial and lock state devices out
>of the normal device namespace (so ttyd* matches only the data devices).

This makes less sense because it prevent us from using 'i' and 'l'
as tty driver identifiers.

>> > I would prefer to stick to the "tty" and "cua" prefixes however.
>
>Actually, cu* makes considerably more sense and is less of an
>anachronism than tty (teletypewriter, remember them? (*)).

I think we should be consistent here, I don't like serial
ports to have names like "ucom" and "uart", "dcons" etc.

>(*) I last saw one in about 1985.  I've seen manual typewriters more
>recently (had some stored in the gararge until 7 years ago).

We have a working ASR33 in our museum and a flexowriter which almost
works again.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

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

Message: 7
Date: Thu, 15 Jul 2004 09:29:15 +0200
From: Mark Santcroos <marks@ripe.net>
Subject: acpi_video users needed
To: freebsd-current@freebsd.org
Message-ID: <20040715072915.GA10858@laptop.6bone.nl>
Content-Type: text/plain; charset=us-ascii

Can some people with a properly attaching acpi_video.ko send me his/her:

* dmesg (boot_verbose preferred)
* acpidump -dt
* devinfo -v

Thanks!

Mark

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

Message: 8
Date: Thu, 15 Jul 2004 05:20:41 -0400
From: Thomas Dickey <dickey@radix.net>
Subject: Re: vt100-type terminals in 2004
To: Kim Culhan <w8hdkim@yahoo.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040715092041.GA4234@saltmine.radix.net>
Content-Type: text/plain; charset=us-ascii

On Wed, Jul 14, 2004 at 08:20:34PM -0700, Kim Culhan wrote:
> While researching some details of vt100 terminals and
> console operation, happened across some info on the
> vt100's of the present.
> 
> These are recent manufacture vt100 decendants with
> lots of cool new features -I need one of these :)
> 
> Anyone have any experience with these new-generation
> tubes?
> 
> One of the latest in vt100-type terminals is the VT-520

That's about 10 years old.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

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

Message: 9
Date: Thu, 15 Jul 2004 12:22:51 +0200
From: "Cyrille Lefevre" <clefevre-lists@9online.fr>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch
To: "John Baldwin" <jhb@freebsd.org>
Cc: current@freebsd.org
Message-ID: <037d01c46a55$b034a0e0$7890a8c0@dyndns.org>
Content-Type: text/plain;	charset="iso-8859-1"

"John Baldwin" <jhb@freebsd.org> wrote:
> On Wednesday 14 July 2004 06:46 pm, Cyrille Lefevre wrote:
> > cua* are supposed to be the line to talk to a modem w/ modem control
> > (CD, etc.) while tty* are not supposed to talk to a modem and doesn't
> > have modem control.
>
> That's backwards.  tty* will hang on open() until CD, while cua* will not.  
I
> use cu with /dev/cua* a lot to do manual modem commands to dial into boxes.

> However, /dev/tt* is used in /etc/ttys on the boxes I dial into to run a
> getty on the receiving modem.


thanks for the precision, forgot about that, but the idea was here :)
as told before, I didn't use my modem since 3 years now...

Cyrille Lefevre.
-- 
home: mailto:cyrille.lefevre@laposte.net


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

Message: 10
Date: Thu, 15 Jul 2004 20:33:17 +1000 (EST)
From: Bruce Evans <bde@zeta.org.au>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch 
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: stable@FreeBSD.org
Message-ID: <20040715200906.X3138@epsplex.bde.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 15 Jul 2004, Poul-Henning Kamp wrote:

> In message <20040715171007.X2308@epsplex.bde.org>, Bruce Evans writes:
> >'i' and 'l' were intentionally not placed at the end, to keep unit
> >numbers at the end and to keep the initial and lock state devices out
> >of the normal device namespace (so ttyd* matches only the data devices).
>
> This makes less sense because it prevent us from using 'i' and 'l'
> as tty driver identifiers.

Indeed.  The namespace seemed to be much larger when I added them
these.  I once planned to rename the world to ttyd* and cuaa*, but
experience showed that putting an indication of the driver name in the
device name is better.

> >> > I would prefer to stick to the "tty" and "cua" prefixes however.
> >
> >Actually, cu* makes considerably more sense and is less of an
> >anachronism than tty (teletypewriter, remember them? (*)).
>
> I think we should be consistent here, I don't like serial
> ports to have names like "ucom" and "uart", "dcons" etc.

Also, (controlling) tty device names must be of the form
"tty<letter><number | letter>" or "console", for ps to
understand and display properly.  Even existing names like /dev/ttyc00
can't be displayed properly in the 2 columns available in ps output.

Bruce

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

Message: 11
Date: Thu, 15 Jul 2004 13:10:33 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: The recent TIOCREMOTE removal 
To: samy@kerneled.org
Cc: freebsd-current@FreeBSD.org
Message-ID: <1897.1089889833@critter.freebsd.dk>

In message <29087.62.3.32.33.1089889099.squirrel@www.kerneled.org>, samy@kerne
l
ed.org writes:
>The changes committed with revision 1.127 of tty_pty.c and the appropriate
>changes to the ttycom.h file remove the TIOCREMOTE ioctl. The commit
>message was as follows:
>   "It was added 22 years ago for emacs to use, but emacs gave up on it
>    it 17 years ago."
>
>Ignoring the fact that many operating systems have TIOCREMOTE implemented
>(meaning, FreeBSD provides a nice new portability issue for now and the
>unknowing future), several ports are *already* broken due to this.

I'm only aware of two ?  And I'm currently investigating them.

>This ioctl is widely implemented, and even though not a fad of any
>sort, it is used where it should be. The functionality it provides is
>of use. I think it would be feasible if someone was to roll-back the
>both sys/ttycom.h and kern/tty_pty.c

Please provide better evidence of current usage.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

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

Message: 12
Date: Wed, 14 Jul 2004 22:36:42 +0200
From: Wilko Bulte <wb@freebie.xs4all.nl>
Subject: hm, how to recover from a fscked-up device.hints?
To: current@freebsd.org
Message-ID: <20040714203642.GA13855@freebie.xs4all.nl>
Content-Type: text/plain; charset=us-ascii

I just created myself an interesting challenge:

 - I basically replaced my /boot/device.hints with a nonsensical one (don't
   ask), it is not a device.hints file at all.

How does one recover from that?  Booting kernel.old does not fix it for
obvious reasons..

W/

-- 
Wilko Bulte				wilko@FreeBSD.org

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

Message: 13
Date: Thu, 15 Jul 2004 03:01:23 -0500 (CDT)
From: Mark Linimon <linimon@lonesome.com>
Subject: Re: [TEST/REVIEW/HEADSUP] tty drivers mega-patch 
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: stable@FreeBSD.org
Message-ID: <Pine.LNX.4.44.0407150300150.4584-100000@pancho>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 15 Jul 2004, Poul-Henning Kamp wrote:

> We have a working ASR33 in our museum and a flexowriter which almost
> works again.

That's quite impressive, consdering the fact that Flexowriters "almost
worked" when they were brand new.

mcl


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

Message: 14
Date: Thu, 15 Jul 2004 06:58:19 -0400 (EDT)
From: samy@kerneled.org
Subject: The recent TIOCREMOTE removal
To: freebsd-current@FreeBSD.org, phk@FreeBSD.org
Message-ID: <29087.62.3.32.33.1089889099.squirrel@www.kerneled.org>
Content-Type: text/plain;charset=iso-8859-1

The changes committed with revision 1.127 of tty_pty.c and the appropriate
changes to the ttycom.h file remove the TIOCREMOTE ioctl. The commit
message was as follows:
   "It was added 22 years ago for emacs to use, but emacs gave up on it
    it 17 years ago."

Ignoring the fact that many operating systems have TIOCREMOTE implemented
(meaning, FreeBSD provides a nice new portability issue for now and the
unknowing future), several ports are *already* broken due to this.

This ioctl is widely implemented, and even though not a fad of any
sort, it is used where it should be. The functionality it provides is
of use. I think it would be feasible if someone was to roll-back the
both sys/ttycom.h and kern/tty_pty.c

--
Samy Al Bahra <samy@kerneled.org>
  '---------- http://samy.kerneled.org

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

Message: 15
Date: Thu, 15 Jul 2004 12:44:25 +0100
From: Ceri Davies <ceri@submonkey.net>
Subject: Re: hm, how to recover from a fscked-up device.hints?
To: Wilko Bulte <wb@freebie.xs4all.nl>
Cc: current@freebsd.org
Message-ID: <20040715114425.GG29928@submonkey.net>
Content-Type: text/plain; charset="us-ascii"

On Wed, Jul 14, 2004 at 10:36:42PM +0200, Wilko Bulte wrote:
> I just created myself an interesting challenge:
> 
>  - I basically replaced my /boot/device.hints with a nonsensical one (don't

>    ask), it is not a device.hints file at all.
> 
> How does one recover from that?  Booting kernel.old does not fix it for
> obvious reasons..

Boot from CDROM?

Ceri

-- 
It is not tinfoil, it is my new skin.  I am a robot.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040715/
49fdfa95/attachment-0001.bin

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

Message: 16
Date: Thu, 15 Jul 2004 13:57:38 +0200
From: Mark Santcroos <marks@ripe.net>
Subject: Re: hm, how to recover from a fscked-up device.hints?
To: Wilko Bulte <wb@freebie.xs4all.nl>
Cc: current@freebsd.org
Message-ID: <20040715115738.GA17082@laptop.6bone.nl>
Content-Type: text/plain; charset=us-ascii

On Wed, Jul 14, 2004 at 10:36:42PM +0200, Wilko Bulte wrote:
> I just created myself an interesting challenge:
> 
>  - I basically replaced my /boot/device.hints with a nonsensical one (don't

>    ask), it is not a device.hints file at all.
> 
> How does one recover from that?  Booting kernel.old does not fix it for
> obvious reasons..

If the CDROM suggestion fails, you can try to:

1. load the kernel directly from boot1 (probably won't help, but easy try)
or
2. feed the device.hints through the loader command line.
   (You don't need all of it, need to enable vt, etc)

G'luck

Mark

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

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

End of freebsd-current Digest, Vol 68, Issue 32
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]