Re: Nanobsd Memory Backed Disks

2010-01-13 Thread M. Warner Losh
In message: 4d7dd86f1001130347k75ec7dcfhf6adf2a852210...@mail.gmail.com
David N david...@gmail.com writes:
: I've been poking around /etc/rc.diskless and other rc's. I can't seem
: to find what script loads the md.
: Its not in /etc/fstab
:
: Does anyone know where it is?
: Also how does nanobsd load the /etc into the md? newfs + cpio?

The md driver is usually compiled into the kernel. /etc/rc.d/mdconfig
and /etc/rc.d/mdconfig2 configure the ram disks.  /etc/diskless is
created as part of the build process, and /etc/rc.initdiskless does
all the copying magic.

Warner
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Root exploit for FreeBSD

2009-12-12 Thread M. Warner Losh
In message: 20091210095122.a164bf95.wmo...@potentialtech.com
Bill Moran wmo...@potentialtech.com writes:
: In response to Anton Shterenlikht me...@bristol.ac.uk:
: 
:  From my information security manager:
:  
:  FreeBSD isn't much used within the University (I understand) and has a
:  (comparatively) poor security record. Most recently, for example:
:  
:  
http://www.h-online.com/security/news/item/Root-exploit-for-FreeBSD-873352.html
: 
: Are you trying to make your infosec guy look like an idiot?  Does he
: realize that FreeBSD has a grand total of 16 security problems for all
: of 2009?  Hell, Microsoft has that many in an average month.

And many of them were for code supplied by others...

: If he can find something (other than OpenBSD) with a better record than
: that, I'd love to hear about it.

Are you sure that OpenBSD has a better record?

Warner
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Why does adding /usr/lib32 to LD_LIBRARY_PATH break 64-bit ?binaries?

2008-10-27 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Oliver Fromme [EMAIL PROTECTED] writes:
: Daniel O'Connor wrote:
:   On Friday 24 October 2008 23:20:59 Peter Jeremy wrote:
: this will make system trying to bind 32-bit libs to 64-bit program. it
: can't work
:
:rtld shouldn't attempt to bind 32-bit libs to 64-bit programs.
:   
:   The same problem happens with the Linux run time linker - it merrily tries 
to 
:   link FreeBSD libraries to Linux binaries with predictable results..
: 
: You *can* link Linux libraries with FreeBSD binaries (and
: vice versa), if the library does not perform any syscalls,
: e.g. it is a pure computation library or similar.
: 
:   That said it would be really nice if it ignored incompatible libraries :)
: 
: No.  Please don't put such pseudo-cleverness into rtld.
: It wouldn't be an improvement, in fact it might break some
: working configurations.

Yes.  I have a bunch of printer drivers that I've used that link in
linux shared libraries...  They are in ports...

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


Re: congrlations to the freebsd developers

2007-11-17 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Aryeh M. Friedman [EMAIL PROTECTED] writes:
: After having the help of several developers to resolve hw issues on my
: machine I have set up a 2 dual boot enviroment between 8-current (for
: desktop use) and vista.I am just writting to say 8-current kicks
: vista's ass in response time, stability [note 1], and almost every
: other aspect except for end-user oriented office apps [note 2] and games.
: 
: Notes:
: 
: 1.  As was posted in an other thread my nic still has a slow death issue
: 2. I meant features  not formats and since I am using amd64 no wine

You can run FreeBSD/i386 on amd64 boxes.

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


Re: get/set ifconfig entries through by programmatically

2007-06-01 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
bsenthil [EMAIL PROTECTED] writes:
: Is it possible to get/set  ifconfig entries through by programmatically. 
: If yes, please send me the code snippet ...
: 
: I am trying to get/set ipaddress by executing the command ifconfig .

To get the addresses, use the ifconfig-in-a-box interface
getifaddrs(3).  To set the address, you'll need to use the functions
described in networking(4), specifically the SIOCAIFADDR and
SIOCDIFADDR ioctls.

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


Re: problem mounting digital camera

2007-01-14 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
[EMAIL PROTECTED] writes:
: I am having a problem mounting my digital camera, it is a Nikon Coolpix 
: 7600.  It shows up in dmesg:
:   ugen0: NIKON NIKON DSC E7600-PTP, rev 2.00/1.00, addr 2
: 
:   and from usbdevs:
: addr 2: NIKON DSC E7600-PTP, NIKON
: 
:   not getting anything about umass or da0.
: 
:   I have the following lines in /boot/loader.conf:
:   usb_load=YES
:   umass_load=YES
: 
:   in rc.conf I have:
:   usbd_enable=YES
:   dbus_enable=YES
:   polkitd_enable=YES
:   hald_enable=YES
: 
:   and I have umass enabled in the kernel config
: 
:   When I try to mount I get the following:
:   # mount -t msdos /dev/da0s1c /mnt
:   mount_msdosfs: /dev/da0s1c: No such file or directory
: 
: Any help would be appreciated.

Have you tried /dev/da0s1?

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


Re: Example network protocol implementation

2006-12-09 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Vishal Patil [EMAIL PROTECTED] writes:
: Could someone point me to an example that shows a SIMPLE network protocol
: implemented over TCP/IP inside the FreeBSD kernel. I think I could look at
: the NFS client driver but is there an example simpler than that. Also is
: there a guide explaining how to go about developing TCP/IP based network
: protocols for FreeBSD.

[ to implement iSCSI in the kernel ]

I'm unsure which side you wish to be on.

There's accept filters that you can write, but I doubt that's what you
want to do.  This would be good if you are implementing an iSCSI
target on FreeBSD, maybe (then again, maybe not).

If you want to be an iSCSI initiator (I think that's the right term),
then you'll need to do things similar to what
sys/nfsclient/nfs_socket.c does.  I could do a quick code walkthrough,
but you'd likely be better off studying the nfs code since it will
give you a better understanding than I can in a few lines.  In
addition, because locking has changed over time, the exact version
matters.  Careful study will show differences in what locks are
needed, if any.

But in a nutshell, you call socreate to get a socket.  You setup the
various fields in the socket data structures.  You call sosetopt to do
the latter.  sobind will set this host's endpoint, and soconnect will
connect the socket to the remote side.  You'll need to setup send and
receive buffers and manage them with soreceive and sosend.  there's
some callbacks that also need to be established as well.  And some
socket layer locking that may be exposed to your code because there
are so few in-kernel protocol implementations that aren't peers to
TCP, UDP or IP.

I hope this helps.

Warner


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


Re: Best way to print photos

2006-04-04 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Vayu [EMAIL PROTECTED] writes:
: On Monday 03 April 2006 22:17, M. Warner Losh wrote:
:  In message: [EMAIL PROTECTED]
:  Vayu [EMAIL PROTECTED] writes:
:  : On Monday 03 April 2006 12:27, M. Warner Losh wrote:
:  :  OK.  I got bordered photo printing working.  I haven't gotten
:  :  borderless printing working, alas.
:  :  
:  :  The key points I learned:
:  :  
:  :  (1) Install print/cups.
:  :  (2) Install graphics/hpijs. This filters .ps - goo the printer 
groks
:  :  (3) Install graphics/gimp.  This makes .ps files
:  :  (4) Kill lpr/lpd before starting cups.
:  :  (5) Make sure you configure lpr/lpd not to startup on boot
:  :  (6) Remove lp* binaries
:  :  (7) Setup buildworld /etc/make.conf so it doesn't build lpr with
:  :  NO_LPR or WITHOUT_LPR
:  :  (8) Add printer via localhost:631 web interface.
:  :  (8) Set printer to draft mode via cups for testing
:  :  (9) Use firefox to generate test prints.
:  :  (10) To print from gimp, I have to remove the '-l' from the command
:  :   line every time I print in the printer setup.  This causes the
:  :   raw .ps file to go to the printer, rather than via cups'
:  :   postscript filter for the printer.
:  :  (11) To get photos, one must set photo quality via cups setup
:  :   interface.
:  :  
:  : 
:  : For someone who has just been struggling with CUPS this is helpful.
:  : Would you mind elaborating the steps on how to accomplish 5, 6 and 7 
: above?
:  : I've got most everything working, now I'd like to switch to the CUPs lp 
:  : commands.
:  
:  Sure.
:  
:  Step 5 is accomplished by not having a line like lpd_enable=yes in
:  /etc/rc.conf.  I had one from when I was using lpd.
:  
:  Step 6 is just 'sudo rm -f /usr/bin/lp?*'.  /usr/bin/lp is mildly
:  useful, and will be recreated.  
: 
: What do you mean will be recreated?   (If it's going to be recreated, then 
why 
: delete it?)

installworld will recreate it.

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


Re: Best way to print photos

2006-04-04 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Norberto Meijome [EMAIL PROTECTED] writes:
: On Mon, 3 Apr 2006 23:10:16 -0700
: Vayu [EMAIL PROTECTED] wrote:
: 
:   
:   Step 6 is just 'sudo rm -f /usr/bin/lp?*'.  /usr/bin/lp is mildly
:   useful, and will be recreated.  
:  
:  What do you mean will be recreated?   (If it's going to be recreated,
:  then why delete it?)
: 
: why not install print/cups-lpr 
: [EMAIL PROTECTED] [Tue Apr  4 16:16:14 2006]
: /usr/home/betom
: $ less /usr/ports/print/cups-lpr/pkg-message
: **
: **
: PLEASE NOTE:
: 
: 
: This port will move lpr binaries located in /usr/bin and
: /usr/sbin to unshade cups-lpr binaries in PATH variable
: 
: **
: **
: 
: AND add the options to make.conf so when you rebuild world, you won't
: over-ride the cups files.

That's what I recall seeing.  Thanks for the tip.

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


Re: Best way to print photos

2006-04-03 Thread M. Warner Losh
OK.  I got bordered photo printing working.  I haven't gotten
borderless printing working, alas.

The key points I learned:

(1) Install print/cups.
(2) Install graphics/hpijs. This filters .ps - goo the printer groks
(3) Install graphics/gimp.  This makes .ps files
(4) Kill lpr/lpd before starting cups.
(5) Make sure you configure lpr/lpd not to startup on boot
(6) Remove lp* binaries
(7) Setup buildworld /etc/make.conf so it doesn't build lpr with
NO_LPR or WITHOUT_LPR
(8) Add printer via localhost:631 web interface.
(8) Set printer to draft mode via cups for testing
(9) Use firefox to generate test prints.
(10) To print from gimp, I have to remove the '-l' from the command
 line every time I print in the printer setup.  This causes the
 raw .ps file to go to the printer, rather than via cups'
 postscript filter for the printer.
(11) To get photos, one must set photo quality via cups setup
 interface.

#10 is was tripped me up for a long time.  That's why printing to the
black and white printer worked for me (it was a postscript printer),
while it failed to the color.  I hadn't noticed before that it printed
the raw postscript and then lots of new lines.  Since these newlines
weren't accompanied by CR, all text was off the edge of the papper,
all I got was a bunch of blank pages.

#5 bit me on boot.  Since cups replaces the /etc/printcap
unconditionally, when lpd started it failed to start.  I lost a bunch
of print jobs before I worked out where they had gone and why things
had gone south.

I'd love to know how to print borderless prints (right now I get 1/4
(8mm) boarder on the prints).  I'd also love to know how to setup gimp
correctly.  However, these are really side issues now that I have
basic functionality working.

Thanks to everybody who was helpful in getting me to this point.  It
got me over the hump.  My HP DeskJet 5850 is working great as a color
printer with CUPS and my LaserJet 2200 continues to work like before.

Now, all I gotta do is to figure out my OfficeJet 4200, at least the
scanning portion...  But that can wait until my photo printing backlog
is cleared...

Thanks again,

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


Re: Best way to print photos

2006-04-03 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Vayu [EMAIL PROTECTED] writes:
: On Monday 03 April 2006 12:27, M. Warner Losh wrote:
:  OK.  I got bordered photo printing working.  I haven't gotten
:  borderless printing working, alas.
:  
:  The key points I learned:
:  
:  (1) Install print/cups.
:  (2) Install graphics/hpijs. This filters .ps - goo the printer groks
:  (3) Install graphics/gimp.  This makes .ps files
:  (4) Kill lpr/lpd before starting cups.
:  (5) Make sure you configure lpr/lpd not to startup on boot
:  (6) Remove lp* binaries
:  (7) Setup buildworld /etc/make.conf so it doesn't build lpr with
:  NO_LPR or WITHOUT_LPR
:  (8) Add printer via localhost:631 web interface.
:  (8) Set printer to draft mode via cups for testing
:  (9) Use firefox to generate test prints.
:  (10) To print from gimp, I have to remove the '-l' from the command
:   line every time I print in the printer setup.  This causes the
:   raw .ps file to go to the printer, rather than via cups'
:   postscript filter for the printer.
:  (11) To get photos, one must set photo quality via cups setup
:   interface.
:  
: 
: For someone who has just been struggling with CUPS this is helpful.
: Would you mind elaborating the steps on how to accomplish 5, 6 and 7 above?
: I've got most everything working, now I'd like to switch to the CUPs lp 
: commands.

Sure.

Step 5 is accomplished by not having a line like lpd_enable=yes in
/etc/rc.conf.  I had one from when I was using lpd.

Step 6 is just 'sudo rm -f /usr/bin/lp?*'.  /usr/bin/lp is mildly
useful, and will be recreated.  There's also a knob to the cups port
which lets you override the system default programs, but I'm unsure
what it is.  A quick grep shows me nothing (likely grepping in the
wrong dir).

Step 7 is just adding the lines:
NO_LPR=yes  6.x and older
WITHOUT_LPR=yes 7.x and newer
to /etc/make.conf.  In 7.x and newer you can add it to /etc/src.conf
as well.

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


Re: Best way to print photos

2006-03-31 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Donald J. O'Neill [EMAIL PROTECTED] writes:
: On Friday 31 March 2006 00:08, M. Warner Losh wrote:
:  Let us suppose that I have a HP DeskJet 5850 that I can talk to via
:  CUPS.  I can print test pages w/o any problem.
: 
:  What are my options to print photos and what kind of quality can I
:  expect relative to Windows?
: 
:  Warner
:  ___
: 
: Hi Warner,

Donnald,

: The reviews of the 5850 say it prints pretty good pictures. So, the 
: printer is capable. The problem is the cups driver your using may not 
: be so capable, and you need to locate one that is capable of photo 
: quality printing.

It prints absoultely fabulous picture, under windows.

: A long (couple of years or so) I had an HP 2000c. The driver for windows 
: would print very good color pictures. Since this was a networked 
: printer and I had a FreeBSD computer connected to the LAN, I wanted to 
: be able to use it through FreeBSD. The cups driver did a very good job 
: with text and graphics that didn't need to be photo quality. On photos, 
: it just plain sucked. I think I was able to use the HP2000c PPD from 
: the Windows install - I can't say positively that's where I got it 
: from. I had to have the 2000c installed in cups twice, once as HP2000, 
: with the cups PPD; and once as PHOTO, with the photo capable PPD. You 
: don't want to use the photo PPD for plain text. With that setup it was 
: capable of print quality every bit as good as Windows.
: 
: So, you should be able to print photos with the same quality as Windows, 
: if you locate a PPD that will do it.

Let's assume for the moment that my PPD is good.  I guess I'm looking
for something more basic: how do I take the .jpg from my camera and
get a photo on my printer.  What's the conversion process?

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


Re: Best way to print photos

2006-03-31 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Bob Johnson [EMAIL PROTECTED] writes:
: On 3/31/06, M. Warner Losh [EMAIL PROTECTED] wrote:
:  Let us suppose that I have a HP DeskJet 5850 that I can talk to via
:  CUPS.  I can print test pages w/o any problem.
: 
:  What are my options to print photos and what kind of quality can I
:  expect relative to Windows?
: 
: 
: According to 
http://www.linuxprinting.org/show_printer.cgi?recnum=HP-DeskJet_5850,
: HP's HPIJS driver gives excellent photo quality with HP printers. 
: One reviewer says that the quality at high resolution isn't quite as
: good as Windows, but it isn't clear whether that means high-resolution
: normal mode, or photo mode, or both.
: 
: ports/print/foomatic-db-hpijs and  /ports/print/hpijs

Bob,

Thanks for the tips.  I have these ports installed, but am tripping
over something stupidly basic: what converts the pict0001.jpg into
something that can be fed to the hpijs driver that will print?

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


Re: Best way to print photos

2006-03-31 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Donald J. O'Neill [EMAIL PROTECTED] writes:
: On Friday 31 March 2006 10:37, M. Warner Losh wrote:
:  Bob,
: 
:  Thanks for the tips.  I have these ports installed, but am tripping
:  over something stupidly basic: what converts the pict0001.jpg into
:  something that can be fed to the hpijs driver that will print?
: 
:  Warner
:  ___
: Gimp will do image manipulation as well as print, openoffice, several in 
: kde - kuickshow for one, several in gnome. I just printed a jpg using 
: kuickshow, so I know it will do it. Pretty much, once you've got the 
: jpg off the camera, what you do with it depends on your preferences.

gimp doesn't have my printer listed, and printing .ps to it fails.  Is
there some file I need to put somewhere?

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


Re: Best way to print photos

2006-03-31 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Donald J. O'Neill [EMAIL PROTECTED] writes:
: On Friday 31 March 2006 11:56, M. Warner Losh wrote:
:  In message: [EMAIL PROTECTED]
: 
:  Donald J. O'Neill [EMAIL PROTECTED] writes:
:  : On Friday 31 March 2006 10:37, M. Warner Losh wrote:
:  :  Bob,
:  : 
:  :  Thanks for the tips.  I have these ports installed, but am
:  :  tripping over something stupidly basic: what converts the
:  :  pict0001.jpg into something that can be fed to the hpijs driver
:  :  that will print?
:  : 
:  :  Warner
:  :  ___
:  :
:  : Gimp will do image manipulation as well as print, openoffice,
:  : several in kde - kuickshow for one, several in gnome. I just
:  : printed a jpg using kuickshow, so I know it will do it. Pretty
:  : much, once you've got the jpg off the camera, what you do with it
:  : depends on your preferences.
: 
:  gimp doesn't have my printer listed, and printing .ps to it fails. 
:  Is there some file I need to put somewhere?
: 
:  Warner
: 
: Are you using cups? Or something else? If you have your printer working 
: under cups, then I would think that gimp would print to it.

I have cups running.  I'd have thought that too, so I'm doing
something insanely stupid.  I can print to my other HP printer, but it
understands .ps natively.  If the answer to printing from gimp is
'just print a .ps' then I'm happy.

: I remember 
: when I was using an HP2000c, it wasn't listed under gimp either, but I 
: was able to install it there because I was able to use it with cups. 
: Failing that, there are other programs you can use to print the 
: adjusted jpg file, kuickshow is one, openoffice2.0.2 has several, kde 
: has several besides kuickshow, gnome2 has several.

I can print test pages with the CUPS interface w/o a problem.  I'll
try directly printing a simple color PS document next.  I just
realized that I haven't tried to do that yet.

: Warner, I know you are expert on FreeBSD, and know you know your way 
: around a computer at least as well as I do, if not better, I have 
: several emails from you concerning ACPI, and you show up in various 
: other lists that I belong to, so I know who you are. My question to you 
: is: do you have some hidden reason for showing up on questions and 
: acting like a newbie, or are you sincerely looking for help here. With 
: the hand holding your asking for, I'm beginning to wonder. If you do 
: in-fact, need the help, then you should know that without providing 
: information, that you haven't been volunteering, we aren't going to get 
: anywhere fast. 

The reason is that I've been trying to get printing working for
something like ages.  I've fought cups, hpijs, etc many times in the
past.  I picked bad times, in retrospect, to try to use these tools
since they were broken in some subtle way at the time.  I'm frustrated
and need a little hand-holding.  I think I might have earned a little
bit of it from the years of kernel related help I've given out :-).
I've not focused on printing on FreeBSD much at all since until the
latest color printer I got, good old lpr/lpd has been enough.

I'm not sure what information to provide.  I do understand its need.
I'm somewhat new to the image processing side of printing, so am
acting like a totale newbie because in some ways I am :-).

I'm doing multiple printer/scanner projects at the same time.  I have
a network connected HP LaserJet 2200 that's working great under both
lpr and cups.  I have a network connected HP DeskJet 5850 that's not
working at all under lpr/FreeBSD, but I can at least print test pages
on under CUPS.  It works great from Windows.  I also have a usb
connected HP OfficeJet 4200 scanner/printer/fax that I'm trying to get
scanning working on, but that's on a completely different
machine/different story :-).

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


Re: Best way to print photos

2006-03-31 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Donald J. O'Neill [EMAIL PROTECTED] writes:
: On Friday 31 March 2006 14:16, Bob Johnson wrote:
: 
:  In principle, an application feeds it to CUPS, CUPS feeds it to
:  GhostScript, and GhostScript uses the HPIJS driver to print it. Or
:  something like that.  In practice, I use APSFILTER instead of CUPS,
:  and I haven't ever tried to do photo printing from FreeBSD, although
:  getting my wife's HP photo printer working with FreeBSD is on my list
:  of things to do this weekend, or next weekend, or maybe the weekend
:  after that.
: 
:  The process works for printing JPEGs from web pages on my laser
:  printer (although not with HPIJS), and since the HPIJS driver is
:  supposed to autodetect photo paper in your printer, I would expect it
:  to just work for photos if you can print a web page with it.
: 
: 
:  As for a specific application, The Gimp knows something about
:  printing photos, but again, I haven't actually done it.   Digikam
:  also looks very promising as a photo manipulation tool.  Anything
:  that can display it and knows how to print ought to do it (kview for
:  example?). I'm sure someone with actual experience can provide a more
:  complete answer.;-)
: 
:  So far, I've printed from the Gimp by writing the file to a USB
:  thumbdrive, and plugging that into the photo printer.  The Gimp will
:  let you define the picture dimensions in inches, which may be
:  necessary to get the printing results you want.  Otherwise you may
:  end up with a picture that is 1 x 1.5 inches, or one point by one
:  point, or a piece of an 8x10 printed on 4x6 paper, or any of several
:  other possible defaults I've managed to print in the past.  Some
:  printers also do bad things if the image has too many pixels (or
:  maybe bytes), so I've sometimes needed to reduce the image resolution
:  before printing.
: 
:  - Bob
:  ___
: 
: Unless the printer was capable of determining what sort of paper it was 
: loaded with, I just don't see how the HPIJS driver would autodetect 
: photopaper. 

It doesn't.  However, one of the CUPS settings is 'paper type' and
'paper size'.  There's also print quality.  I can set those manually
and CUPS claims that the settings changes have taken effect.

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


HP OfficeJet 4215 Scanner question

2006-03-30 Thread M. Warner Losh
[[ please CC me on any reply, I'm not on this list ]]

Greetings,

I was wondering if anybody had any luck getting an HP OfficeJet 4125
working on FreeBSD.  I plugged it into my 6.1-beta4 system, and it was
recognized as a printer.  However, my attempts to get sane to access
the scanner portion have have failed.  What am I doing worng?

It looks like I might need the hpijs for printing, but I need hplip
for scanning.  The hpijs appears to be a FreeSBD port, but I don't see
a hplip port.  Is there one?  Is this what I need?  Is there something
else that would work?

Warner

P.S.  Keywords for searches:

Office Jet OfficeJet Series 4200 xsane
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP OfficeJet 4215 Scanner question

2006-03-30 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Danny Pansters [EMAIL PROTECTED] writes:
: On Friday 31 March 2006 02:45, M. Warner Losh wrote:
:  [[ please CC me on any reply, I'm not on this list ]]
: 
:  Greetings,
: 
:  I was wondering if anybody had any luck getting an HP OfficeJet 4125
:  working on FreeBSD.  I plugged it into my 6.1-beta4 system, and it was
:  recognized as a printer.  However, my attempts to get sane to access
:  the scanner portion have have failed.  What am I doing worng?
: 
:  It looks like I might need the hpijs for printing, but I need hplip
:  for scanning.  The hpijs appears to be a FreeSBD port, but I don't see
:  a hplip port.  Is there one?  Is this what I need?  Is there something
:  else that would work?
: 
:  Warner
: 
:  P.S.  Keywords for searches:
: 
:  Office Jet OfficeJet Series 4200 xsane
: 
: You tried the hpoj port? It uses the ptal low level driver and cups for 
: printing, others for scanning or faxing or photo camera flash card.

It failed on a different machine running -current.  I'll give hjop a
try.

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


Best way to print photos

2006-03-30 Thread M. Warner Losh
Let us suppose that I have a HP DeskJet 5850 that I can talk to via
CUPS.  I can print test pages w/o any problem.

What are my options to print photos and what kind of quality can I
expect relative to Windows?

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


Re: to list all the devices in freebsd definition analyse

2005-11-27 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
kylin [EMAIL PROTECTED] writes:
: i can use pciconf in freebsd to list the pci device ,but how to list
: the device tree in freeebsd?

devinfo -v

: i got some anornymous definition on devclass driver and device that
: differ from the current man page
: i think they seems reasonable but how can devclass  Represents a bus
: or leaf device driver while driver still Represents a bus or
: leaf-level end-device driver ?
: and device is just a instance of bus or (leaf) end-device.??
: is it oop? can the disigner of the arch show us a word?:)
: 
: devclass
: Represents a bus or leaf device driver, e.g. pci_devclass (PCI bus),
: ahc_devclass (Adaptec SCSI host-bus adapter). It contains a list of
: drivers that belong to it. At run-time it also has a list populated by
: device instances of this class indexed by unit numbers.
: driver

devclass is the information about all instances of the device.
device_t is an instance of the device.  The only difference between a
bus and a device is that a bus has children.

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


Re: nvi for serious hacking

2005-10-17 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Gary Kline [EMAIL PROTECTED] writes:
:   vi was the first screen/cursor-based editor in computer 
:   history.

Are you sure about this?  I was using screen oriented editors over a
1200 baud dialup line in 1977 on a PDP-11 running RSTS/E on a Behive
BH-100.  Seems like one year from vi to being deployed at Berkeley to
a completely different video editor being deployed on a completely
different os in the schools that I used this in seems fast.  So I did
some digging.

vi started in about 1976[1] as a project that grew out of the
frustration taht a 200 line Pascal program was too big for the system
to handle.  These are based on recollections of Bill Joy in 1984.

It appears that starting in 1972 Carl Mikkelson added screen editing
features to TECO[2].  In 1974 Richard Stallman added macros to TECO.
I don't know if Carl's work was the first, but it pre-dates the vi
efforts.  Other editors may have influanced Carl.  Who knows.

Warner

[1] http://www.cs.pdx.edu/~kirkenda/joy84.html
[2] http://www.emacswiki.org/cgi-bin/wiki/EmacsHistory
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Will USB serial ever be fixed?

2005-09-09 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Paul Marciano [EMAIL PROTECTED] writes:
:  Even to the point that it will be hard for you to
:  effect change because people don't take you
:  seriously.
: 
: I don't want to effect change, I just want a working
: system.

If the system isn't working for you, then you're advocating a change.

: If you're serious about supporting an
: operating system you have to support all your uses,
: even the assholes.

Since I don't have usb serial hardware that's tickling the problem,
I'm unmotivated to do anything about the problems.  And even if I was
motivated, I can't even begin to do anything about the problem without
hardware.  And even if I had the hardware, it has to be important to
me.  Either for something cool I'm hacking on, or because I get a fist
full of dollars for my efforts.

You asked for honesty, and I'll give you some more: You are being a
jerk and acting like you are entitled to having your particular
problem fixed without pitching in and helping in some way.  This
combination is particularly bad when faced with an open source
project.  It will get you nowhere but frustrated when we don't cow-tow
to your demands.

Have a nice day.

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


Re: make .if exists problem/question

2005-08-25 Thread M. Warner Losh
Yes.  The thing to keep in mind is that much of the .if stuff is done
at parsing or rule construction time.  So if you change something
(creating a file, say), then that condition won't be re-evaluated.

For the specific example given, one could replace much of the goo
with:

target: foobar

foobar:
touch foobar

if you wanted to create foobar.  Otherwise, I'd be tempted not to use
.if exists.  I'd be tempted to do something more like:

target:
@-if [ -f foobar ]; then cat foobar; else touch foobar; fi

where you have the shell check.

The primary use of exists() I've seen is:

.if exists(foo.mk)
.include foo.mk
.endif

although I have seen others.

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


Re: what is the init entrance for pci bus scan in FREEbsd?

2005-06-06 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
kylin [EMAIL PROTECTED] writes:
: On 6/6/05, M. Warner Losh [EMAIL PROTECTED] wrote:
:  I'm not sure I understand what you are getting at here.  First, devd
:  already provides 95% of the infrastructure to do things when devices
:  are added to the system.
: sorry ,i ignore it!! it is really a lite tool:) ,but it seems that
: /dev/devctl does not present the function to write to the devctl,then
: I think it is impossible to  give order to disable or enable the pci
: slots without making changes.

OK.  You need a daemon to respond to the state diagram of the pci hot
plug interaction model.

: then it is devd that should come into play( like the sbin/hotplug in
: linux?):)

Yes.  devd predates hotplug in Linux, but not by much (they both were
worked on in parallel).

:  Second, you assume that linux's way of doing things is how FreeBSD
:  does things.  This isn't the case. FreeBSD scans the bus at pci bus
:  attach time and adds chilren nodes that it finds.  In the Cardbus
:  case, it will add nodes as the card bus bridge tells us of children,
:  and then probe/attaches them. 
: i mean the enumeration  way . and the trickes to talk with the hotplug bridge.
: BTW pci_init()  is the start point for PCI enumeration in linux. The
: way to add the device to the lists

You'll need to look at how cardbus handles this.

:   Finally, you should send me your work for review.  I've been keen on
:  expanding pci bus support for a long time and would be happy to review
:  such changes.
: 
:  BTW, Which chipsets and hotplugging methods do you support?
: i will begin with the fake way here ,then give support to pciexpress
: native hotplug .there is common register interface for pci e hotplug
: first ,i will not change the source ,just add a module.

I think you should make it be a full-fledged driver, rather than an
add-on on the side.  You'll not be able to solve the resource problems
otherwise.

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


Re: what is the init entrance for pci bus scan in FREEbsd?

2005-06-05 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
kylin [EMAIL PROTECTED] writes:
: Now i am coding a fake pcihotplug module in Freebsd 5.3 release,
: it contains two parts ,the userplace using a ioctl way to communicate
: with an cdev in /dev, and the kernel module which
: mainly operates on the Devclasses ,devlist and driverlist but
: still in the enable function,i have to rescan the pci bus. BUT, i can
: not find the pci bus scan code in the freebsd,i guess it was just an
: entry of the startup table which is made by compiler,
: still some one told me to follow the pci_init() way in LINUX ,but , i
: find it too hard in the OO structure bus arch of Freebsd .so
: WHERE can i get some code to follow in order to finish my pci rescan 
function? 

I'm not sure I understand what you are getting at here.  First, devd
already provides 95% of the infrastructure to do things when devices
are added to the system.

Second, you assume that linux's way of doing things is how FreeBSD
does things.  This isn't the case. FreeBSD scans the bus at pci bus
attach time and adds chilren nodes that it finds.  In the Cardbus
case, it will add nodes as the card bus bridge tells us of children,
and then probe/attaches them.  If you are implementing support for
bridges that announce new children, you should start by looking into
the pci bridge driver code (this will be in src/sys/dev/pci/pci_pci.c)
and add the approrpiate hooks there.  Next, you should look at the
following routines in cardbus (located in src/sys/dev/cardbus and
dev/pccbb): cbb_insert will call CARD_ATTACH_CARD on cbdev.  The
CARD_ATTACH_CARD method is implemented in cardbus.c's
cardbus_attach_card.  There it will probe all the slots on the bus.
It might be better to abstract the guts of this function, and move it
down into sys/dev/pci/pci.c if other bridges could use the same
functionality.

Finally, you should send me your work for review.  I've been keen on
expanding pci bus support for a long time and would be happy to review
such changes.

BTW, Which chipsets and hotplugging methods do you support?

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


Re: building KLDs in RELENG_4

2005-03-02 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Peter C. Lai [EMAIL PROTECTED] writes:
: Is there a way to build kernel modules by themselves without having to
: build the entire kernel? I am adding umass support to a 4.x machine but
: I don't want to build the entire kernel. I already have scbus, but I need
: da and of course, umass.

cd src/sys/modules/umass ; make all install clean

This assumes that the sources match what's on the system.

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


Re: building KLDs in RELENG_4

2005-03-02 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Peter C. Lai [EMAIL PROTECTED] writes:
: On Thu, Feb 24, 2005 at 09:59:01AM -0600, Scot Hetzel wrote:
:  On Thu, 24 Feb 2005 09:56:22 -0500, Peter C. Lai [EMAIL PROTECTED] wrote:
:   Is there a way to build kernel modules by themselves without having to
:   build the entire kernel? I am adding umass support to a 4.x machine but
:   I don't want to build the entire kernel. I already have scbus, but I need
:   da and of course, umass.
:   
:   
:  Yes you can build modules seperately from a kernel build
:  
:  cd /usr/src/sys/modules/umass
:  make obj
:  make
:  make install
:  
:  Scot
: 
: ok. what about da? i don't have that in my kernel, even though i have scbus.
: I think i'm just going to recompile the entire kernel anyway; I was just
: trying to not have to back-cvs /usr/src to patch the current one I have
: installed. (the more basic problem is i really should be keeping multiple
: versions of /usr/src around for different versions on different machines,
: but that is a separate problem).

modules/cam is what you want.  Hmmm, looks like you have part of it in
your kernel already, so you'll not be able to do what you want.

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


Re: missing kernel and kernel.old

2004-10-31 Thread M. Warner Losh
because the kernel now lives in /boot/kernel

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


Re: couldn't map memory

2004-09-19 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Richard Lynch [EMAIL PROTECTED] writes:
: The bfe_attach function which is getting registered with the Device as a
: callback is being called, and eventually reaches the line where it
: attempts to do:
: sc-bfe_res = bus_alloc_resource(dev, SYS_RES_MEMORY, rid, 0, ~0, 1,
:   RF_ACTIVE);
: 
: It is at this point that it is then printing out Could not map memory
: 
: Now, I had already tried setting hints for maddr and msize to the values
: being used by Windows, in the hope that they would also be good numbers
: for FreeBSD.
: 
: However, one thing I'm not sure of -- Do those hints affect a Module, or
: would they only apply to something built in to the kernel?

No.  hints aren't used by pci at all.

: Sep 17 00:31:09  kernel: cbb0: PCI-CardBus Bridge at device 4.0 on pci2
: Sep 17 00:31:09  kernel: cbb0: pccbb.c Could not grab register memory
: Sep 17 00:31:09  kernel: device_probe_and_attach: cbb0 attach returned 12
: Sep 17 00:31:09  kernel: cbb0: PCI-CardBus Bridge at device 4.1 on pci2
: Sep 17 00:31:09  kernel: cbb0: pccbb.c Could not grab register memory
: Sep 17 00:31:09  kernel: device_probe_and_attach: cbb0 attach returned 12
: Sep 17 00:31:09  kernel: fwohci0: vendor=104c, dev=802e
: Sep 17 00:31:09  kernel: fwohci0: 1394 Open Host Controller Interface
: mem 0xe020-0xe0203fff,0xe0209000-0xe02097ff irq 10 at device 4.2 on
: pci2
: Sep 17 00:31:09  kernel: fwohci0: Could not map memory
: Sep 17 00:31:09  kernel: device_probe_and_attach: fwohci0 attach returned 6
: Sep 17 00:31:09  kernel: sc-bfe_miibus is NULL.
: Sep 17 00:31:09  kernel: bfe0: Broadcom BCM4401-B0 Fast Ethernet mem
: 0xe0206000-0xe0207fff irq 10 at device 5.0 on pci2
: Sep 17 00:31:09  kernel: bfe0: couldn't map memory
: Sep 17 00:31:09  kernel: device_probe_and_attach: bfe0 attach returned 6

This looks a more general problem.

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


Re: Digi PCI / XEM 16-Port

2004-08-23 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Kyle Mott [EMAIL PROTECTED] writes:
: I have tried several times now to compile a GENERIC kernel on
: 4.10-STABLE with dgm0 (Digi Ports/16em, PCI version!) enabled, and have
: had no luck. Can anyone give me pointers? Right now, it's not showing up
: in dmesg (no errors, no warnings, nothing). The config line I have been
: using is below (but it's the one straight out of LINT). I've done a lot
: of googling and maillist searching; most of the documentation is for the
: ISA version, and not the PCI version. I've tried chaning 'at isa?' to
: 'at pci?' with no luck.
:
: device  dgm0at isa? port 0x104 iomem 0xd

Try 'digi' instead.  The various drivers were merged into digi.

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


Re: Clarification needed on Handbook: Tracking for Multiple Machines

2004-02-23 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
D J Hawkey Jr [EMAIL PROTECTED] writes:
: True or False: Setting CPUTYPE to the lowest target CPU (p2) in
: a build machine's make.conf will cripple the performance of target
: machines with higher CPUs (p3, p4, i586, i686, etc.).

False.  It might have a minor impact on performance, but not a major
one.  At least in my experience.  Minor here means  10% for something
like the world stone.  Cripple to me implies  25%.

: If True, for optimized code across all machines, the code should
: just be built on each machine, right?

That would give slightly better performance.  However, it can be more
pain than it is worth if the number of machine types is high.

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


Re: Atmel WLAN Driver

2003-12-22 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Daan Vreeken [PA4DAN] [EMAIL PROTECTED] writes:
: (to stop cross-posting please 'cc' follow-ups to -questions)
: 
: On Monday 22 December 2003 19:10, Markus Kovero wrote:
:  Hi. I Have Belkin 11MBps wlan adapter F5D6020 ver.2 that uses atmel
:  chipset. I noticed that support for freebsd hasnt been made yet but I
:  found leenox driver for it. So I thought to ask would it be possible to
:  port leenox driver to freebsd so I could use my wlan pcmcia card.
:  Linux driver I found: http://atmelwlandriver.sourceforge.net/news.html
: I have been (and still am) working on a FreeBSD driver for the USB version of 
: this adapter. The driver homepage can be found here :
: http://vitsch.net/bsd/atuwi/
: 
: If you want to try to get the PCMCIA version working, you could have a look at 
: the driver to start with, since the device itself is the same, only the 
: interface to it is different.

OpenBSD has wi driver that does both PCMCIA and USB versions of the
prism-2 chipset.  I suspect that something similar here would be a
good thing.

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


Re: irq conflict laptop with 5.1-current

2003-10-30 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Ronald Klop [EMAIL PROTECTED] writes:
: How van I solve this?
: arp: unknown hardware address format (0x2063)
: arp: unknown hardware address format (0x)

I think you might have been the person to file a pr on this.  In any
event, I broke ep a while ago, and fixed it a few days later.
maybe updating will solve this problem?

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


Re: dmesg showing wrong frequency (IBM T30)

2003-07-19 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Poul-Henning Kamp [EMAIL PROTECTED] writes:
: [*] Known in certain circles as a Warnering your laptop :-)

Hmmm, melted plastic sure smells good in the morning :-)

After replacing my fiva keyboard, I'm quite happy with it again.

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


Re: dmesg showing wrong frequency (IBM T30)

2003-07-19 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Darryl Okahata [EMAIL PROTECTED] writes:
:   [*] Known in certain circles as a Warnering your laptop :-)
:  
:  Which can be solved by carefully watering your laptop. Beer will do
:  as well ;)
: 
:  It might be more useful to apply water (well, beer) to Warner
: instead of the laptop.  The application of water or beer to a laptop is
: contraindicated, due to the undesirable side-effects of smoke and fire.

Applying beer to Warner has been known to make him pun badly.  There
was a time when my local pub had banned me from having more than one
Guiness due to the foulness of my puns

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


Re: FBSD 5.0 diskless environment does not work!

2003-03-11 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Hartmann, O. [EMAIL PROTECTED] writes:
: Can anyone help? Has someone a runnng diskless FBSD 5.0-R/5-CURRENT
: environment?

I fixed a couple of bugs in the /etc/rc.d files that broke diskless
boots about a month or two so after 5.0-RELEASE.  It would have
precluded diskless systems network from working most of the time.

Warner

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


Re: ad-hoc wireless mode and ticks (fwd)

2003-03-04 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Wilko Bulte [EMAIL PROTECTED] writes:
: Inquiring minds will ask soon anyway: what rev is 'new enough' ?

wi man page says:
 Lucent cards prior to firmware version 6.0.4 do not support IBSS mode.

but the source code says:
if (sc-sc_sta_firmware_ver = 60006)
ic-ic_flags |= IEEE80211_F_HASIBSS;

so I'd guess why 6.0.6 is the oldest version that will support IBSS
creation.  I'll update the man page.

Warner

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


Re: ad-hoc wireless mode and ticks (fwd)

2003-03-04 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Greg 'groggy' Lehey [EMAIL PROTECTED] writes:
:Feel a little confused with the ad-hoc mode set by wicontrol -p
:  3, is it Lucent ad-hoc mode instead of the standard IEEE ad-hoc
:  mode (IBSS).
: 
: Correct.  It's generally called demo ad-hoc mode.

-p is card dependent number.  It depends on what card you have, what
firmware, etc.  Don't use it.  It is bad juju.  Instead, use the
ifconfig interface.

:  But if I set it to -p 4, it can do the job. However, I cannot find
:  this option in wicontrol man page or anywhere. Could somebody
:  explain me what's going on here?
: 
: I don't know a -p 4.  I set ad-hoc (i.e. IBSS) mode with -p 1 (in
: other words, exactly the same way as managed/BSS mode).  You'll need
: at least one IBSS, of course.  Set that with -c 1.  Ignore the claim
: in the man page that it doesn't work.  I run my wireless network like
: this, and it interoperates fine with Linux and even Microsoft.  See
: http://www.lemis.com/grog/diary-feb2002.html#9 for more details.

Don't do that.  You are asking for trouble.  IT DOES NOT WORK.  Trust
me.  There are a lot of situations where it can be made to work, but
as general advise, it sucks.  That's why the man pages say what they
say.  Greg leads a charmed life.  That's why the man pages say what
they say.

: Yes, this is very confusing.  I've been asking the maintainer to
: change the terminology, but he points out that the other BSDs do it
: this way as well.

I think you need to learn to ask better.  The maintainer uses industry
standard terminology.

don't use wicontrol -p for anything.  If it breaks, it breaks in
mysterious ways and you get a lot of 'works for me.' posts.

In -stable, you want something like

ifconfig wi0 media DS/11Mbps mediaopt ibss-craete   # ibss mode (adhoc)
ifconfig wi0 media DS/11Mbps mediaopt adhoc # lucent

is what you want to use.

In current, by contrast, you want to use the following:

ifconfig wi0 media DS/11Mbps mediaopt adhoc # ibss mode (adhoc)
ifconfig wi0 media DS/11Mbps mediaopt adhoc,flag0   # lucent

You do not want to use wicontrol to configure the card at all.

Wanrer

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


Re: SMC 2602W Wireless PCI Card on stable

2003-02-18 Thread M. Warner Losh
You have the right relevant lines in your kernel config.  However, if
you are using a ISA bus pcmcia bridge, you cannot share interrupts
with other cards at all.  The hardware simply does not allow for it.
If you are using the PCI adapter, then it should just work.  I've
shared interrupts with pci wi cards many times in the past.

Which version of FreeBSD are you using?

Warner

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



Re: SMC 2602W Wireless PCI Card on stable

2003-02-18 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Viny [EMAIL PROTECTED] writes:
: pci0: unknown card (vendor=0x10b5, dev=0x9050) at 11.0 irq 15

This is the problem.  Ther's no 10b5/9050 ID in if_wi_pci.c.  The
following patch might do the trick for you.  It is relative to
-current, but a similar patch would be applicable to stable.

Index: if_wi_pci.c
===
RCS file: /home/ncvs/src/sys/dev/wi/if_wi_pci.c,v
retrieving revision 1.12
diff -u -r1.12 if_wi_pci.c
--- if_wi_pci.c 15 Jan 2003 20:11:31 -  1.12
+++ if_wi_pci.c 19 Feb 2003 07:14:20 -
@@ -102,6 +102,7 @@
{0x1385, 0x4100, WI_BUS_PCI_PLX, Netgear MA301},
{0x1638, 0x1100, WI_BUS_PCI_PLX, PRISM2STA WaveLAN},
{0x111a, 0x1023, WI_BUS_PCI_PLX, Siemens SpeedStream},
+   {0x10b5, 0x9050, WI_BUS_PCI_PLX, SMC 2602W},
{0x16ec, 0x3685, WI_BUS_PCI_PLX, US Robotics 2415},
{0, 0, 0, NULL}
 };


Warner

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



Re: [PATCH] PPP in -direct mode does not execute any chat scripts

2003-02-03 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Maksim Yevmenkin [EMAIL PROTECTED] writes:
: Dear Hackers,
: 
: Please find attached patch that adds new option to the PPP.
: 
: 
: run-scripts-in-direct-mode
:   Default: Disabled. This allows to run chat scripts in
:   direct mode.
: 
: did i miss anything? objections? comments? reviews?

Maybe it would be better to call this force-scripts or something
more general purpose so that one could force the use of scripts
anywhere.  Making direct mode have a special case override seems a
little too restrictive.  The heart of the patch would become:

-  if (dl-physical-type  (PHYS_DIRECT|PHYS_DEDICATED))
+  if (!Enabled(dl-bundle, OPT_FORCE_SCRIPTS) 
+  (dl-physical-type  (PHYS_DIRECT|PHYS_DEDICATED))
 /* Ignore scripts */
 runscripts = 0;

with corresponding changes to the docs, defines, etc.

Warner


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



Re: [PATCH2] PPP in -direct mode does not execute any chat scripts

2003-02-03 Thread M. Warner Losh
My un-trained eye says this is good.  Thanks for turning around the
feedback so quickly.  Now, we wait for Brian to review it.

Warner

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



Re: PPP in -direct mode does not execute any chat scripts

2003-02-02 Thread M. Warner Losh
Is there any reason that RFCOMM doesn't give full tty support, like
the various USB modem drivers do?  That's likely the best way to deal
with this.  Then ppp or whatever application you want will just work.

Warner

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



Re: PPP in -direct mode does not execute any chat scripts

2003-02-02 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Maksim Yevmenkin [EMAIL PROTECTED] writes:
: So you see it is probably possible to build a tty-like interface,
: but i do not think it really worth the trouble. In fact one
: can do it right now with the help of nmdm(4) driver. It is a
: simple wrapper that would pass the data between socket and
: /dev/nmdm0{A|B}.

That's one way.

Another is to have some control program that interacts with RFCOMM to
establish a 'connection' between endpoints and sets the various
parameters and gives userland access to it as a tty.

barring that, you'll may be able to run chat on stdin/stdout before
ppp gets into the act and get the number dialed that way and have ppp
-direct run afterwards.

Warner


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



Re: Forged e-mails

2003-01-05 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Greg 'groggy' Lehey [EMAIL PROTECTED] writes:
: On Sunday,  5 January 2003 at 20:53:41 -0700, Brett Glass wrote:
:  It has come to my attention that an unknown party has been sending messages
:  to several of the FreeBSD mailing lists from the address [EMAIL PROTECTED].
:  The messages are not mine; they're being sent from a bogus account on a
:  Webmail service known as FastMail. An abuse report has been filed with
:  that service. Until the account is disabled, kindly ignore all mail from
:  that address.
: 
: *sigh* Brett, this is off-topic.  We've repeatedly asked you in the
: last few days not to send off-topic mail.  Please don't do it again.
: 
: Yes, we realize that the mail is forged.  You're not exactly the only
: one who's had his name abused in this manner, and we're doing what we
: can to bring the perpetrator(s) to justice.

Actually, it isn't that off topic.  The forgery was a good one, so one
disclaimer is warranted.  Multiple ones aren't, of course, but a one
shot isn't that bad.

Warner


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



Re: smc wireless adhoc

2002-11-21 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Bognr, Attila [EMAIL PROTECTED] writes:
: What other suggestions do you have?

adhoc mode sucks really badly on -stable.  I'd use hostap.
Alternatively, I'd use ibss-create if you really want to run in
'adhoc' mode.  Normal adhoc sucks between cards that aren't
identical with identical firmware because the bugs are legion with
earlier prism cards.

The problem here is that there are two typs of 'adhoc'.  There's the
true ibss mode that ieee defines, and then there's a demo adhoc mode
that is massively non-standard.  The two don't mix.  And setting the
'adhoc' mode rid in the card does strange things.

Warner

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



Re: Undefined symbol __stderrp may be re:__stdiooutp

2002-11-14 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Andrew Stuart [EMAIL PROTECTED] writes:
: 
: I am running a recent -stable (built yesterday matter of fact). and am
: getting:
: 
: # uvscan
: /usr/libexec/ld-elf.so.1: /usr/lib/libm.so.2: Undefined symbol
: __stderrp
: 
: I have rebuilt world and uvscan as of 15 mins ago (cvsup'd again) and am
: still having the same issues..
: i may be missing something, but can someone conferm this?

Update your libc.so.3.  This was recently MFC'd from current into
stable.  You need COMPAT3X=YES in your /etc/make.conf.

Warner

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



Re: Undefined symbol __stderrp may be re:__stdiooutp

2002-11-14 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Andrew Stuart [EMAIL PROTECTED] writes:
: I had that in one box, It didnt seem to help, I went in and made clean,
: then rebuilt world and it fixed it. The second was using compat3 from
: ports, which hasnt been updated yet (as you probably already know) and i
: added it and made world.. all good.. thanks

To be honest, I had no clue.  full path?

Warner

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



Re: Undefined symbol __stderrp may be re:__stdiooutp

2002-11-14 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Andrew Stuart [EMAIL PROTECTED] writes:
: misc/compat3x
: which tries to install compat3x-20020925.tar.gz
: 
: quite a few ports rely on it.. or at least i thought so.. at least
: security/vscan does.

OK.  I've set the wheels in motion to get this updated.

Warner

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



Re: Missing vendor info for generic Realtek clone (FBSD4.6)

2002-10-19 Thread M. Warner Losh
In message: 004601c276df$12e75410$[EMAIL PROTECTED]
Kutulu [EMAIL PROTECTED] writes:
: What steps can I take to locate the correct pccard configuration to use this
: card?

The rl driver is a cardbus driver, which is only supported in
-current.  5.0 will be released soon, and that will solve your
problems.

Warner

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



Re: (Retry) Bridging a wi-device with a LAN-adapter

2002-07-23 Thread M. Warner Losh

In message: 002401c23245$1ced2130$0100a8c0@erikpc
Erik Paulsen Skålerud [EMAIL PROTECTED] writes:
: I've also heard a rumour that ng_bridge(4)/netgraph can do bridging with
: wi(4)-devices. Is this true?

bridge(4) and ng_bridge(4) have the same hardware contraints.

Warner

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



Re: SGI's STL (Standard Template Library) in base system?

2002-07-17 Thread M. Warner Losh

In message: [EMAIL PROTECTED]
Andreas Ntaflos [EMAIL PROTECTED] writes:
:   Is the Standard Template Library somehow contained in the base
:   system of FreeBSD?

Yes.

:   But if I have to install the port, is it any good? Is it useable? 

The stl in the base is adequate for most uses, but sophisticated users
will have issues.

Warner

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