how to force ucom driver to create /dev/cuaU? for some device?

2006-01-16 Thread Vasil Dimov
Hi all,

I have a device (GPS) that connects to the PC via the USB interface
and I have a software (comms/garmin-utils) that wishes to talk to the
device.

The problem is that the software expects a serial port device, not a USB
one.

The question is how can I make the ucom(4) create a cuaU? entry for my
device?

When I plug the device I get:

ehci_pcd: change=0x20
uhub_explore: status change hub=1 port=5
ehci after reset, status=0x1801
ehci_disown: index=5 lowspeed=0
uhub_explore: status change hub=1 port=1
ehci_pcd: change=0x20
uhub_explore: status change hub=1 port=5
usbd_new_device bus=0x80ad7000 port=1 depth=1 speed=2
usbd_new_device: adding unit addr=2, rev=110, class=255, subclass=255, 
protocol=255, maxpacket=8, len=18, speed=2
usbd_new_device: new dev (addr 2), dev=0xffb06b00, 
parent=0xffaff400
usbd_probe_and_attach: trying device specific drivers
usbd_probe_and_attach: no device specific driver found
usbd_probe_and_attach: looping over 1 configurations
usbd_set_config_index: status=0x0001, error=NORMAL_COMPLETION
usbd_set_config_index: (addr 1) cno=2 attr=0xc0, selfpowered=1, power=0
usbd_set_config_index: set config 1
usbd_probe_and_attach: no interface drivers found
ugen0: vendor 0x091e product 0x0003, rev 1.10/0.01, addr 2
usbd_set_config_index: free old config
usbd_set_config_index: status=0x0001, error=NORMAL_COMPLETION
usbd_set_config_index: (addr 1) cno=2 attr=0xc0, selfpowered=1, power=0
usbd_set_config_index: set config 1

This (ofcourse) does not work:
# gardump -p /dev/ugen0
gardump: TIOCGETA: Invalid argument

ucom is loaded:
# kldstat -v |grep ucom
85 ucom

-- 
Vasil Dimov
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


anoncvs.FreeBSD.org

2005-11-14 Thread Vasil Dimov
Hello,

$ cvs -d [EMAIL PROTECTED]:/home/ncvs up
Cannot access /home/ncvs/CVSROOT
No such file or directory

What happened?

-- 
Vasil Dimov


pgpWGdQWbbx7w.pgp
Description: PGP signature


Re: make builworld fails owing to libstdc++ problems

2005-06-26 Thread Vasil Dimov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, Jun 26, 2005 at 09:33:19PM +0200, Vittorio De Martino wrote:
 uname -a
 FreeBSD fbsd.grtn 5.4-RELEASE-p2 FreeBSD 5.4-RELEASE-p2 #0: Sat Jun 25 
 17:40:47 CEST 2005 
 
 
 I have the following in 
 in make.conf
 CPUTYPE=p4
 CFLAGS= -O2 -pipe -funroll-loops
 COPTFLAGS= -O2 -pipe -funroll-loops
 
 in stable-supfile:
 *default release=cvs tag=RELENG_5_4
 in ports-supfile:
 default release=cvs tag=.
 
 I've just run (I've been using 5.4 since the very beginning and updated it 
 every month roughly)
 
 # 1. �`cd /usr/src' � � � (or to the directory containing your source tree).
 # 2. �`make update'
 # 3. �`make buildworld'
 
 BUT..
 
 x_handler.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/guard.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/new_handler.cc
  /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/new_op.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/new_opnt.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/new_opv.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/new_opvnt.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/pure.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/tinfo.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/tinfo2.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/vec.cc 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/vterminate.cc
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_alloc.cc:37:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_aux_runtime.cc:34:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_catch.cc:32:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_exception.cc:34:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_globals.cc:33:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_personality.cc:34:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_personality.cc:38:23:
  
 unwind-pe.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_term_handler.cc:30:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_terminate.cc:34:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_throw.cc:32:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_type.cc:32:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/eh_unex_handler.cc:30:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/pure.cc:31:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 In file included 
 from 
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/vec.cc:37:
 /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/libsupc++/unwind-cxx.h:41:20:
  
 unwind.h: No such file or directory
 mkdep: compile failed
 *** Error code 1
 
 Stop in /usr/src/gnu/lib/libstdc++.
 *** Error code 1
 
 Stop in /usr/src/gnu/lib.
 *** Error code 1
 
 What should I do?
 

rm -fr /usr/src/* and try again? Be carefull not to loose your kernel
config file (if any).
mv 

Re: Makefile question

2005-06-13 Thread Vasil Dimov
On Mon, Jun 13, 2005 at 07:24:37PM +0200, Kvesdn Gbor wrote:
...
 then every file goes to directly to /usr/local not to /usr/local/bin, 
 /usr/local/etc, ...
 Thus I would like to install it into /usr/local/appname.
...

Who will find executables located in /usr/local/appname/bin/ ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


it takes a long long long time to time-out a login attempt

2004-03-24 Thread Vasil Dimov
 On Sat, Mar 13, 2004 at 04:21:58AM -0800, Sameer wrote:
  I'm trying to ssh into my FreeBSD (5.2.1-release sparc version) box from my
  desktop, however, it'll take a few seconds for the login as prompt to
  appear.  I enter my the user name and hit enter. the login attempt then sits
  there for about 90 seconds w/o asking for the password, then the connection
  times out.
 
 
 
  Any ideas what's causing this?  Do I need to put the workstation's
  information into the hosts file or something?
 
 
 
  The funny thing is that when I ssh from another server that's on the same
  VLAN as the FreeBSD box (I should mention that the workstation is on a
  different VLAN) the login process happens immediately.
 
 Sounds like classic DNS timeout problems.  When you ssh into a box, it
 will look up the IP number you're coming from in the DNS, and then
 lookup the hostname it derives from that to make sure that the IP
 number appears as listed for that address.

OpenSSH_3.6.1p1 FreeBSD-20030924

Not exactly.
sshd always tries to lookup IPaddr-hostname, but makes the
hostname-IPaddr match check only if VerifyReverseMapping is on in
sshd_config(5). It is off by default.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


it takes a long long long time to time-out a login attempt

2004-03-24 Thread Vasil Dimov
 On Sat, 13 Mar 2004, Sameer wrote:
 
  I'm trying to ssh into my FreeBSD (5.2.1-release sparc version) box
  from my desktop, however, it'll take a few seconds for the login as
  prompt to appear.  I enter my the user name and hit enter. the login
  attempt then sits there for about 90 seconds w/o asking for the
  password, then the connection times out.  Any ideas what's causing
  this?
 
 
 Put UseDNS no (without the quotes!) into /etc/ssh/sshd_config

No such option in sshd_config(5), are you talking about the ssh from the
base system? OpenSSH_3.6.1p1 FreeBSD-20030924?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ssh: Operation timmed out

2004-03-24 Thread Vasil Dimov
 Hello FreeBSD gurus!
 
 I have a question for you.
 
 I have two computers, both of them running FreeBSD 2.5.1-RELEASE.
 Let us call them A and B.
 
 Computer A receives ssh connections from computers running
 Linux, Solaris and even Windows; it also receives connections
 from FreeBSD 4.x and 5.1  but it does not receive
 ssh connections from B.
 
 A ask for password and then it takes a long time to say
 Operation timmed out
 Connection to A closed.
 
 Enabling sshd in rc.d or using it from inetd makes no difference.
 
 Strange, isn't it?
 
 Hope you can help me.
 Thanks in advance:
 
 PD.  Here you will find what ssh -v A dislays:
 
 
 B:/home/mrspock ssh -v A
 OpenSSH_3.6.1p1 FreeBSD-20030924, SSH protocols 1.5/2.0, OpenSSL
 0x0090703f
 debug1: Reading configuration data /etc/ssh/ssh_config
 ...

try running
A:/windows sshd -ddd
on computer A to see if anything happens.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Best filesysyem for FreeBSD Linux shared partition

2004-03-23 Thread Vasil Dimov
 Hello Everyone,
 
 I am multibooting FreeBSD with a few Linux distributions such as Mandrake,
 Gentoo, Slackware, Red Hat. (I'll reduce that list to a couple of favourites
 eventually).
 
 I have set up a primary partition with ext2 filesystem to act as a single
 data partition accessable from all OSs. That seemed to be fine until
 recently when I ran out of room on my FreeBSD /usr directory and moved my
 /usr/ports/distfiles directory to the shared ext2fs partition. At first
 there seemed to be no problems but when I tried to upgrade KDE and XFree86
 using portupgrade the error messages began.
 
 XFree86 always encountered errors when checking the checksums of the source
 tarballs. It would say at first that the checksums were ok but then
 immediately after crash sying that there were crc errors.
 
 KDE was more serious. It would almost immediately crash with a Fatal Trap 12
 error and reboot.
 
 After finding nothing on the on the forums  I finally moved the distfiles to
 a new drive which I formatted with the FreeBSD ufs filesystem. VOILA!! No
 more problems.
 
 So it seems that FreeBSD support for ext2fs is at fault.
 
 So what is the best filesystem to use for a shared partition? For example,
 does FreeBSD provide better support for ext3fs or resierfs? Or does Linux
 provide better support for ufs?
 
 Any thoughts?
 
 Thanks in advance,
 
 Ron

Yes: FreeBSD support for ext2fs is at fault also is the
Linux support for UFS. I suggest using FAT32 if you do
not care about 755 permissions and root:wheel owner on all files
(/usr/ports/distfiles is a good example for this). You can
also try sysutils/e2fsprogs and/or sysutils/linux-e2fsprogs from
the ports.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dd

2004-03-23 Thread Vasil Dimov
On Tue, Mar 23, 2004 at 09:26:05AM -0800, Gary W. Swearingen wrote:
  
  Any thoughts?
 
 SOMETIMES no file system is the best file system.  E.g., by putting
 a raw file on a partition with dd, cat, or , maybe with the
 raw file being a .pax, .tgz, or other archive file.  Creative use
 of dd options should permit multiple files per partition but I've
 only ever used a single (archive) file.
Oh, yes, ofcourse I love `dd' but Ron was asking about *filesystem*
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


it takes a long long long time to time-out a login attempt

2004-03-23 Thread Vasil Dimov
 I'm trying to ssh into my FreeBSD (5.2.1-release sparc version) box from my
 desktop, however, it'll take a few seconds for the login as prompt to
 appear.  I enter my the user name and hit enter. the login attempt then sits
 there for about 90 seconds w/o asking for the password, then the connection
 times out.
 
 Any ideas what's causing this?  Do I need to put the workstation's
 information into the hosts file or something?
 
 The funny thing is that when I ssh from another server that's on the same
 VLAN as the FreeBSD box (I should mention that the workstation is on a
 different VLAN) the login process happens immediately.
 
 Any ideas what gives?

sshd is trying to reverse map the addres client is coming from and no responze
is returned back by the nameserver.

the login as:  prompt is given by the client prog without even talking to
the sshd server - that's why it comes to you in a few seconds.

Try the following:
1. add hosts(5) entry in the server's hosts file for the client ip address
2. write the following in /etc/nsswitch.conf:
hosts: files [unavail=return] dns

NOTE: hosts: files dns should also do the work, but it does not.
see: getnameinfo(3) called from sshd finds error in /etc/hosts? in
freebsd-questions@ I am still digging to find the answer.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


getnameinfo(3) called from sshd finds error in /etc/hosts?

2004-03-22 Thread Vasil Dimov
The problem: when trying to login to an sshd server from 172.27.0.83 it
takes more than a minute for the password prompt to appear.

setup on the server machine:
OS: 5.2.1-RELEASE-p3

/etc/resolv.conf
nameserver 192.168.10.253
(does not know anything about 172.27.0.83)

/etc/hosts:
kutelo2 172.27.0.83

/etc/nsswitch.conf:
hosts: files dns

when started `sshd -ddd' sshd stops at the first:
debug3: Trying to reverse map address 172.27.0.83.
for about a minute. There is a second identical message a few lines after
that, but it causes no problems.

As I see the function sleeping that long is getnameinfo(3) called from
libssh from canohost.c

So I extracted the code into a separate file tmp.c:
int
main(int argc, char **argv)
{
struct sockaddr_in  from;
socklen_t   fromlen;
charname[NI_MAXHOST];
int errcode;

fromlen = sizeof(from);
memset(from, 0, sizeof(from));

from.sin_len = sizeof(from);
from.sin_family = AF_INET;
from.sin_port = htons(2379);
inet_aton(172.27.0.83, from.sin_addr);

if ((errcode = getnameinfo((struct sockaddr *)from, fromlen, name,
   sizeof(name), NULL, 0, NI_NAMEREQD)) != 0) {
fprintf(stderr, getnameinfo(): %d\n, errcode);
} else {
name[sizeof(name) - 1] = '\0';
printf(resolved OK: %s\n, name);
}

return 0;
}

which gives:
resolved OK: kutelo2

This is a mystery as the code in canohost.c is exactly the same, but returns
error code EAI_NONAME after more than a minute sending requests to the
nameserver. What work it has to do with the nameserver as 172.27.0.83 is in
/etc/hosts?

Than I changed nsswitch.conf to:
hosts: files [unavail=return] dns

In that case tmp.c's behavior does not change (resolved OK: kutelo2),
but sshd's first call of getnameinfo(3) fails immediately with EAI_NONAME.
It seems that according to this situation kutelo2 entry in /etc/hosts is
corrupted, but tmp.c does not think so, even when started as the sshd user.

Any ideas of what is happening?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ELF binary type 0 not known ??

2004-03-22 Thread Vasil Dimov
 Actually I posted this on the squirrelmail plugins list but havent had any
 success and I think you guys might have some ideas:
 
  First of all my system:
 
  Freebsd 4.8 Stable Running Courier-imap amp; SM 1.4.0
 
  Im trying to get change_password 3.1-1 plugin to work, so far i installed
  the compatibility plugin and have did all the things in the INSTALL File.
 
  But when I test it out on CLI it says:
 
  bayok# /usr/local/www/data/webmail/plugins/change_passwd/chpasswd testuser
  mypassword 123abc
  ELF binary type 0 not known.
  Abort
  bayok#
 
  here is the config.php for that:
 
  $change_pwd_language = 'en.lang';
  $disconn = false;
  $confirmPass = true;
  $oldPass = false;
  $seeOutput = true;
  $pathToChpasswd = '
  ';
  $pathToPw = '';
  $debug = 1;
 
 
  when i try doing it with the pw command it says
  i changed the $pathToPw = ''; to $pathToPw = '/usr/sbin/';
  ( i also tried $pathtoPw = 'usr/sbin/pw' but that didnt work either )
  and $oldPass = false; to $oldPass = true; (if its false the browser will
  say you forgot to put your old password)
  and the error is:(output from the browser, I don't know how[SM] executes
  it from the commandline.
 
  Command to be executed:
 
  From this directory:
 
  /usr/local/www/data-dist/webmail/plugins
 
  Does anyone have any idea what I am doing wrong?
 
 Actually I want to know what this code means(i think its the cause of my
 problems):
 
 bayok# /usr/local/www/data/webmail/plugins/change_passwd/chpasswd testuser
  mypassword 123abc
 ELF binary type 0 not known.
 Abort
 bayok#
 
 
 Also i was wondering what the asterisk at the end of this line means:
 
 -rwsr-x---  1 root  apache  9873 Oct 22  2002 chpasswd*
 
 It says in the INSTALL
 quote
 3) Make sure the file permissions on the chpasswd file are
correct (unless you'll be using the 'pw' utility on
FreeBSD).  Substitue the name of the user that your web
server runs under for apache in the command below:
 
   $ chown root:apache chpasswd
   $ chmod 4750 chpasswd
 /endquote
 
 but when i run ls -l it says
 
 -rwsr-x---  1 root  apache  9873 Oct 22  2002 chpasswd
 
 without the asterisk.
 Is that the same or am I missing something?
 
 Yours,
 
 Rommel

What do you get with:
% file /usr/local/www/data/webmail/plugins/change_passwd/chpasswd
does it say something about Linux? If 'yes', then try:
% kldload linux
% sysctl kern.fallback_elf_brand=3
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]