Re: problem in upgrading to latest pkgs

2002-11-09 Thread Emmanuel Rens
actually it seems that some important files have even been deleted, for 
example there is no xvinfo anymore (this is typically a file you can't 
get anywhere except from the whole XFree pkg). So you are right I should 
start it over: but how? the base system seems to work well , I don't 
quite see myself remaking the world right now, and I have many config 
files I'd like to keep. How could I get rid of all packages and ports 
without touching the system and still be able to cvsup the ports after?

I am concerned that the original poster might have his ports setup so
confused now that it might be better just to wipe everything out and
start over.




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: NVIDIA driver for FreeBSD and Direct Rendering problem

2002-11-09 Thread Chip Marshall
On November 10, 2002, Erik Paulsen Skålerud sent me the following:
> One thing. I'm trying to run an OpenGL application inside wine. The 
> problem is, OpenGL applications inside wine -needs- direct rendering 
> to be able to work. The game that I'm trying to run is Half-Life.
> (Reference: http://lhl.linuxgames.com/howto/half-life-HOWTO-0.5.
> html).
> 
> I've gathered my system-config and different log outputs at:
> http://pentadon.com/~erik/nvidia-freebsd/

Perhaps you need to uncomment the Load "dri" line in your XF86Config
and load the agp kernel module?

I havn't played with the new drivers yet, so I'm not sure about this,
or even what their install instructions say to do.

-- 
Chip Marshall <[EMAIL PROTECTED]>   http://www.chocobo.cx/chip/
GCM/CS d+(-) s+:++ a21>? C++ UB$ P+++$ L- E--- W++ N@ o K- w O M+
V-- PS+ PE Y+ PGP++ t+@ R@ tv@ b++@ DI D+(-) G++ e>++ h>++ r++ y?



msg51256/pgp0.pgp
Description: PGP signature


Re: NVidia Drivers and vis5d

2002-11-09 Thread Wesley Morgan
On Sat, 9 Nov 2002, Stephen Montgomery-Smith wrote:

> Well I found an answer to my question minutes after posting the question.  This
> change to science/vis5d+ seems to make it work:
>
>diff Makefile-orig Makefile
> 33c33
> < CONFIGURE_ARGS=   --enable-gtk --enable-threads --with-mesa --with-netcdf \
> ---
>   > CONFIGURE_ARGS=   --enable-gtk --disable-threads --with-mesa --with-netcdf \

I believe the docs from the nvidia drivers explicitly say threads work
only when using the "linux-thread" port, so this is expected.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



backups of SUPERBLOCK

2002-11-09 Thread Eugene Grosbein
Hi!

Recently I suffered from unstable power supply, after reboot
fsck said INCORRECT SUPER BLOCK, BAD MAGIC etc. etc.
I managed to revive filesystem using fsck -b 32 as I remember
that first copy of superblock is generally located at block 32.

I wonder, however, how can I know complete list of superblocks 
for all of my filesystems. One can write down the list 
when (if) uses newfs but it's hard if a drive is prepared during initial
installation and it's impossible if a drive was prepared using sysinstall
while in muliuser. 

Is there an official way to get list of superblock backups for existing
filesystem, other than backup/newfs/restore ?

Eugene Grosbein

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: backups of SUPERBLOCK

2002-11-09 Thread David Wolfskill
>Date: Sun, 10 Nov 2002 09:58:40 +0700
>From: Eugene Grosbein <[EMAIL PROTECTED]>

>Recently I suffered from unstable power supply, after reboot
>fsck said INCORRECT SUPER BLOCK, BAD MAGIC etc. etc.
>I managed to revive filesystem using fsck -b 32 as I remember
>that first copy of superblock is generally located at block 32.

>I wonder, however, how can I know complete list of superblocks 
>for all of my filesystems. One can write down the list 
>when (if) uses newfs but it's hard if a drive is prepared during initial
>installation and it's impossible if a drive was prepared using sysinstall
>while in muliuser. 

See the -N flag for newfs.

Cheers,
david   (links to my resume at http://www.catwhisker.org/~david)
-- 
David H. Wolfskill  [EMAIL PROTECTED]
To paraphrase David Hilbert, there can be no conflicts between the
discipline of systems administration and Microsoft, since they have
nothing in common.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: backups of SUPERBLOCK

2002-11-09 Thread Phil Kernick
Eugene Grosbein wrote:


Is there an official way to get list of superblock backups for existing
filesystem, other than backup/newfs/restore ?



Yes.  Use newfs -N which will print out the superblock locations.  My 
experience also tells me to also put exactly the same parameters on the newfs 
line that you used when you originally created the volume.

From the newfs(8) manpage:
 -N  Cause the file system parameters to be printed out without really
 creating the file system.



Phil.

--
   _-_|\   Phil Kernick  E-Mail: [EMAIL PROTECTED]
  / \  ROTFL Enterprises Mobile:  041 61 ROTFL
  \_.-*_/
   v   Humourist, satirist, and probably a few more 'ists to boot!


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message


Re: NVidia Drivers Released !

2002-11-09 Thread Andrew Atrens

I've built XFree86-4-Server (and libraries) out of ports as you suggested
and everything is working perfectly now.

Thanks for your help :)


... I still do find it a bit worrying that XFree86-cvs doesn't work - it's
not as though CVS is that unstable - I've been using the DRI tree for my
Radeon 8500 for months and it's been rock solid ... I tried applying a
subset of the ports' -libraries patches (specifically the ones related to
IPC) to the latest code in CVS without effect ...


Thanks also for all your efforts to make this happen ... from the outside
looking in, it seems like you've gone down a long road to get here :) :)
:)

Andrew




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: NVidia Drivers Released !

2002-11-09 Thread Matthew N. Dodd
On Sat, 9 Nov 2002, Andrew Atrens wrote:
> ... I still do find it a bit worrying that XFree86-cvs doesn't work

Its not worrying, its expected.

Our port has patches that have not yet been contributed back to the
XFree86 CVS tree.

-- 
| Matthew N. Dodd  | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD  |
| [EMAIL PROTECTED] |   2 x '84 Volvo 245DL| ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



VM errors

2002-11-09 Thread Doug Hardie
I am getting a rash of vm errors that started a couple days ago - 
FreeBSD 4.6:

> vm_page_cache: attempting to cache busy page
>

I don't seem to find anything obviously wrong in the system.  How do I 
tell which process is causing the problem?  It looks like something is 
hung, but I don't see any obvious candidates.  Everything is working
file and there are no obviously hung processes.  The vm_page_cache 
module shows that the indicated condition is occuring, but no 
additional info.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message


Re: backups of SUPERBLOCK

2002-11-09 Thread Eugene Grosbein
Phil Kernick wrote:
> 
> Eugene Grosbein wrote:
> >
> > Is there an official way to get list of superblock backups for existing
> > filesystem, other than backup/newfs/restore ?
> >
> 
> Yes.  Use newfs -N which will print out the superblock locations.  My
> experience also tells me to also put exactly the same parameters on the newfs
> line that you used when you originally created the volume.
> 
>  From the newfs(8) manpage:
>   -N  Cause the file system parameters to be printed out without really
>   creating the file system.

Thank you. But how do I known parameters of existing filesystem?

disklabel ad0 shows, in partcular:

8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:   102400   5242884.2BSD0 0 0   # (Cyl.   32*- 39*)
  b:   5242880  swap# (Cyl.0 - 32*)
  c: 125948970unused0 0 # (Cyl.0 - 783*)
  e:  3072000   6266884.2BSD 1024  819222   # (Cyl.   39*- 230*)
  f:  1024000  36986884.2BSD0 0 0   # (Cyl.  230*- 293*)
  g:  2048000  47226884.2BSD0 0 0   # (Cyl.  293*- 421*)
  h:  5824209  67706884.2BSD 1024  819222   # (Cyl.  421*- 783*)

How do I know real parameters of 'f' and 'g' partitions
and why zeroes are there?

Eugene Grosbein

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



bug in bge driver with ENOBUFS on 4.7

2002-11-09 Thread Don Bowman
In bge_rxeof(), there can end up being a condition which causes
the driver to endlessly interrupt.

if (bge_newbuf_std(sc, sc->bge_std, NULL) == ENOBUFS) {
ifp->if_ierrors++;
bge_newbuf_std(sc, sc->bge_std, m);
continue;
}

happens. Now, bge_newbuf_std returns ENOBUFS. 'm' is also NULL.
This causes the received packet to not be dequeued, and the driver
will then go straight back into interrupt as the chip will 
reassert the interrupt as soon as we return.

Suggestions on a fix? 
I'm not sure why I ran out of mbufs, I have
kern.ipc.nmbclusters: 9
kern.ipc.nmbufs: 28

(kgdb) p/x mbstat
$11 = {m_mbufs = 0x3a0, m_clusters = 0x39c, m_spare = 0x0, m_clfree = 0x212,

  m_drops = 0x0, m_wait = 0x0, m_drain = 0x0, m_mcfail = 0x0, m_mpfail =
0x0, 
  m_msize = 0x100, m_mclbytes = 0x800, m_minclsize = 0xd5, m_mlen = 0xec, 
  m_mhlen = 0xd4}

but bge_newbuf_std() does this:
if (m == NULL) {
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
if (m_new == NULL) {
return(ENOBUFS);
}
and then returns ENOBUFS.

This is with 4.7-RELEASE.


--don ([EMAIL PROTECTED] www.sandvine.com)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: TV output turn on

2002-11-09 Thread Chris BeHanna
On Sat, 9 Nov 2002, Wayne M Barnes wrote:

> Dear FreeBSD,
>
>  My Dell laptop has a ATI M3 video card, with an S-video output.
>
>  How do I turn on the S-video output with my FreeBSD 4.7-stable?
>
>  On Windows98 I can turn on output to the TV thru the S-video by
> boring down to advanced settings/display, and setting some options,
> if the TV is connected to the S-video port.
>
>  I "need" this on FreeBSD in order to run ogle to watch a European DVD
> which I can't seem to watch any other ways which I have tried, but won't
> go into here.
>
>  Could this be an option in my X11/XF86Config file?  Do you
> suppose 'XFree86 -configure' would probe the TV if it were connected
> at the time?

This functionality is not yet supported in XFree86.

*IF* you can hack v4l (video4linux) to work on FreeBSD, then the
GATOS project's atitvout package might help you.  You will need drm
working as well.

You could, of course, just watch the DVD on your laptop.

-- 
Chris BeHanna  http://www.pennasoft.com
Principal Consultant
PennaSoft Corporation
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: backups of SUPERBLOCK

2002-11-09 Thread Chris BeHanna
On Sun, 10 Nov 2002, Eugene Grosbein wrote:

> Phil Kernick wrote:
> >
> > Eugene Grosbein wrote:
> > >
> > > Is there an official way to get list of superblock backups for existing
> > > filesystem, other than backup/newfs/restore ?
> > >
> >
> > Yes.  Use newfs -N which will print out the superblock locations.  My
> > experience also tells me to also put exactly the same parameters on the newfs
> > line that you used when you originally created the volume.
> >
> >  From the newfs(8) manpage:
> >   -N  Cause the file system parameters to be printed out without really
> >   creating the file system.
>
> Thank you. But how do I known parameters of existing filesystem?
>
> disklabel ad0 shows, in partcular:
>
> [...snip...]

Completely unrelated to newfs parameters.

Phil meant that you should pass the same blocksize, fragsize,
minfree, inode density, etc., to newfs -N that you passed to the
original newfs that created the filesystem.

If you didn't do any custom tuning with newfs, it's likely that

newfs -N -b 8192 -f 1024 # pre 4.6

or

newfs -N -b 16384 -f 2048 # 4.6 and up

will be sufficient.

-- 
Chris BeHanna  http://www.pennasoft.com
Principal Consultant
PennaSoft Corporation
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: backups of SUPERBLOCK

2002-11-09 Thread Eugene Grosbein
> If you didn't do any custom tuning with newfs, it's likely that
> 
> newfs -N -b 8192 -f 1024 # pre 4.6
> 
> or
> 
> newfs -N -b 16384 -f 2048 # 4.6 and up
> 
> will be sufficient.

Yeah. But this system was set up in times when newfs did not optimize
cyl/group ratio and I remember that I manually run 
newfs with -b, -f and -c flags. Should I now worry about recovering those
values to get right output from newsf -N, or not? 
And if I should, how can I obtain all real values?

Eugene Grosbein

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message