Problems opening fd for /dev/console...

2000-06-12 Thread Brian Macy
Alright this has got to be user error on my part. I have a Sparc 10 with
no Framebuffer. It is booting via serial console just fine. Problem is a
lot of things (oh like 'man', non-root logins) don't work. I've tried
searching everything I can think of to find an answer for it. Here's the
last snippet from an 'strace man'.


connect(4, {sin_family=AF_INET, sin_port=htons(768),
sin_addr=inet_addr(63.204.197.52)}}, 16) = 0
brk(0x29000)= 0x29000
write(4, \200\0\0D`\265\253\324\0\0\0\0\0\0\0\2\0\1\206\244\0\0...,
72) = 72
poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
read(4, \200\0\2p`\265\253\324\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0...,
4000) = 628close(5)= -1 EBADF (Bad file
descriptor)
close(4)= 0
close(3)= 0
munmap(0x50019000, 8192)= 0
setgroups(1, [100]) = 0
setuid(6)   = 0
execve(/usr/lib/man-db/man, [man], [/* 18 vars */]) = -1 EACCES
(Permission denied)
write(2, execv: Permission denied\n, 25execv: Permission denied
) = 25
exit(-13)   = ?

I also get several of these in the strace output but I'm assuming it is
also related to /dev/console.
rt_sigpending(ptrace: umoven: Input/output error

Also, first time using a Sun... here's what I found with the latest
potato:
- pump doesn't get run at startup... no resolv.conf, etc
- no libnss1-compat available

Brian Macy



Re: Problems opening fd for /dev/console...

2000-06-12 Thread Ben Collins
 connect(4, {sin_family=AF_INET, sin_port=htons(768),
 sin_addr=inet_addr(63.204.197.52)}}, 16) = 0
 brk(0x29000)= 0x29000
 write(4, \200\0\0D`\265\253\324\0\0\0\0\0\0\0\2\0\1\206\244\0\0...,
 72) = 72
 poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
 read(4, \200\0\2p`\265\253\324\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0...,
 4000) = 628close(5)= -1 EBADF (Bad file
 descriptor)
 close(4)= 0
 close(3)= 0
 munmap(0x50019000, 8192)= 0
 setgroups(1, [100]) = 0
 setuid(6)   = 0
 execve(/usr/lib/man-db/man, [man], [/* 18 vars */]) = -1 EACCES
 (Permission denied)
 write(2, execv: Permission denied\n, 25execv: Permission denied
 ) = 25
 exit(-13)   = ?
 
 I also get several of these in the strace output but I'm assuming it is
 also related to /dev/console.

What are the perms on /dev/console? What are the perms also on /dev/ttyS0?

 rt_sigpending(ptrace: umoven: Input/output error

No, just an strace bug.

 Also, first time using a Sun... here's what I found with the latest
 potato:
 - pump doesn't get run at startup... no resolv.conf, etc

File a bug on pump, and try to see what is causing it to fail it's startup
script.

 - no libnss1-compat available

That's because we never released sparc with libc6 2.0 :) That's the only
reason for libnss1-compat on other archs.

Ben

-- 
 ---===-=-==-=---==-=--
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  '
 `---=--===-=-=-=-===-==---=--=---'



potato - telnetd can't get pty?

2000-06-12 Thread Schulz, Martin

Maybe this is a stupid question, but what's wrong with the following:

bash-2.03# telnet osolemio
Trying 192.168.100.104...
Connected to osolemio.
Escape character is '^]'.
telnetd: getpty: Permission denied
.
Connection closed by foreign host. 

(I've also tried running manually /etc/init.d/devpts.sh)

This is a brand new potato install.

-- 
Martin Schulz



Re: Problems opening fd for /dev/console...

2000-06-12 Thread Brian Macy
Ben Collins wrote:
 
  execve(/usr/lib/man-db/man, [man], [/* 18 vars */]) = -1 EACCES
  (Permission denied)
  write(2, execv: Permission denied\n, 25execv: Permission denied
  ) = 25
  exit(-13)   = ?
 
  I also get several of these in the strace output but I'm assuming it is
  also related to /dev/console.
 
 What are the perms on /dev/console? What are the perms also on /dev/ttyS0?

crw--w--w-1 root tty5,   1 Jun 11 22:49 console
crw--w--w-1 root root   4,  64 Jun 11 23:32 /dev/ttyS0
crw--w--w-1 root tty4,   0 Jun 11 22:49 /dev/tty0

Tried changing ttyS0 to be owned by group tty but made no difference.
Which as a side not both stock debian 2.2.15 and my own 2.2.16 exhibit
the same problems.

-rwsr-xr-x1 man  root89408 Apr  6 19:34
/usr/lib/man-db/man

Brian Macy



Re: Problems opening fd for /dev/console...

2000-06-12 Thread Ben Collins
On Mon, Jun 12, 2000 at 06:59:09AM -0700, Brian Macy wrote:
 Ben Collins wrote:
  
   execve(/usr/lib/man-db/man, [man], [/* 18 vars */]) = -1 EACCES
   (Permission denied)
   write(2, execv: Permission denied\n, 25execv: Permission denied
   ) = 25
   exit(-13)   = ?
  
   I also get several of these in the strace output but I'm assuming it is
   also related to /dev/console.
  
  What are the perms on /dev/console? What are the perms also on /dev/ttyS0?
 
 crw--w--w-1 root tty5,   1 Jun 11 22:49 console
 crw--w--w-1 root root   4,  64 Jun 11 23:32 /dev/ttyS0
 crw--w--w-1 root tty4,   0 Jun 11 22:49 /dev/tty0
 
 Tried changing ttyS0 to be owned by group tty but made no difference.
 Which as a side not both stock debian 2.2.15 and my own 2.2.16 exhibit
 the same problems.

Odd, mine is:

crw---1 root root   5,   1 Jun  9 19:52 /dev/console

So I don't know where your perms problem is coming from. Ahh, wait, your
problem is an exec, not the console. Blah, do this:

chmod 755 /

This is a known problem with the May 2.2.15 boot-floppies images. Fixed in
the June set.

-- 
 ---===-=-==-=---==-=--
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  '
 `---=--===-=-=-=-===-==---=--=---'



SMP SS10 freezes hard intermittently

2000-06-12 Thread David Butts
Hello, all-

I've got an SS10 with two CPUs, running a 2.2.15 kernel with SMP
enabled.  It locks up hard periodically, and won't respond to
stop-A, a break on the serial port, the three-fingered salute,
or, in fact, anything short of a power-cycle.

It doesn't do it consistantly, but the times it happened were (a)
when installing packages with apt-get (unfortunately, I didn't
pay enough attention to which, but it froze immedaitely after it
finished the download of the .deb files), and (b) in X (both when
I was strace'ing the startup to find out why it thought I didn't
have a screen, and later, while WindowMaker was starting up).

There are no obviously strange log entries, and my strace output
was in /tmp, so it was removed after teh power-cycle.  If there
are any other diagnostic steps I should try, please let me know.

I've included my .config below.  AFAIK, there were no modules
loaded at the time of the crashes.

I've cc'ed sparclinux@vger.rutgers.edu based on a suggestion in
response to a similar problem a couple of months ago posted to
debian-sparc, but I'm not on that list, so please cc me on any
mail send to the vger list.

Thanks,
David Butts

#
# Automatically generated make config: don't edit
#

#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODVERSIONS=y
CONFIG_KMOD=y

#
# General setup
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
# CONFIG_AP1000 is not set
CONFIG_SMP=y
# CONFIG_SUN4 is not set
# CONFIG_PCI is not set

#
# Console drivers
#
CONFIG_PROM_CONSOLE=y
CONFIG_FB=y
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_SBUS=y
CONFIG_FB_CGSIX=y
CONFIG_FB_BWTWO=y
CONFIG_FB_CGTHREE=y
# CONFIG_FB_TCX is not set
# CONFIG_FB_CGFOURTEEN is not set
# CONFIG_FB_LEO is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FBCON_ADVANCED is not set
CONFIG_FBCON_MFB=y
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_FONTWIDTH8_ONLY=y
CONFIG_FONT_SUN8x16=y
CONFIG_FBCON_FONTS=y
CONFIG_FONT_8x8=y
# CONFIG_FONT_8x16 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
CONFIG_SBUS=y
CONFIG_SBUSCHAR=y
CONFIG_SUN_MOUSE=y
CONFIG_SERIAL=y
CONFIG_SUN_SERIAL=y
CONFIG_SERIAL_CONSOLE=y
CONFIG_SUN_KEYBOARD=y
CONFIG_SUN_CONSOLE=y
CONFIG_SUN_AUXIO=y
CONFIG_SUN_IO=y

#
# Misc Linux/SPARC drivers
#
CONFIG_SUN_OPENPROMIO=m
CONFIG_SUN_MOSTEK_RTC=y
# CONFIG_SUN_OPENPROMFS is not set
CONFIG_NET=y
CONFIG_SYSVIPC=y
CONFIG_BSD_PROCESS_ACCT=y
CONFIG_SYSCTL=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=m
# CONFIG_SUNOS_EMUL is not set

#
# Floppy, IDE, and other block devices
#
CONFIG_BLK_DEV_FD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=m
CONFIG_MD_STRIPED=m
CONFIG_MD_MIRRORING=m
CONFIG_MD_RAID5=m
CONFIG_BLK_DEV_RAM=m
CONFIG_BLK_DEV_LOOP=m
# CONFIG_BLK_DEV_NBD is not set

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_NETLINK=y
# CONFIG_RTNETLINK is not set
CONFIG_NETLINK_DEV=m
# CONFIG_FIREWALL is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_IP_ROUTER is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_ALIAS is not set
# CONFIG_SYN_COOKIES is not set

#
# (it is safe to leave these untouched)
#
CONFIG_INET_RARP=m
CONFIG_SKB_LARGE=y

#
#  
#
# CONFIG_IPX is not set
# CONFIG_ATALK is not set

#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# SCSI support
#
CONFIG_SCSI=y

#
# SCSI support type (disk, tape, CDrom)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=m
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=m

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y

#
# SCSI low-level drivers
#
CONFIG_SCSI_SUNESP=y
# CONFIG_SCSI_QLOGICPTI is not set

#
# Fibre Channel support
#
# CONFIG_FC4 is not set
# CONFIG_FC4_SOC is not set
# CONFIG_FC4_SOCAL is not set
# CONFIG_SCSI_PLUTO is not set
# CONFIG_SCSI_FCAL is not set

#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
# CONFIG_BONDING is not set
CONFIG_PPP=m

#
# CCP compressors for PPP are only built as modules.
#
# CONFIG_SLIP is not set
CONFIG_SUNLANCE=y
CONFIG_HAPPYMEAL=m
CONFIG_SUNQE=m
# CONFIG_MYRI_SBUS is not set

#
# Unix98 PTY support
#
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256

#
# Filesystems
#
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
# CONFIG_UMSDOS_FS is not set
CONFIG_VFAT_FS=m
CONFIG_ISO9660_FS=y
# CONFIG_JOLIET is not set
CONFIG_MINIX_FS=m
# CONFIG_NTFS_FS is not set
# CONFIG_HPFS_FS is not set
CONFIG_PROC_FS=y
CONFIG_DEVPTS_FS=y
# CONFIG_ROMFS_FS is not set
CONFIG_EXT2_FS=y
# CONFIG_SYSV_FS is not set
CONFIG_UFS_FS=m
# CONFIG_UFS_FS_WRITE is not set

#
# Network File Systems
#
CONFIG_CODA_FS=m
CONFIG_NFS_FS=m
CONFIG_SUNRPC=m
CONFIG_LOCKD=m
# CONFIG_SMB_FS is not set
# CONFIG_NCP_FS is 

RE: SMP SS10 freezes hard intermittently

2000-06-12 Thread Gregory Leblanc
 -Original Message-
 From: David Butts [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 12, 2000 5:54 PM
 To: debian-sparc@lists.debian.org
 Cc: sparclinux@vger.rutgers.edu
 Subject: SMP SS10 freezes hard intermittently
 
 Hello, all-
 
 I've got an SS10 with two CPUs, running a 2.2.15 kernel with SMP
 enabled.  It locks up hard periodically, and won't respond to
 stop-A, a break on the serial port, the three-fingered salute,
 or, in fact, anything short of a power-cycle.
 
 It doesn't do it consistantly, but the times it happened were (a)
 when installing packages with apt-get (unfortunately, I didn't
 pay enough attention to which, but it froze immedaitely after it
 finished the download of the .deb files), and (b) in X (both when
 I was strace'ing the startup to find out why it thought I didn't
 have a screen, and later, while WindowMaker was starting up).
 
 There are no obviously strange log entries, and my strace output
 was in /tmp, so it was removed after teh power-cycle.  If there
 are any other diagnostic steps I should try, please let me know.
 
 I've included my .config below.  AFAIK, there were no modules
 loaded at the time of the crashes.
 
 I've cc'ed sparclinux@vger.rutgers.edu based on a suggestion in
 response to a similar problem a couple of months ago posted to
 debian-sparc, but I'm not on that list, so please cc me on any
 mail send to the vger list.

What's your console device?  CG3?
Greg



RE: SMP SS10 freezes hard intermittently

2000-06-12 Thread David Butts
Hello-

I've got a CG6.  I had included the other FBs for the sake of ...
completeness (read: figuring out what I had in the box).

From /var/log/messages:

fb0: cgsix at e. TEC Rev 4 CPU sparc Rev b [TurboGX]

The only (permanent) change I made to the devices was the addition
of a symlink to /dev/fb0:

lrwxrwxrwx1 root root3 Jun  9 17:56 /dev/cgsix0 - fb0
crw--w--w-1 root tty   29,   0 May  4 08:32 /dev/fb0

HTH (particularly since I'm the one it will ultimately end up
helping :)

David

On Mon, 12 Jun 2000, Gregory Leblanc wrote:

  -Original Message-
  From: David Butts [mailto:[EMAIL PROTECTED]
  Sent: Monday, June 12, 2000 5:54 PM
  To: debian-sparc@lists.debian.org
  Cc: sparclinux@vger.rutgers.edu
  Subject: SMP SS10 freezes hard intermittently
  
  Hello, all-
  
  I've got an SS10 with two CPUs, running a 2.2.15 kernel with SMP
  enabled.  It locks up hard periodically, and won't respond to
  stop-A, a break on the serial port, the three-fingered salute,
  or, in fact, anything short of a power-cycle.
  
  It doesn't do it consistantly, but the times it happened were (a)
  when installing packages with apt-get (unfortunately, I didn't
  pay enough attention to which, but it froze immediately after it
  finished the download of the .deb files), and (b) in X (both when
  I was strace'ing the startup to find out why it thought I didn't
  have a screen, and later, while WindowMaker was starting up).
  
  There are no obviously strange log entries, and my strace output
  was in /tmp, so it was removed after the power-cycle.  If there
  are any other diagnostic steps I should try, please let me know.
  
  I've included my .config below.  AFAIK, there were no modules
  loaded at the time of the crashes.
  
  I've cc'ed sparclinux@vger.rutgers.edu based on a suggestion in
  response to a similar problem a couple of months ago posted to
  debian-sparc, but I'm not on that list, so please cc me on any
  mail send to the vger list.
 
 What's your console device?  CG3?
   Greg