Re: Floppy disks don't work with FreeBSD 9.0

2012-03-28 Thread Graham Menhennitt

On 28/03/2012 09:03, Mark Felder wrote:

On Tue, 27 Mar 2012 16:48:26 -0500, Thomas Laus  wrote:

Could this be related to CAM system issues that shipped with FreeBSD 
9.0 and were fixed in -STABLE? Like the CDROM issues? I'd probably 
test in -STABLE first. Unfortunately I don't have any floppy drives to 
test this with or I'd lend a hand.
I can confirm that the floppy does work on my FreeBSD-9-Stable machine 
(csup'd about a week ago).


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


Re: Soekris Sysinstall FTP & NFS Failure

2010-08-17 Thread Graham Menhennitt
On 18/08/10 05:57, Benjamin Francom wrote:
> Hello all,
>
> I have a Soekris net5501, and need some assistance with the installation
> [FreeBSD 8.1].  I've configured a PXE environment with TFTP, and NFS, and I
> can boot and get into sysinstall.  After going through the initial
> configuration, slices, setting the IP address (DHCP), and proceeding with an
> FTP installation, it fails.  It's like it cannot see the ftp site.  I've
>
>   
G'day Ben,

It does work - I've done it a number of times. I presume that you've
seen my guide at
 
http://menhennitt.com.au/wordpress/2009/07/05/installing-freebsd-on-a-soekris-net5501-using-pxe-and-dnsmasq#more-14
and Jeremy's at
  http://jdc.parodius.com/freebsd/pxeboot_serial_install_8.html

Also, there's a Soekris mailing list that often has stuff that's more
Soekris specific - http://lists.soekris.com/mailman/listinfo/soekris-tech

I seem to remember having the same problem that you're having at one
stage, but unfortunately, I can't remember the solution.

Hope this helps,
  Graham



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


ipfw oddity/bug? ipv6 != protocol 41

2010-11-27 Thread Graham Menhennitt
Hi all,

I've found something that I think is a bug in ipfw. At the very least,
it contradicts the man page and a number of web sites. It's also
different behaviour from a few months ago.

I have a IPV6 tunnel connection to Hurricane Electric that I use every
now and then. When I want to use it, I manually enable it in ipfw and
then disable it again afterwards. After a recent csup and new world and
kernel, it stopped working. The script output below shows the problem.

I start with IPv6 disallowed by ipfw as can be seen in the first failed
ping6. Normally, I then allow ipv6 and the ping6 should work. But it
seems that ipv6 isn't what it used to be. I need to explicitly use the
protocol number (41) to get it to work. According to the ipfw man page,
ip6 and ipv6 are the same thing, and it implies that they should both be
the same as "41". Obviously they're not.

So, when you add a rule with "ipv6" or "ip6" in it, "ipfw list" displays
it as "ip6". When you enter a rule with "41" in it, it displays as
"ipv6". Very confusing!

I can't see any option to get "ipfw list" to output numeric values
rather than protocol names, but moving /etc/protocols aside seems to do
the trick. You can see from the last ipfw output that ip6 is the same as
ipv6, but they're not the same as 41.

I did a few google searches for "ipfw, freebsd, ipv6" and a number of
sites say that you just do "allow ipv6 from any to any" to get it
working. That's what I used to do too, but it doesn't work any more.

I'm running 8-Stable csupped yesterday on i386: FreeBSD
maxwell.mencon.com.au 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #28: Sun Nov
28 07:44:12 EST 2010
r...@chief-freebsd.mencon.com.au:/usr/obj/usr/src/sys/maxwell  i386.

Does anybody have any ideas, please?

Thanks,   
Graham

Script output (with a few irrelevant bits trimmed, and some blank lines
inserted for clarity):

Script started on Sun Nov 28 11:26:27 2010

r...@maxwell% ipfw list 50
ipfw: rule 50 does not exist

r...@maxwell% ping6 www.kame.net
PING6(56=40+8+8 bytes) 2001:470:1f04:35d::2 -->
2001:200:dff:fff1:216:3eff:feb1:44d7
ping6: sendmsg: Permission denied

r...@maxwell% ipfw add 50 allow ipv6 from any to any
00050 allow ip6 from any to any

r...@maxwell% ipfw list 50
00050 allow ip6 from any to any

r...@maxwell% ping6 www.kame.net
PING6(56=40+8+8 bytes) 2001:470:1f04:35d::2 -->
2001:200:dff:fff1:216:3eff:feb1:44d7
ping6: sendmsg: Permission denied

r...@maxwell% ipfw add 50 allow ip6 from any to any
00050 allow ip6 from any to any

r...@maxwell% ipfw list 50
00050 allow ip6 from any to any
00050 allow ip6 from any to any

r...@maxwell% ping6 www.kame.net
PING6(56=40+8+8 bytes) 2001:470:1f04:35d::2 -->
2001:200:dff:fff1:216:3eff:feb1:44d7
ping6: sendmsg: Permission denied

r...@maxwell% ipfw add 50 allow 41 from any to any
00050 allow ipv6 from any to any

r...@maxwell% ping6 www.kame.net
PING6(56=40+8+8 bytes) 2001:470:1f04:35d::2 -->
2001:200:dff:fff1:216:3eff:feb1:44d7
16 bytes from 2001:200:dff:fff1:216:3eff:feb1:44d7, icmp_seq=0 hlim=56
time=291.889 ms

r...@maxwell% ipfw list 50
00050 allow ip6 from any to any
00050 allow ip6 from any to any
00050 allow ipv6 from any to any

r...@maxwell% mv /etc/protocols /etc/protocols_save

r...@maxwell% ipfw list 50
00050 allow ip6 from any to any
00050 allow ip6 from any to any
00050 allow 41 from any to any
r...@maxwell% exit

Script done on Sun Nov 28 11:28:22 2010

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


Re: openoffice stuck in _umtx_op

2009-11-26 Thread Graham Menhennitt
Mikhail T. wrote:
> I'm trying to start OOo, and it hangs at start-up -- after popping up
> its banner page.
>
> ktrace shows the following, slowly repeating, sequence of events:
>
> [...]
>  32726 soffice.bin CALL 
> _umtx_op(0x805d09060,0x8,0x1,0x805d09040,0x7fbfeef0)
>  32726 soffice.bin RET   _umtx_op -1 errno 60 Operation timed out
>  32726 soffice.bin CALL  gettimeofday(0x7fbfef70,0)
>  32726 soffice.bin RET   gettimeofday 0
>  32726 soffice.bin CALL  clock_gettime(0,0x7fbfef00)
>  32726 soffice.bin RET   clock_gettime 0
>  32726 soffice.bin CALL 
> _umtx_op(0x805d09060,0x8,0x1,0x805d09040,0x7fbfeef0)
>  32726 soffice.bin RET   _umtx_op -1 errno 60 Operation timed out
>  32726 soffice.bin CALL  gettimeofday(0x7fbfef70,0)
>  32726 soffice.bin RET   gettimeofday 0
>  32726 soffice.bin CALL  clock_gettime(0,0x7fbfef00)
>  32726 soffice.bin RET   clock_gettime 0
>  32726 soffice.bin CALL 
> _umtx_op(0x805d09060,0x8,0x1,0x805d09040,0x7fbfeef0)
> [...]
>
> what's happening? `ipcs -a' does not show anything extraordinary and
> there is nothing in syslog either...
>
> The machine is running 7.2-STABLE/amd64 (as of Oct 25). Any ideas? Thanks!
>   
Mikhail,

I don't use OOo on FreeBSD, so I can't help you directly.

However, I see similar behaviour on Kubuntu Linux. If I double click on
some files that are associated with OOo, I see the splash screen and it
hangs forever. If I start OOo from the command line without any
parameters, it works correctly - I then open the file from the menu.
Maybe that's a workaround for you for now.

I haven't seen any bugs on the OOo site that seem to match this. I'll
try to get a reproducable case and report it.

Graham

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


HP LJ 1020: "ulpt0: offline"

2009-12-12 Thread Graham Menhennitt
I have a HP Laserjet 1020 printer that I've been using with FreeBSD 7
and 8 for the last few years. It's connected via USB as described in my
blog at http://menhenitt.com.au and it's been working up until today.

I just did a csup to RELENG_8 as of yesterday. After a make
build/installworld and build/installkernel and "portupgrade -a", it's
stopped working. When I power it on, I hear its startup noise and then
the second noise as the firmware is downloaded to it. After that, it
doesn't respond. CUPS reports "Waiting for printer to become
available..." and dmesg shows:

ugen1.3:  at usbus1
ulpt0:  on usbus1
ulpt0: using bi-directional mode
ulpt0: offline

The last line "ulpt0: offline" appears just after the firmware download.

Foo2zjs doesn't seem to have changed recently. CUPS has changed but I
doubt that's the problem. Maybe something to do with USB drivers?

Does anybody have any clues please.

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


Re: [Bulk] Re: USB problems on 8.0-STABLE

2010-01-12 Thread Graham Menhennitt
Frank wrote:
> On Fri, 8 Jan 2010, Warren Block wrote:
>
>> Do you have DEVICE /dev/ugen0.2 in apcupsd.conf?
>
> No, just DEVICE
>
Try
UPSCABLE usb
UPSTYPE usb
DEVICE ugen0.2
and (possibly some subset of)
device  uhci# UHCI PCI->USB interface
device  ohci# OHCI PCI->USB interface
device  ehci# EHCI PCI->USB interface (USB 2.0)
device  usb # USB Bus (required)
device  ulpt# Printer
device  umass   # Disks/Mass storage - Requires
scbus and da

Works for me on 8-STABLE with apcupsd--3.14.5_1 port.
Graham
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


recommended miniPCI 802.11a/b/g card for Soekris net5501 running FreeBSD 8-STABLE?

2010-01-15 Thread Graham Menhennitt
I've been trying to get reliable wireless AP functionality in my Soekris
net5501 (http://soekris.com/net5501.htm) box for some time now. In the
past I've reported a problem with it
(http://www.mail-archive.com/freebsd-stable@freebsd.org/msg105623.html)
that causes it to report "ath0: stuck beacon; resetting (bmiss count
4)". I can minimise this by increasing the count but I still get the
problem and the wifi connection is patchy - dropped connections, and low
transfer speeds. So, I think the easiest solution is to get a better
card. Can somebody please recommend any such miniPCI board.

My existing board is a Wistron Neweb CM9 miniPCI wireless card,
802.11abg which is based on the Atheros AR5004 chipset.

Some cards that are easy for me to get are the Wistron Neweb DCMA-81,
5006 Super AG Atheros 6G which uses Atheros AR5414, and Senao NMP-8602
PLUS-S / EMP-8602 PLUS-S which uses AR 5006. I can probably source any
others that anybody can suggest, too.

I'm not after super speed or range, just reliable performance in a
net5501 running FreeBSD 8-STABLE and acting as a wireless access point
using WPA2.

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


Re: ath hostap problems

2010-01-17 Thread Graham Menhennitt
Sam Leffler wrote:
> Are both machines SMP?  Stuck beacons typically arise for two reasons:
> the channel is busy and the ap can't get on the air to send the frame,
> or the host/bus is overloaded and cannot meet the realtime
> requirements of posting the beacon frame in time to hit the beacon
> transmit schedule.   I can't tell from the above info whether either
> might be possible.
Sam,

I'm having a similar problem with the "stuck beacon" message (see my
request at
http://www.mail-archive.com/freebsd-stable@freebsd.org/msg107619.html).
What info do you need to be able to diagnose it?

Thanks for any help,
Graham Menhennitt
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: installdate of a port/package?

2008-07-02 Thread Graham Menhennitt

Ronald Klop wrote:

I just upgraded a machine from FreeBSD 6 to 7. Very nice.
But my portupgrade -fa failed after a while.
...
How do I know which ports I still need to update?

Run "portupgrade -fan" and see which ones it says still need upgrading.

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


Re: APU3 ethernet can't transmit

2021-01-22 Thread Graham Menhennitt
Try "ifconfig $ifname -rxcsum -txcsum" and possibly " -vlanhwtso -tso4" 
as well.


Graham

On 23/01/2021 8:10 am, Stefan Bethke wrote:

I have a weird situation with an PCEngines APU3, where I can't seem to be able 
to transmit packets through either of the igb interfaces. With tcpdump, I can 
see packets arriving, and the interface flags appear to be just fine:
 
options=e527bb
 ether 00:0d:b9:58:xx:xx
 inet6 fe80::20d:b9ff::%igb0 prefixlen 64 scopeid 0x1
 inet6 2a02:8108:4840::::: prefixlen 64 autoconf
 inet 0.0.0.0 netmask 0xff00 broadcast 255.255.255.255
 media: Ethernet autoselect (1000baseT )
 status: active
 nd6 options=23

dhclient is running on that interfaces, and I got an IPv6 address through RA.

Assigning an address manually doesn't change anything.

igb0@pci0:1:0:0:class=0x02 card=0x8086 chip=0x157b8086 rev=0x03 
hdr=0x00
 vendor = 'Intel Corporation'
 device = 'I210 Gigabit Network Connection'
 class  = network
 subclass   = ethernet

# freebsd-version
12.2-RELEASE

I installed 12.2-REL a couple of weeks ago, and haven't done anything since.

Tried the three different port with different cables on different switch ports, 
which are working fine with other machines.

I'm installing updates now via a USB adapter.

Any suggestions?


Stefan

--
Stefan BethkeFon +49 151 14070811


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: gdb broken on 9.1/amd64?

2013-03-06 Thread Graham Menhennitt
On 07/03/2013 05:02, Jeremie Le Hen wrote:
> I have two different stable/9.1 amd64 machines which show the following
> error message upon gdb startup:
>
> /usr/src/gnu/usr.bin/gdb/libgdb/../../../../contrib/gdb/gdb/solib-svr4.c:1444:
> internal-error: legacy_fetch_link_map_offsets called without legacy
> link_map support enabled.
>
> Can you check if you have the same problem (same or other arch)?
> Thanks.
>
Yep. Same arch, same version -> same error.

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


VirtualBox hangs on FreeBSD 10-stable and then reports error

2015-05-13 Thread Graham Menhennitt
I've been successfully running VirtualBox for some time. Last week I
updated my /usr/src/ and /usr/ports, built & installed world and kernel,
and did portupgrade -a. Now VirtualBox won't start - it doesn't even
show the window with the list of VMs. I've tried as root and as myself.
I've also tried removing my .virtualbox directory. kldstat shows
vboxdrv.ko is loaded. I've rebooted after building and installing
everything.

I've run it in truss as root and the bzipped output file is at
http://menhennitt.com.au/truss.bz2. It runs for a few seconds and then
gets to the point in the truss output (around line 2890) where it does
the stuff shown below. It repeats the last poll() line at 5 second
intervals for about 5 minutes. It then shows a dialog:
Failed to create the VirtualBox COM object.
The application will now terminate.
Callee RC: NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)
When I click Ok in the dialog, it exits.

It's virtualbox-ose-4.3.26 and virtualbox-ose-kmod-4.3.26 on FreeBSD
10-stable from last week on amd64.

Does anybody please have any clues?

Thanks,
Graham


open("/etc/spwd.db",O_CLOEXEC,00)= 16 (0x10)
fstat(16,{ mode=-rw--- ,inode=33147405,size=40960,blksize=32768 }) =
0 (0x0)
read(16,"\0\^F\^Ua\0\0\0\^B\0\0\^D\M-R\0"...,260) = 260 (0x104)
pread(0x10,0x801e89000,0x1000,0x6000,0x1,0x0)= 4096 (0x1000)
pread(0x10,0x801e8a000,0x1000,0x4000,0x1,0x0)= 4096 (0x1000)
close(16)= 0 (0x0)
connect(15,{ AF_UNIX "/tmp/.vbox-root-ipc/ipcd" },106) ERR#61
'Connection refused'
close(15)= 0 (0x0)
pipe(0x7fff4570) = 0 (0x0)
fcntl(15,F_SETFD,FD_CLOEXEC) = 0 (0x0)
fcntl(16,F_SETFD,FD_CLOEXEC) = 0 (0x0)
fcntl(15,F_GETFD,)   = 1 (0x1)
fcntl(15,F_GETFL,)   = 2 (0x2)
fcntl(15,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0)
fcntl(16,F_GETFD,)   = 1 (0x1)
fcntl(16,F_GETFL,)   = 2 (0x2)
fcntl(16,F_SETFL,O_NONBLOCK|0x2) = 0 (0x0)
fcntl(16,F_SETFD,0x0)= 0 (0x0)
openat(0xff9c,0x81054f561,0x2,0x0,0x80,0xfe1bfed8) = 17 (0x11)
fcntl(17,F_GETFD,)   = 0 (0x0)
openat(0xff9c,0x7fff2a80,0x10,0x0,0x7ff7fed5c75a,0x8080808080808080)
ERR#2 'No such file or directory'
openat(0xff9c,0x7fff2f20,0x10,0x0,0x7ff7fed5c75a,0x8080808080808080)
ERR#2 'No such file or directory'
openat(0xff9c,0x7fff2a80,0x10,0x0,0x7ff7fed5c75a,0x8080808080808080)
ERR#2 'No such file or directory'
openat(0xff9c,0x7fff2f20,0x10,0x0,0x7ff7fed5c75a,0x8080808080808080)
ERR#2 'No such file or directory'
access("/usr/local/lib/virtualbox/VBoxXPCOMIPCD",1) = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,SIGALRM)
= 0 (0x0)
fork()   = 51627 (0xc9ab)
sigprocmask(SIG_SETMASK,SIGALRM,0x0) = 0 (0x0)
SIGNAL 20 (SIGCHLD)
sigprocmask(SIG_SETMASK,SIGALRM|SIGCHLD,0x0) = 0 (0x0)
write(11,"\0",1) = 1 (0x1)
sigreturn(0x7fff2b60,0x7fff2b60,0x301,0x0,0xfbc0,0x7fff3278)
= 0 (0x0)
wait4(51627,{ EXITED,val=0 },0x0,0x0)= 51627 (0xc9ab)
close(17)= 0 (0x0)
close(16)= 0 (0x0)
read(15,0x7fff45af,1)ERR#35 'Resource
temporarily unavailable'
poll({15/POLLIN|POLLPRI},1,5000) = 0 (0x0)
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: VirtualBox hangs on FreeBSD 10-stable and then reports error

2015-05-14 Thread Graham Menhennitt
On 13/05/2015 23:12, Tobias Kortkamp wrote:
> On 05/13/2015 14:57, Graham Menhennitt wrote:
>> I've been successfully running VirtualBox for some time. Last week I
>> updated my /usr/src/ and /usr/ports, built & installed world and kernel,
>> and did portupgrade -a. Now VirtualBox won't start - it doesn't even
>> show the window with the list of VMs. I've tried as root and as myself.
> Hi Graham,
>
> see this thread on the forums:
> https://forums.freebsd.org/threads/virtualbox-4-3-26-wont-start.51341/
>
Thanks for replying Tobias. The suggestion of rebuilding curl with
GSSAPI_NONE worked for me.

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


ipfw "unknown interface name igb1"

2019-03-22 Thread Graham Menhennitt

Hi all,

I recently upgraded (via source) from 11-Stable to 12-Stable on my 
router box (PC Engines APU). My firewall rules don't appear to work any 
longer during boot. I can see on the console "Line 98: unknown interface 
name igb1" when it tries to load them. The last few rules after the 
error line are not loaded. Line 98 is the "nat 1 config" line.


After boot, I run "ipfw flush;service ipfw restart" and everything works 
ok. It looks like the igb1 interface isn't fully available at the time 
when it originally tries to load.


My relevant lines (redacted) from /etc/rc.conf, /etc/ipfw.rules, and 
tail of /var/log/messages are below.


Any clues, please?

Thanks in advance,

    Graham


firewall_enable="YES"
firewall_flags="-p m4 -DOUTSIDE_IF=igb1 -DLAN_IF=igb0 
-DLAN_NET=X.X.X.X/25 -DWIFI_IF=igb2 -DWIFI_NET=Y.Y.Y.Y/26 -DVPN_IF=tap0 
-DVPN_NET=Z.Z.Z.Z/26 -DPS4_ADDR=A.A.A.A -DIPV6_IF=gif0"

firewall_type="/etc/ipfw.rules"


# stop spoofing
add deny all from LAN_NET to any in via OUTSIDE_IF
add deny all from WIFI_NET to any in via OUTSIDE_IF

# allow anything on the LAN
add allow all from any to any via LAN_IF

# and from the VPN
add allow all from any to any via VPN_IF

# allow anything from the wireless network to the outside world (but not 
to the LAN)

add allow ip from any to not LAN_NET via WIFI_IF

table all destroy

# create a table of addresses to block
table 1 create type addr
# add RFC1918 nets
table 1 add 10.0.0.0/8
table 1 add 172.16.0.0/12
table 1 add 192.168.0.0/16
# and draft-manning-dsua-03.txt nets
table 1 add 0.0.0.0/8
table 1 add 169.254.0.0/16
table 1 add 192.0.2.0/24
table 1 add 224.0.0.0/4
table 1 add 240.0.0.0/4
# stop entries in the table coming in on the outside interface
add deny all from table(1) to any in recv OUTSIDE_IF

# similarly for IPv6
table 2 create type addr
# Stop unique local unicast address on the outside interface
table 2 add fc00::/7
# Stop site-local on the outside interface
table 2 add fec0::/10
# Disallow "internal" addresses to appear on the wire.
table 2 add :::0.0.0.0/96
# Disallow packets to malicious IPv4 compatible prefix.
#table 2 add ::224.0.0.0/100 gives error
#table 2 add ::127.0.0.0/104 ditto
table 2 add ::0.0.0.0/104
#table 2 add ::255.0.0.0/104 ditto
#
table 2 add ::0.0.0.0/96
# Disallow packets to malicious 6to4 prefix.
table 2 add 2002:e000::/20
table 2 add 2002:7f00::/24
table 2 add 2002:::/24
table 2 add 2002:ff00::/24
#
table 2 add 2002:0a00::/24
table 2 add 2002:ac10::/28
table 2 add 2002:c0a8::/32
#
table 2 add ff05::/16
# block these addresses both incoming and outgoing
add deny all from table(2) to any via IPV6_IF
add deny all from any to table(2) via IPV6_IF

# block sshguard entries
add reset ip from table(22) to me

#
# temporarily block lots of ports from outside (remove when these rules 
are fixed)

#add deny tcp from any to me 2049,5000-5999 in via OUTSIDE_IF
##

# allow IPSEC
#add allow esp from any to any
#add allow ah from any to any
#add allow ipencap from any to any
#add allow udp from any 500 to any

# allow setup of incoming SSH, IMAPS, and OpenVPN
add allow tcp from any to me ssh setup
add allow tcp from any to me6 ssh setup
add allow tcp from any to me imaps setup
add allow tcp from any to me6 imaps setup
add allow tcp from any to me openvpn setup
add allow tcp from any to me6 openvpn setup
add allow udp from any to me openvpn

# allow IPP, IMAPS, and SMTP from wireless
add allow ip from any to LAN_NET dst-port printer setup via WIFI_IF
add allow ip from any to me dst-port ipp setup via WIFI_IF
add allow ip from any to me dst-port smtp setup via WIFI_IF
add allow ip from any to me dst-port imaps setup via WIFI_IF

# allow some ICMP types but nothing else
add allow icmp from any to any icmptypes 0,3,8,11
add deny icmp from any to any

#add allow ipv6 from any to any

# NAT
# redirect ports to PS4
nat 1 config if OUTSIDE_IF same_ports deny_in redirect_port tcp 
PS4_ADDR:1935 1935 redirect_port tcp PS4_ADDR:3478 3478 redirect_port 
tcp PS4_ADDR:3479 3479 redirect_port tcp PS4_ADDR:3480 3480 
redirect_port udp PS4_ADDR:3074 3074 redirect_port udp PS4_ADDR:3478 
3478 redirect_port udp PS4_ADDR:3479 3479

#nat 1 config if OUTSIDE_IF same_ports deny_in
add nat 1 ip4 from any to any via OUTSIDE_IF

# and block the above table again outbound
add deny all from table(1) to any out xmit OUTSIDE_IF

# allow TCP through if setup succeeded
add pass tcp from any to any established

# allow IP fragments to pass through
add pass all from any to any frag

# allow TCP ports needed for PS4
add allow tcp from any to PS4_ADDR 1935 in via OUTSIDE_IF setup
add allow tcp from any to PS4_ADDR 3478 in via OUTSIDE_IF setup
add allow tcp from any to PS4_ADDR 3479 in via OUTSIDE_IF setup
add allow tcp from any to PS4_ADDR 3480 in via OUTSIDE_IF setup
add allow udp from any to PS4_ADDR 3478 in via OUTSIDE_IF
add allow udp from any to

Re: ipfw "unknown interface name igb1" SOLVED

2019-03-23 Thread Graham Menhennitt

Thanks for replying, Sergey.

The "igb" device is no longer available as an option in the kernel 
source - I need to use "em" instead. Without "em" most things still 
work, though - just not the ipfw rules on boot. Strangely, my interfaces 
still come up as "igb".


Anyway, with "em" it all now works. Thanks!

Graham

On 23/3/19 11:55 am, Korolev Sergey wrote:

Hello!
Igb device was removed in version 12. Maybe this causes a problem. 
Maybe you should rename it to new appropriate one.


On 23 Mar 2019, at 10:49, Graham Menhennitt <mailto:gra...@menhennitt.com.au>> wrote:


Hi all,

I recently upgraded (via source) from 11-Stable to 12-Stable on my 
router box (PC Engines APU). My firewall rules don't appear to work 
any longer during boot. I can see on the console "Line 98: unknown 
interface name igb1" when it tries to load them. The last few rules 
after the error line are not loaded. Line 98 is the "nat 1 config" line.


After boot, I run "ipfw flush;service ipfw restart" and everything 
works ok. It looks like the igb1 interface isn't fully available at 
the time when it originally tries to load.


My relevant lines (redacted) from /etc/rc.conf, /etc/ipfw.rules, and 
tail of /var/log/messages are below.


Any clues, please?

Thanks in advance,


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: em performs worse than igb (latency wise) in 12?

2019-04-06 Thread Graham Menhennitt

Not that it's at all relevant to the question here, but...

It does mostly work without em in the 12 kernel - I'm not sure how, but 
it does.


I upgraded to 12-stable via source but didn't add em to my custom 
kernel. Most things worked - basic network functionality. But I had 
problems with ipfw and igb. Adding em to the kernel fixed them.


Graham

On 6/4/19 6:12 am, Kris von Mach wrote:

On 4/6/2019 2:56 AM, Pete French wrote:
Something odd going on there there - I am using 12-STABLE and I have 
igb just fine, and it attaches to the same hardware that 11 did:


It does work in 12, throughput is great, just that the latency is 
higher than 11.


igb0: flags=8843 metric 0 mtu 
1500
options=e527bb 


    ether 38:ea:a7:8d:c1:6c
    inet 208.72.56.19 netmask 0xfc00 broadcast 208.72.59.255
    inet6 fe80::3aea:a7ff:fe8d:c16c%igb0 prefixlen 64 scopeid 0x1
    inet6 2602:ffb8::208:72:56:9 prefixlen 64
    media: Ethernet autoselect (1000baseT )
    status: active
    nd6 options=21

Do you have a custom kernel, and if so did you see this note in 
UPDATING?


Yes I do, but it includes all of GENERIC which includes em drivers, 
otherwise it wouldn't even work with the network card.


my custom kernel:

include GENERIC
ident   CUSTOM
makeoptions WITH_EXTRA_TCP_STACKS=1
options TCPHPTS
options SC_KERNEL_CONS_ATTR=(FG_GREEN|BG_BLACK)
options IPSTEALTH
options   AHC_REG_PRETTY_PRINT  # Print register bitfields in debug
options   AHD_REG_PRETTY_PRINT  # Print register bitfields in debug
device cryptodev
device aesni

I did try without RACK just in case that was the culprit.


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Traffic "corruption" in 12-stable

2020-07-27 Thread Graham Menhennitt

On 27/7/20 3:00 pm, Eugene Grosbein wrote:

27.07.2020 5:16, Joe Clarke wrote:


About two weeks ago, I upgraded from the latest 11-stable to the latest 
12-stable.  After that, I periodically see the network throughput come to a 
near standstill.  This FreeBSD machine is an ESXi VM with two interfaces.  It 
acts as a router.  It uses vmxnet3 interfaces for both LAN and WAN.  It runs 
ipfw with in-kernel NAT.  The LAN side uses a bridge with vmx0 and a tap0 L2 
VPN interface.  My LAN side uses an MTU of 9000, and my vmx1 (WAN side) uses 
the default 1500.

Besides seeing massive packet loss and huge latency (~ 200 ms for on-LAN ping 
times), I know the problem has occurred because my lldpd reports:

Jul 26 15:47:03 namale lldpd[1126]: frame too short for tlv received on bridge0

And if I turn on ipfw verbose messages, I see tons of:

Jul 26 16:02:23 namale kernel: ipfw: pullup failed

This leads to me to believe packets are being corrupted on ingress.  I’ve 
applied all the recent iflib changes, but the problem persists. What causes it, 
I don’t know.

The only thing that changed (and yes, it’s a big one) is I upgraded to 
12-stable.  Meaning, the rest of the network infra and topology has remained 
the same.  This did not happen at all in 11-stable.

I’m open to suggestions.

First, try: ifconfig $ifname -rxcsum -txcsum

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


And possibly " -vlanhwtso -tso4" as well.

Graham

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Thunderbird package missing

2020-12-13 Thread Graham Menhennitt
Hello all, 
I did a pkg upgrade yesterday and it removed my Thunderbird package. When I go 
to install it, I get "No packages available to install matching 'thunderbird'. 
I've tried it on two separate systems with the same result. What's going on?

Thanks,
Graham
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Bug in less version 406.

2007-08-03 Thread Graham Menhennitt
Ted Hatfield wrote:
>
> Using less -E or more to display a file that is less than a full page,
> while then displaying a nonexistent file causes a segmentation fault.
>
> For example on a newly built system you can
>
> less -E /etc/group bogusfile
>
>
> This will display the file ending with
>
> /etc/group (file 1 of 2) (END) - Next: bogusfile
>
> when you press space or return it gives
>
> Segmentation fault: 11
>

I can reproduce it using "more" but not "less -E". This is on -Current
as of a week or so ago. TERM=xterm.

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


failure building nanobsd with FreeBSD Stable

2009-05-10 Thread Graham Menhennitt

Hello all,

I've been building nanobsd to run on my Soekris net4801 for some time 
now. I recently csupped to FreeBSD Stable and I can no longer build it. 
It gives an error early in "installworld" (see below).


Does anybody please have any clues?

Thanks,
Graham

mkdir -p /tmp/install.1JDmZzZe
for prog in [ awk cap_mkdb cat chflags chmod chown  date echo egrep find
grep
ln lockf make mkdir mtree mv pwd_mkdb rm sed sh sysctl  test true uname
wc zic;
do  cp `which $prog` /tmp/install.1JDmZzZe;  done
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/nanobsd.maxwell/
MACHINE_ARCH=i386  MACH
INE=i386  CPUTYPE=
GROFF_BIN_PATH=/usr/obj/nanobsd.maxwell//usr/src/tmp/legacy/
usr/bin
GROFF_FONT_PATH=/usr/obj/nanobsd.maxwell//usr/src/tmp/legacy/usr/share/
groff_font
GROFF_TMAC_PATH=/usr/obj/nanobsd.maxwell//usr/src/tmp/legacy/usr/sha
re/tmac
PATH=/usr/obj/nanobsd.maxwell//usr/src/tmp/legacy/usr/sbin:/usr/obj/nan
obsd.maxwell//usr/src/tmp/legacy/usr/bin:/usr/obj/nanobsd.maxwell//usr/src/tmp/l
egacy/usr/games:/usr/obj/nanobsd.maxwell//usr/src/tmp/usr/sbin:/usr/obj/nanobsd.
maxwell//usr/src/tmp/usr/bin:/usr/obj/nanobsd.maxwell//usr/src/tmp/usr/games:/tm
p/install.1JDmZzZe make -f Makefile.inc1 reinstall
--
 >>> Making hierarchy
--
cd /usr/src; make -f Makefile.inc1 hierarchy
cd /usr/src/etc;make distrib-dirs
mtree -eU  -f /usr/src/etc/mtree/BSD.root.dist -p
/usr/obj/nanobsd.maxwell//_.w/
./bin missing (created)
./boot missing (created)
./boot/defaults missing (created)
./boot/firmware missing (created)
...skipping...
  rm -f
/usr/obj/nanobsd.maxwell//_.w/usr/include/security/mac_partition;  fi
if [ -L /usr/obj/nanobsd.maxwell//_.w/usr/include/ufs/ffs ]; then  rm -f
/usr/ob
j/nanobsd.maxwell//_.w/usr/include/ufs/ffs;  fi
if [ -L /usr/obj/nanobsd.maxwell//_.w/usr/include/ufs/ufs ]; then  rm -f
/usr/ob
j/nanobsd.maxwell//_.w/usr/include/ufs/ufs;  fi
if [ -L /usr/obj/nanobsd.maxwell//_.w/usr/include/machine ]; then  rm -f
/usr/ob
j/nanobsd.maxwell//_.w/usr/include/machine;  fi
if [ -L /usr/obj/nanobsd.maxwell//_.w/usr/include/crypto ]; then  rm -f
/usr/obj
/nanobsd.maxwell//_.w/usr/include/crypto;  fi
mtree -deU   -f /usr/src/include/../etc/mtree/BSD.include.dist  -p
/usr/obj/nano
bsd.maxwell//_.w/usr/include
creating osreldate.h from newvers.sh
touch: not found
*** Error code 127
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error

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


Re: failure building nanobsd with FreeBSD Stable

2009-05-14 Thread Graham Menhennitt
Boris Samorodov wrote:
> On Mon, 11 May 2009 15:56:11 +1000 Graham Menhennitt wrote:
>
>   
>> touch: not found
>> 
>
> Please check it the system time was changed between
> c(v)sup -> buildworld. I case yes, just redo the process.
>   
I don't know how the time changed, but redoing the buildworld fixed it.

Thanks Boris!

Regards,
Graham
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


problem with Soekris net5501 and USB hub

2009-07-13 Thread Graham Menhennitt
I originally sent this to the Soekris list thinking it was platform 
specific. I got a couple of replies suggesting that it's a FreeBSD 
problem instead. So, if anybody can offer any insights, I would most 
appreciate it.


I have a Soekris net5501 running FreeBSD 7-Stable. I want to connect a 
number of USB devices to it:

- a HP Laserjet 1020 printer
- an APC Back UPS 350 UPS
- a 6-in-one card reader (not so fussed about this one).
The Soekris box has only one USB port brought out to a connector on the 
case, so rather than mod the box to add another port, I thought I would 
just use an external hub.


If I plug any of the devcies directly into the Soekris's USB port it 
works fine. However, if I use a USB hub then it doesn't work at all. 
I've tried it with two different hubs and two different cables. I've 
tried the hubs both with a plug pack, and being powered from the USB 
bus. The only thing common to the failures is the Soefkis and freeBSD. 
The hubs are both USB 2.0 according to their advertising.


The hub itself is recognised (although I don't have the output from
usbdevs available at the moment). The UPS doesn't ever seem to be
recognised when connected via the hub - there's nothing in dmesg and
nothing in usbdevs. Ditto for the 6-in-one card reader - the LED on the
front of it doesn't even light up.

The printer sometimes gets partially recognised. The output from
"usbdevs -v" when the printer is connected directly and working properly
looks like:

Controller /dev/usb0:
   addr 1: full speed, self powered, config 1, OHCI root hub(0x), 
AMD(0x), rev 1.00

port 1 powered
port 2 powered
port 3 powered
port 4 powered
   Controller /dev/usb1:
   addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
AMD(0x), rev 1.00
port 1 addr 2: high speed, self powered, config 1, HP LaserJet 
1020(0x2b17), Hewlett-Packard(0x03f0), rev 1.00

port 2 powered
port 3 powered
port 4 powered

However, if I connect it via the hub, it sometimes doesn't show it at 
all, while other times it says something like (doing this from memory):


   port 1 addr 2: high speed, self powered, config 1, 0x2b17(0x2b17), 
vendor 0x03f0(0x03f0), rev 1.00


So, it can see it but it doesn't resolve the vendor or device ids. It 
looks like the Soekris can see whatever is directly connected to it, but 
 can't (reliably) see things that more than one step away.


My (custom) kernel has:

   device  usb # USB Bus (required)
   device  umass   # Disks/Mass storage - Requires 
scbus and da

   device  scbus   # SCSI bus (required for SCSI)
   device  da  # Direct Access (disks)
   device  uhci# UHCI PCI->USB interface
   device  ohci# OHCI PCI->USB interface
   device  ehci# EHCI PCI->USB interface (USB 2.0)
   device  ugen# Generic

So, does anybody have any ideas about how to fix this.

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


Re: problem with Soekris net5501 and USB hub

2009-07-15 Thread Graham Menhennitt
Marat N.Afanasyev wrote:
> Graham Menhennitt wrote:
>> I originally sent this to the Soekris list thinking it was platform
>> specific. I got a couple of replies suggesting that it's a FreeBSD
>> problem instead. So, if anybody can offer any insights, I would most
>> appreciate it.
>>
>> I have a Soekris net5501 running FreeBSD 7-Stable. I want to connect
>> a number of USB devices to it:
>> - a HP Laserjet 1020 printer
>> - an APC Back UPS 350 UPS
>> - a 6-in-one card reader (not so fussed about this one).
>> The Soekris box has only one USB port brought out to a connector on
>> the case, so rather than mod the box to add another port, I thought I
>> would just use an external hub.
>>
>> If I plug any of the devcies directly into the Soekris's USB port it
>> works fine. However, if I use a USB hub then it doesn't work at all.
> see http://www.freebsd.org/cgi/query-pr.cgi?pr=131074 i think your
> case is very similar to mine
Thanks Marat (and the others that replied). It is the same problem as in
that PR - if the devices are connected at boot time everything works. If
I power them on later it doesn't. For now that will be my workaround.
I'll look at upgrading to 8 some time soon.

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


ath0: stuck beacon; resetting (bmiss count 4)

2009-07-16 Thread Graham Menhennitt
I'me getting the message "ath0: stuck beacon; resetting (bmiss count 4)"
logged to syslog every so often. I have a Soekris net5501 with a Wistron
CM9  mini-PCI wireless card. I'm running FreeBSD 7.2-stable and "dmesg |
grep ath0" gives:

ath0:  mem 0xa001-0xa001 irq 15 at device 17.0 on pci0
ath0: [ITHREAD]
ath0: WARNING: using obsoleted if_watchdog interface
ath0: Ethernet address: 00:0b:6b:36:99:93
ath0: mac 5.9 phy 4.3 radio 3.6
ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal
flags 0x150), hal status 12

I've seen Sam Leffler's reply to a previous question about the same log
message at
http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004196.html.

Looking at the source code of if_ath.c in stable:

if (sc->sc_bmisscount > 3)/* NB: 3 is a guess */
taskqueue_enqueue(sc->sc_tq, &sc->sc_bstucktask);\

Now, in head the 3 has been made a variable but it doesn't seem to be
able to be tuned in any reasonable way.

I've tied increasing it to 20 and it doesn't seem to have any obvious
bad effects.

So, my questions:
- is 3 really a good guess?
- can it be increased safely?
- what sort of values should I try?
- are there any consequences of increasing it?
- could it be made a sysctl tunable?

Thanks for any help,
  Graham

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


problem booting FreeBSD 8-Beta4 on Soekris net5501

2009-09-11 Thread Graham Menhennitt
G'day,

I'm upgrading a Soekris net5501 from FreeBSD 7-Stable to 8-Beta4 (via
source). I've done a buildworld, buildkernel, and installkernel. When I
try to boot the new kernel, it stops very early on in the boot sequence.
The serial console shows:

/boot/kernel/kernel text=0x32f9f0 data=0x36374+0x1e580
syms=[0x4+0x40720+0x4+0x592a3]  
  

-   

   

Hit [Enter] to boot immediately, or any other key for command
prompt. 
 

Booting
[/boot/kernel/kernel]...

   

/

The slash at the end is the first character of the spinner as it's
loading the kernel. It never shows the second character. I've tried two
different kernel configs - my own (from 7 modified to build with 8) and
aragon's from
http://www.nabble.com/no-time-of-day-clock-registered-on-net5501,-FreeBSD-8-td24544248.html
(with the line "options STOP_NMI" removed to get it to build). They both
do the same thing.

My loader.conf is the same as in 7:

beastie_disable="YES"
comconsole_speed="19200"
console="comconsole"

My kernel config is below.

Does anybody have any clues please?

Thanks for any help,
  Graham

cpu
I586_CPU
   

ident  
maxwell 
   


options CPU_GEODE
options CPU_SOEKRIS


options SCHED_ULE   # ULE scheduler
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options SCTP# Stream Control Transmission
Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options PROCFS  # Process filesystem (requires
PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # Posix P1003_1B real-time
extensions
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPDIVERT
options IPFIREWALL_NAT  # ipfw kernel nat support
options LIBALIAS

device  pci

device  ata
device  atadisk # ATA disk drives
options ATA_STATIC_ID   # Static device numbering

device  scbus   # SCSI bus (required for SCSI)
device  da  # Direct Access (disks)
device  uart# Generic UART driver

device  miibus  # MII bus support
device  vr  # VIA Rhine, Rhine II

device  wlan# 802.11 support
device  wlan_ccmp   # 802.11 CCMP support
device  wlan_tkip   # 802.11 TKIP support
device  ath # Atheros pci/cardbus NIC's
device  ath_hal # pci/cardbus chip support
options AH_SUPPORT_AR5416   # enable AR5416 tx/rx descriptors
device  ath_rate_sample # SampleRate tx rate control for ath
device  loop# Network loopback
device  random  # Entropy device
device  ether   # Ethernet support
device  tap # Ethernet tunnel.
device  tun # Packet tunnel.
device  pty # BSD-style compatibility pseudo ttys
device  md  # Memory "disks"
device  gif # IPv6 and IPv4 tunneling
device  bpf # Berkeley packet filter
device  uhci# UHCI PCI->USB interface
device  ohci# OHCI PCI->USB interface
device  ehci# EHCI PCI->USB interface (USB 2.0)
device  usb # USB Bus (required)
device  ulpt# Printer
device  umass   # Disks/Mass storage - Requires scbus and da
___
freebsd-stab

Re: ath0: stuck beacon; resetting (bmiss count 4)

2009-09-26 Thread Graham Menhennitt
Back in July, I asked the following on this list. I didn't get any replies.

I was running 7.2 at the time and the messages were coming up every
couple of minutes. Now I've upgraded to 8-RC1 and the same message is
coming out on the console every few seconds. The miss count limit is now
a sysctl tunable. I've increased it to 20 which slows the messages down
but they still happen. I then increased it to 2000 which has stopped
them completely. Although I did get a few "ath0: device timeout" messages.

It seems to work correctly as a WPA2 AP.

Below is the contents of my hostapd.conf and the relevant lines from
rc.conf. Is this something to worry about? Can I improve it any way?

Thanks for any help,
  Graham

hostapd.conf:
interface=wlan0
debug=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=Menhennitt
wpa=2
wpa_passphrase=x
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP

rc.conf:
ifconfig_wlan0="inet xx.xx.xx.xx/25"
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap mode 11g"
hostapd_enable="YES"

Graham Menhennitt wrote:
> I'me getting the message "ath0: stuck beacon; resetting (bmiss count 4)"
> logged to syslog every so often. I have a Soekris net5501 with a Wistron
> CM9  mini-PCI wireless card. I'm running FreeBSD 7.2-stable and "dmesg |
> grep ath0" gives:
>
> ath0:  mem 0xa001-0xa001 irq 15 at device 17.0 on pci0
> ath0: [ITHREAD]
> ath0: WARNING: using obsoleted if_watchdog interface
> ath0: Ethernet address: 00:0b:6b:36:99:93
> ath0: mac 5.9 phy 4.3 radio 3.6
> ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal
> flags 0x150), hal status 12
>
> I've seen Sam Leffler's reply to a previous question about the same log
> message at
> http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004196.html.
>
> Looking at the source code of if_ath.c in stable:
>
> if (sc->sc_bmisscount > 3)/* NB: 3 is a guess */
> taskqueue_enqueue(sc->sc_tq, &sc->sc_bstucktask);\
>
> Now, in head the 3 has been made a variable but it doesn't seem to be
> able to be tuned in any reasonable way.
>
> I've tied increasing it to 20 and it doesn't seem to have any obvious
> bad effects.
>
> So, my questions:
> - is 3 really a good guess?
> - can it be increased safely?
> - what sort of values should I try?
> - are there any consequences of increasing it?
> - could it be made a sysctl tunable?
>   

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


lots of security advisories rehashed

2016-08-12 Thread Graham Menhennitt
I subscribe to the RSS feed of FreeBSD security advisories 
(http://vuxml.freebsd.org/freebsd/rss.xml). Today, it told me that there 
were forty-something advisories. I went to the VuXML site and saw that a 
stack of old entries have been updated to have today as their "Entry" 
date. What's the reason? Is it something to be worried about?


Thanks,

Graham

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Reproducible panic - Going nowhere without my init!

2016-10-06 Thread Graham Menhennitt
Let me preface this by saying that I know nothing about this particular 
bit of code, but...


As a general rule, I would question the use of gettimeofday() while 
panicing. At that stage, everything could have already gone down the 
plug hole.


That said, it already calls sleep(), so maybe that uses the same 
gettimeofday() call internally. In which case, please ignore this comment.


Graham


On 7/10/2016 9:32 AM, Andy Farkas wrote:

With your latest patch applied, I ran through my procedure more
than a dozen times and no panics!

Any explanation why sleep(STALL_TIMEOUT) as apposed to a
bunch of sleep(1)'s tickles the panic?

Also, it is definitely not sleeping for 30 seconds. I guess some
event interrupts the sleep loop?

Thanks heaps for your time and effort,

-andyf

%%%
Please try the following patch.

diff --git a/sbin/init/init.c b/sbin/init/init.c
index bda86b5..25ac2bd 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -870,6 +870,7 @@ single_user(void)
   sigset_t mask;
   const char *shell;
   char *argv[2];
+ struct timeval tv, tn;
  #ifdef SECURE
   struct ttyent *typ;
   struct passwd *pp;
@@ -884,8 +885,13 @@ single_user(void)
   if (Reboot) {
   /* Instead of going single user, let's reboot the machine */
   sync();
- reboot(howto);
- _exit(0);
+ if (reboot(howto) == -1) {
+ emergency("reboot(%#x) failed, %s", howto,
+strerror(errno));
+ _exit(1); /* panic and reboot */
+ }
+ warning("reboot(%#x) returned", howto);
+ _exit(0); /* panic as well */
   }

   shell = get_shell();
@@ -1002,7 +1008,14 @@ single_user(void)
   *  reboot(8) killed shell?
   */
   warning("single user shell terminated.");
- sleep(STALL_TIMEOUT);
+ gettimeofday(&tv, NULL);
+ tn = tv;
+ tv.tv_sec += STALL_TIMEOUT;
+ while (tv.tv_sec > tn.tv_sec || (tv.tv_sec ==
+tn.tv_sec && tv.tv_usec > tn.tv_usec)) {
+ sleep(1);
+ gettimeofday(&tn, NULL);
+ }
   _exit(0);
   } else {
   warning("single user shell terminated, restarting");
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


disk errors: CAM status: Uncorrectable parity/CRC error

2017-09-23 Thread Graham Menhennitt

G'day all,

I'm setting up a machine running 11-Stable on a PC Engines APU2C board. 
It has a 16Gb SSD as its first disk (ada0), and a Seagate 2Tb SATA-3 
disk as its second (ada1). I'm getting lots of read errors on the second 
disk. They appear on the console as:


(ada1:ahcich1:0:0:0): READ_FPDMA_QUEUED. ACB: 60 00 00 6b 02 40 00 00 00 
01 00 00

(ada1:ahcich1:0:0:0): CAM status: Uncorrectable parity/CRC error
(ada1:ahcich1:0:0:0): Retrying command

dmesg:

 ACS-2 ATA SATA 3.x device
ada1: Serial Number 
ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 1907729MB (3907029168 512 byte sectors)
ada1: quirks=0x1<4K>

I've replaced the disk and the cable without improvement. Unfortunately, 
I don't have a second CPU board to try.


Is it possible that the board can't keep up with the data coming from 
the disk? If so, can I try slowing it down somehow?


Any other suggestions, please?

Thanks,

    Graham

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: disk errors: CAM status: Uncorrectable parity/CRC error [SOLVED]

2017-10-06 Thread Graham Menhennitt

On 25/09/2017 08:12, Steven Hartland wrote:

Depends on your exact setup, see the ata and ahci man pages e.g.
hint.ahcich.X.sata_rev
hint.ata.X.devX.sata_rev
hint.ata.X.sata_rev
hint.ata.X.devX.mode
hint.ata.X.mode

    Regards
    Steve

On 24/09/2017 21:02, Graham Menhennitt wrote:

On 24/09/2017 20:47, Steven Hartland wrote:

Try reducing the disk connection speed down to see if that helps.

On Sun, 24 Sep 2017 at 06:49, Graham Menhennitt 
mailto:gra...@menhennitt.com.au>> wrote:


G'day all,

I'm setting up a machine running 11-Stable on a PC Engines APU2C
board.
It has a 16Gb SSD as its first disk (ada0), and a Seagate 2Tb SATA-3
disk as its second (ada1). I'm getting lots of read errors on
the second
disk. They appear on the console as:



Thanks for that Steve. And sorry for taking so long to get back to you.

In my case, adding:

   hint.ahcich.1.sata_rev="2"

to /boot/device.hints seems to have fixed the problem.

My dmesg now says:

   ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
   ada1:  ACS-3 ATA SATA 3.x device
   ada1: Serial Number X
   ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
   ada1: Command Queueing enabled
   ada1: 1907729MB (3907029168 512 byte sectors)

Whereas previously it said:

   ada1: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)

Thanks again,
    Graham

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Re: Does VirtualBox's vboxnetflt(4) work on stable/11 | 11.2?

2018-06-20 Thread Graham Menhennitt
I'm on 11-Stable as of about a month ago. Works or me (although I don't 
stress it very much).


Graham

On 20/06/2018 04:30, Harry Schmalzbauer wrote:

Am 16.06.2018 um 21:42 schrieb Harry Schmalzbauer:
…
To rule out a known vboxnetflt(4) limitation/failure, I'd like to 
know if somebody successfully uses vboxnetflt(4) from 
virtualbox-ose-kmod-5.2.12 on stable/11|11.2.


Really nobody out there who has VirtualBox sucessfully running under 
stable/11 or 11.x with bridged network?


Anyone who tried, but also observed similar problems like I have on 
-current? 


___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: MMC problem on APU2 with 11.2

2018-07-13 Thread Graham Menhennitt

On 13/07/2018 18:46, Ruben wrote:
I have 2 Pc Engines APU's. They have been running 10.x and 11.0/1 
without any issues for quite some time now. I've updated the APU1 to 
11.2 without an problems. The APU2 however throws thousands of


First I thought the sdhc card was to blame and restored a backup from 
11.1 , on a new card but the same problems are induced every time I 
try to upgrade to 11.2 :( I've mounted the sdhc card on another 
FreeBSD machine and did and performed fsck prior to booting 11.2 but 
that doesn't prevent the io errors.


I'm wondering: has anybody managed to run 11.2  successfully on a Pc 
Engines APU2 (from a sdhc card) yet? Or could somebody perhaps suggest 
a way to debug this issue further?


This probably isn't much use to you, but I'm running FreeBSD 11-Stable 
on two APU2s. But I'm booting from SSD, not SDHC. No problems here.


Graham
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Panic

2006-07-23 Thread Graham Menhennitt
On Wed, 19 Jul 2006, Stephen Montgomery-Smith wrote:
>> I just had a kernel panic.  This happened seconds after I started a
>> reboot using alt-ctl-del, at about the time just after it it said it
>> was writing the entropy file.
>>
>> Here is the kernel config file, the results of the dump, and dmesg. 
>> Do you want anything else?  I hope this info helps.
>
>> Fatal trap 12: page fault while in kernel mode
>> current process = 479 (mountd)

I have the same panic reproducibly. Shutting off nfs_server_enable (i.e.
mountd) in rc.conf prevents it. This is with 6-STABLE cvsupped
yesterday. I'll get some more info and follow up the PR.

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


Re: Panic

2006-07-24 Thread Graham Menhennitt
Graham Menhennitt wrote:
> On Wed, 19 Jul 2006, Stephen Montgomery-Smith wrote:
>   
>>> I just had a kernel panic.  This happened seconds after I started a
>>> reboot using alt-ctl-del, at about the time just after it it said it
>>> was writing the entropy file.
>>>
>>> Here is the kernel config file, the results of the dump, and dmesg. 
>>> Do you want anything else?  I hope this info helps.
>>>   
>>> Fatal trap 12: page fault while in kernel mode
>>> current process = 479 (mountd)
>>>   
>
> I have the same panic reproducibly. Shutting off nfs_server_enable (i.e.
> mountd) in rc.conf prevents it. This is with 6-STABLE cvsupped
> yesterday. I'll get some more info and follow up the PR.
>   
I rebuilt my kernel (to enable debugging) and now it doesn't panic. So
it seems that an old kernel (from around the end of May) with a new
mountd (from Sunday) will crash. But a new kernel with a new mountd won't.

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


Re: fetchmail -> sendmail problem

2006-10-04 Thread Graham Menhennitt
Karsten Fuhrmann wrote:
> The problem is the following : I am using fetchmail to download my
> email (from a pop3 server), and fetchmail passes the email to my local
> sendmail daemon who gives it to my local imap server (cyrus). This
> works fine. But sometimes i got a spam email, which has an
> unresolveable dns origin, and this makes my sendmail crazy in a way,
> that s

Can I suggest avoiding the problem by not using sendmail at all. I use
fetchmail to retrieve from a POP3 server and pass emails to procmail
which runs them through spamassassin and then dumps them straight into
my IMAP  (dovecot) server's directories (in maildir format).

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


"ffs_mountroot: can't find rootvp" after cvsup and making worldfmen

2005-03-24 Thread Graham Menhennitt
I just cvsupped to the latest RELENG_5 (as of yesterday) and built and 
installed the world and a new kernel. When I boot the new kernel, I get 
an error "ffs_mountroot: can't find rootvp". At the "mountroot>" prompt, 
whatever I type (even '?') causes a crash and reboot. I can still boot 
my old kernel without a problem. The dmesg from the old kernel and a 
capture of the boot of the new kernel are below. Noticably absent from 
the new one is the line "ad0: 76319MB  [155061/16/63] at 
ata0-master UDMA100" which is my only disk drive.

Can somebody please help?
Thanks,
   Graham
> old kernel <<
Copyright (c) 1992-2005 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.3-STABLE #18: Fri Jan 21 06:23:06 EST 2005
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/fang
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 1.70GHz (1700.03-MHz 686-class CPU)
 Origin = "GenuineIntel"  Id = 0xf12  Stepping = 2
 
Features=0x3febfbff
real memory  = 335478784 (319 MB)
avail memory = 322949120 (307 MB)
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port 0x4000-0x40f7,0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pcib2:  at device 30.0 on pci0
pci2:  on pcib2
rl0:  port 0xc000-0xc0ff mem 
0xe400-0xe4ff irq 11 at device 9.0 on pci2
miibus0:  on rl0
rlphy0:  on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:20:ed:1c:da:f9
pci2:  at device 10.0 (no driver attached)
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port 
0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0:  port 
0xd000-0xd01f irq 5 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0:  at device 31.3 (no driver attached)
uhci1:  port 
0xd800-0xd81f irq 12 at device 31.4 on pci0
uhci1: [GIANT-LOCKED]
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
fdc0:  port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on 
acpi0
sio0: type 16550A, console
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0:  port 0x778-0x77b,0x378-0x37f irq 
7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0:  on ppc0
ppbus0: IEEE1284 device found
Probing for PnP devices on ppbus0:
lpt0:  on ppbus0
lpt0: Interrupt-driven port
atkbdc0:  at port 0x64,0x60 on isa0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
Timecounter "TSC" frequency 1700030560 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
ad0: 76319MB  [155061/16/63] at ata0-master UDMA100
Mounting root from ufs:/dev/ad0s1a

> new kernel <<
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-Console: 
serial port
BIOS drive A: is disk0
BIOS drive C: is disk1
BIOS 639kB/326592kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
([EMAIL PROTECTED], Wed Mar 23 20:16:31 EST 2005)
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\Loading 
/boot/defaults/loader.conf
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\/boot/kernel/kernel 
text=0x252bec |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|data=0x2bbe8+0x30518 
/-\|/-\|/-\|syms=[0x4+0x36040/-\|/-\|/-\|/-+0x4+0x44316\|/-\|/-\|/-\|/-\]
|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/Loading 
/boot/defaults/loader.conf
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-

Re: "ffs_mountroot: can't find rootvp" after cvsup and making worldfmen

2005-03-25 Thread Graham Menhennitt
Doug White wrote:
On Fri, 25 Mar 2005, Graham Menhennitt wrote:
 

I just cvsupped to the latest RELENG_5 (as of yesterday) and built and
installed the world and a new kernel. When I boot the new kernel, I get
an error "ffs_mountroot: can't find rootvp". At the "mountroot>" prompt,
whatever I type (even '?') causes a crash and reboot. I can still boot
my old kernel without a problem. The dmesg from the old kernel and a
capture of the boot of the new kernel are below. Noticably absent from
the new one is the line "ad0: 76319MB  [155061/16/63] at
ata0-master UDMA100" which is my only disk drive.
Can somebody please help?
   

 

Hi Doug. Thanks for responding.
If you break out of the beastie menu with '6' then enter:
unload
boot kernel.old
that will get you your old, working kernel. Make a backup of this kernel
before doing anything else by 'cd /boot; cp -Rp kernel.old kernel.WORKS'.
You can then reference this in loader by doing 'boot kernel.WORKS'.
 

Already done that.
Next we need to determine why the disk did not probe. I'd suggest booting
with -v and looking for messages from ata about disk discovery.
 

A capture of the "boot -v" is below. It doesn't mean anything to me.
Did you change anything in your kernel config between these kernels?
 

No. My kernel config is below too.
Thanks again for helping,
   Graham
Thanks,
   Graham
>>>>>>>>>>>>>>>>> old kernel <<<<<<<<<<<<<<<<<<<<<<
Copyright (c) 1992-2005 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.3-STABLE #18: Fri Jan 21 06:23:06 EST 2005
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/fang
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 1.70GHz (1700.03-MHz 686-class CPU)
 Origin = "GenuineIntel"  Id = 0xf12  Stepping = 2
Features=0x3febfbff
real memory  = 335478784 (319 MB)
avail memory = 322949120 (307 MB)
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
acpi0:  on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port 0x4000-0x40f7,0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pcib2:  at device 30.0 on pci0
pci2:  on pcib2
rl0:  port 0xc000-0xc0ff mem
0xe400-0xe4ff irq 11 at device 9.0 on pci2
miibus0:  on rl0
rlphy0:  on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:20:ed:1c:da:f9
pci2:  at device 10.0 (no driver attached)
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port
0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
uhci0:  port
0xd000-0xd01f irq 5 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0:  at device 31.3 (no driver attached)
uhci1:  port
0xd800-0xd81f irq 12 at device 31.4 on pci0
uhci1: [GIANT-LOCKED]
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
fdc0:  port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: [FAST]
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0
sio0: type 16550A, console
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0:  port 0x778-0x77b,0x378-0x37f irq
7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0:  on ppc0
ppbus0: IEEE1284 device found
Probing for PnP devices on ppbus0:
lpt0:  on ppbus0
lpt0: Interrupt-driven port
atkbdc0:  at port 0x64,0x60 on isa0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
Timecounter "TSC" frequency 1700030560 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 2 steps (100% to 50.0%), currently 100.0%
ad0: 76319MB  [155061/16/63] at ata0-master UDMA100
Mounting root from ufs:/dev/ad0s1a
>>>>>>>>>>>>>>>>>>>>> new kernel <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
/-\|/-\|/-\|/-\

Re: "ffs_mountroot: can't find rootvp" after cvsup and making worldfmen

2005-03-27 Thread Graham Menhennitt
Doug White wrote:
On Sat, 26 Mar 2005, Graham Menhennitt wrote:
 

I just cvsupped to the latest RELENG_5 (as of yesterday) and built and
installed the world and a new kernel. When I boot the new kernel, I get
an error "ffs_mountroot: can't find rootvp". At the "mountroot>" prompt,
whatever I type (even '?') causes a crash and reboot. I can still boot
my old kernel without a problem. The dmesg from the old kernel and a
capture of the boot of the new kernel are below. Noticably absent from
the new one is the line "ad0: 76319MB  [155061/16/63] at
ata0-master UDMA100" which is my only disk drive.
   

Hm .. from the -v output it looks like the first ATA channel is not
resetting properly for the probe. We'll need to get a better idea of when
the problem appears since a lot has changed between January and now.
 

Doug,
I compared the output of "boot -v" for the working and broken kernels. 
It seems that the broken one does fewer loops around the disk probe and 
hence has less lines of
   ata0-master: stat=0x90 err=0x90 lsb=0x90 msb=0x90
than the one that works. Since that line comes from ata-lowlevel.c, I 
cvs'ed versions of that file going back to around when I built the 
working kernel. The following seems to be the change that broke it.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
--- ata-lowlevel.cMon Mar 28 15:59:57 2005
+++ ata-lowlevel.c_origWed Mar 23 19:17:46 2005
@@ -605,19 +605,26 @@
}
}
if (mask == 0x01)/* wait for master only */
-if (!(stat0 & ATA_S_BUSY) || (stat0 == 0xff && timeout > 5))
+if (!(stat0 & ATA_S_BUSY) || (stat0 == 0xff && timeout > 5) ||
+(stat0 == err && lsb == err && msb == err && timeout > 5))
break;
if (mask == 0x02)/* wait for slave only */
-if (!(stat1 & ATA_S_BUSY) || (stat1 == 0xff && timeout > 5))
+if (!(stat1 & ATA_S_BUSY) || (stat1 == 0xff && timeout > 5) ||
+(stat1 == err && lsb == err && msb == err && timeout > 5))
break;
if (mask == 0x03) {/* wait for both master & slave */
if (!(stat0 & ATA_S_BUSY) && !(stat1 & ATA_S_BUSY))
break;
-if (stat0 == 0xff && timeout > 5)
+if ((stat0 == 0xff && timeout > 5) ||
+(stat0 == err && lsb == err && msb == err && timeout > 5))
mask &= ~0x01;
-if (stat1 == 0xff && timeout > 5)
+if ((stat1 == 0xff && timeout > 5) ||
+(stat1 == err && lsb == err && msb == err && timeout > 5))
mask &= ~0x02;
}
+if (mask == 0 && !(stat0 & ATA_S_BUSY) && !(stat1 & ATA_S_BUSY))
+break;
+
ata_udelay(10);
}   
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Anyway, I now have a working kernel. I presume that I should file a PR 
on this.

Thanks again for your help.
   Graham
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: "ffs_mountroot: can't find rootvp" after cvsup and making worldfmen

2005-04-04 Thread Graham Menhennitt
Doug White wrote:
Anyway, I now have a working kernel. I presume that I should file a PR
on this.
   

Yes please.
 

Done - kern/79332
Do you have a long delay at the point where the bogus messages are printed
in the newer kernel, but in the older? The change implies that it will get
out of a busted channel faster, but your disk apparently needs a longer
delay.  If its hanging for the full 30s on the working kernel then that
woud explain why shortening the dealy ends up with a missing disk.
 

No, there is about a 3 second delay.
If you want to try another workaround, increase the ata_udelay(10); by
2, and progressively longer until your disk reappears. (You may want to
reduce the for exit condition on timeout since it'll wait 310 iterations.)
If that doesn't work, start increasing the DELAY()s.
 

I've increased it to 40 and it fixes the problem - 30 doesn't. 
I'll update the PR to reflect this.

Thanks for your help,
 Graham
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Block IP

2006-12-21 Thread Graham Menhennitt
Christopher Hilton wrote:
> If it's at all possible switch to using public keys for authentication
> with ssh and disallow password authentication. This completely stops
> the brute forcing attacks from filling up your periodic security mail.
Are you sure about that? I only allow PublickeyAuthentication ssh2
connections but I get lots of security mail messages like:

Nov 16 01:44:08 maxwell sshd[70067]: Invalid user marcos from 202.54.49.7
Nov 16 01:44:23 maxwell sshd[70067]: reverse mapping checking getaddrinfo for 
49-7.broadband.vsnl.net.in failed - POSSIBLE BREAKIN ATTEMPT!


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


Re: php apache2 config

2007-01-23 Thread Graham Menhennitt

Matthew Herzog wrote:
When I load a file named php4.info I can see all my php build 
information.


If I change that same file's name to phpinfo.php, I get a "premature
end of script headers"
error.  The file contains this text only:



and is owned by apache.

This is purely a guess since I know nothing about php or apache...

Is phpinfo() causing a recursive call to phpinfo.php by chance?

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


Re: Disappointed

2006-04-07 Thread Graham Menhennitt

>>> Who in their right mind would think that "stable" actually means
>>> "stable"!!!
>>>   
>>
>> It does mean that the API is stable.
>>   /\
>>   ||
>>
> Then maybe it should be called api-stable!!
You can't believe how disappointed I was. I thought I was going to get a
pony in a stable. I'm never using FreeBSD again. It just doesn't live up
to its name. I'm going back to alt.binaries.pictures.horses!
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: quota deadlock on 6.1-RC1

2006-05-04 Thread Graham Menhennitt
David Kirchner wrote:
> This assumes that 6.1 absolutely must be released
If you don't think that 6.1 must be released then just ignore it and
wait for 6.2. If you like, you can even pretend that 6.1 never existed.

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


Re: [Fwd: Custom termcap entries and installworld]

2006-05-29 Thread Graham Menhennitt
Stephen Hurd wrote:
>
>
>
>
>
> 1) How do people cope with custom termcap entries?

One workaround is to not modify /etc/termcap at all. Instead just store
them in a file somewhere and (depending on your shell) do
export TERMCAP=/my/custom/termcap
Or even
export TERMCAP=custom:my custom entry

See the ENVIRONMENT section near the bottom of "man 3 curses".

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


Re: buggy ATA controller: I can install 4.11, but not 5.3 !?!

2005-04-26 Thread Graham Menhennitt
Rob wrote:
Another reminder: when I try to install 5.3 on this
PC, I get a "no disk found" error at a very early
stage of the installation procedure. I hope to
investigate this further in a not-so-near future
 

Rob,
I have a similar problem with 5.3 although I'm not doing a new install - 
I'm upgrading from an earlier 5.X. Can you please try installing a 5.X 
from December last year or earlier. Actually, you don't need to install 
anything - I'd just like to know whether it can see the disk. I've 
faised PR kern/79332 about it which contains two possible fixes.

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


Re: pkg question...

2005-05-17 Thread Graham Menhennitt
Yann Golanski wrote:
Is there a way to remove a package and the dependencies that only said
package uses?
 

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


Re: pkg question...

2005-05-17 Thread Graham Menhennitt
Peter Jeremy wrote:
On Tue, 2005-May-17 22:19:05 +1000, Graham Menhennitt wrote:
 

Yann Golanski wrote:
   

Is there a way to remove a package and the dependencies that only said
package uses?
 

ports -> sysutils/pkg_rmleaves
   

That is an interactive script that lets you delete all packages that
aren't required by other packages.  You still need some way to work
out what dependencies were installed by the first package.
 

But I think it can be made to do what Yann wants. You can pkg_delete the 
original package/port (A as he described it). Then run pkg_rmleaves 
(possibly more than once) and it will delete B and D, but keep C because 
it's not a leaf. If you have any leaf packages that you don't want to 
delete, you need to be careful of those. Perhaps run pkg_rmleaves before 
deleting A and note any pre-existing leaves.

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


Re: My Seagate Baraccuda doesnt PROBE on version 5.x

2005-07-23 Thread Graham Menhennitt

James wrote:


I was using version 4.x of freeBSD and it works fine. In a
following days, I decide to change on version 5.4. During on
booting process and detecting hardwares, in a bit of portion my
two (2) Seagate 40G Baraccuda ( Primary Master and Secondary
Master) was not been successfully detected and I dont know why.
This what display on the screen.

For 5.x Version
---
ata0-slave: FAILURE - ATAP_IDENTIFY timed out
ata0-slave: FAILURE - ATAP_IDENTIFY timed out
 



James,

Have a look at PR kern/79332 
. I don't get 
exactly the same messages as you do but it looks fairly similar. Try 
building a custom kernel with one of the patches from there and see if 
it fixes your problem.

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


Re: [PATCH] option to re-enable aggressive ATA probing

2005-09-27 Thread Graham Menhennitt

Tim Howe wrote:

Tim Howe <[EMAIL PROTECTED]> writes:

  

ata0-master: stat=0xd0 err=0xd0 lsb=0xd0 msb=0xd0



This turned out to be the key.

Version 1.51 of ata-lowlevel.c added a check for stat0/1, err, lsb, and
msb being identical.  If they are, it aborts the probe.  The attached
  
See also PR kern/79332 where I reported a similar problem and a fix. My 
patch has not been acted upon, but the problem no longer seems to exist 
in 6.0 beta 3.


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


puzzling "ipfw show" output

2005-12-12 Thread Graham Menhennitt

I got the following output from "ipfw show" in my daily security run output 
email.

+++ /tmp/security.yri47lgA  Mon Dec 12 03:01:45 2005
+00522  3530 1204158 deny ip from 10.0.0.0/8 to any via sis1
+0252218 784 deny tcp from any to any in via sis1 setup
+65530 0   0 deny ip from any to any
+65535 2 688 deny ip from any to any

Could somebody please explain to me how those packets got past rule 65530 to be 
stopped by (the identical) rule 65535? The ipfw rules have not changed since 
the machine rebooted. The only explanation I have is that the packets arrived 
between the time when the machine started accepting incoming packets and when 
the rules were loaded in /etc/rc.d/ipfw.

If that's the case, it's a pretty good argument for defaulting to rejecting 
packets. Didn't somebody here suggest that this wasn't really necessary a few 
weeks ago (something to do with using pf)?

Graham

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


Re: puzzling "ipfw show" output

2005-12-12 Thread Graham Menhennitt

Trond Endrestøl wrote:

On Mon, 12 Dec 2005 19:09+1100, Graham Menhennitt wrote:

  

The only explanation I have is that the packets arrived between the
time when the machine started accepting incoming packets and when
the rules were loaded in /etc/rc.d/ipfw.



You just explained this yourself.

One solution to this small problem could be to change part of the boot
sequence into this:

a. Create VLAN interfaces etc if configured, assign IP addresses to
   each configured interface, but do not UP them.

b. Load the firewall rules, and optionally turn on forwarding.

c. Set all configured interfaces to UP.

One last question:

Why do you need rule 65530 when the built-in rule 65535 does the same
job?

  
Thanks Trond. You've confirmed what I suspected. I just wanted to be 
sure that there wasn't something dodgy happening.


As James has already said, the extra rule is so that it doesn't matter 
if the "default to accept" option is set or not. It would also handle 
the case where I made a mistake and accidentally turned that option on, 
or there was a bug in the kernel that made it the default. Just making sure.


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


network interface dies randomly - ifconfig down then up fixes

2001-11-01 Thread Graham Menhennitt

I have a Arris Cornerstone CM200 cable modem connected to my FreeBSD stable 
(cvsupped last week) box via UTP into a NE2000 compatible ISA Ethernet 
adaptor. The connection randomly dies. I can send pings out of it and see 
the Activity LED flash on the modem but the FreeBSD box never sees any 
replies. Doing "ifconfig ed1 down" followed by "ifconfig ed1 up" fixes it. 
It's been happening for about the last two weeks (so it happened before the 
most recent cvsup also).

Does anybody have any suggestions?

Thanks for any help,
Graham


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



Re: weirdness w/ gdb (and others) and home directory

2000-04-10 Thread Graham Menhennitt

You don't have a line saying just "cd" at the start of your
.profile/bashrc/.cshrc by any chance, do you?

Graham

On Tue, 2 Jan 1996 01:22:11 +, you wrote:

> Hi.  I'm seeing some "weird" stuff with my 4.0-STABLE box.  The
> symptom is:
> 
> tim:/tmp$ gdb /bin/pwd
> GNU gdb 4.18
> 
> [License]
> 
> This GDB was configured as "i386-unknown-freebsd"...
> (no debugging symbols found)...
> (gdb) run
> Starting program: /bin/pwd 
> warning: shared library handler failed to enable breakpoint
> /usr/home/tim
> 
> Program exited normally.
> (gdb) 
> 
> 
> It prints "/usr/home/tim", even though I was in "/tmp" when I ran
> it.


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



XFree86 4.0.1 port fails "don't know how to make: clean"

2000-07-17 Thread Graham Menhennitt

I sent this to the ports mailing list but didn't get a reply. I'll try
here...

Has anybody had any success with building the XFree86 4.0.1 port (on
4-Stable, although I doubt that it makes an difference)? I've tried a few
times and I always get:
don't know how to make: clean
in the "doc" directory. When I look at the Makefile in that directory, it
has a size of zero bytes!!

It's a very clean machine (just installed 4.0, cvsup'ed to 4-Stable, made
the world and the kernel, mergemastered, and rebooted). The checksums
verified correctly, the extract works ok, the config stuff seems to
work, and it starts building. Very soon after, it aborts

Does somebody have a clue?

Thanks,
Graham


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