Re: [CFT/RFC] Make crunched compatible with external linkers

2012-12-05 Thread pete
On Wed, Dec 5, 2012 at 3:11 AM, Kurt Lidl  wrote:

> On Tue, Dec 04, 2012 at 11:06:56AM +0100, Erik Cederstrand wrote:
> > Hello hackers,
> >
> > The following PR patches crunchide(1) to accept object files produced by
> the gold and mclinker linkers:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=bin%2F174011
> >
> > On behalf of the submitter, I'd like to request a review of the patch,
> and testing of crunchide/crunchgen especially on SPARC and ARM.
>
> I applied this patch to a 9/stable source tree, and was able to
> "buildworld" with it in place, on my sparc64 machine.
>
> I know that's not a great test case, but the patched binary
> is good enough to generate the objects that are needed for the
> 'rescue' binary.  And that binary runs at least a trivial test
> of '/usr/obj/usr/src/rescue/rescue/rescue ifconfig -a' and
> produces correct output.
>
> -Kurt
>

Really thanks for your help!

This patch is for crunchide to handle ELF object file in a more general
way, but not be limited to the custom section layout (i.e., section
headers, .symtab, and then .strtab are @EOF). And if we are still using
ld(1), I think the patched crunchide should produce exactly the same output
as before. Then the rescue binary would also be the same.

I checked and verified the intermediate object files and rescue binary (via
binary diff) on X86 FreeBSD 9.0. If you can also kindly help check this on
different archs and feedback, I think the result will be very helpful.

Thanks,
Pete
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: du -A / -B options [Re: zfs quota question]

2008-11-06 Thread Pete French
> Any objections against the general concept?  It's rather complicated to get 
> the apparent size of a directory hierarchy without scripting.  I often wonder 
> if some hierarchy will fit on a CD/DVD and compressed zfs makes this really 
> difficult.

It's a definite thumbs up from me - this is exactly what I was looking
for in the original thread. Very nice couple of new options.

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


Driver Development Books?

2005-10-12 Thread Pete

Hello,
   I have what may seem to be a silly question, but I cannot find any 
other decent resources on the web. >.< The problem that I am having 
right now is
that I have a fairly nice graphics card which, for the moment is only 
supported on Windows Operating systems, and old 2.4 Linux kernels. So 
far there has
not been much positive outlook in porting the drivers to *BSD or any of 
the 2.6 kernels that I know of, let alone 64-bit drivers for non-Win OSes.


So I guess that makes my question fairly simple then; I know that driver 
code is written in C (which I am learning currently) but thats about all 
I know. I'm probably
not far off when I say that I need more to go on. Yet, from looking at 
Amazon.com I have not been able to find any books on writing driver 
code, which is really

frustrating.

One of my security related books, Rootkits, tells me about how to write 
drivers for a completely different reason so I know a bit more about how 
they work but again
the code involved does not interface hardware to the OS, just injects a 
custom application. The other tool that I will probably use is Jungo, 
which is a nice-looking
application which automates a skeletal version of the driver you need, 
but again, I would not know how to fill it out.


Any help is appreciated.

-Pete

"Rootkits" Book Homepage -- http://www.rootkit.com/
Jungo WinDriver -- http://www.jungo.com/windriver.html
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Pseudo-device driver & select ??

2005-05-29 Thread Pete Heerboth
You might want to take a look at the bpf pseudo device and how it  
handles polls int bpf.c.  You need to use the selrecord() and  
selwakeup() functions.


Check out:

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/

On May 26, 2005, at 6:00 PM, Aziz Kezzou wrote:



Aziz Kezzou wrote:


Hi all,
I am trying to implement a small kld pseudo-device driver on  
FreeBSD 5.3 that

behaves just like a socket with regards to the select system call.

Currently, I am using the sample echo pseudo-device driver from
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/ 
driverbasics-char.html

 as an example. However, whenever  I call select on the file
descriptor of "/dev/echo" it always returns even when there is  
no data

to be read.

I looked at the socket code and it looks like I need to provide  
my own
"fo_select" function in the fileops data structure. Am i right ?  
How

do I do that ? The sample echo pseudo-device driver above uses
"struct cdevsw"  instead...

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





look at spec_poll()
I beleive that when your device is opened the fileops{} will
point to the spec ops and you're code will be entered via
spec_poll() - now you just need to implement the poll/select notion
for your device.




Thanks,
Actually, il turned out to be very simple.
I needed only to provide a "d_poll" function as part of the structure
cdevsw, as follows :

/* Character device entry points */
static struct cdevsw echo_cdevsw = {
.d_version = D_VERSION,
.d_open = echo_open,
.d_close = echo_close,
.d_read = echo_read,
.d_write = echo_write,
.d_poll = echo_poll,
.d_name = "echo",
};

with echo_poll :
static  int
echo_poll(struct cdev *dev, int events, struct thread *td)
{

  uprintf( "echo_poll called : data_available = %d!\n",  
data_available );

  if(data_available == 0)
return 0;
  data_available = 0;
  return 1;
}




Now the question is, if I don't have any data available when select
(i.e d_poll ) is called, how do I notify select  when data arrives ?
looks like "d_poll" is called only once (the name is a bit misleading
here ;-) , isn't it ?

Any hints ?
Thanks.
-aziz
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



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


Re: 3 IDE devices on Promise card + FreeBSD == not possible?

2003-03-10 Thread Pete
On Mon, 10 Mar 2003, Søren Schmidt wrote:

> No, thats not the case, the ATA driver has a built in RAID engine
> to use with Promise and HighPoint controllers. The reason it is
> like this is that it is nessesary to read the RAID config off the
> disks in a vendor specific way, and neither of cdd/vinum could do
> this when its was done.

So, if I were to create the RAID-1 volume with atacontrol, I'm tied to
using the Promise controller?  Could I move the drives to a
Highpoint-based controller or just a plain on-board ATA interface and
still have the RAID volume accessible?  If I want this kind of
flexibility, should I move to Vinum?

Thanks again for taking the time to clear all of this up.  I really
appreciate it.

pete

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


Re: 3 IDE devices on Promise card + FreeBSD == not possible?

2003-03-09 Thread Pete

On Sun, 09 Mar 2003, Soeren Schmidt wrote:

> To make it short, the disklabel problem is probably due to the disk
> containing what disklabel see as a bogus label, try to zero out the
> label by using dd if=/dev/zero of=/dev/adN count=100.

This is what I initially thought, but when I swapped the two data
drives, disklabel thought the previous ar2's (and now ar1's) disklabel
was fine.  The drive that used to be ar1 and that had a valid disklabel
before swapping now had a "bogus" label.  (Did that description make
sense?)

> Now if you have a promise fasttrak its beyond me why you want to use
> vinum to make a mirror...

Well... 

   a) I want to learn about FreeBSD, not the Promise controller.  Until
   this email, I was thinking the only way to do software RAID with
   FreeBSD was Vinum... Now, I'm (more) confused.

   b) The Fasttrak controller isn't that wonderful and from what I've
   read, just software RAID on the card's PROM.  I've also heard (and
   briefly confirmed) that Linux's software RAID is faster than the
   card's.  I'm betting that FreeBSD's is comparable to Linux's.

   c) I don't want to be tied to a specific vendor's RAID.  This machine
   is made from old, spare parts.  If the Fasttrak card were to die, I'd
   love to be able to stick in a different IDE controller and still have
   the RAID working with little or no fuss.

> In the post you refer to you have:
> ar0: 29314MB  [3737/255/63] status: READY subdisks:
>  0 READY ad4: 29314MB  [59560/16/63] at ata2-master UDMA100
> ar1: 29314MB  [3737/255/63] status: READY subdisks:
>  0 READY ad6: 29314MB  [59560/16/63] at ata3-master UDMA100
> ar2: 29314MB  [3737/255/63] status: READY subdisks:
>  0 READY ad7: 29314MB  [59560/16/63] at ata3-slave UDMA100

FWIW, I'm currently using a 2 controller config with each drive on its
own dedicated IDE channel.  The second controller is just a straight
Promise controller, not a Fasttrak.

> You use ar0 as a single disk and thats fine.  Then you need a mirror
> of ad6 and ad7 to get that you first need to delete ar1 and ar2 (which
> you have defined in the Promise BIOS to get it past probing right ?).

When all three disks were on the Fasttrak, I did have them all defined
as single-disk, striped volumes.  I needed to do this to boot from
ar0/ad4.  Right now, I don't know why I set the other two to be
single-disk, striped volumes.  When I moved the latter two disks to the
second controller, they still booted as ar1 and ar2 (ad8 on ar1 and ad10
on ar2), but I had no controller BIOS to tweak.  I just guessed that
that was how FreeBSD treated drives on these controllers.

> So doing:
> 
> atacontrol delete ar1
> atacontrol delete ar2

Now this was interesting.  I did this, then rebooted.  This is what I
get now:

ad8: 29314MB  [59560/16/63] at ata4-master UDMA100
ad10: 29314MB  [59560/16/63] at ata5-master UDMA100
ar0: 29314MB  [3737/255/63] status: READY subdisks:
 0 READY ad4: 29314MB  [59560/16/63] at ata2-master UDMA100

> atacontrol create mirror ad6 ad7

This is starting to _really_ confuse me. Does FreeBSD have two software
RAID systems?  Is there something built into the ATA controller drivers
that can do software RAID too?  It looks that way from that atacontrol
and ata man pages.  Where does Vinum fit in here or is Vinum extraneous
now?  Is Vinum just a front-end to the ata system?  I'm sooo confused... 

> and you get a new ar1 array thats the mirror of ad6 & ad7..

Indeed I do.

> Disklabel & newfs ar1 and you are done (remember the dd trick above if
> disklabel thinks the label is bogus)

Excellent!  It looks like this is what I was looking for.  

Thank you so very much, Søren.

pete

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


3 IDE devices on Promise card + FreeBSD == not possible?

2003-03-08 Thread Pete
Hello,

I've been posting about this since the beginning on the year.  A few
times on freebsd-questions, once on freebsd-hackers, and submitted a PR
(http://www.freebsd.org/cgi/query-pr.cgi?pr=48165).  I have never found
a solution beyond replacing FreeBSD with Linux.  (Which is not something
I'd like to do, but know I can, if need be.  I'm trying to learn about
FreeBSD, not Linux.)

The main problem seems to be that I cannot have more than two IDE drives
on a Promise IDE card (or cards, for that matter).  They work fine with
two drives attached.  The actual drive attached, where it's attached,
and the card it's attached to does not seem to matter.  However things
are configured, whatever drive is enumerated as ar2 cannot be accessed
by disklabel (and vinum and possibly other disk-level utils).  

Please see my original post at:
http://news.gw.com/freebsd.questions/122487.

I really hope somebody can help me with this.  I'm more than willing to
try things and provide whatever debugging info you'd like to see.  I
currently have all my data on ar0, but a lot of that is digital photos
that I don't want to trust to the health of just one drive.  I really
want to get ar1 and ar2 working as a mirrored volume and move all the
data to this, but FreeBSD (and, most likely, my corresponding lack of
knowledge) has kept me from doing this.  I _really_ don't want to move
to Linux, but I've been trying to solve this problem for over three
months now and if I can't get FreeBSD to do it.  I know I can get Linux
to do it.  Please don't let it come to that.  I'm just very frustrated
and tried every avenue I know of.

Thanks,
pete

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


(fwd) frustrating disklabel problem

2003-01-26 Thread Pete
 it for some reason.  I guess I
could just edit the label on ar1, then swap master and slave again, and
edit the label on the new ar1 so that both should have fstypes of vinum.
I'm not sure if vinum would work after this though.  I'm assuming that I
should be able to see the labels on both ar1 and ar2, so I want to try
to fix this problem first.

Thanks,
pete

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



Re: older releases

2002-07-09 Thread Pete Fritchman

++ 09/07/02 21:45 -0500 - harsha godavari:
| Where can I find the older releases of FBSD ver 2.05 on? Thanks.

http://www.freebsdmirrors.org/FBSDsites.php3?release=2.0.5-RELEASE

--pete

--
Pete Fritchman [petef@(databits.net|freebsd.org|wyom.net)]
finger [EMAIL PROTECTED] for PGP key

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



Re: FreeBSD 2.2.8 ISO or install media

2002-03-18 Thread Pete Fritchman

++ 18/03/02 18:01 -0800 - Mark Stuhr:
| Anyone know where I can put my hands on the files that would allow me to
| setup a 2.2.8 server without having to compile server source code.
| 
| An ISO image would be best.
| 
| Someone have a CD to sell or borrow in the bay area would be great.
| 
| A place where I can find the server files and a floppy boot disk that
| would trigger an install would be fine.
| 
| Any ideas greatly appreciated.

Here's a list of sites that carry the 2.2.8 release directory (you could
make floppies & do a net install):

  http://www.freebsdmirrors.org/FBSDsites.php3?release=2.2.8-RELEASE

--pete

--
Pete Fritchman [petef@(databits.net|freebsd.org|csh.rit.edu)]
finger [EMAIL PROTECTED] for PGP key

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



Re: Need PCI/VIA chipset help (was Re: 4.4-STABLE crashes - suspects new ata-driver over wd-drivers)

2001-12-27 Thread Pete French

> Anyhow since this is not always the case I did the fix for -current,
> granted it should not be in the ATA driver, but since nobody else
> really cared at the time

Does this mean that if you dont have the ATA drivers in the kernel then
you wont get the fix ? As the bug occurs under high PCI loads then this
can potentially affect people with large amounts of PCI activity on
SCSI drives too surely ? Granted I've never seen it happen, but it still
bothers me that it might...

-pcf.

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



Re: Via 686b data corruption.

2001-12-02 Thread Pete Carah

> On Sun, 2 Dec 2001, Pete Carah wrote:
> 
> > I'm seeing data corruption on the Promise channel of a A7V133,
> > WITH the "southbridge fix" applied and NO sound card of any kind in
> > the system (the built-in is disabled in the bios; current wouldn't boot
> > at all with it enabled, when I bought the mb).  All the cards are 
> > video (a TNT2 card of some kind) and network (Intel).

> Hello!  I've been working on the same problem myself...
> 
> Do you observe data corruption when selecting the "safe" BIOS defaults
> rather than the "optimized" defaults?
No; didn't think of that.  

> Also how are you testing for data
> corruption?
md5 on the CD images ftp'd from freebsd.org.  Doesn't seem to happen on
short transfers (for some definition of "short" - the 4.4-mini.iso comes
in right about half the time).  Haven't tested one of the iso files onto 
the "main" IDE instead of the promise since I'm short of disk space there.

The corruption appears to only be writing the disks; the md5 values are
very consistent once written.

-- Pete

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



Via 686b data corruption.

2001-12-02 Thread Pete Carah

I'm seeing data corruption on the Promise channel of a A7V133,
WITH the "southbridge fix" applied and NO sound card of any kind in
the system (the built-in is disabled in the bios; current wouldn't boot
at all with it enabled, when I bought the mb).  All the cards are 
video (a TNT2 card of some kind) and network (Intel).

OS is -current of about a week ago:
FreeBSD 5.0-CURRENT #0: Sun Nov 25 18:11:17 PST 2001
with the cvsup done about 3 or so hours earlier...

I haven't updated the bios yet; the latest appears to be avu1007 from
the tw ftp site.

I have slowed the clock to 125mhz but from the "nature of the bug"
discussions it appears that shouldn't matter.

-- Pete

dmesg from boot verbose (booted last night):


Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.0-CURRENT #0: Sun Nov 25 18:11:17 PST 2001
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/SEAGULL
Preloaded elf kernel "/boot/kernel/kernel" at 0xc041a000.
Preloaded elf module "/boot/kernel/random.ko" at 0xc041a0a8.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc041a154.
Calibrating clock(s) ... TSC clock: 1125127471 Hz, i8254 clock: 1193234 Hz
CLK_USE_I8254_CALIBRATION not specified - using default frequency
Timecounter "i8254"  frequency 1193182 Hz
CLK_USE_TSC_CALIBRATION not specified - using old calibration method
Timecounter "TSC"  frequency 1125087368 Hz
CPU: AMD Athlon(tm) Processor (1125.09-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x642  Stepping = 2
  
Features=0x183f9ff
  AMD Features=0xc044<,AMIE,DSP,3DNow!>
Data TLB: 24 entries, fully associative
Instruction TLB: 16 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative
real memory  = 805224448 (786352K bytes)
Physical memory chunk(s):
0x1000 - 0x0009dfff, 643072 bytes (157 pages)
0x00441000 - 0x2ffe3fff, 800731136 bytes (195491 pages)
avail memory = 778739712 (760488K bytes)
bios32: Found BIOS32 Service Directory header at 0xc00f92a0
bios32: Entry = 0xf0f50 (c00f0f50)  Rev = 0  Len = 1
pcibios: PCI BIOS entry at 0xf+0x1150
pnpbios: Found PnP BIOS data at 0xc00fc2b0
pnpbios: Entry = f:c2e0  Rev = 1.0
pnpbios: OEM ID cd041
Other BIOS signatures found:
null: 
mem: 
Pentium Pro MTRR support enabled
random: 
pci_open(1):mode 1 addr port (0x0cf8) is 0x8060
pci_open(1a):   mode1res=0x8000 (0x8000)
pci_cfgcheck:   device 0 [class=06] [hdr=00] is there (id=03051106)
Using $PIR table, 9 entries at 0xc00f1720
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI"  frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
acpi_cpu0:  on acpi0
acpi_button0:  on acpi0
acpi_pcib0:  port 0xcf8-0xcff on acpi0
pci0: physical bus=0
map[10]: type 3, range 32, base e600, size 25, enabled
found-> vendor=0x1106, dev=0x0305, revid=0x03
bus=0, slot=0, func=0
class=06-00-00, hdrtype=0x00, mfdev=0
powerspec 2  supports D0 D3  current D0
found-> vendor=0x1106, dev=0x8305, revid=0x00
bus=0, slot=1, func=0
class=06-04-00, hdrtype=0x01, mfdev=0
found-> vendor=0x1106, dev=0x0686, revid=0x40
bus=0, slot=4, func=0
class=06-01-00, hdrtype=0x00, mfdev=1
powerspec 2  supports D0 D3  current D0
map[20]: type 4, range 32, base d800, size  4, enabled
found-> vendor=0x1106, dev=0x0571, revid=0x06
bus=0, slot=4, func=1
class=01-01-8a, hdrtype=0x00, mfdev=0
powerspec 2  supports D0 D3  current D0
map[20]: type 4, range 32, base d400, size  5, enabled
found-> vendor=0x1106, dev=0x3038, revid=0x16
bus=0, slot=4, func=2
class=0c-03-00, hdrtype=0x00, mfdev=0
intpin=d, irq=5
powerspec 2  supports D0 D3  current D0
map[20]: type 4, range 32, base d000, size  5, enabled
found-> vendor=0x1106, dev=0x3038, revid=0x16
bus=0, slot=4, func=3
class=0c-03-00, hdrtype=0x00, mfdev=0
intpin=d, irq=5
powerspec 2  supports D0 D3  current D0
found-> vendor=0x1106, dev=0x3057, revid=0x40
bus=0, slot=4, func=4
class=06-00-00, hdrtype=0x00, mfdev=0
powerspec 2  supports D0 D3  current D0
map[10]: type 1, range 32, base e180, size 12, enabled
map[14]: type 4, range 32, base a400, size  6, enabled
map[18]: type 1, range 32, base e100, size 20, enabled
found-> vendor=0x8086, dev=0x

Re: Duping a hard disk

2001-10-23 Thread Pete McKenna

We netboot via PXE and run sysinstall. It takes about 6 minutes.
You can make packages out of your specialized stuff.
This make it easy to keep up to date as well as build. 
You don't need to worry about the drives being the same size etc either,
and different config scripts let you build different kinds of systems
very easily. We use all Intel NICs which support PXE, but I think you 
could do this with netboot also.

Pete 

On Tue, Oct 23, 2001 at 08:35:05AM -0400, PSI, Mike Smith wrote:
> I am running a lab with 43 FreeBDS machines and will be adding about 20
> more in the near future. ALL these machines are absolutely identical
> except for IP address and machine name. To speed up the adding of new
> machines, I envision making a duplication station, where I would add a
> "new" disk as a slave and then dup the master disk to the slave disk.
> Then I would only have to change IP and machine name.
> 
> But alas, I cannot find any procedures for doing this. Does anyone know
> how to duplicate a master disk to a "new" slave disk??? It would REALLY
> make my life much easier.
> 
> BTW, We are running 3.2. Yea, I know it's ancient but we have added
> significant kernel hacks to support specialized ATN and X.25 protocols
> and don't envision upgrading until we get our modifications completed.
> 
> Any insight would be appreciated.
> 
> Mike Smith (but not THE Mike Smith)
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message

-- 
Peter McKenna Qwest Internet Solutions
[EMAIL PROTECTED]   Main 612-664-4000 
  FAX 612-664-4770

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



Re: CVSup4.Freebsd.org

2001-09-24 Thread Pete Fritchman

++ 24/09/01 11:30 -0700 - Ulf Zimmermann:
| Seems to have still S1G bug:
| 
| Connected to cvsup4.freebsd.org
| Server cvsup4.freebsd.org has the S1G bug

This should go to the maintainer of cvsup4.freebsd.org, available at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-MIRRORS

And also CC:'d.

-pete

--
Pete Fritchman [petef@(databits.net|freebsd.org|csh.rit.edu)]
finger [EMAIL PROTECTED] for PGP key

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



Re: pkg_add puzzlement

2001-07-23 Thread Pete Fritchman

++ 23/07/01 18:21 -0700 - Romain Kang:
| I've been using this in a PLIST:
| 
| 1 @exec test -d %D/var/run/procstates || mkdir -p %D/var/run/procstates
| 2 @exec chown root.wheel %D/var/run/procstates && chmod 1775 %D/var/run/procstates

[nitpick: you should use chown root:wheel]

| 
| The rationale for each line:
| - 1 Install: make sure that the directory exists, avoiding error messages
| if an earlier instance of the package is on the machine.

Just curious, but isn't this a bit redundant?  mkdir -p will never
return an error, so you don't have to worry if the directory already
exists.

| - 2 Install: make sure directory has correct permissions.
| 
| For some reason, there are machines where the package is added, but 
| /var/run/procstates does not get created.  pkg_add has no complaints.

I did a real quick test, and noticed the same thing.  But like I said
above, just @exec mkdir -p should do the trick in this case.

-pete

--
Pete Fritchman <[EMAIL PROTECTED]>
Databits Network Services, Inc. <http://databits.net>
finger [EMAIL PROTECTED] for PGP key


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



Re: L440GX+ Server Board

1999-09-01 Thread Pete Mckenna
Luiz Morte da Costa Junior wrote:
> 
> Hi Pete and All,
> 
> On Wed, 1 Sep 1999, Pete Mckenna wrote:
> 
> > We have a few dozen running mostly as uniprocesser boxes.
> 
> Ok. My server has 2 processors. I supose that you have some servers with 2
> processors.

I think just one that I used to determine it would work.

> 
> > I have also put an adaptec 2940 in them and it works as well.
> 
> What is the adaptec transfer rate? I have tested with a adaptec 80Mb, and
> it didn't work too. The chipset is the same the AIC 7896.

I'm not sure what you are asking. I havn't put an Adaptec 7896 into this
motherboard, just added a 2940 to the built in 7896 and didn't have any
problems. We use LVD drives on the A or 0 channel and they need external
termination. I don't have transfer rate numbers handy but could generate
some if that's what your asking ?


> 
> > You need to run 3.2 or better to get the drivers for the on board
> > Adaptec.
> 
> I have downloaded (with CVSup) to stable version, but I have the same
> problem. I have about 10.000 users in my master.passwd. When I runnig the
> vipw, my machine stay down (I can't send any e-mail, when I have the
> problem).
> 
> Another test that I have done with my kernel was to put the flags below:

This only refers to IDE drives not SCSI drives. We don't use anything
other than SCSI in these boxes. Which are you using ?

> 
> controller  wdc0at isa? port "IO_WD1" bio irq 14
> diskwd0 at wdc0 drive 0 flags 0xb0ff
> diskwd1 at wdc0 drive 1 flags 0xb0ff
> controller  wdc1at isa? port "IO_WD2" bio irq 15
> diskwd2 at wdc1 drive 0 flags 0xb0ff
> diskwd3 at wdc1 drive 1 flags 0xb0ff
> 
> It didn't work too.
> 
> > The onboard NIC works like any other Intel 10/100 using fxp0, adding a
> > asecond nic makes the onboard fxp1 (for failover purposes, I assume)
> 
> I think that I don't have problem with my NIC (Intel 10/100).
> 
> > We like them, and are trying to get Intel to make the reporting of temp
> > etc and power managment Unix friendly. You can get to the bios at boot
> > time (remotely via a com port) as it is which is nice.
> 
> I can't figured out what you want to say about BIOS :/

These board have some remote managment capabilities that let you see the
early ( pre -FreeBSD ) boot stuff like ram count, acess to the bois, and
the Adaptec bios. etc

Pete
> 
> Thanks in advance.
> 
> []s,
> 
> Luiz Morte da Costa Junior
> Analista de RedesE-mail: mo...@correionet.com.br
> Telefone: +55 19 754-2532Fax: +55 19 255-7576
> CorreioNet - Correio Popular Campinas - SP - Brazil
> 
> > Pete
> >
> > Kevin Lynn wrote:
> > >
> > > Has anyone else gotten this server board to work?
> > >
> > > I've got an N440BX and have been considering getting the L440GX+ but
> > > haven't because I don't know if it works..
> > >
> > > Kevin
> > >
> > > On Mon, 23 Aug 1999, Luiz Morte da Costa Junior wrote:
> > >
> > > >
> > > > Hi list,
> > > >
> > > > About the problem bellow, I bought a 2940 Adaptec Ultra2 Wide SCSI
> > > > controller, but it didn't work too.
> > > >
> > > > I wrote to Justin T. Gibbs and he told me that my problem is not SCSI.
> > > >
> > > > Somebody has any idea?
> > > >
> > > > []s,
> > > >
> > > > Luiz Morte da Costa Junior
> > > > Analista de RedesE-mail: mo...@correionet.com.br
> > > > Telefone: +55 19 754-2532Fax: +55 19 255-7576
> > > > CorreioNet - Correio Popular Campinas - SP - Brazil
> > > >
> > > >
> > > > On Sun, 22 Aug 1999, Luiz Morte da Costa Junior wrote:
> > > >
> > > > >
> > > > > Hi all,
> > > > >
> > > > > I have a problem with a server running a FreeBSD 3.2.
> > > > >
> > > > > My Server has a L440GX+ Serber Board (intel), with network card 
> > > > > 10/100,
> > > > > SCSI AIC 7896 (80MB/s), 2 SCSI disk with 9GB (80MB/s), 2 pentium III
> > > > > 450Mhz (not overclocked). The NIC and SCSI are onboard.
> > > > >
> > > > > I recompiled a kernel to SMP, and it worked. The server is ok, but 
> > > > > when I
> > > > > run a comand with disk access (whith vipw or mysql), the performance 
> > > > >

Re: L440GX+ Server Board

1999-09-01 Thread Pete Mckenna

Luiz Morte da Costa Junior wrote:
> 
> Hi Pete and All,
> 
> On Wed, 1 Sep 1999, Pete Mckenna wrote:
> 
> > We have a few dozen running mostly as uniprocesser boxes.
> 
> Ok. My server has 2 processors. I supose that you have some servers with 2
> processors.

I think just one that I used to determine it would work.

> 
> > I have also put an adaptec 2940 in them and it works as well.
> 
> What is the adaptec transfer rate? I have tested with a adaptec 80Mb, and
> it didn't work too. The chipset is the same the AIC 7896.

I'm not sure what you are asking. I havn't put an Adaptec 7896 into this
motherboard, just added a 2940 to the built in 7896 and didn't have any
problems. We use LVD drives on the A or 0 channel and they need external
termination. I don't have transfer rate numbers handy but could generate
some if that's what your asking ?


> 
> > You need to run 3.2 or better to get the drivers for the on board
> > Adaptec.
> 
> I have downloaded (with CVSup) to stable version, but I have the same
> problem. I have about 10.000 users in my master.passwd. When I runnig the
> vipw, my machine stay down (I can't send any e-mail, when I have the
> problem).
> 
> Another test that I have done with my kernel was to put the flags below:

This only refers to IDE drives not SCSI drives. We don't use anything
other than SCSI in these boxes. Which are you using ?

> 
> controller  wdc0at isa? port "IO_WD1" bio irq 14
> diskwd0 at wdc0 drive 0 flags 0xb0ff
> diskwd1 at wdc0 drive 1 flags 0xb0ff
> controller  wdc1at isa? port "IO_WD2" bio irq 15
> diskwd2 at wdc1 drive 0 flags 0xb0ff
> diskwd3 at wdc1 drive 1 flags 0xb0ff
> 
> It didn't work too.
> 
> > The onboard NIC works like any other Intel 10/100 using fxp0, adding a
> > asecond nic makes the onboard fxp1 (for failover purposes, I assume)
> 
> I think that I don't have problem with my NIC (Intel 10/100).
> 
> > We like them, and are trying to get Intel to make the reporting of temp
> > etc and power managment Unix friendly. You can get to the bios at boot
> > time (remotely via a com port) as it is which is nice.
> 
> I can't figured out what you want to say about BIOS :/

These board have some remote managment capabilities that let you see the
early ( pre -FreeBSD ) boot stuff like ram count, acess to the bois, and
the Adaptec bios. etc

Pete
> 
> Thanks in advance.
> 
> []s,
> 
> Luiz Morte da Costa Junior
> Analista de RedesE-mail: [EMAIL PROTECTED]
> Telefone: +55 19 754-2532Fax: +55 19 255-7576
> CorreioNet - Correio Popular Campinas - SP - Brazil
> 
> > Pete
> >
> > Kevin Lynn wrote:
> > >
> > > Has anyone else gotten this server board to work?
> > >
> > > I've got an N440BX and have been considering getting the L440GX+ but
> > > haven't because I don't know if it works..
> > >
> > > Kevin
> > >
> > > On Mon, 23 Aug 1999, Luiz Morte da Costa Junior wrote:
> > >
> > > >
> > > > Hi list,
> > > >
> > > > About the problem bellow, I bought a 2940 Adaptec Ultra2 Wide SCSI
> > > > controller, but it didn't work too.
> > > >
> > > > I wrote to Justin T. Gibbs and he told me that my problem is not SCSI.
> > > >
> > > > Somebody has any idea?
> > > >
> > > > []s,
> > > >
> > > > Luiz Morte da Costa Junior
> > > > Analista de RedesE-mail: [EMAIL PROTECTED]
> > > > Telefone: +55 19 754-2532Fax: +55 19 255-7576
> > > > CorreioNet - Correio Popular Campinas - SP - Brazil
> > > >
> > > >
> > > > On Sun, 22 Aug 1999, Luiz Morte da Costa Junior wrote:
> > > >
> > > > >
> > > > > Hi all,
> > > > >
> > > > > I have a problem with a server running a FreeBSD 3.2.
> > > > >
> > > > > My Server has a L440GX+ Serber Board (intel), with network card 10/100,
> > > > > SCSI AIC 7896 (80MB/s), 2 SCSI disk with 9GB (80MB/s), 2 pentium III
> > > > > 450Mhz (not overclocked). The NIC and SCSI are onboard.
> > > > >
> > > > > I recompiled a kernel to SMP, and it worked. The server is ok, but when I
> > > > > run a comand with disk access (whith vipw or mysql), the performance of
> > > > > server goes down. My server stays very very very slow. If I u

Re: L440GX+ Server Board

1999-09-01 Thread Pete Mckenna
We have a few dozen running mostly as uniprocesser boxes.
I have also put an adaptec 2940 in them and it works as well.
You need to run 3.2 or better to get the drivers for the on board
Adaptec.
The onboard NIC works like any other Intel 10/100 using fxp0, adding a
asecond nic makes the onboard fxp1 (for failover purposes, I assume) 
We like them, and are trying to get Intel to make the reporting of temp
etc and power managment Unix friendly. You can get to the bios at boot
time (remotely via a com port) as it is which is nice.

Pete

Kevin Lynn wrote:
> 
> Has anyone else gotten this server board to work?
> 
> I've got an N440BX and have been considering getting the L440GX+ but
> haven't because I don't know if it works..
> 
> Kevin
> 
> On Mon, 23 Aug 1999, Luiz Morte da Costa Junior wrote:
> 
> >
> > Hi list,
> >
> > About the problem bellow, I bought a 2940 Adaptec Ultra2 Wide SCSI
> > controller, but it didn't work too.
> >
> > I wrote to Justin T. Gibbs and he told me that my problem is not SCSI.
> >
> > Somebody has any idea?
> >
> > []s,
> >
> > Luiz Morte da Costa Junior
> > Analista de RedesE-mail: mo...@correionet.com.br
> > Telefone: +55 19 754-2532Fax: +55 19 255-7576
> > CorreioNet - Correio Popular Campinas - SP - Brazil
> >
> >
> > On Sun, 22 Aug 1999, Luiz Morte da Costa Junior wrote:
> >
> > >
> > > Hi all,
> > >
> > > I have a problem with a server running a FreeBSD 3.2.
> > >
> > > My Server has a L440GX+ Serber Board (intel), with network card 10/100,
> > > SCSI AIC 7896 (80MB/s), 2 SCSI disk with 9GB (80MB/s), 2 pentium III
> > > 450Mhz (not overclocked). The NIC and SCSI are onboard.
> > >
> > > I recompiled a kernel to SMP, and it worked. The server is ok, but when I
> > > run a comand with disk access (whith vipw or mysql), the performance of
> > > server goes down. My server stays very very very slow. If I use pine to
> > > read my messages, it doesn't work. When the comand finishes, the server
> > > stays "ok" again.
> > >
> > > I recompiled the kernel with "maxusers 128", but it doesn't work.
> > >
> > > My SCSI cable has a terminator and the scsi setup is ok (I think :) ).
> > >
> > > The dmesg command output is in attchmnt.
> > >
> > > I appreciate any help.
> > >
> > > []s,
> > >
> > > Luiz Morte da Costa Junior
> > > Analista de RedesE-mail: mo...@correionet.com.br
> > > Telefone: +55 19 754-2532Fax: +55 19 255-7576
> > > CorreioNet - Correio Popular Campinas - SP - Brazil
> > >
> >
> > []s,
> >
> > Luiz Morte da Costa Junior
> > Analista de RedesE-mail: mo...@correionet.com.br
> > Telefone: +55 19 754-2532Fax: +55 19 255-7576
> > CorreioNet - Correio Popular Campinas - SP - Brazil
> >
> >
> >
> > To Unsubscribe: send mail to majord...@freebsd.org
> > with "unsubscribe freebsd-hackers" in the body of the message
> >
> 
> To Unsubscribe: send mail to majord...@freebsd.org
> with "unsubscribe freebsd-hackers" in the body of the message


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message



Re: L440GX+ Server Board

1999-09-01 Thread Pete Mckenna

We have a few dozen running mostly as uniprocesser boxes.
I have also put an adaptec 2940 in them and it works as well.
You need to run 3.2 or better to get the drivers for the on board
Adaptec.
The onboard NIC works like any other Intel 10/100 using fxp0, adding a
asecond nic makes the onboard fxp1 (for failover purposes, I assume) 
We like them, and are trying to get Intel to make the reporting of temp
etc and power managment Unix friendly. You can get to the bios at boot
time (remotely via a com port) as it is which is nice.

Pete

Kevin Lynn wrote:
> 
> Has anyone else gotten this server board to work?
> 
> I've got an N440BX and have been considering getting the L440GX+ but
> haven't because I don't know if it works..
> 
> Kevin
> 
> On Mon, 23 Aug 1999, Luiz Morte da Costa Junior wrote:
> 
> >
> > Hi list,
> >
> > About the problem bellow, I bought a 2940 Adaptec Ultra2 Wide SCSI
> > controller, but it didn't work too.
> >
> > I wrote to Justin T. Gibbs and he told me that my problem is not SCSI.
> >
> > Somebody has any idea?
> >
> > []s,
> >
> > Luiz Morte da Costa Junior
> > Analista de RedesE-mail: [EMAIL PROTECTED]
> > Telefone: +55 19 754-2532Fax: +55 19 255-7576
> > CorreioNet - Correio Popular Campinas - SP - Brazil
> >
> >
> > On Sun, 22 Aug 1999, Luiz Morte da Costa Junior wrote:
> >
> > >
> > > Hi all,
> > >
> > > I have a problem with a server running a FreeBSD 3.2.
> > >
> > > My Server has a L440GX+ Serber Board (intel), with network card 10/100,
> > > SCSI AIC 7896 (80MB/s), 2 SCSI disk with 9GB (80MB/s), 2 pentium III
> > > 450Mhz (not overclocked). The NIC and SCSI are onboard.
> > >
> > > I recompiled a kernel to SMP, and it worked. The server is ok, but when I
> > > run a comand with disk access (whith vipw or mysql), the performance of
> > > server goes down. My server stays very very very slow. If I use pine to
> > > read my messages, it doesn't work. When the comand finishes, the server
> > > stays "ok" again.
> > >
> > > I recompiled the kernel with "maxusers 128", but it doesn't work.
> > >
> > > My SCSI cable has a terminator and the scsi setup is ok (I think :) ).
> > >
> > > The dmesg command output is in attchmnt.
> > >
> > > I appreciate any help.
> > >
> > > []s,
> > >
> > > Luiz Morte da Costa Junior
> > > Analista de RedesE-mail: [EMAIL PROTECTED]
> > > Telefone: +55 19 754-2532Fax: +55 19 255-7576
> > > CorreioNet - Correio Popular Campinas - SP - Brazil
> > >
> >
> > []s,
> >
> > Luiz Morte da Costa Junior
> > Analista de RedesE-mail: [EMAIL PROTECTED]
> > Telefone: +55 19 754-2532Fax: +55 19 255-7576
> > CorreioNet - Correio Popular Campinas - SP - Brazil
> >
> >
> >
> > To Unsubscribe: send mail to [EMAIL PROTECTED]
> > with "unsubscribe freebsd-hackers" in the body of the message
> >
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message


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