Re: how to force all packets to be ipv4 not v6

2013-03-31 Thread Mario Lobo
On Sun, 31 Mar 2013 01:20:17 -0400
Aryeh Friedman  wrote:

> I have a host that for ISP reasons must have a ipv6 addr as well as
> the ipv4 but the ISP does not offer external ipv6 routing but all the
> commanes (ssh, ftp, etc.) default to ipv6 and need special options to
> use 4 is there anyway to force them to always use 4?
> ___
> 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"

A kick and dirty way would be to comment the line:

options INET6   # IPv6 communications protocols

from your kernel config and recompile.


-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 
___
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: nvidia-driver-295.49 is highly unstable

2012-05-27 Thread Mario Lobo
On Sunday 27 May 2012 14:05:16 Yuri wrote:
> On 05/27/2012 10:01, David Wolfskill wrote:
> > So, at least in my case, I respectfully disagree with the assessment in
> > the Subject.
> 
> i386 is one difference (I use amd64)
> FX 770M is another difference (I use 9400GT)
> I also have everything updated with the similar portmaster command.
> 
> Yuri

I use 8-STABLE amd64 with 295.40/9800GT and been using it since I can 
remember. Except for some quircks with early VirtualBox versions, I have NEVER 
had a problem with ANY version of the driver I've used.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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: [RFT][patch] Scheduling for HTT and not only

2012-03-03 Thread Mario Lobo
On Saturday 03 March 2012 13:30:50 Alexander Motin wrote:
> On 03.03.2012 17:26, Ivan Klymenko wrote:
> > I have FreeBSD 10.0-CURRENT #0 r232253M
> > Patch in r232454 broken my DRM
> > My system patched http://people.freebsd.org/~kib/drm/all.13.5.patch
> > After build kernel with only r232454 patch Xorg log contains:
> > ...
> > [   504.865] [drm] failed to load kernel module "i915"
> > [   504.865] (EE) intel(0): [drm] Failed to open DRM device for
> > pci::00:02.0: File exists [   504.865] (EE) intel(0): Failed to
> > become DRM master.
> > [   504.865] (**) intel(0): Depth 24, (--) framebuffer bpp 32
> > [   504.865] (==) intel(0): RGB weight 888
> > [   504.865] (==) intel(0): Default visual is TrueColor
> > [   504.865] (**) intel(0): Option "DRI" "True"
> > [   504.865] (**) intel(0): Option "TripleBuffer" "True"
> > [   504.865] (II) intel(0): Integrated Graphics Chipset: Intel(R)
> > Sandybridge Mobile (GT2) [   504.865] (--) intel(0): Chipset:
> > "Sandybridge Mobile (GT2)"
> > and black screen...
> > 
> > do not even know why it happened ... :(
> 
> I've just rebuilt my Core2Duo laptop with r232454 and have no any
> problem with Xorg and (at least old) Intel video driver. Now writing
> this mail from it. Now started rebuilding of my home server. I am not
> sure how this change can cause such specific effect. Are you sure you
> haven't changed anything else unexpectedly?

I'd like to test the patch on my 8.2-STABLE desktop.
Phenom II quad / 16 GRam

I have sched.htt40.patch here. Is this the latest?
Will it apply cleanly on it? 
Any "gotchas"?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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: Phenom II 975 BE shows 0 celsius

2011-08-01 Thread Mario Lobo
On Monday 01 August 2011 15:52:30 Matthew D. Fuller wrote:
> On Sun, Jul 31, 2011 at 09:28:29PM -0300 I heard the voice of
> 
> Mario Lobo, and lo! it spake thus:
> > Unfortunately this Mobo died and only found AM3 boards for which my
> > phenom 955 doesn't fit.
> 
> Not that it helps you now, but the 955 _is_ perfectly compatible with
> AM3.  It's only the initial 920 and 940 that were AM2-only.

I was just following this:

http://support.amd.com/us/kbarticles/Pages/CPU-6-socket-am2-plus-phenom-ii-
compatibility-alert.aspx
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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"


Phenom II 975 BE shows 0 celsius

2011-07-31 Thread Mario Lobo
Hi to all

In my desktop machine, I had an AM2+ ASROCK mobo with Phenom II 955 BE that 
showed each core temperature perfectly under FBSD 8-STABLE, via 
dev.cpu.x.temp. amdtemp.ko loaded.

Unfortunately this Mobo died and only found AM3 boards for which my phenom 955 
doesn't fit. So I got an ASUS M4A88T-V EVO with a Phenom II 975 BE. 

Funny thing. An AM3 phenom II fits on an AM2 board but an AM3 board doesn't 
accept an AM2/AM2+ phenom II :(.

Anyway, now, under the very same system, it shows 0 degrees on dev.cpu.x.temp 
for all cores.

I've been looking through k8temp and amdtemp src code. I am definitely not 
sure of this but I believe something might have happened to those:

From k8temp.h

K10_THERM_REG  0xa4 
K10_THERMTRIP_REG  0xe4
K10_CURTMP(val)(((val) >> 21) & 0xfff)
K10_THERMTRIP(val) ((val >> 1) & 1)

From amdtemp.c

/*
 * Register control (K8 family)
 */
#define AMDTEMP_REG0F   0xe4
#define AMDTEMP_REG_SELSENSOR   0x40
#define AMDTEMP_REG_SELCORE 0x04

/*
 * Register control (K10 & K11) family
 */
#define AMDTEMP_REG 0xa4


Output of k8temp -dn:

CPUID: Vendor: AuthenticAMD, 0x100f43: Model=04 Family=f+1 Stepping=3
Advanced Power Management=0x1f9
   Temperature sensor: Yes
 Frequency ID control: No
   Voltage ID control: No
THERMTRIP support: Yes
   HW Thermal control: Yes
   SW Thermal control: Yes
   100MHz multipliers: Yes
   HW P-State control: Yes
TSC Invariant: Yes
Temp=c0fef
ThermTrip=1fc00c30
0

I keep a small win7 partition to test little things like this and see if the 
same thing happens there, and it doesn't, so I concluded that the sensors are 
there and are working.

One thing is worth noting though. I have used a free gadget that shows 
activity/temp for each core. It worked fine with the previous MB/CPU.That ALSO 
stopped working with this new MB. Like FBSD, it shows 0 degrees for any core 
too, although it correctly displays each core load.

The only windows tool that correctly shows the temperature are the ASUS tools 
that came with the mobo.

Other than that, everything is working fine! The only thing I had to fix was 
the fstab ada location.

I know this is not a big thing but I got accustomed to keeping an eye on those 
temperatures.

I have googled for a few days now searching for Thermal register address or 
offsets for the Phenom II 975 BE, or anything related to this problem and 
found nothing. Every search on AMD site was fruitless. I could not find a 
single bit of tech info on this processor there, or any other tech info for 
that matter.


Would any one have any pointers/clues/suggestions on this?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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: NVIDIA (port) driver fails to create /dev/nvidactl; 8.2Prerelease

2011-01-29 Thread Mario Lobo
On Saturday 29 January 2011 17:40:06 Doug Barton wrote:
> Sorry if I missed it, but I haven't seen an answer to the question of
> whether you've kldload'ed the nvidia module. When you type 'kldstat'
> does the nvidia module show up in the list? If not, type 'kldload
> nvidia' and try again.
> 
> 
> hth,
> 
> Doug

Why don't you try the driver from the nvidia site? It's always the latest 
version, compiles and install perfectly on i386 or amd64.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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: sysrc -- a sysctl(8)-like utility for managing /etc/rc.conf et. al.

2010-10-09 Thread Mario Lobo
Forgive me for this top posting but I don't want to risk ruining the perfect 
flow of Garret's analysis. 

I read through it as if I was in a classroom lecture.

I have a special folder in kmail called "FreeBSD Tops" where I put mail that 
makes me discover something unknown to me about FBSD, and this one is marked 
as important.

Thank you both, Devin and Garret!. 

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winfoes FREE)


On Saturday 09 October 2010 17:25:55 Garrett Cooper wrote:
> On Wed, Oct 6, 2010 at 8:29 PM, Devin Teske  wrote:
> > On Oct 6, 2010, at 4:09 PM, Brandon Gooch wrote:
> >> On Wed, Oct 6, 2010 at 3:45 PM, Devin Teske  wrote:
> >>> Hello fellow freebsd-hackers,
> >>> 
> >>> Long-time hacker, first-time poster.
> >>> 
> >>> I'd like to share a shell script that I wrote for FreeBSD system
> >>> administration.
> >> 
> >> It seems the list ate the attachment :(
> > 
> > Here she is ^_^ Comments welcome.
> 
> Hah. More nuclear reactor than bikeshed :D!
> 
> > #!/bin/sh
> > # -*- tab-width:  4 -*- ;; Emacs
> > # vi: set tabstop=4 :: Vi/ViM
> > 
> > #
> > # Default setting whether to dump a list of internal dependencies upon
> > exit #
> > 
> > : ${SYSRC_SHOW_DEPS:=0}
> > 
> >  GLOBALS
> > 
> > # Global exit status variables
> > 
> > : ${SUCCESS:=0}
> > : ${FAILURE:=1}
> 
> Should this really be set to something other than 0 or 1 by the
> end-user's environment? This would simplify a lot of return/exit
> calls...
> 
> > #
> > # Program name
> > #
> > progname="${0##*/}"
> > 
> > #
> > # Options
> > #
> > SHOW_EQUALS=
> > SHOW_NAME=1
> > 
> > # Reserved for internal use
> > _depend=
> 
> When documenting arguments passed to functions, I usually do something
> like:
> 
> # 1 - a var
> # 2 - another var
> #
> # ... etc
> 
> because it's easier to follow for me at least.
> 
> Various spots in the codebase have differing styles though (and it
> would be better to follow the style in /etc/rc.subr, et all for
> consistency, because this tool is a consumer of those APIs).
> 
> >  FUNCTION
> > 
> > # fprintf $fd $fmt [ $opts ... ]
> > #
> > # Like printf, except allows you to print to a specific file-descriptor.
> > Useful # for printing to stderr (fd=2) or some other known
> > file-descriptor. #
> > 
> > : dependency checks performed after depend-function declaration
> > : function ; fprintf ( ) # $fd $fmt [ $opts ... ]
> 
> Dumb question. Does declaring `: dependency checks performed after
> depend-function declaration' and `: function' buy you anything other
> than readability via comments with syntax checking?
> 
> > {
> >local fd=$1
> >[ $# -gt 1 ] || return ${FAILURE-1}
> 
> While working at IronPort, Doug (my tech lead) has convinced me that
> constructs like:
> 
> if [ $# -le 1 ]
> then
> return ${FAILURE-1}
> fi
> 
> Are a little more consistent and easier to follow than:
> 
> [ $# -gt 1 ] || return ${FAILURE-1}
> 
> Because some folks have a tendency to chain shell expressions, i.e.
> 
> expr1 || expr2 && expr3
> 
> Instead of:
> 
> if expr1 || expr2
> then
> expr3
> fi
> 
> or...
> 
> if ! expr1
> then
> expr2
> fi
> if [ $? -eq 0 ]
> then
> expr3
> fi
> 
> I've caught myself chaining 3 expressions together, and I broke that
> down into a simpler (but more longhand format), but I've caught people
> chaining 4+ expressions together, which just becomes unmanageable to
> follow (and sometimes bugs creep in because of operator ordering and
> expression evaluation and subshells, etc, but that's another topic for
> another time :)..).
> 
> >shift 1
> >printf "$@" >&$fd
> > }
> > 
> > # eprintf $fmt [ $opts ... ]
> > #
> > # Print a message to stderr (fd=2).
> > #
> > 
> > : dependency checks performed after depend-function declaration
> > : function ; eprintf ( ) # $fmt [ $opts ... ]
> > 
> > {
> >fprintf 2 "$@"
> > }
> > 
> > # show_deps
> > #
> > # Print the current list of dependencies.
> > #
> > 
> > : dependency checks performed after dep

ftp-proxy -T tag patch for FBSD

2010-07-13 Thread Mario Lobo
Hello;

First, forgive me if that's not the right list to post this but I picked the 
most akin list to the subject I was subscribed to. After all, ftp-proxy is 
part of the base system now. If any of you is subscribed to a better list for 
this, please forward it to it.

I felt sorry the -T tag option was present in Linux and not on FBSD because I 
got to a situation where it would really be useful for me. So I decided to 
stuff my hands on the grease can.

What this does is to give the option to put a tag (instead of a queue to the 
dynamic rules that ftp-proxy creates on the fly. The option to put a queue is 
nice but it confines the rule to THAT queue only, and you cannot create queues 
with the same name on different interfaces. You could specify 2 interfaces on 
the same altq rule, but then again, both interfaces will be confined to the 
same queue tunings.

The -T "tag" option  however, besides tagging the packets for the rule, takes 
the "quick" keyword out of it, so rule processing can continue, to later find 
a rule that has the keyword "tagged tag" and be sent to any queue you want. A 
really welcomed flexibility.

The application of nat-anchor "ftp-proxy/*" and rdr-anchor "ftp-proxy/*"
are still as per man pages.

Just make sure you put anchor "ftp-proxy/*" right before the first pass rule

rc.conf example ---

ftpproxy_enable="YES"
ftpproxy_flags="-r -v -T ftp_proxy"

pf.conf example ---

  # Ftp (it inserts its rules here, like bellow, taken from 
`pfctl -vv -a ftp-proxy/15780.1 -sr`)

  anchor "ftp-proxy/*"
   
  @0 pass in log inet proto tcp from 172.16.3.145 to 129.128.5.191 port =
  61076 flags S/SA keep state (max 1) tag ftp_proxy rtable 0
  @1 pass out log inet proto tcp from 189.23.180.30 to 129.128.5.191 port =
  61076 flags S/SA keep state (max 1) tag ftp_proxy rtable 0
 
  # first pass rule of pf.conf
  pass in  log quick on $ext_if inet proto icmp from any to ($ext_if) icmp-
  type 8 code 0 keep state queue (icmp)

  -
  then way down there... 
  -

  pass out log quick on $int_if inet proto tcp tagged ftp_proxy keep state
  queue (ether)

  -
  even further down, a different match ... 
  -

  pass out log quick on $ext_if inet proto tcp tagged ftp_proxy 
  keep state queue (ftp)

---

The lines bellow were taken during an ftp session to ftp.openbsd.com from a 
LAN client station.


# Server [20:14:03]
[~]>pfctl -vv -sA
  ftp-proxy
  ftp-proxy/15780.1

# Server [20:15:01]
[~]> pfctl -vv -a ftp-proxy/15780.1 -sr
@0 pass in log inet proto tcp from 172.16.3.145 to 129.128.5.191 port = 61076 
flags S/SA keep state (max 1) tag ftp_proxy rtable 0
  [ Evaluations: 4 Packets: 0 Bytes: 0   States: 0 
]
  [ Inserted: uid 62 pid 15780 ]
@1 pass out log inet proto tcp from 189.12.120.67 to 129.128.5.191 port = 
61076 flags S/SA keep state (max 1) tag ftp_proxy rtable 0
  [ Evaluations: 4 Packets: 0 Bytes: 0   States: 0 
]
  [ Inserted: uid 62 pid 15780 ]

# Server [20:15:11]
[~]>pfctl -vv -sA
  ftp-proxy
  ftp-proxy/15780.1

# Server [20:15:16]
[~]> pfctl -vv -a ftp-proxy/15780.1 -sn
@0 nat inet proto tcp from 172.16.3.145 to 129.128.5.191 port = 61076 rtable 0 
-> 189.12.120.67
  [ Evaluations: 1 Packets: 0 Bytes: 0   States: 0 
]
  [ Inserted: uid 62 pid 15780 ]
@0 rdr inet proto tcp from 172.16.3.145 to 129.128.5.191 port = 51973 rtable 0 
-> 129.128.5.191 port 61076
  [ Evaluations: 6 Packets: 8 Bytes: 1485States: 0 
]
  [ Inserted: uid 62 pid 15780 ]

# Server [20:15:23]
[~]> pfctl -vv -a ftp-proxy/15780.1 -sn
pfctl: DIOCGETRULES: Invalid argument

# Server [20:16:12]
[~]>pfctl -vv -sA
  ftp-proxy


The nat, rdr and pass rules are correctly created and tagged.
Observe the times to see that ftp-proxy removes the rule really fast.

To apply the patch, copy it to 
/usr/src/contrib/pf/ftp-proxy/
then,
cd /usr/src/usr.sbin/ftp-proxy/ftp-proxy

make [clean]
make install

Wisdom demands to test it for while before putting into production, but it has 
been working for me for a couple of weeks.

I hope this is useful, because ftp-proxy is really simple. But a great 
program.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winfoes FREE)
--- ftp-proxy.c.orig	2009-08-03 08:13:06.0 +
+++ ftp-proxy.c	2010-07-13 12:56:07.0 +
@@ -116,7 +116,7 @@
 
 struct sockaddr_storage fixed_server_ss, fixed_proxy_ss;
 char *fixed_server, *fixed_server_port, *fixed_proxy, *listen_ip, *listen_port,
-*qname;
+*qname, *tname;
 int anonymous_onl

Re: Compiling kernel with gcc43 [SOLVED] -ADDENDUM

2010-04-02 Thread Mario Lobo
Well, to tell the truth I wasn't that thrilled with the results. I didn't 

[snip]
--

Compiling vbox/vbox-devel with gcc43

1) /usr/include/cam/cam.h needed #include  for FILE define, 
complained by: 

[snip]

and /etc/src.conf

NO_WERROR=
WERROR=


--

New problems started to come when I tried to extend this to other ports, 

[snip]


You have to:

1) make patch
2) apply the mods
3) make


Best of luck, again

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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: Compiling kernel with gcc43 [SOLVED]

2010-04-02 Thread Mario Lobo
On Thursday 01 April 2010 16:53:36 Pegasus Mc Cleaft wrote:
> On Thursday 01 April 2010 15:27:41 Oliver Fromme wrote:
> > Mario Lobo  wrote:
> >  > [...]
> >  > It's compiling right now.
> >  >
> >  > I'll post my findings and impressions on results and performance right
> >  > after the next reboot.
> >
> > So, how is it going?  Any benchmarks yet?  I'm curious
> > if the new gcc version will really make a significant
> > difference.
> 
>   I would love to see the /etc/make.conf,  /etc/src.conf and
> /etc/libmap.conf files that were used for the build. I have tried compiling
>  in VBox a current kernel and world, but it usually just bombs out for me.
>  I would like to give this a go as well.
> 
> Peg
> 

Well, to tell the truth I wasn't that thrilled with the results. I didn't 
benchmark anything by my impressions were that at least disk access was a bit 
slower not only during booting but it was more noticeable to me particularly  
on a burning DVD session. Of course this is ultra abstract. 

In all previous experiences I had in burning CD/DVD with k3b, I recollect that 
during burning, the software buffer and device buffer gouges were always 100%, 
with the software buffer gouge dropping down occasionally to 89/92%.

After recompiling the kernel with gcc43, the software buffer was always empty 
and the device buffer rarely reached 40/50%. I think (if not mistaken) this 
means that the device is asking "where is my data??" and the OS is not 
providing it fast enough.

I could not get world to build with gcc43 so I gave that up. Then I moved on 
to VirtualBox. I managed to have it compiled and running. After long trial and 
error sessions, I could pin point what was breaking compilation and fixed it. 
Here are the steps:

--

Compiling vbox/vbox-devel with gcc43

1) /usr/include/cam/cam.h needed #include  for FILE define, 
complained by: 

 
work/VirtualBox-3.1.51.r27657_OSE/src/VBox/Main/freebsd/HostHardwareFreeBSD.cpp:47:
 /usr/include/cam/cam.h:246: error: 'FILE' has not been declared

2)/usr/ports/emulators/virtualbox-
ose/work/VirtualBox-3.1.6_OSE/src/VBox/Main/generic/NetIf-generic.cpp 
  needed #include  because of popen() (this step is ONLY for 
virtualbox-ose)

3)/usr/ports/emulators/virtualbox-ose(-
devel)/work/VirtualBox-3.1.6_OSE/src/VBox/Main/freebsd/NetIf-freebsd.cpp 
  needed #include  because of malloc()/free()

4) Config.kmk needed some tweaks:

  a) line 1750 - $(APPEND) '$@' 'VBOX_GCC_mtune-generic ?= $(call 
VBOX_GCC_CHECK_CC,-mtune=amdfam10 -D__FreeBSD_cc_version=0,)' 
 to use instructions closer to Phenom and avoid cc complains.
  b) took out all references to "-fformat-extensions" and "-fno_format-
extensions"
  c) Preceeded all relevant locations of "/usr/lib \" with 
"/usr/local/lib/gcc43 \" so kbuild searched there for libraries first.
(except TEMPLATE_VBOXQT4GUIEXE_LIBPATH !)

  d) You can use the same Config.kmk for building kmods as well

5) took out -fformat-extensions from src/sys/conf/kern.mk

And I left /etc/libmap.conf 

libgcc_s.so.1   gcc43/libgcc_s.so.1
libgomp.so.1gcc43/libgomp.so.1
libobjc.so.3gcc43/libobjc.so.2
libssp.so.0 gcc43/libssp.so.0
libstdc++.so.6  gcc43/libstdc++.so.6

/etc/make.conf 

CC=/usr/local/bin/gcc43
CXX=/usr/local/bin/g++43
CPP=/usr/local/bin/cpp43
CFLAGS+=-mssse3 -D__FreeBSD_cc_version=0
CXXFLAGS+=-D__FreeBSD_cc_version=0
CPUTYPE=amdfam10
#MAKEOPTS+= -j4


and /etc/src.conf

NO_WERROR=
WERROR=


--

New problems started to come when I tried to extend this to other ports, 
breaking a lot of them, to point of making me revert everything back to what 
it was. In fact I am still in this process right now, and reving a lot of 
problems to rebuild kde4.

This is it for now, guys. If you find anything new, please post.

Best of luck,

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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: Compiling kernel with gcc43

2010-03-26 Thread Mario Lobo
On Friday 26 March 2010 13:01:21 Jille Timmermans wrote:
> Op 25-3-2010 18:31, Garrett Cooper schreef:
> > -Wno-error .
> > -Garrett
> 
> I tried building world with it; but it doesn't seem to work :(
> 
> [q...@istud /usr/src]$ CFLAGS="-Wno-error -Garrett" make buildworld
> [snip]
> cc: unrecognized option '-Garrett'
> 
> ;)
> 

That's right. It doesn't. But the kernel does !
I am trying VBox port now. Tweaks all over the place but movin on.
Post results when done.

By the way: WTF is the "-Garrett" option?
If it's not a joke from you, it won't work with anything.

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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: Compiling kernel with gcc43 [SOLVED]

2010-03-25 Thread Mario Lobo
On Thursday 25 March 2010 19:12:09 Edward Tomasz Napierała wrote:
> Wiadomość napisana przez Mario Lobo w dniu 2010-03-25, o godz. 17:24:
> > 2010/3/24 Mario Lobo 
> >
> >> Anyway,my question boils down to: Is there a way to build the kernel
> >> with gcc43, with minimal tweaking? Am i attempting something out of my
> >> league?
> 
> This is what I use to compile kernel on 9.0-CURRENT/amd64:
> 
> CC=/usr/local/bin/gcc44
> CXX=   /usr/local/bin/g++44
> CWARNFLAGS=-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
>  \ -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
>  -Wno-pointer-sign -D__FreeBSD_cc_version=0 \
>-Wno-unused-function -Wno-inline -Wno-format \
>-Wno-uninitialized -Wno-array-bounds -Wno-missing-prototypes
> 
> Note that this is GCC 4.4.4, installed from ports.  Also, this will not
> compile the world - only the kernel.  Also, they were a few fixes to make
> this work; they were not MFC-ed, iirc; removing -Werror altogether should
> work around these problems.
> 
> --
> If you cut off my head, what would I say?  Me and my head, or me and my
>  body?
> 

Adding 

NO_WERROR=
WERROR=

to src.conf did it. It's compiling right now.

I'll post my findings and impressions on results and performance right after 
the next reboot.

Thanks for all the help and info, Guys !!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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: Compiling kernel with gcc43

2010-03-25 Thread Mario Lobo
2010/3/25 Ryan Stone 

> If you just want to try it out you could disable -Werror for your own
> build.  The reason that gcc 4.3 fails where 4.2 works fine is that the
> gcc developers are adding new warnings with every compiler release, so
> until somebody takes the time to fix all of the new warnings you won't
> be able to build the kernel with -Werror.
>

All right !! Thanks for replying !

There are a lot of locations throughout the source code where -Werror is
enabled
How can I disable -Werror globally? via src.conf ? will it do it for
world/kernel?
will this "damage" the resulting kernel/world binaries?

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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: Compiling kernel with gcc43

2010-03-25 Thread Mario Lobo
2010/3/24 Mario Lobo 

> Hi;
>
> I followed the instructions from
> http://www.freebsd.org/doc/en/articles/custom-gcc/article.html
>
> to see if I can achieve some performance gain (8-STABLE r205630 amd64) and
> also get a more modern instruction set for my Phenom II (amdfam10), so I've
> done the following config settings:
>
> make.conf
>
> .if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc43)
> CC=/usr/local/bin/gcc43
> CXX=/usr/local/bin/g++43
> CPP=/usr/local/bin/cpp43
> CFLAGS+=-mssse3
> CPUTYPE=amdfam10
> .endif
>
> libmap.conf
>
> libgcc_s.so.1   gcc43/libgcc_s.so.1
> libgomp.so.1gcc43/libgomp.so.1
> libobjc.so.3gcc43/libobjc.so.2
> libssp.so.0 gcc43/libssp.so.0
> libstdc++.so.6  gcc43/libstdc++.so.6
>
>
> buildworld goes on normally it seems, but when I tried to build the kernel,
> the first stop came from the option used by the kernel build "-fformat-
> extensions", which is not accepted by gcc43, so I took it out of
> /usr/src/sys/conf/kern.mk, the ONLY place I found it.
>
> It seemed to solve the problem until gcc43 stopped because of the "-Werror"
> option, which is all over the place!. Funny that gcc42 (used by default)
> doesn't stop because of this option.
>
> Anyway,my question boils down to: Is there a way to build the kernel with
> gcc43, with minimal tweaking? Am i attempting something out of my league?
>
> Thanks,
> --
> Mario Lobo
>
>
Any suggestions/Comments?

Should I just dump the gcc43 idea and try this with clang/llvm?

I've seen http://wiki.freebsd.org/BuildingFreeBSDWithClang.

Anything else to watch out for when building world/kernel/ports?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio YET!!] (99,7% winfoes FREE)
___
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: IDE ultraDMA problem (hackers WAS via IDE controller problem) - SOLVED !!

2007-08-15 Thread Mario Lobo
On Wednesday 15 August 2007 16:07, Mario Lobo wrote:
> Besides, the VIA8237A SATA150 controllers ids itself as 0x5337, which is
> not even in the data base at http://pci-ids.ucw.cz/iii/?i=1106
>
> So I added a new id to ata-pci.h:
> #define ATA_VIA8237AS  0x53371106
>
> and added this line to ata-chipset.c:
> { ATA_VIA8237AS,  0x00, 7,  0x00,ATA_SA150, "8237A" },
>
> now, all my controllers get properly identified and work !.
>
> my mobo is an ASUS P5VD2-X.
>
> DEFINETLY ( at least for the mobo I have at home), the ids ARE:
>
> 5337 is for VT8237A SATA150
> 0571 is for VT8237A Bus Master IDE
> 016a is for jmicron SATA300
>
> And these ids are confirmed by the XP drivers downloade from ASUS!
>
> Either ASUS played around with ids in this mobo or the database is screwed
> up.

I really ment VIA on the last statement. sorry.
-- 
**
   //| //| Mario Lobo
  // |// | http://www.ipad.com.br
 //  //  |||  FreeBSD since 2.2.8 - 100% Rwindows-free
**


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


Re: IDE ultraDMA problem (hackers WAS via IDE controller problem) - SOLVED !!

2007-08-15 Thread Mario Lobo
On Tuesday 14 August 2007 19:33, John Baldwin wrote:
> On Saturday 11 August 2007 12:11:21 pm Mario Lobo wrote:
> > after a long,long search, I found that chip id 0x53371106 belongs to
> > SATA150 controller, not PATA !! Then I enabled all mass storage
> > controllers on the board ( although no SATA drives present ), then two
> > more ids showed up:
> >
> > chip=0x016a10de  (jmicron SATA300)
> > chip=0x05711106 <- thats it !!
> >
> > Then I went iinto   /usr/src/sys/dev/ata/ata-pci.h  and changed the line
> >
> > from
> > #define ATA_VIA8237A0x05911106
> > to
> > #define ATA_VIA8237A0x05711106
> >
> > recompiled, install and BANG!
>
> 6.x already has support for this ID as:
>
> #define ATA_VIA82C571   0x05711106
>
> so you shouldn't have needed to change the code at all.

sounds right but it isn't.

Look at e the code from /usr/src/sys/dev/ata/ata-chpset.c

--
if (pci_get_devid(dev) == ATA_VIA82C571) {
if (!(idx = ata_find_chip(dev, ids, -99))) 
return ENXIO;
}
else {
if (!(idx = ata_match_chip(dev, new_ids))) 
return ENXIO;
}
--

new_ids doesn't have an id for ATA_VIA8237A (ata-pci.h defines ATA_VIA8237A as 
0x0591, which is not what my mobo gives out !) .

Besides, the VIA8237A SATA150 controllers ids itself as 0x5337, which is not 
even in the data base at http://pci-ids.ucw.cz/iii/?i=1106

So I added a new id to ata-pci.h:
#define ATA_VIA8237AS  0x53371106

and added this line to ata-chipset.c:
{ ATA_VIA8237AS,  0x00, 7,  0x00,ATA_SA150, "8237A" },

now, all my controllers get properly identified and work !.

my mobo is an ASUS P5VD2-X.

DEFINETLY ( at least for the mobo I have at home), the ids ARE:

5337 is for VT8237A SATA150
0571 is for VT8237A Bus Master IDE
016a is for jmicron SATA300

And these ids are confirmed by the XP drivers downloade from ASUS!

Either ASUS played around with ids in this mobo or the database is screwed up.

-- 
**
   //| //| Mario Lobo
  // |// | http://www.ipad.com.br
 //  //  |||  FreeBSD since 2.2.8 - 100% Rwindows-free
**


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


IDE ultraDMA problem (hackers WAS via IDE controller problem) - SOLVED !!

2007-08-11 Thread Mario Lobo
*** Re-cap of problem:

FreeBSD 6.2-STABLE was not recognizing the VT8237A south bridge ultraDMA ata 
controller on a  P5VD2-X ASUS mobo.



FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 4
ioapic0  irqs 0-23 on motherboard
ioapic1  irqs 24-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0:  on motherboard
acpi_hpet0:  iomem 0xfe80-0xfe8003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 2000
acpi0: Power Button (fixed)
acpi0: reservation of fe80, 100 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0:  on acpi0
cpu1:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pcib2:  irq 27 at device 2.0 on pci0
pci2:  on pcib2
nvidia0:  mem 
0xdc00-0xdcff,0xc000-0xcfff,0xdd00-0xddff irq 24 at 
device 0.0 on pci2
nvidia0: [GIANT-LOCKED]
atapci0:  port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.0 on pci0
ata0:  on atapci0
ata1:  on atapci0



*** end of recap

pciconf -lv gave me this clue:

[EMAIL PROTECTED]:15:0: class=0x01018a card=0x81cf1043 chip=0x53371106 rev=0x07 
hdr=0x00
vendor = 'VIA Technologies Inc'
class  = mass storage
subclass   = ATA

after a long,long search, I found that chip id 0x53371106 belongs to SATA150 
controller, not PATA !! Then I enabled all mass storage controllers on the 
board ( although no SATA drives present ), then two more ids showed up:

chip=0x016a10de  (jmicron SATA300)
chip=0x05711106 <- thats it !! 

Then I went iinto   /usr/src/sys/dev/ata/ata-pci.h  and changed the line

from
#define ATA_VIA8237A0x05911106
to
#define ATA_VIA8237A0x05711106

recompiled, install and BANG!


nvidia0:  mem 
0xdc00-0xdcff,0xc000-0xcfff,0xdd00-0xddff irq 24 at 
device 0.0 on pci2
nvidia0: [GIANT-LOCKED]
pcib3:  irq 31 at device 3.0 on pci0
pci3:  on pcib3
atapci0:  port 
0xcc00-0xcc07,0xc800-0xc803,0xc400-0xc407,0xc000-0xc003,0xbc00-0xbc0f mem 
0xdfefe000-0xdfef irq 28 at device 0.0 on pci3
atapci0: AHCI Version 01.00 controller with 2 ports detected
ata2:  on atapci0
ata3:  on atapci0
ata4:  on atapci0
atapci1:  port 
0xfc00-0xfc07,0xf800-0xf803,0xf400-0xf407,0xf000-0xf003,0xec00-0xec0f,0xe800-0xe8ff
 
irq 21 at device 15.0 on pci0
ata5:  on atapci1
ata6:  on atapci1
atapci2:  port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xe400-0xe40f at device 15.1 on pci0
ata0:  on atapci2
ata1:  on atapci2

ad0: 114498MB  at ata0-master UDMA100
ad1: 117246MB  at ata0-slave UDMA133
ad2: 76351MB  at ata1-master UDMA133
acd0: DVDR  at ata1-slave UDMA66


Normal life returned :-D

I dont know if this fix applies to ALL mobos that use VIA chipset (VT8237A) 
but it shure did to my ASUS mobo

Thanks Wojciech Puchar and Sten Daniel Soersdal for your kind attention.

-- 
******
   //| //| Mario Lobo
  // |// | http://www.ipad.com.br
 //  //  |||  FreeBSD since 2.2.8 - 100% Rwindows-free
**


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


via IDE controller problem

2007-08-10 Thread Mario Lobo
I don't know if this is the right place to ask.

I searched and googled a lot but could not find anything (execpt people with 
the same problem). FreeBSD 6.2 (cvsuped to RELENG_6) is not recognizing the 
pata controller on the VIA VT8237A south bridge on my ASUS P5VD2-X mobo, 
dispite of the fact that I saw its id inside 
src/sys/dev/ata/ata-chipset.c,v 1.126.2.19 2007/07/04 12:29:15

I have included the IDE.txt file with all the info I could get from my 
machine. The pata (and sata) controller ends up identified as GENERIC.

I have only IDE drives and can get the system usable by setting

hw.ata.atapi_dma: 0
hw.ata.ata_dma: 0

Although dma is enabled in the BIOS, the drives fall back to PIO4. If set the 
above to 1, FreeBSD reports them (all) at ultraDMA 33 (which, in fact worked 
as ultraDMA 100 on my previous board). The system boots ok but after 7 or 10 
minutes (even if doing nothing), I start geting messages from 
g_vfs_done(); WRITE DMAERROR that can come from any of the drives until the 
system becomes unstable and ends up rebooting itself.

Everything else works perfectly but the PIO4 mode hogs everything down !!

Any suggestions? info? direction?

Thanks,
-- 
**
   //| //| Mario Lobo
  // |// | http://www.ipad.com.br
 //  //  |||  FreeBSD since 2.2.8 - 100% Rwindows-free
**


# lobo/root [18:08:03]
[~]>dmesg 
Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-STABLE #21: Sat Aug  4 14:48:20 BRT 2007
[EMAIL PROTECTED]:/usr/src/sys/i386/compile/LOBO
ACPI APIC Table: 
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) D CPU 3.20GHz (3199.66-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf64  Stepping = 4
  
Features=0xbfebfbff
  Features2=0xe4bd,>
  AMD Features=0x2010
  AMD Features2=0x1
  Cores per package: 2
real memory  = 1072562176 (1022 MB)
avail memory = 1032024064 (984 MB)
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 4
ioapic0  irqs 0-23 on motherboard
ioapic1  irqs 24-47 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0:  on motherboard
acpi_hpet0:  iomem 0xfe80-0xfe8003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 2000
acpi0: Power Button (fixed)
acpi0: reservation of fe80, 100 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0:  on acpi0
cpu1:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pcib2:  irq 27 at device 2.0 on pci0
pci2:  on pcib2
nvidia0:  mem 
0xdc00-0xdcff,0xc000-0xcfff,0xdd00-0xddff irq 24 at 
device 0.0 on pci2
nvidia0: [GIANT-LOCKED]
atapci0:  port 
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.0 on pci0
ata0:  on atapci0
ata1:  on atapci0
uhci0:  port 0xf800-0xf81f at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0xf400-0xf41f at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2:  port 0xf000-0xf01f at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2:  on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3:  port 0xec00-0xec1f at device 16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3:  on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0:  mem 0xd000-0xd0ff at device 16.4 
on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4:  on ehci0
usb4: USB revision 2.0
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
isab0:  at device 17.0 on pci0
isa0:  on isab0
pcib3:  at device 19.1 on pci0
pci4:  on pcib3
pci4:  at device 3.0 (no driver attached)
pcm0:  port 0xdc00-0xdcff irq 19 at device 5.0 on pci4
re0:  port 0xd800-0xd8ff 
mem 0xdfeff000-0xdfeff0ff irq 20 at device 7.0 on pci4
miibus0:  on re0
rgephy0:  on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
re0: Ethernet address: 00:1a:92:91:29:d4
re0: [FAS

Re: Java

2006-11-02 Thread Mario Lobo
On Thursday 02 November 2006 18:51, Mike Meyer wrote:

> Read http://catb.org/esr/faqs/smart-questions.html, then try asking
> your question again with that in mind.
>
>   http://www.mallavoodoo.com.br
99% rwindows FREE (since 2.2.8. FBSD not for Pro-Audio YET!!!)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A handy utility (at least for me)

2006-08-26 Thread Mario Lobo
> I find that the following command works just fine for me:
>
> > find /usr/ports -type d -name work -prune -print -delete
>
> And EVEN cooler is having a
>
> WRKDIRPREFIX=           /var/ports
>
> in your /etc/make.conf, that way an "rm -rf /var/ports/*" cleans without
> unnecessary directory recursion.

Nothing like being a part of a list o people with true knowledge of OS tools!.

I at least  take comfort in the fact that I exercised my tiny programing 
skills, and that I learned more options from these guys.

big thanks.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
99% rwindows FREE (FBSD not for Pro-Audio YET!!!)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A handy utility (at least for me)

2006-08-26 Thread Mario Lobo
On Saturday 26 August 2006 20:01, you wrote:
> Actually, it is a big deal for some people.  Why the GPL?
> You are posting to a FreeBSD list.

You're right, but I build it in kdevelop and it put it there so I felt I 
should leave it there.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
99% rwindows FREE (FBSD not for Pro-Audio YET!!!)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


A handy utility (at least for me)

2006-08-26 Thread Mario Lobo
Hi;

My  /usr/ports directory was occuping 24 gigs, of which 20 was just from the 
'work' directories !

Removing them one by one was a pain so I wrote this little utility to wipe 
them off.

If you find it useful, pass it on. Its not a big deal but thanks for keeping 
the credits on it.

Last but not least:

"if any 'member' of your hard disk is caught and killed, the programer will 
deny any knowledge of your actions. This program will NOT self-destruct in 5 
seconds."


CODE SNIP ---

/***
 *   Copyright (C) 2006 by Mario Lobo   
 *   [EMAIL PROTECTED]   
 * 
 *   This program is free software; you can redistribute it and/or modify  
 *   it under the terms of the GNU General Public License as published by  
 *   the Free Software Foundation; either version 2 of the License, or 
 *   (at your option) any later version.   
 * 
 *   This program is distributed in the hope that it will be useful,   
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 *   GNU General Public License for more details.  
 * 
 *   You should have received a copy of the GNU General Public License 
 *   along with this program; if not, write to the 
 *   Free Software Foundation, Inc.,   
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. 
 *
 *  To compile:   gcc -O2 -o dwork dwork.c
 *
 ***/

#include 
#include 
#include 

char linha[2048],comd[2048];
void clean_it(char *arg);

int main(int argc, char **argv) {

int  k = 1;
char *maindir = "/bin/ls -R /usr/ports/", *pad = " | grep /work:" ;
char arq1[100];


printf("\n\n");
printf("DWORK - /usr/ports/nnn/nnn/'work' directory cleaner. (Mario 
Lobo - 
2006)\n\n");
printf("ex.: dwork (no arguments)  -> Deletes 'work' directories 
from /usr/ports\n");
printf(" dwork multimedia  -> Deletes 'work' directories 
from /usr/ports/multimedia\n");
printf(" dwork multimedia audio-> Deletes 'work' directories 
from /usr/ports/multimedia AND /usr/ports/audio\n");

printf("\n\n");
printf("** Working. Please wait");

if (argc > 1) {

while(k < argc) {

strcpy(comd,maindir);
strcat(comd,argv[k]);
strcat(comd,pad);

strcpy(arq1,"/usr/ports/");
strcat(arq1,argv[k]);

clean_it(arq1);
k++;

}

} else {

strcpy(comd,maindir);
strcat(comd,pad);
clean_it("/usr/ports");

}
printf("\n\n** DONE.\n\n");
}

void clean_it(char *arg) {

char *tmp;
int  c = 0;
FILE *fp;

fp = popen(comd,"r");

printf("\n");

while(!feof(fp)) {

memset(linha,0,1024);
fgets(linha,1024,fp);

if (strlen(linha) < 15) continue;

c = 1;
tmp = strchr(linha,'\n');
*tmp = '\0';
tmp = strchr(linha,':');
*tmp = '\0';

printf("\n++ Removing %s", linha);

strcpy(comd,"/bin/rm -rf ");
    strcat(comd,linha);
system(comd);
}
pclose(fp);

if (!c) printf("\n-- NO 'work' directories in %s.",arg);

}

CODE ENDS --

Best wishes,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
99% rwindows FREE (FBSD not for Pro-Audio YET!!!)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


getting interface MAC addr from C

2006-08-04 Thread Mario Lobo
Hi;

Would anyone have a tip on how to get the MAC from a C program?

I tried:

struct ifreq ifreq;
unsigned char *hw;

strcpy(ifreq.ifr_name, "rl0");
ioctl(fd, SIOCGIFMAC, &ifreq);
hw = ifreq.ifr_ifru.ifru_data; 

but i don't know if this is right or, if it is, where to get the MAC from the 
structure. I doesn't issue any error compiling or running though.

In linux i used:

struct ifreq ifreq;
unsigned char *hw;

strcpy(ifreq.ifr_name, "rl0");
ioctl(fd, SIOCGIFHWADDR, &ifreq);
hw = ifreq.ifr_hwaddr.sa_data;

Thanks,

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


Re: copy directory structure

2005-12-21 Thread Mario Lobo
use this:

tar -vpcf - -C source-dir . | tar xpf - -C destination-dir

destination-dir must exist. 
This will copy everything inside source-dir to destination-dir.

-- 
   //|  //||
  // | // ||
-//--//--|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.digiart.art.br/MarioLobo/
http://www.mallavoodoo.com.br

> Ashok Shrestha wrote:
> > Do you know how to copy just a directory structure (not the files inside 
> > it)?
> 
> This is better suited for freebsd-questions@, but I'll give you a hint, the 
> answer should probably involve find. :)
> 
> Good luck,
> 
> Doug
> 
> -- 
> 
>  This .signature sanitized for your protection
> 
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> 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]"


[OFF TOPIC] Please, see attached TXT file

2005-12-15 Thread Mario Lobo
Please, forgive me for posting this here but I am trying to shoot on every 
direction to see if
someone can give me any clues or directions on what´s going on here

I am a true FreeBSDer but this is a system that was dumped right on my lap,
with this problem to be solved.

Again, sorry for this inconvinience and thanks for reading.
--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any other MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

    File information ---
 File:  Problem.txt
 Date:  15 Dec 2005, 16:56
 Size:  5077 bytes.
 Type:  Text


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

Re: Forcing a packet through an interface (OT?) (RESOLVED)

2005-07-12 Thread Mario Lobo
Thanks to all that helped !!
-- 
   //|  //||
  // | // ||
-//--//--|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://mariolobo.70d.com
http://www.mallavoodoo.com.br
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Forcing a packet through an interface (OT?)

2005-07-12 Thread Mario Lobo
That sounds close to what I need !!

> > 1) rl0 ---> router --> antenna -->  ISPx --> 
> > internet

So would it be something like:
route add -host ${ip.of.public.host} netmask 255.255.255.255 gateway 
${ip.of.rl0}

is that correct?

In this case that host will be "sacrificed", if rl0 is down.

Do you have any suggestions on time or whois servers? Don't worry
because the pings I send are standard 56 bytes long.

Thanks John !

P.S. - I'm replying to your post from my home e-mail. I made the post from my 
work e-mail.
--
   //|  //||
  // | // ||
-//--//--|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://mariolobo.70d.com
http://www.mallavoodoo.com.br


> Mario,
>
> I think the only way to do what you want is to find two hosts on the
> internet that don't conflict with what you do on a day to day basis. Then
> add custom routes for those two specific hosts, and with those routes, you
> force traffic through each NIC.
>
> A perfect example of two public servers would be time or whois servers.
> Just be nice and dont ping too much (i.e., only send two "small" pings
> every 2 minutes or something).
>
> -john
>
> On Tue, 12 Jul 2005, Mario Lobo wrote:
>
> > Yeah Stefan. They do take the default route. That is what I am already 
> > doing.
> >
> > I even wrote a little prog using a variation of ping to do just that.
> >
> > The problem lies with the fact that, there is a router between my rl0 and 
> > the internet.
> >

> >
> > So the fact that i can ping the hop next to rl0 doesn´t mean the link is up 
> > :(.
> >
> > That is why I NEED to ping something on the internet.
> >
> > Thanks,
> > --
> >//|  //||
> >   // | // ||
> > -//--//---|| ARIO LOBO
> > //  //||
> > -
> > [EMAIL PROTECTED]
> > http://www.ipad.com.br
> >
> >
> > On 12 Jul 2005 at 15:48, [EMAIL PROTECTED] wrote:
> >
> > > In case you got a static IP on rl0 from ISP x (and rl0 is up),
> > >
> > >   ping -I  www.google.com
> > >
> > > might help.
> > >
> > > Just a guess though. Packets might still take the default route, even 
> > > with -I.
> > >
> > > Good luck,
> > > --
> > > stefan
> > > http://stsp.in-berlin.de PGP Key: 
> > > 0xF59D25F0
> > > ___
> > > freebsd-hackers@freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > > 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]"
> >
> >
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> 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: Forcing a packet through an interface (OT?)

2005-07-12 Thread Mario Lobo
Yeah Stefan. They do take the default route. That is what I am already doing.

I even wrote a little prog using a variation of ping to do just that.

The problem lies with the fact that, there is a router between my rl0 and the 
internet.

1) rl0 ---> router --> antenna -->  ISPx --> internet

So the fact that i can ping the hop next to rl0 doesn´t mean the link is up :(.

That is why I NEED to ping something on the internet.

Thanks,
--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br


On 12 Jul 2005 at 15:48, [EMAIL PROTECTED] wrote:

> In case you got a static IP on rl0 from ISP x (and rl0 is up),
>
>   ping -I  www.google.com
>
> might help.
>
> Just a guess though. Packets might still take the default route, even with -I.
>
> Good luck,
> --
> stefan
> http://stsp.in-berlin.de PGP Key: 0xF59D25F0
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> 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: Forcing a packet through an interface (OT?)

2005-07-12 Thread Mario Lobo
First, thanks to all for the suggestions.

Now, using the same scenario,

> > 1) rl0 (real.ip.no.1) ---> ISP x
> >
> > 2) rl1 (real.ip.no.2) ---> ISP y

Suppose 1) is down and I´m using 2). If I "ping www.google.com",
it will go out through 2). What I really need to do is to issue
the same "ping www.google.com" but make go out through 1) !!

Of course I could switch the default route to 1), test, then switch it back to 
2),
but I can´t do it this way because internet traffic should remain undisturbed.

That is why the "Forcing a packet..." subject.

thanks
--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Forcing a packet through an interface (OT?)

2005-07-11 Thread Mario Lobo
Forgive me if this is off-topic.

How could I force a packet to go out through an interface,
despite the default route?

Suppose I have two interfaces connected to the internet:

1) rl0 (real.ip.no.1) ---> ISP x

2) rl1 (real.ip.no.2) ---> ISP y

ISP y is just a backup link. ISP x is the working link.
Don´t want to load-balance them.  Use 2) ONLY if 1) is out.

Suppose 1) is down. I switch to 2). But I have to keep testing 1)
to see when it comes back up. How could I force a packet (ping maybe?)
to www.whatever.com through 1), despite the default route being 2) ?

I am aready binding the ping packet to the IP I want but that´s not enough.

any suggestions?

thanks,
--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: netstat odd behavior

2005-01-07 Thread mario . lobo
That´s it !!

I´ve been having trouble with a sk0 gigabit ethernet and updated the kernel to 
5_CURRENT
to update it with jumbo frame support, But userland was updated to RELENG_5_3 
only !!

I knew about that but the system ran smooth after compiling the new kernel,
I did not think it would make a difference.

My mistake. Thanks for pointing it out, Giorgos.

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br


On 7 Jan 2005 at 21:26, Giorgos Keramidas wrote:

> Are you sure you don't have a kernel and userland that are out of
> sync?  You _did_ update both as the instructions in src/UPDATING
> suggest, right?
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> 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: netstat odd behavior

2005-01-07 Thread mario . lobo
Tried that before posting. this is what I get

Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address  Foreign Address(state)
udp4   0  0  *.514  *.*


On 7 Jan 2005 at 10:56, Jose Hidalgo Herrera wrote:

>
> What about
>  netstat -anf inet
>
>
> El vie, 07-01-2005 a las 09:06 -0300, [EMAIL PROTECTED] escribió:
>
> Hello;
>
> On all installations of FreeBSD I´ve ever done in the past,
>
> netstat -an
>
> displays LISTENing servers and any tcp connection in any state.
>
> On the 5.3 I have installed here ( updated to RELENG_5_3 + 
> build/installworld ), this command only
> shows only this;
>
> 
> Active Internet connections (including servers)
> Proto Recv-Q Send-Q  Local Address  Foreign Address(state)
> udp4   0  0  *.514  *.*
> Active UNIX domain sockets
> Address  Type   Recv-Q Send-QInode Conn Refs  Nextref Addr
> c38d01a4 stream  0  0 c3de8738000 
> /db/mysql/mysql.sock
> c38d1000 stream  0  0 c3883c60000 
> /var/run/devd.pipe
> c38d0ec4 dgram   0  0 c3883210000 
> /var/run/log
> 
>
> I have ssh, sendmail, ftpd and mysql daemons running, LISTENing and 
> WORKING.
>
> Would anybody know why they are not showing on the output of netstat?
>
> Thanks,
>
>

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


netstat odd behavior

2005-01-07 Thread mario . lobo
Hello;

On all installations of FreeBSD I´ve ever done in the past,

netstat -an

displays LISTENing servers and any tcp connection in any state.

On the 5.3 I have installed here ( updated to RELENG_5_3 + build/installworld 
), this command only
shows only this;


Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address  Foreign Address(state)
udp4   0  0  *.514  *.*
Active UNIX domain sockets
Address  Type   Recv-Q Send-QInode Conn Refs  Nextref Addr
c38d01a4 stream  0  0 c3de8738000 
/db/mysql/mysql.sock
c38d1000 stream  0  0 c3883c60000 
/var/run/devd.pipe
c38d0ec4 dgram   0  0 c3883210000 /var/run/log


I have ssh, sendmail, ftpd and mysql daemons running, LISTENing and WORKING.

Would anybody know why they are not showing on the output of netstat?

Thanks,

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: sk0: discard oversize frame (ether type ....) [SOLVED]

2005-01-07 Thread mario . lobo
The upgrade to 5-CURRENT did it.

sk0 now works fine !

On 5 Jan 2005 at 11:14, "Bjoern A. Zeeb"  Doing it right now!!
> 
> Thanks,
> 
> -- 
>//|  //||
>   // | // ||
> -//--//---|| ARIO LOBO
> //  //||
> -
> [EMAIL PROTECTED]
> http://www.ipad.com.br
> 
> On 5 Jan 2005 at 12:58, Bjoern A. Zeeb wrote:
> 
> > please update to RELENG_5; it's fixed there already:)
> > 
> > -- 
> > Greetings
> > Bjoern A. Zeeb  bzeeb at Zabbadoz dot NeT
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: sk0: discard oversize frame (ether type ....)

2005-01-05 Thread mario . lobo
Doing it right now!!

Thanks,

-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

On 5 Jan 2005 at 12:58, Bjoern A. Zeeb wrote:

> please update to RELENG_5; it's fixed there already:)
> 
> -- 
> Greetings
> Bjoern A. Zeebbzeeb at Zabbadoz dot NeT
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> 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]"


sk0: discard oversize frame (ether type ....)

2005-01-05 Thread mario . lobo
Hi everyone;

Using freeBsd 5.3.

Trying to get the gigabit sk driver to work but even if I force it to 100baseTX 
full-duplex I still
get when doing an ftp session:

sk0: discard oversize frame (ether type )
sk0: discard frame w/o leading ethernet header ( len 0 pkt len 0)

The transfer finishes ok though.
I have two machines conected via crossover cat 5 RJ-45. Besides the above 
errors, I get a 3.5 MB/s
tranfer rate, which is way bellow the 10 MB/s I get when doing the same thing 
with 2 via-rhine
boards.

I found this patch on google, but it´s a bit outside of my programming skills:


RCS file: /home/ncvs/src/sys/pci/if_sk.c,v
retrieving revision 1.86
diff -u -r1.86 if_sk.c
--- if_sk.c20 Aug 2004 06:22:04 -1.86
+++ if_sk.c1 Nov 2004 00:54:20 -
@@ -1816,11 +1816,13 @@
 }

 /* Transmit */
-sc_if->sk_cdata.sk_tx_prod = idx;
-CSR_WRITE_4(sc, sc_if->sk_tx_bmu, SK_TXBMU_TX_START);
+if (idx != sc_if->sk_cdata.sk_tx_prod) {
+sc_if->sk_cdata.sk_tx_prod = idx;
+CSR_WRITE_4(sc, sc_if->sk_tx_bmu, SK_TXBMU_TX_START);

-/* Set a timeout in case the chip goes out to lunch. */
-ifp->if_timer = 5;
+/* Set a timeout in case the chip goes out to lunch. */
+ifp->if_timer = 5;
+}
 SK_IF_UNLOCK(sc_if);

 return;
@@ -1960,13 +1962,15 @@
 }
 sc_if->sk_cdata.sk_tx_cnt--;
 SK_INC(idx, SK_TX_RING_CNT);
-ifp->if_timer = 0;
 }

-sc_if->sk_cdata.sk_tx_cons = idx;
-
-if (cur_tx != NULL)
+if (sc_if->sk_cdata.sk_tx_cnt == 0) {
+ifp->if_timer = 0;
 ifp->if_flags &= ~IFF_OACTIVE;
+} else /* nudge chip to keep tx ring moving */
+CSR_WRITE_4(sc, sc_if->sk_tx_bmu, SK_TXBMU_TX_START);
+
+sc_if->sk_cdata.sk_tx_cons = idx;

 return;
 }


The person who found it said that he grabbed from netbsd.

Maybe one of you guys can shed some light on this for me.

Thanks,
--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: Support for Adaptec Ultra 320 (29320)

2004-12-30 Thread mario . lobo
Thanks for the quick reply !

We just bought 4 Pentiums HT servers and the person that bought them assumed 
that because windows 
Xp has no drivers for it, no-os-else does ! what a bummer !

Worst of all was me, that fell for it, and that have been using Free since 
2.2.8, and should have 
looked into the Docs before posting here !

Sorry for that and thanks for not flaming me !

-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br



On 30 Dec 2004 at 14:58, Peter Pentchev wrote:

> On Thu, Dec 30, 2004 at 09:53:49AM -0300, [EMAIL PROTECTED] wrote:
> > Hi everyone !
> > 
> > I hope all had a nice Xmas and I wish a happy new year to you all !!
> > 
> > I?m not sure I saw this issue here before but is there support for the
> > Adaptec Ultra 320 (29320) scsi controller on FreeBSD 5.3 ?
> > 
> > I know it is a new controller.
> 
> According to the CVS history of the src/sys/dev/aic7xxx/ahd_pci.c file,
> the 'ahd' driver (which supports Adaptec Ultra 320) was added to FreeBSD
> about two and a half years ago :)
> 
> http://cvsweb.FreeBSD.org/src/sys/dev/aic7xxx/ahd_pci.c
> 
> G'luck,
> Peter
> 
> -- 
> Peter Pentchev[EMAIL PROTECTED][EMAIL PROTECTED][EMAIL 
> PROTECTED]
> PGP key:  http://people.FreeBSD.org/~roam/roam.key.asc
> Key fingerprint   FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
> This sentence is false.
> 


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


Support for Adaptec Ultra 320 (29320)

2004-12-30 Thread mario . lobo
Hi everyone !

I hope all had a nice Xmas and I wish a happy new year to you all !!

I´m not sure I saw this issue here before but is there support for the Adaptec 
Ultra 320 (29320)
scsi controller on FreeBSD 5.3 ?

I know it is a new controller.

Thanks,

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


MYSQL connection problem (SOLVED) - Thanks to all that replied

2004-12-01 Thread mario . lobo
Thanks to everyone that replied and tried.

My best regards to you all !!

-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


MYSQL connection problem (SOLVED) - Thanks to all that replied

2004-12-01 Thread mario . lobo
Thanks to everyone that replied and tried.

My best regards to you all !!

-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: MYSQL connection problem (SOLVED)

2004-12-01 Thread mario . lobo
YSS !!! IT WORKED !!

Thanks a million Daniel.

What exactly does with-liwrap do?

-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br


On 1 Dec 2004 at 12:54, Daniel Bye wrote:

> 
> I had similar problems recently.  Edit the port's Makefile, removing the
> line:
> 
> --with-libwrap \
> 
> and rebuild the port.
> 
> This worked for me - but there is probably a better way to deal with it.
> 
> Dan
> 
> -- 
> Daniel Bye
> 
> PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
> PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
>  _
>   ASCII ribbon campaign ( )
>  - against HTML, vCards and  X
> - proprietary attachments in e-mail / \
> 


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


Re: MYSQL connection problem

2004-12-01 Thread mario . lobo
YSS !!! IT WORKED !!

Thanks a million Daniel.

What exactly does with-liwrap do?

-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br


On 1 Dec 2004 at 12:54, Daniel Bye wrote:

> 
> I had similar problems recently.  Edit the port's Makefile, removing the
> line:
> 
> --with-libwrap \
> 
> and rebuild the port.
> 
> This worked for me - but there is probably a better way to deal with it.
> 
> Dan
> 
> -- 
> Daniel Bye
> 
> PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
> PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
>  _
>   ASCII ribbon campaign ( )
>  - against HTML, vCards and  X
> - proprietary attachments in e-mail / \
> 


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


MYSQL connection problem (added info)

2004-12-01 Thread mario . lobo
Adding the tcpdump output after changing mysqld to port 5004 (just a try :(( ) 
and issuing:

[~]>mysql --port=5004 --host=127.0.0.1 --user=xxx database -p


[~]>tcpdump -vv -i lo0 port 5004
tcpdump: listening on lo0, link-type NULL (BSD loopback), capture size 96 bytes

08:57:04.755597 IP (tos 0x0, ttl  64, id 5384, offset 0, flags [DF], length: 
64) localhost.58972 >
localhost.5004: S [tcp sum ok] 1832068379:1832068379(0) win 65535 

08:57:04.755654 IP (tos 0x0, ttl  64, id 5385, offset 0, flags [DF], length: 
64) localhost.5004 >
localhost.58972: S [tcp sum ok] 87927240:87927240(0) ack 1832068380 win 65535 


08:57:04.755685 IP (tos 0x0, ttl  64, id 5386, offset 0, flags [DF], length: 
52) localhost.58972 >
localhost.5004: . [tcp sum ok] 1:1(0) ack 1 win 35840 

08:57:04.756399 IP (tos 0x0, ttl  64, id 5387, offset 0, flags [DF], length: 
52) localhost.5004 >
localhost.58972: F [tcp sum ok] 1:1(0) ack 1 win 35840 

08:57:04.760855 IP (tos 0x8, ttl  64, id 5388, offset 0, flags [DF], length: 
52) localhost.58972 >
localhost.5004: . [tcp sum ok] 1:1(0) ack 2 win 35840 

08:57:04.761035 IP (tos 0x8, ttl  64, id 5389, offset 0, flags [DF], length: 
52) localhost.58972 >
localhost.5004: F [tcp sum ok] 1:1(0) ack 2 win 35840 

08:57:04.761067 IP (tos 0x0, ttl  64, id 5390, offset 0, flags [DF], length: 
52) localhost.5004 >
localhost.58972: . [tcp sum ok] 2:2(0) ack 2 win 35839 

7 packets captured
7 packets received by filter
0 packets dropped by kernel


I hope this helps,

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br



-- First post /*

===

I have two machines:

1) Free 4.10 / mysql (5.0.0) listening on port 5006

2) Free 5.3 Release / mysql (5.0.0) listening on port 5007

On both, no firewalls, blocks or anything of that sort. Both machines have the 
same configuration.
Both mysql were compiled from the ports with the same options. The only 
difference between the two
machines is the Free version and port mysql is listening on.

Here are the outputs of the following commands on machine 1):

>telnet localhost 5006
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
9
5.0.0-alpha}l'zRjBG,!js%Zxl6f"p3
(after a few seconds...)
Connection closed by foreign host.

-

>mysql -u root -P 5006 -h 127.0.0.1 -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 5.0.0-alpha

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

**
Now, here are the outputs of the same commands on machine 2):

]>telnet localhost 5007
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host. (no wait for this line to show!)

>mysql -u root -P 5007 -h 127.0.0.1 -p
Enter password:
ERROR 2013 (HY000): Lost connection to MySQL server during query
(no wait for the above line to show either!)

**

I can only connect on machine 2) if I use a mysql.sock file. Any attempt to 
connect via TCP/IP
doesn´t work !! command line client, java connectors (all possible versions) 
none work.

I´ve been into every single link google returned to me on the ERROR 2013 above 
for 2 days now and
none of them had any info to get this working. Believe me, I tried every hint 
of suggestion there
was.

I really hope someone here has any clues to what is going on.

I´ve posted this to hackers but no clues so far.

thanks,

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: MYSQL connection problem (correction re-post)

2004-11-30 Thread mario . lobo
Hi Arun;

> hrmm.
> Can you try switching the port to another port number? Perhaps a lower port
> number?
> See if you can get it to connect in that way?

Makes no difference

> In your log file, does it print messages about having successfully started
> up?

Yes, it does. Like I said, if I use mysql.sock I connect fine. The problem is 
in TCP connections.

> Do you have ipfw or any other packet filter on your machine?

None whatsoever, of any kind.

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br


>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Arun Pereira" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 30, 2004 12:24 PM
> Subject: Re: MYSQL connection problem (correction re-post)
>
>
> Sorry for this :( . Correction marked with  " <= "
>
> I typed a my.cnf from another machine. only the port differs.
>
> ==
> Yeah, it is the only one on that port. The worst part is that the connection
> attempt doesn´t even
> generates a log entry !! I looked into the log also !!
>
> netstat -an  | grep LIST
> tcp4   0  0  *.5007 *.*LISTEN
> tcp4   0  0  *.199  *.*LISTEN
> tcp4   0  0  *.443  *.*LISTEN
> tcp4   0  0  *.80   *.*LISTEN
> tcp4   0  0  127.0.0.1.25   *.*LISTEN
> tcp4   0  0  *.22   *.*LISTEN
>
> here is my.cnf
>
> [mysqld]
> datadir=/bd/mysql/data
> socket=/home/xxx/mysql/mysql.sock
>
> port=5007 <=
>
> set-variable = max_connections=2000
>
> [mysql.server]
> user=xxx
> basedir=/bd/
>
> [safe_mysqld]
> err-log=/home/xxx/mysql/mysqld.log
> pid-file=/home/xxx/mysql/mysqld.pid
>
> >
> > I know this might sound rather obvious but have you checked whether mysql
> > is
> > actually listening on that port? Perhaps that port is  being used by
> > another
> > daemon or process and mysql cannot bind to it while starting.
> > use netstat to check this. Also try and look at the error log file for the
> > mysql daemon. Usually this is located in the /var/db/mysql directory.
> >
>
> --
>//|  //||
>   // | // ||
> -//--//---|| ARIO LOBO
> //  //||
> -
> [EMAIL PROTECTED]
> http://www.ipad.com.br
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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


Re: MYSQL connection problem (correction re-post)

2004-11-30 Thread mario . lobo
Sorry for this :( . Correction marked with  " <= "

I typed a my.cnf from another machine. only the port differs.

==
Yeah, it is the only one on that port. The worst part is that the connection 
attempt doesn´t even
generates a log entry !! I looked into the log also !!

netstat -an  | grep LIST
tcp4   0  0  *.5007 *.*LISTEN
tcp4   0  0  *.199  *.*LISTEN
tcp4   0  0  *.443  *.*LISTEN
tcp4   0  0  *.80   *.*LISTEN
tcp4   0  0  127.0.0.1.25   *.*LISTEN
tcp4   0  0  *.22   *.*LISTEN

here is my.cnf

[mysqld]
datadir=/bd/mysql/data
socket=/home/xxx/mysql/mysql.sock

port=5007 <=

set-variable = max_connections=2000

[mysql.server]
user=xxx
basedir=/bd/

[safe_mysqld]
err-log=/home/xxx/mysql/mysqld.log
pid-file=/home/xxx/mysql/mysqld.pid

>
> I know this might sound rather obvious but have you checked whether mysql is
> actually listening on that port? Perhaps that port is  being used by another
> daemon or process and mysql cannot bind to it while starting.
> use netstat to check this. Also try and look at the error log file for the
> mysql daemon. Usually this is located in the /var/db/mysql directory.
>

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: MYSQL connection problem

2004-11-30 Thread mario . lobo
Yeah, it is the only one on that port. The worst part is that the connection 
attempt doesn´t even
generates a log entry !! I looked into the log also !!

netstat -an  | grep LIST
tcp4   0  0  *.5007 *.*LISTEN
tcp4   0  0  *.199  *.*LISTEN
tcp4   0  0  *.443  *.*LISTEN
tcp4   0  0  *.80   *.*LISTEN
tcp4   0  0  127.0.0.1.25   *.*LISTEN
tcp4   0  0  *.22   *.*LISTEN

here is my.cnf

[mysqld]
datadir=/bd/mysql/data
socket=/home/xxx/mysql/mysql.sock
port=5004
set-variable = max_connections=2000

[mysql.server]
user=xxx
basedir=/bd/

[safe_mysqld]
err-log=/home/xxx/mysql/mysqld.log
pid-file=/home/xxx/mysql/mysqld.pid

>
> I know this might sound rather obvious but have you checked whether mysql is
> actually listening on that port? Perhaps that port is  being used by another
> daemon or process and mysql cannot bind to it while starting.
> use netstat to check this. Also try and look at the error log file for the
> mysql daemon. Usually this is located in the /var/db/mysql directory.
>

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


MYSQL connection problem

2004-11-30 Thread mario . lobo
Hi Guys;

As always, if this list is not the right place, please forgive me.

I have two machines:

1) Free 4.10 / mysql (5.0.0) listening on port 5006

2) Free 5.3 Release / mysql (5.0.0) listening on port 5007

On both, no firewalls, blocks or anything of that sort. Both machines have the 
same configuration.
Both mysql were compiled from the ports with the same options. The only 
difference between the two
machines is the Free version and port mysql is listening on.

Here are the outputs of the following commands on machine 1):

>telnet localhost 5006
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
9
5.0.0-alpha}l'zRjBG,!js%Zxl6f"p3
(after a few seconds...)
Connection closed by foreign host.

-

>mysql -u root -P 5006 -h 127.0.0.1 -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 5.0.0-alpha

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

**
Now, here are the outputs of the same commands on machine 2):

]>telnet localhost 5007
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host. (no wait for this line to show!)

>mysql -u root -P 5007 -h 127.0.0.1 -p
Enter password:
ERROR 2013 (HY000): Lost connection to MySQL server during query

**

I can only connect on machine 2) if I use a mysql.sock file. Any attempt to 
connect via TCP/IP
doesn´t work !! command line client, java connectors (all possible versions) 
none work.

I´ve been into every single link google returned to me on the ERROR 2013 above 
for 2 days now and
none of them had any info to get this working. Believe me, I tried every hint 
of suggestion there
was.

I really hope someone here has any clues to what is going on.

thanks,

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: HD Mirroring

2004-11-25 Thread mario . lobo
Have you looked into
http://balance.sourceforge.net/ ?

> I'm just curious if there's any other solution that will work on FreeBSD. 
> I have about 5 mysql servers (4 slaves, 1 master) and one application in 
> particular is not smart enough to try other servers if the configured 
> server does not answer.  Is there any type of local proxy that can 
> intelligently route requests to the "best" server?
> 
> Thanks,
> 
> Charles

-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: HD Mirroring

2004-11-24 Thread mario . lobo
Ok Brian;

I read about NDBClusters but the info I found said it would only run on linux 
and solaris. No
FreeBSD.

I didn´t know of mysql replication ! I´ll check into it too, but what i´ve been 
reading about vinum
so far has impressed me a lot, specially in terms of not only mirroring the 
database but most
anything you want.

Maybe I´ll try to replicate the database on vinum volumes to get the best 
service performance from
mysql, with the "failsafetyness" of vinum mirrors.

Thanks for your help,

On 24 Nov 2004 at 12:13, Brian Reichert wrote:

> On Wed, Nov 24, 2004 at 10:52:11AM -0300, [EMAIL PROTECTED] wrote:
> > I have a mysql server that I need to mirror its data on a 2nd HD, either on 
> > the same machine or on
> > a remote one, but it has to be in real time. Has it been or can it be done 
> > at all?
>
> Is MySQL's replication not fast enough?  I can see why it wouldn't
> be in all cases, but I wanted to make sure you were aware of it:
>
>   http://dev.mysql.com/doc/mysql/en/Replication.html
>
> And, although I've not tested it, recent versions of MySQL can
> outright support a cluster:
>
>   http://dev.mysql.com/doc/mysql/en/NDBCluster.html
>
> > Thanks before-hand for any info,
> --
> Brian Reichert<[EMAIL PROTECTED]>
> 37 Crystal Ave. #303  Daytime number: (603) 434-6842
> Derry NH 03038-1713 USA   BSD admin/developer at large

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


Re: HD Mirroring

2004-11-24 Thread mario . lobo
Thanks Peter and Ciprian for the directions !!

following through right now !!

Best regards,
-- 
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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


HD Mirroring

2004-11-24 Thread mario . lobo
Hi;

Don´t know if this is the proper list to ask. If not, please forgive me.

Does anybody has any hints on where to go for info about HD real time mirroring 
in FreeBSD?

I have a mysql server that I need to mirror its data on a 2nd HD, either on the 
same machine or on
a remote one, but it has to be in real time. Has it been or can it be done at 
all?

Thanks before-hand for any info,

--
   //|  //||
  // | // ||
-//--//---|| ARIO LOBO
//  //||
-
[EMAIL PROTECTED]
http://www.ipad.com.br

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