Re: vfs.nfs.iothreads

2013-01-03 Thread Jason McIntyre
On Sun, Dec 23, 2012 at 08:01:46PM +0001, Jason McIntyre wrote:
> On Sun, Dec 23, 2012 at 08:17:01PM +0100, Jan Stary wrote:
> > 
> > Yes, on the _client_ (sorry, I should have been explicit).
> > What got me trying it is that sysctl(8) says
> > 
> > To adjust the number of kernel nfsio threads
> > used to service asynchronous I/O requests on
> > an NFS _client_ machine.
> > 
> > Your diff seems to imply that this affects the _server_.
> > 
> > However, on the client, vfs.nfs.iothreads jumps to 4
> > as soon as I mount the NFS share. On the server, it stays at -1.
> > 
> > On the client, when I start copying from the server, it stays at 4;
> > on the server it stays at -1.  Same when I copy the other way round.
> > 
> > So it really seems to affect the client (as sysctl(8) currently says),
> > which I think makes your diff incorrect.
> > 
> > After I unmount the share on the client, vfs.nfs.iothreads
> > stays on 4; I set that manually to -1, and it jumps to 20,
> > without even having anything NFS-mounted. Is that intended?
> > Setting it manually to anything but -1 then panicked my
> > 5.2/i386 client. (I would try current, but that's currently
> > not bootable on my i386 laptop.)
> > 
> 
> ok, so unless someone steps up and explains to me how this is meant to
> work i can;t do much...
> 

so after some help from blambert, i've committed a doc fix. i've not
documented the fact that -1 is kind of the default. i'm not sure if
explaining it is that helpful. nor do i know why it's done this way.

as to the behaviour you're seeing whilst fiddling with the sysctl, i
can't help you there i'm afraid.

jmc



Re: panic: mtx_enter: locking against myself

2013-01-03 Thread Stuart Henderson
On 2013-01-03, mxb  wrote:
> Sorry for the noise. I think I'v found the problem.

Any more information on what it was??
Even if it was something you've done, that should't happen..



>> On 1 jan 2013, at 19:11, mxb  wrote:
>>> 
>>> I'v got yet another panic.
>>> This time, after applying Martin Pelikans' diff, catched a pointer.
>>> However, machine never drops to ddb, even sysctl.conf says it should.
>>> 
>>> panic: mxt_enter: locking against myself, 0x80a2d540
>>> kernel: privileged instruction fault trap, code=0
>>> kernel: double fault trap, code=0
>>> 
>>> I was able to reproduce this several times and whenever I wanted it.
>>> 
>>> Here is scenario(or setup) then I was able to trigger:
>>> Two networks with OSPF-routing on top of GRE on top of IPSec. 
>>> Client on network1 starts scp-download from a firewall(fw1) on network2. 
>>> fw1 acts as a VPN/OSPF/GRE end-point for network2.
>>> After some time(1min or so) fw1 goes down with panic above.
>>> Basically I tried to scp down kernel from this machine.
>>> 
>>> However, fw1 never goes down then I "scp up" from an Internal network 
>>> behind fw1.
>>> I my case this was a patched kernel with Martins' diff from a VM-machine 
>>> sitting behind fw1.



High uptime load values but not high load

2013-01-03 Thread Loïc Blot
Hello,
Since this morning is get a high uptime value for server load, but the
server does nothing. It's our CARP backup gateway for our clients, and
it stays in backup mode since few month.

The CPU does nothing special, the gateway is waiting failover, the
memory isn't used (3G/16G Ram), and disk IO are normal.

Here is my systat output:



1 usersLoad 21.49 21.47 21.21  Thu Jan  3
14:45:36 2013

memory totals (in KB)PAGING   SWAPPING
Interrupts
   real   virtual free   in  out   in  out 2595
total
Active  1987252   1987252 13376804   ops398
clock
All 2862376   2862376 30156692   pages 1714
ipi

acpi0
Proc:r  d  s  wCsw   Trp   Sys   Int   Sof  Flt   forks 408
mfi0
   23 11  2993   116  4839   481   251   80   fkppw  26
em0
  fksvm  49
em1
   0.2%Int   1.4%Sys   0.2%Usr   0.0%Nic  98.2%Idle   pwait
ehci0
|||||||||||   relck
ehci1
= rlkok
ahci0
  noram
Namei Sys-cacheProc-cacheNo-cache   3 ndcpy
Calls hits%hits %miss   % fltcp
 7722 6252   81  1157  15   5 zfod
  cow
Disks   sd0   cd0  135326 fmin
seeks  180434 ftarg
xfers   407   itarg
speed   11M 4 wired
  sec   1.0   pdfre
  pdscn
  pzidle
   17 kmapent

   162
IPKTS
 56
OPKTS
+++

Do you have any idea why uptime usage is so high ?

Thanks for advance

-- 
Best regards, 


Loïc BLOT, Engineering
UNIX Systems, Security and Networks
http://www.unix-experience.fr



Re: High uptime load values but not high load

2013-01-03 Thread Peter Hessler
On 2013 Jan 03 (Thu) at 14:49:35 +0100 (+0100), Loïc Blot wrote:
:Hello,
:Since this morning is get a high uptime value for server load, but the
:server does nothing. It's our CARP backup gateway for our clients, and
:it stays in backup mode since few month.
:
:The CPU does nothing special, the gateway is waiting failover, the
:memory isn't used (3G/16G Ram), and disk IO are normal.
:

Not true.


:Here is my systat output:
:
:
:
:1 usersLoad 21.49 21.47 21.21  Thu Jan  3
:14:45:36 2013
:
:memory totals (in KB)PAGING   SWAPPING
:Interrupts
:   real   virtual free   in  out   in  out 2595
:total
:Active  1987252   1987252 13376804   ops398
:clock
:All 2862376   2862376 30156692   pages 1714
:ipi
:
:acpi0
:Proc:r  d  s  wCsw   Trp   Sys   Int   Sof  Flt   forks 408
:mfi0
:   23 11  2993   116  4839   481   251   80   fkppw  26

^^
You have 23 processes waiting on disk IO.  This is what is causing the
load.



:em0
:  fksvm  49
:em1
:   0.2%Int   1.4%Sys   0.2%Usr   0.0%Nic  98.2%Idle   pwait
:ehci0
:|||||||||||   relck
:ehci1
:= rlkok
:ahci0
:  noram
:Namei Sys-cacheProc-cacheNo-cache   3 ndcpy
:Calls hits%hits %miss   % fltcp
: 7722 6252   81  1157  15   5 zfod
:  cow
:Disks   sd0   cd0  135326 fmin
:seeks  180434 ftarg
:xfers   407   itarg
:speed   11M 4 wired
:  sec   1.0   pdfre
:  pdscn
:  pzidle
:   17 kmapent
:
:   162
:IPKTS
: 56
:OPKTS
:+++
:
:Do you have any idea why uptime usage is so high ?
:
:Thanks for advance
:
:-- 
:Best regards, 
:
:
:Lo??c BLOT, Engineering
:UNIX Systems, Security and Networks
:http://www.unix-experience.fr
:

-- 
Know what I hate most?  Rhetorical questions.
-- Henry N. Camp



Re: High uptime load values but not high load

2013-01-03 Thread Loïc Blot
Thanks for your answer, it's sendmail which is waiting disk and forks
himself... strange because i don't use sendmail, even if it was default
activated
-- 
Best regards, 


Loïc BLOT, Engineering
UNIX Systems, Security and Networks
http://www.unix-experience.fr



Le jeudi 03 janvier 2013 à 15:38 +0100, Peter Hessler a écrit :

> On 2013 Jan 03 (Thu) at 14:49:35 +0100 (+0100), Loïc Blot wrote:
> :Hello,
> :Since this morning is get a high uptime value for server load, but the
> :server does nothing. It's our CARP backup gateway for our clients, and
> :it stays in backup mode since few month.
> :
> :The CPU does nothing special, the gateway is waiting failover, the
> :memory isn't used (3G/16G Ram), and disk IO are normal.
> :
> 
> Not true.
> 
> 
> :Here is my systat output:
> :
> :
> :
> :1 usersLoad 21.49 21.47 21.21  Thu Jan  3
> :14:45:36 2013
> :
> :memory totals (in KB)PAGING   SWAPPING
> :Interrupts
> :   real   virtual free   in  out   in  out 2595
> :total
> :Active  1987252   1987252 13376804   ops398
> :clock
> :All 2862376   2862376 30156692   pages 1714
> :ipi
> :
> :acpi0
> :Proc:r  d  s  wCsw   Trp   Sys   Int   Sof  Flt   forks 408
> :mfi0
> :   23 11  2993   116  4839   481   251   80   fkppw  26
> 
> ^^
> You have 23 processes waiting on disk IO.  This is what is causing the
> load.
> 
> 
> 
> :em0
> :  fksvm  49
> :em1
> :   0.2%Int   1.4%Sys   0.2%Usr   0.0%Nic  98.2%Idle   pwait
> :ehci0
> :|||||||||||   relck
> :ehci1
> := rlkok
> :ahci0
> :  noram
> :Namei Sys-cacheProc-cacheNo-cache   3 ndcpy
> :Calls hits%hits %miss   % fltcp
> : 7722 6252   81  1157  15   5 zfod
> :  cow
> :Disks   sd0   cd0  135326 fmin
> :seeks  180434 ftarg
> :xfers   407   itarg
> :speed   11M 4 wired
> :  sec   1.0   pdfre
> :  pdscn
> :  pzidle
> :   17 kmapent
> :
> :   162
> :IPKTS
> : 56
> :OPKTS
> :+++
> :
> :Do you have any idea why uptime usage is so high ?
> :
> :Thanks for advance
> :
> :-- 
> :Best regards, 
> :
> :
> :Lo??c BLOT, Engineering
> :UNIX Systems, Security and Networks
> :http://www.unix-experience.fr
> :



Re: Goodbye to you my file descriptor - take 3

2013-01-03 Thread Maxime Villard
Le 29/12/2012 08:35, Philip Guenther a écrit :
> On Fri, Dec 28, 2012 at 10:16 PM, Maxime Villard  wrote:
>> Le 29/12/2012 02:46, Philip Guenther a écrit :
>>> On Thu, Dec 27, 2012 at 5:04 AM, Maxime Villard  wrote:
 Well, as no one seems to give a fuck on tech@, I put a more
 glamourous title here.
>>>
>>> The fd/FILE part of your diff changes the behavior of pfctl to be
>>> incorrect when there are no states.
>>
>> Hum,
>>
>> Before:
>> - we open the file, go in the loop to do ioctl stuff,
>>   and if it fails BAM we lose the fd when returning at l.1893 or
>>   l.1889. If it worked, we write data to the file and close it.
> 
> And if there are no states at all, such that the first call to
> ioctl(DIOCGETSTATES) returns with ps_len=0, then pfctl_state_store()
> returns without closing the file but *AFTER* it created the file.  The
> file is, of course, closed when the process later exits, leaving it a
> zero byte file.
> 
> 
>> Now:
>> - we go in the loop, we do ioctl stuff, and then if nothing
>>   failed we open the file and write data to it, and close it.
>>   If something failed in the loop, we return without leaking f.
> 
> AND WITHOUT CREATING THE FILE.
> 


--- pfctl.c 2012-09-19 17:52:17.0 +0200
+++ pfctl.c 2013-01-01 16:07:10.388266823 +0100
@@ -1885,12 +1885,16 @@
 
if (ps.ps_len + sizeof(struct pfioc_states) < len)
break;
-   if (len == 0 && ps.ps_len == 0)
+   if (len == 0 && ps.ps_len == 0) {
+   fclose(f);
return;
+   }
if (len == 0 && ps.ps_len != 0)
len = ps.ps_len;
-   if (ps.ps_len == 0)
+   if (ps.ps_len == 0) {
+   fclose(f);
return; /* no states */
+   }
len *= 2;
}
 



> 
>> The fd is not used in the loop, I just moved it down. So I don't
>> see what behaviour it changes.
> 
> Uh huh.  You didn't try it either.
> 
> 
> Philip Guenther



openBSD 5.2 amd64 on lenovo x201s

2013-01-03 Thread Andriy Samsonyuk
Hi,

i am running OpenBSD 5.2 amd64 on lenovo x201s (dmesg and Xorg.log attached).
So far i have only one issue with X11:
after starting X11 with startx or xinit i cannot change to ttyCX anymore,
only black screens. After termination of X only black screen remains.
The system is working (responding to keyboard and login via ssh), but 
i am getting no visual output.

Any ideas?

Kind regards

Andriy

-- 
It is a wise father that knows his own child.
-- William Shakespeare, "The Merchant of Venice"
OpenBSD 5.2 (GENERIC.MP) #368: Wed Aug  1 10:04:49 MDT 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4078419968 (3889MB)
avail mem = 3947483136 (3764MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version "6QET64WW (1.34 )" date 02/24/2011
bios0: LENOVO 5397FEG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA DMAR 
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP1(S4) EXP2(S4) EXP3(S4) 
EXP4(S4) EXP5(S4) EHC1(S3) EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7 CPU L 640 @ 2.13GHz, 2128.41 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7 CPU L 640 @ 2.13GHz, 2128.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i7 CPU L 640 @ 2.13GHz, 2128.00 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i7 CPU L 640 @ 2.13GHz, 2128.00 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,PCLMUL,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF
cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 13 (EXP1)
acpiprt3 at acpi0: bus -1 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus -1 (EXP4)
acpiprt6 at acpi0: bus 2 (EXP5)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4646" serial  1282 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2128 MHz: speeds: 2134, 2133, 1999, 1866, 1733, 1599, 
1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16
drm0 at inteldrm0
"Intel 3400 MEI" rev 0x06 at pci0 dev 22 function 0 not configured
"Intel 3400 KT" rev 0x06 at pci0 dev 22 function 3 not configured
em0 at pci0 dev 25 function 0 "Intel 82577LM" rev 0x06: msi, address 
00:26:2d:f0:f5:7e
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x06: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 3400 HD Audio" rev 0x06: msi
azalia0: codecs: Conexant/0x5069, Intel/0x2804, using Conexant/0x5069
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x06: msi
pci1 at ppb0 bus 13
ppb1 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x06: msi
pci2 at ppb1 bus 2
iwn0 at pci2 dev 0 function 0 "Intel Centrino Advanced-N 6200" rev 0x35: msi, 
MIMO 2T2R, MoW, address 00:23:14:2e:8a:c8
ehci1 at pci0 dev 29 function 0 "Intel 3400 U

Re: openBSD 5.2 amd64 on lenovo x201s

2013-01-03 Thread David Coppa
On Thu, Jan 3, 2013 at 3:07 PM, Andriy Samsonyuk
 wrote:
> Hi,
>
> i am running OpenBSD 5.2 amd64 on lenovo x201s (dmesg and Xorg.log attached).
> So far i have only one issue with X11:
> after starting X11 with startx or xinit i cannot change to ttyCX anymore,
> only black screens. After termination of X only black screen remains.
> The system is working (responding to keyboard and login via ssh), but
> i am getting no visual output.
>
> Any ideas?

It's a known issue with {Sandy,Ivy}Bridge chipsets.



Re: openBSD 5.2 amd64 on lenovo x201s

2013-01-03 Thread Francois Pussault
I think this is a problem with bridge chips.

> 
> From: Andriy Samsonyuk 
> Sent: Thu Jan 03 15:07:51 CET 2013
> To: 
> Subject: openBSD 5.2 amd64 on lenovo x201s
> 
> 
> Hi,
> 
> i am running OpenBSD 5.2 amd64 on lenovo x201s (dmesg and Xorg.log attached).
> So far i have only one issue with X11:
> after starting X11 with startx or xinit i cannot change to ttyCX anymore,
> only black screens. After termination of X only black screen remains.
> The system is working (responding to keyboard and login via ssh), but 
> i am getting no visual output.
> 
> Any ideas?
> 
> Kind regards
> 
> Andriy
> 
> -- 
> It is a wise father that knows his own child.
>   -- William Shakespeare, "The Merchant of Venice"


Cordialement
Francois Pussault
3701 - 8 rue Marcel Pagnol
31100 Toulouse 
France 
+33 6 17 230 820   +33 5 34 365 269 
fpussa...@contactoffice.fr



ralink 3072 not showing up

2013-01-03 Thread Zoran Kolic
After some problems with rsu dongle, I got brand new
Tenda w326u, which is ralink 3072 device, running from
usb adapter. To my surprise, it does not show up as
run or rum, but as umass0. My best guess is that it
should work like a charm.
What else happened? Well, if I put in into the laptop,
it does not boot. I assume all needed drivers are already
installed as part of base system. What additional info
I might provide further? Dmesg is the same as in:
http://marc.info/?l=openbsd-misc&m=135679558207507&w=2
Best regards

   Zoran



Re: ralink 3072 not showing up

2013-01-03 Thread Zoran Kolic
Sorry to multi-post. I booted another node. put usb dongle
and got some data:

Jan  3 16:50:49 mycenae kernel: umass0:  on usbus0
Jan  3 16:50:49 mycenae kernel: cd0 at umass-sim0 bus 0 scbus2 target 0 lun 0
Jan  3 16:50:49 mycenae kernel: cd0:  Removable CD-ROM 
SCSI-0 device 
Jan  3 16:50:49 mycenae kernel: cd0: 40.000MB/s transfers
Jan  3 16:50:49 mycenae kernel: cd0: p?

I see device in /dev directoryr, but cannot mount it as cd0 or else.
I'm not aware if I need to install further driver.

   Zoran



Re: ralink 3072 not showing up

2013-01-03 Thread David Coppa
On Thu, Jan 3, 2013 at 4:55 PM, Zoran Kolic  wrote:
> Sorry to multi-post. I booted another node. put usb dongle
> and got some data:
>
> Jan  3 16:50:49 mycenae kernel: umass0:  2.00/0.01, addr 3> on usbus0
> Jan  3 16:50:49 mycenae kernel: cd0 at umass-sim0 bus 0 scbus2 target 0 lun 0
> Jan  3 16:50:49 mycenae kernel: cd0:  Removable CD-ROM 
> SCSI-0 device
> Jan  3 16:50:49 mycenae kernel: cd0: 40.000MB/s transfers
> Jan  3 16:50:49 mycenae kernel: cd0: pô
>
> I see device in /dev directoryr, but cannot mount it as cd0 or else.
> I'm not aware if I need to install further driver.
>
>Zoran
>

Probably a "flip flop" (multiple device) USB adapter.
Didn't know they did this crap for wifi adapters too. Usually only 3g
usb modems behave like this.



Re: ralink 3072 not showing up

2013-01-03 Thread Martin Pieuchot
On 03/01/13(Thu) 16:55, Zoran Kolic wrote:
> Sorry to multi-post. I booted another node. put usb dongle
> and got some data:
> 
> Jan  3 16:50:49 mycenae kernel: umass0:  2.00/0.01, addr 3> on usbus0
> Jan  3 16:50:49 mycenae kernel: cd0 at umass-sim0 bus 0 scbus2 target 0 lun 0
> Jan  3 16:50:49 mycenae kernel: cd0:  Removable CD-ROM 
> SCSI-0 device 
> Jan  3 16:50:49 mycenae kernel: cd0: 40.000MB/s transfers
> Jan  3 16:50:49 mycenae kernel: cd0: p�
> 
> I see device in /dev directoryr, but cannot mount it as cd0 or else.
> I'm not aware if I need to install further driver.
> 
>Zoran
> 

Can you post the output of 'lsusb -v' from the usbutils packages for
this device?

# pkg_add usbutils
$ lsusb -v
...


Martin



Re: ralink 3072 not showing up

2013-01-03 Thread Peter Hessler
On 2013 Jan 03 (Thu) at 16:55:08 +0100 (+0100), Zoran Kolic wrote:
:Sorry to multi-post. I booted another node. put usb dongle
:and got some data:
:
:Jan  3 16:50:49 mycenae kernel: umass0:  on usbus0
:Jan  3 16:50:49 mycenae kernel: cd0 at umass-sim0 bus 0 scbus2 target 0 lun 0
:Jan  3 16:50:49 mycenae kernel: cd0:  Removable CD-ROM 
SCSI-0 device 
:Jan  3 16:50:49 mycenae kernel: cd0: 40.000MB/s transfers
:Jan  3 16:50:49 mycenae kernel: cd0: p�
:
:I see device in /dev directoryr, but cannot mount it as cd0 or else.
:I'm not aware if I need to install further driver.
:
:   Zoran
:

What happens if you run "eject cd0"?  Does it disconnect and reconnect
as anything different?


-- 
"Reflections on Ice-Breaking"
Candy
Is dandy
But liquor
Is quicker.
-- Ogden Nash



ralink 3070 data

2013-01-03 Thread Zoran Kolic
My openbsd laptop failed to reconnect to the router.
I had to move data to new machine. Here it is:

Bus 000 Device 001: ID 8086: Intel Corp. 
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 1 Single TT
  bMaxPacketSize064
  idVendor   0x8086 Intel Corp.
  idProduct  0x 
  bcdDevice1.00
  iManufacturer   1 Intel
  iProduct2 EHCI root hub
  iSerial 0 
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   25
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0x40
  (Missing must-be-set bit!)
  Self Powered
MaxPower0mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 9 Hub
  bInterfaceSubClass  0 Unused
  bInterfaceProtocol  0 Full speed (or root) hub
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0008  1x 8 bytes
bInterval 255
Hub Descriptor:
  bLength  11
  bDescriptorType  41
  nNbrPorts 6
  wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
TT think time 8 FS bits
  bPwrOn2PwrGood  200 * 2 milli seconds
  bHubContrCurrent  0 milli Ampere
  DeviceRemovable0x00
  PortPwrCtrlMask0x00
 Hub Port Status:
   Port 1: .0503 highspeed power enable connect
   Port 2: .0503 highspeed power enable connect
   Port 3: .0500 highspeed power
   Port 4: .0500 highspeed power
   Port 5: .0500 highspeed power
   Port 6: .0500 highspeed power
Device Status: 0x0001
  Self Powered

Bus 000 Device 002: ID 07d1:3303 D-Link System DWA-131 802.11n Wireless N Nano 
Adapter(rev.A1) [Realtek RTL8192SU]
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0 
  bDeviceProtocol 0 
  bMaxPacketSize064
  idVendor   0x07d1 D-Link System
  idProduct  0x3303 DWA-131 802.11n Wireless N Nano Adapter(rev.A1) 
[Realtek RTL8192SU]
  bcdDevice2.00
  iManufacturer   1 Manufacturer Realtek 
  iProduct2 11n Adapter
  iSerial 3 00e04c01
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   46
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0x80
  (Bus Powered)
MaxPower  500mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   4
  bInterfaceClass   255 Vendor Specific Class
  bInterfaceSubClass255 Vendor Specific Subclass
  bInterfaceProtocol255 Vendor Specific Protocol
  iInterface  0 
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83  EP 3 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04  EP 4 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06  EP 6 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x0d  EP 13 OUT
bmAttributes2
   

Re: ralink 3072 not showing up

2013-01-03 Thread Zoran Kolic
At the moment I could post from another laptop only.
Thinking again, I assume I have to remove storage
partition on usb stick, that figures as wifi dongle.
That is the reason why boot hangs and waits for some-
thing to happen.
Since the device in not broken, I probably cannot send
it back. I could try to mount it, but do not see the
device I should mount. Here is the content of /dev on
freebsd node:

acpi
ad4
ad4s1
ad4s1a
ad4s1b
ad4s1d
ad4s1e
ad4s1f
ada0
ada0s1
ada0s1a
ada0s1b
ada0s1d
ada0s1e
ada0s1f
agpgart
atkbd0
audit
bpf
bpf0
bpsm0
cd0
console
consolectl
ctty
devctl
devstat
dri
fd
fido
geom.ctl
iic0
iic1
iic10
iic11
iic12
iic13
iic14
iic15
iic2
iic3
iic4
iic5
iic6
iic7
iic8
iic9
io
kbd0
kbd1
kbdmux0
klog
kmem
led
log
mdctl
mem
null
pass0
pass1
pci
psm0
ptmx
pts
random
stderr
stdin
stdout
sysmouse
ttyv0
ttyv1
ttyv2
ttyv3
ttyv4
ttyv5
ttyv6
ttyv7
ttyv8
ttyv9
ttyva
ttyvb
ttyvc
ttyvd
ttyve
ttyvf
ugen0.1
ugen0.2
ugen0.3
ugen1.1
ugen1.2
urandom
usb
usbctl
xpt0
zero

/dev/cd0 cannot be mounted as msdos file system.
Any idea?

Zoran



Re: openBSD 5.2 amd64 on lenovo x201s

2013-01-03 Thread Jes
And probably no power on usb ports after resume, like my T410.

BR

Jes



Re: openBSD 5.2 amd64 on lenovo x201s

2013-01-03 Thread Mike Erdely
Interestingly, I believe the last time I suspended my T510 and
resumed, my USB ports did have power.  I'l double check when I get
home.

On Thu, Jan 3, 2013 at 12:40 PM, Jes  wrote:
> And probably no power on usb ports after resume, like my T410.
>
> BR
>
> Jes



Re: ralink 3072 not showing up

2013-01-03 Thread Zoran Kolic
Yeah! On openbsd laptop I made it mounted as /dev/cd1c.
It is cd9660 file system and is read only. I cannot do
anything. Files are:
AutoInst.exe
Autorun.inf
Setup.exe
This is just annoying and I cannot find the way to delete it.

  Zoran



Re: ralink 3072 not showing up

2013-01-03 Thread David Coppa
On Thu, Jan 3, 2013 at 7:07 PM, Zoran Kolic  wrote:
> Yeah! On openbsd laptop I made it mounted as /dev/cd1c.
> It is cd9660 file system and is read only. I cannot do
> anything. Files are:
> AutoInst.exe
> Autorun.inf
> Setup.exe
> This is just annoying and I cannot find the way to delete it.
>
>   Zoran
>

Please try:

# eject cd1



D.ROOT-SERVERS.NET.

2013-01-03 Thread epsilon
Hi,

according to

ftp://rs.internic.net/domain/named.root

D.ROOT-SERVERS.NET changed it's IPv4 address.


Index: etc/bind/root.hint
===
RCS file: /cvs/src/etc/bind/root.hint,v
retrieving revision 1.9
diff -u -p -r1.9 root.hint
--- etc/bind/root.hint  22 Jun 2011 05:22:20 -  1.9
+++ etc/bind/root.hint  3 Jan 2013 17:25:45 -
@@ -33,7 +33,7 @@ C.ROOT-SERVERS.NET.  360  A 
 ; FORMERLY TERP.UMD.EDU
 ;
 .360  NSD.ROOT-SERVERS.NET.
-D.ROOT-SERVERS.NET.  360  A 128.8.10.90
+D.ROOT-SERVERS.NET.  360  A 199.7.91.13
 D.ROOT-SERVERS.NET. 360    2001:500:2D::D
 ;
 ; FORMERLY NS.NASA.GOV
Index: usr.sbin/bind/lib/dns/rootns.c
===
RCS file: /cvs/src/usr.sbin/bind/lib/dns/rootns.c,v
retrieving revision 1.6
diff -u -p -r1.6 rootns.c
--- usr.sbin/bind/lib/dns/rootns.c  7 Feb 2008 09:14:47 -   1.6
+++ usr.sbin/bind/lib/dns/rootns.c  3 Jan 2013 17:26:44 -
@@ -63,7 +63,7 @@ static char root_ns[] =
 "A.ROOT-SERVERS.NET. 360 IN  2001:503:BA3E::2:30\n"
 "B.ROOT-SERVERS.NET. 360 IN  A   192.228.79.201\n"
 "C.ROOT-SERVERS.NET. 360 IN  A   192.33.4.12\n"
-"D.ROOT-SERVERS.NET. 360 IN  A   128.8.10.90\n"
+"D.ROOT-SERVERS.NET. 360 IN  A   199.7.91.13\n"
 "E.ROOT-SERVERS.NET. 360 IN  A   192.203.230.10\n"
 "F.ROOT-SERVERS.NET. 360 IN  A   192.5.5.241\n"
 "F.ROOT-SERVERS.NET. 360 IN  2001:500:2F::F\n"
Index: usr.sbin/unbound/iterator/iter_hints.c
===
RCS file: /cvs/src/usr.sbin/unbound/iterator/iter_hints.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 iter_hints.c
--- usr.sbin/unbound/iterator/iter_hints.c  26 Mar 2012 18:05:43 -  
1.1.1.1
+++ usr.sbin/unbound/iterator/iter_hints.c  3 Jan 2013 17:26:47 -
@@ -119,7 +119,7 @@ compile_time_root_prime(struct regional*
if(!ah(dp, r, "A.ROOT-SERVERS.NET.", "198.41.0.4")) return 0;
if(!ah(dp, r, "B.ROOT-SERVERS.NET.", "192.228.79.201")) return 0;
if(!ah(dp, r, "C.ROOT-SERVERS.NET.", "192.33.4.12"))return 0;
-   if(!ah(dp, r, "D.ROOT-SERVERS.NET.", "128.8.10.90"))return 0;
+   if(!ah(dp, r, "D.ROOT-SERVERS.NET.", "199.7.91.13"))return 0;
if(!ah(dp, r, "E.ROOT-SERVERS.NET.", "192.203.230.10")) return 0;
if(!ah(dp, r, "F.ROOT-SERVERS.NET.", "192.5.5.241"))return 0;
if(!ah(dp, r, "G.ROOT-SERVERS.NET.", "192.112.36.4"))   return 0;
Index: usr.sbin/unbound/ldns/drill/root.c
===
RCS file: /cvs/src/usr.sbin/unbound/ldns/drill/root.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 root.c
--- usr.sbin/unbound/ldns/drill/root.c  26 Mar 2012 18:08:26 -  1.1.1.1
+++ usr.sbin/unbound/ldns/drill/root.c  3 Jan 2013 17:26:47 -
@@ -32,7 +32,7 @@ init_root(void)
ldns_rr_list_push_rr(global_dns_root, r);
(void)ldns_rr_new_frm_str(&r, "C.ROOT-SERVERS.NET.  360  A  
   192.33.4.12", 0, NULL, NULL);
ldns_rr_list_push_rr(global_dns_root, r);
-   (void)ldns_rr_new_frm_str(&r, "D.ROOT-SERVERS.NET.  360  A  
   128.8.10.90", 0, NULL, NULL);
+   (void)ldns_rr_new_frm_str(&r, "D.ROOT-SERVERS.NET.  360  A  
   199.7.91.13", 0, NULL, NULL);
ldns_rr_list_push_rr(global_dns_root, r);
(void)ldns_rr_new_frm_str(&r, "E.ROOT-SERVERS.NET.  360  A  
   192.203.230.10", 0, NULL, NULL);
ldns_rr_list_push_rr(global_dns_root, r);



Re: D.ROOT-SERVERS.NET.

2013-01-03 Thread staticsafe
On 1/3/2013 12:35, epsilon wrote:
> Hi,
> 
> according to
> 
> ftp://rs.internic.net/domain/named.root
> 
> D.ROOT-SERVERS.NET changed it's IPv4 address.
> 
> 

Yes indeed, see announcement here:
http://d.root-servers.org/renumber.html

-- 
staticsafe
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post - http://goo.gl/YrmAb



Re: ralink 3072 not showing up

2013-01-03 Thread Zoran Kolic
> Please try:
> 
> # eject cd1

I did and it was possible to see run0. Nothing more.
I cannot approach the router. I fails, since cannot
load microcode number 8051.

 Zoran



Re: Running OpenBSD on Raspberry Pi

2013-01-03 Thread Gene
On Tue, Jan 1, 2013 at 1:31 AM, Bruno Flückiger  wrote:
> On 12/31/12 14:17, BARDOU Pierre wrote:
>>
>> I would be very interested by an OpenBSD port too.
>> Usage : home router with firewall, DNS and DHCP.
>>
>> I am looking into FreeBSD and NetBSD ports, but I would prefer to have
>> the latest PF and OpenSSH versions... plus I am more used to OpenBSD
>> and I like using it
>>
>> If somebody knows X86 hardware able to do the same (routing/firewlling
>> 20 mbps traffic, VLAN, fits in a tiny box, power consumption below 5W,
>> price around 50$) as the raspberry I am interested BTW.
>>
>
> A lot of different embedded devices which base on x86 cpus, just ask the
> web search engine of your trust. It will be hard to get it for "only"
> $50. But paying some more bucks for a system which fits the needs is
> justified in my opinion.
>
> My personal favorites are the boxes from this small company in Switzerland:
>
> http://www.pcengines.ch
>
> Regards,
> Bruno
>

The ALIX hardware is incredible.  I own two of the ALIX boards (2d3
and 2d13), the second one I picked up recently on eBay for $150 with
case and power supply, I added a CF card for an additional ~$10.  I
already have a serial cable on hand, but that would be at most another
$10-$20 to procure.

The ALIX.2d13 has three full fast ethernet (10/100) NICs that aren't
USB devices on a headless x86 compatible system that will utilise ~5W
at high to full load for under $200.  All in one enclosure and rock
solid.

Sure, that may sound expensive, but after purchasing a Raspberry Pi
with a powered USB hub, one or two USB fast ethernet adapters, an SD
card, and whatever other accessories you need it isn't that much of a
price difference.

Or, you can buy a cheap Atom box, throw in some storage and RAM, and
have a much more powerful system at the expense of higher energy
usage.

http://www.newegg.com/Product/Product.aspx?Item=N82E16856205007

That one costs $130 (+taxes and shipping) and has two gig-e NICs.

I own a couple of the Raspberry Pi units.  They're fantastic little
devices, but you'll have to use Linux and have a hodge-podge of
accessories to go with it.

-Gene

(if you see this message twice please forgive me, I'm bad at mailing lists)



Re: ralink 3072 not showing up

2013-01-03 Thread David Coppa
On Thu, Jan 3, 2013 at 7:32 PM, Zoran Kolic  wrote:
>> Please try:
>>
>> # eject cd1
>
> I did and it was possible to see run0. Nothing more.
> I cannot approach the router. I fails, since cannot
> load microcode number 8051.

What are the exact messages from the system?



Re: openBSD 5.2 amd64 on lenovo x201s

2013-01-03 Thread Andriy Samsonyuk
On Thu, Jan 03, 2013 at 06:40:39PM +0100, Jes wrote:
> And probably no power on usb ports after resume, like my T410.
have not checked yet

Do i understand it correctly, that there is no chance of it
running properly until the CEO of Intel want to improve his
karma?

Thanx for your replys!

Andriy

--
Your goose is cooked.
(Your current chick is burned up too!)

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: panic: mtx_enter: locking against myself

2013-01-03 Thread mxb
Now, after several tests I can state that problem is there.
I made sure that /usr/src is clean and up to date (I had Hennings diffs on 
test).

The stock -current kernel crashes with this behavior, eg. panic and loop with 
mtx_enter on console.
This bug is triggered then I transfer /bsd over IPSec. While scp from the same 
machine, but on public side goes fine.

client (network1)<-> fw1 ---> [ ospf over gre over ipsec] <- fw2 
<>network2

client does 'scp fw2.network2_ip:/bsd .'  - results in panic.
client does 'scp fw2.public_ip:/bsd .' - all fine.

Of cause I have CARP both on external and internal sides of fw2.
CARP for internal network on fw1.

Side note is that I noticed drastic speed drop just before system goes in panic.
Normally I have decent speed between two networks, e.g. transfers from clients 
on network2 to client on network1.

Any ideas?

//mxb

On 3 jan 2013, at 13:39, Stuart Henderson  wrote:

> On 2013-01-03, mxb  wrote:
>> Sorry for the noise. I think I'v found the problem.
> 
> Any more information on what it was??
> Even if it was something you've done, that should't happen..
> 
> 
> 
>>> On 1 jan 2013, at 19:11, mxb  wrote:
 
 I'v got yet another panic.
 This time, after applying Martin Pelikans' diff, catched a pointer.
 However, machine never drops to ddb, even sysctl.conf says it should.
 
 panic: mxt_enter: locking against myself, 0x80a2d540
 kernel: privileged instruction fault trap, code=0
 kernel: double fault trap, code=0
 
 I was able to reproduce this several times and whenever I wanted it.
 
 Here is scenario(or setup) then I was able to trigger:
 Two networks with OSPF-routing on top of GRE on top of IPSec. 
 Client on network1 starts scp-download from a firewall(fw1) on network2. 
 fw1 acts as a VPN/OSPF/GRE end-point for network2.
 After some time(1min or so) fw1 goes down with panic above.
 Basically I tried to scp down kernel from this machine.
 
 However, fw1 never goes down then I "scp up" from an Internal network 
 behind fw1.
 I my case this was a patched kernel with Martins' diff from a VM-machine 
 sitting behind fw1.



Re: Small diff to calendar.birthday

2013-01-03 Thread Jason McIntyre
On Thu, Jan 03, 2013 at 09:17:50AM -0500, vadi...@gmail.com wrote:
> On 1/3/13, Jason McIntyre  wrote:
> > why the need for so much detail at all? i can see that birthday entries
> > are not exactly consistent, but why not just "petrovichi, russia, 1920"?
> 
> Maybe just replace "part of USSR" with "Russia":
> 
> -01/02 Isaac Asimov born in Petrovichi, Russian SFSR (now part of USSR), 1920
> +01/02 Isaac Asimov born in Petrovichi, Russian SFSR (now Russia), 1920
> 
> because from 1917 till 1991 the Russia's official name was RSFSR:
> 
> http://en.wikipedia.org/wiki/Russian_Soviet_Federative_Socialist_Republic
> 

great. we can all argue about this for ever!

netbsd: Petrovichi, Russian SFSR (now Russia)
freebsd: Petrovichi, Russian SFSR

given what calendar(1) is, and looking, for example, at how
calendar.music does it (for russian entries), i'm going to change it to:

Petrovichi, Russia

tomorrow, unless another developer changes it first (which would be
absolutely fine by me).

jmc



Re: panic: mtx_enter: locking against myself

2013-01-03 Thread mxb
Here is an older kernel which seems to die the same way.
I actually can not see mtx_enter-loop, but I trigger crash the same way. Remote 
console via IPMI just blinks like a X-mass tree.

OpenBSD 5.2-current (GENERIC.MP) #0: Tue Nov  6 17:03:43 CET 2012
r...@esx9.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP


On 3 jan 2013, at 20:15, mxb  wrote:

> 
> Now, after several tests I can state that problem is there.
> I made sure that /usr/src is clean and up to date (I had Hennings diffs on 
> test).
> 
> The stock -current kernel crashes with this behavior, eg. panic and loop with 
> mtx_enter on console.
> This bug is triggered then I transfer /bsd over IPSec. While scp from the 
> same machine, but on public side goes fine.
> 
> client (network1)<-> fw1 ---> [ ospf over gre over ipsec] <- fw2 
> <>network2
> 
> client does 'scp fw2.network2_ip:/bsd .'  - results in panic.
> client does 'scp fw2.public_ip:/bsd .' - all fine.
> 
> Of cause I have CARP both on external and internal sides of fw2.
> CARP for internal network on fw1.
> 
> Side note is that I noticed drastic speed drop just before system goes in 
> panic.
> Normally I have decent speed between two networks, e.g. transfers from 
> clients on network2 to client on network1.
> 
> Any ideas?
> 
> //mxb
> 
> On 3 jan 2013, at 13:39, Stuart Henderson  wrote:
> 
>> On 2013-01-03, mxb  wrote:
>>> Sorry for the noise. I think I'v found the problem.
>> 
>> Any more information on what it was??
>> Even if it was something you've done, that should't happen..
>> 
>> 
>> 
 On 1 jan 2013, at 19:11, mxb  wrote:
> 
> I'v got yet another panic.
> This time, after applying Martin Pelikans' diff, catched a pointer.
> However, machine never drops to ddb, even sysctl.conf says it should.
> 
> panic: mxt_enter: locking against myself, 0x80a2d540
> kernel: privileged instruction fault trap, code=0
> kernel: double fault trap, code=0
> 
> I was able to reproduce this several times and whenever I wanted it.
> 
> Here is scenario(or setup) then I was able to trigger:
> Two networks with OSPF-routing on top of GRE on top of IPSec. 
> Client on network1 starts scp-download from a firewall(fw1) on network2. 
> fw1 acts as a VPN/OSPF/GRE end-point for network2.
> After some time(1min or so) fw1 goes down with panic above.
> Basically I tried to scp down kernel from this machine.
> 
> However, fw1 never goes down then I "scp up" from an Internal network 
> behind fw1.
> I my case this was a patched kernel with Martins' diff from a VM-machine 
> sitting behind fw1.



Re: ralink 3072 not showing up

2013-01-03 Thread Juan Francisco Cantero Hurtado
On Thu, Jan 03, 2013 at 04:36:03PM +0100, Zoran Kolic wrote:
> After some problems with rsu dongle, I got brand new
> Tenda w326u, which is ralink 3072 device, running from
> usb adapter. To my surprise, it does not show up as
> run or rum, but as umass0. My best guess is that it
> should work like a charm.
> What else happened? Well, if I put in into the laptop,
> it does not boot. I assume all needed drivers are already
> installed as part of base system. What additional info
> I might provide further? Dmesg is the same as in:
> http://marc.info/?l=openbsd-misc&m=135679558207507&w=2
> Best regards
> 

The dmesg isn't the same. You need share other dmesg *with* the devices
connected.

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



trunking

2013-01-03 Thread Friedrich Locke
Hi folks!

What happens if i have a trunk(loadbalance) interface setted for 2 physical
interfaces and connect each physical one on different switches?

Tnx



trunk limits

2013-01-03 Thread Friedrich Locke
Hi!

How many network interface may i have per trunk device ?

Tnx.



Re: trunking

2013-01-03 Thread mxb
Try it out by yourself on VMWare ESX.

Setups I'm aware of require a stack of two switches, then this will work fine.

On 3 jan 2013, at 21:46, Friedrich Locke  wrote:

> Hi folks!
> 
> What happens if i have a trunk(loadbalance) interface setted for 2 physical
> interfaces and connect each physical one on different switches?
> 
> Tnx



Re: trunk limits

2013-01-03 Thread Gregor Best
On Thu, Jan 03, 2013 at 06:46:43PM -0200, Friedrich Locke wrote:
> [...]
> How many network interface may i have per trunk device ?
> [...]

trunk(4) does not have the answer but perusing net/if_trunk.h leads me
to the conclusion that the maximum number of ports on a trunk device is
32. Maybe that should be added to trunk(4).

-- 
Gregor Best



Re: panic: mtx_enter: locking against myself

2013-01-03 Thread mxb
Now, the -current SP kernel, while triggering, has a better speed and dies a 
bit later with:

kernel: type -1342060160 trap, code 0
Stopped at 0x3deba01b052507f: 

at this point I expected it to drop to ddb, but it didn't.

my sysctl.conf says:
ddb.panic=1 # 0=Do not drop into ddb on a kernel panic
ddb.console=1   # 1=Permit entry of ddb from the console

dmesg:

OpenBSD 5.2-current (GENERIC) #0: Thu Jan  3 22:06:40 CET 2013
r...@esx9.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 4284039168 (4085MB)
avail mem = 4147527680 (3955MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeadc0 (105 entries)
bios0: vendor American Megatrends Inc. version "4.6.4" date 06/30/2011
bios0: Supermicro X9SCL/X9SCM
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC SSDT MCFG HPET SPMI EINJ ERST HEST BERT
acpi0: wakeup devices PS2K(S1) PS2M(S1) UAR1(S4) UAR2(S4) BR20(S1) EUSB(S4) 
USBE(S4) PEX0(S4) PEX4(S4) PEX6(S4) GBE_(S4) P0P1(S4) P0P2(S4) P0P3(S4) 
P0P4(S4) SLPB(S0) PWRB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E31220L @ 2.20GHz, 2195.33 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 7 (BR20)
acpiprt2 at acpi0: bus 5 (PEX0)
acpiprt3 at acpi0: bus 6 (PEX4)
acpiprt4 at acpi0: bus -1 (PEX6)
acpiprt5 at acpi0: bus 1 (P0P1)
acpiprt6 at acpi0: bus 2 (P0P2)
acpiprt7 at acpi0: bus -1 (P0P3)
acpiprt8 at acpi0: bus -1 (P0P4)
acpicpu0 at acpi0: C3, C1, PSS
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2201, 2200, 2100, 2000, 1900, 1800, 
1700, 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Xeon E3-1200 Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 1 function 1 "Intel Core 2G PCIE" rev 0x09: msi
pci2 at ppb1 bus 2
ppb2 at pci2 dev 0 function 0 "Intel 41210 PCIE-PCIX" rev 0x09
pci3 at ppb2 bus 3
bnx0 at pci3 dev 4 function 0 "Broadcom BCM5706" rev 0x02: apic 0 int 17
ppb3 at pci2 dev 0 function 2 "Intel 41210 PCIE-PCIX" rev 0x09
pci4 at ppb3 bus 4
bnx1 at pci4 dev 5 function 0 "Broadcom BCM5706" rev 0x02: apic 0 int 18
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x05: msi, address 
00:25:90:27:da:85
ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
pci5 at ppb4 bus 5
ppb5 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb5: msi
pci6 at ppb5 bus 6
em1 at pci6 dev 0 function 0 "Intel PRO/1000 MT (82574L)" rev 0x00: msi, 
address 00:25:90:27:da:84
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb6 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci7 at ppb6 bus 7
vga1 at pci7 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel C204 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: msi, AHCI 1.3
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct 
fixed naa.500151795956a9d6
sd0: 38166MB, 512 bytes/sector, 78165360 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic 0 int 18
iic0 at ichiic0
sdtemp0 at iic0 addr 0x19: se97
sdtemp1 at iic0 addr 0x1b: se97
spdmem0 at iic0 addr 0x51: 2GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
spdmem1 at iic0 addr 0x53: 2GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33
lm1 at wbsio0 port 0xa30/8: NCT6776F
mtrr: Pentium Pro MTRR support
uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhidev0 at uhub2 port 2 conf

Re: Running OpenBSD on Raspberry Pi

2013-01-03 Thread Aaron Mason
On Fri, Jan 4, 2013 at 6:08 AM, Gene  wrote:
> On Tue, Jan 1, 2013 at 1:31 AM, Bruno Flückiger  wrote:
>> On 12/31/12 14:17, BARDOU Pierre wrote:
>>>
>>> I would be very interested by an OpenBSD port too.
>>> Usage : home router with firewall, DNS and DHCP.
>>>
>>> I am looking into FreeBSD and NetBSD ports, but I would prefer to have
>>> the latest PF and OpenSSH versions... plus I am more used to OpenBSD
>>> and I like using it
>>>
>>> If somebody knows X86 hardware able to do the same (routing/firewlling
>>> 20 mbps traffic, VLAN, fits in a tiny box, power consumption below 5W,
>>> price around 50$) as the raspberry I am interested BTW.
>>>
>>
>> A lot of different embedded devices which base on x86 cpus, just ask the
>> web search engine of your trust. It will be hard to get it for "only"
>> $50. But paying some more bucks for a system which fits the needs is
>> justified in my opinion.
>>
>> My personal favorites are the boxes from this small company in Switzerland:
>>
>> http://www.pcengines.ch
>>
>> Regards,
>> Bruno
>>
>
> The ALIX hardware is incredible.  I own two of the ALIX boards (2d3
> and 2d13), the second one I picked up recently on eBay for $150 with
> case and power supply, I added a CF card for an additional ~$10.  I
> already have a serial cable on hand, but that would be at most another
> $10-$20 to procure.
>
> The ALIX.2d13 has three full fast ethernet (10/100) NICs that aren't
> USB devices on a headless x86 compatible system that will utilise ~5W
> at high to full load for under $200.  All in one enclosure and rock
> solid.
>
> Sure, that may sound expensive, but after purchasing a Raspberry Pi
> with a powered USB hub, one or two USB fast ethernet adapters, an SD
> card, and whatever other accessories you need it isn't that much of a
> price difference.
>
> Or, you can buy a cheap Atom box, throw in some storage and RAM, and
> have a much more powerful system at the expense of higher energy
> usage.
>
> http://www.newegg.com/Product/Product.aspx?Item=N82E16856205007
>
> That one costs $130 (+taxes and shipping) and has two gig-e NICs.
>
> I own a couple of the Raspberry Pi units.  They're fantastic little
> devices, but you'll have to use Linux and have a hodge-podge of
> accessories to go with it.
>
> -Gene
>
> (if you see this message twice please forgive me, I'm bad at mailing lists)
>

RPi is good for remote control stuff - I've only just learned that the
GPIO on it can be controlled in the same fashion as those on an
Arduino board with the exception of reading analogue inputs since
there's no ADC on board, but that could be fixed with a breakout
board.

But yes, I agree, for anything else you need a plethora of other
things to bring it to the required functional level.

Also, I see you are a fellow GMail user - if you go into the labs you
can enable Reply to All as the default action, from there just move
the mailing list email address to the To field to replace whatever was
in there.  I also find it helpful to turn off rich formatting, but it
seems you've already done that.

-- 
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse



compiling -current kernel with DEBUG and PROF fails

2013-01-03 Thread mxb
Hi,

this is what I get then I compile -current with

makeoptions DEBUG="-g"  # compile full symbol table
makeoptions PROF="-pg"  # build profiled kernel


ld -Ttext 0x801001e0 -e start --warn-common -nopie -X -o bsd 
${SYSTEM_HEAD} vers.o ${OBJS}
smc93cx6.o(.text+0x12): In function `read_seeprom':
../../../../dev/ic/smc93cx6.c:100: undefined reference to `__mcount'
pcdisplay_subr.o(.text+0x5): In function `pcdisplay_cursor_reset':
../../../../dev/ic/pcdisplay_subr.c:45: undefined reference to `__mcount'
pcdisplay_subr.o(.text+0x15): In function `pcdisplay_cursor_init':
../../../../dev/ic/pcdisplay_subr.c:54: undefined reference to `__mcount'
pcdisplay_subr.o(.text+0x4d): In function `pcdisplay_eraserows':
../../../../dev/ic/pcdisplay_subr.c:288: undefined reference to `__mcount'
pcdisplay_subr.o(.text+0x11d): In function `pcdisplay_erasecols':
../../../../dev/ic/pcdisplay_subr.c:235: undefined reference to `__mcount'
pcdisplay_subr.o(.text+0x1ed):../../../../dev/ic/pcdisplay_subr.c:261: more 
undefined references to `__mcount' follow
*** Error 1 in /usr/src/sys/arch/amd64/compile/GENERIC (Makefile:716 'bsd': 
@echo ld -Ttext 0x801001e0 -e start --warn-common -nopie…)


My guess is that those two are mutual exclusive?



Re: panic: mtx_enter: locking against myself

2013-01-03 Thread mxb
bsd.gdb just freezes and tells nothing at all.
after 5min of waiting for it to drop into ddb, I made power cycle.


On 3 jan 2013, at 22:31, mxb  wrote:

> 
> Now, the -current SP kernel, while triggering, has a better speed and dies a 
> bit later with:
> 
> kernel: type -1342060160 trap, code 0
> Stopped at 0x3deba01b052507f: 
> 
> at this point I expected it to drop to ddb, but it didn't.
> 
> my sysctl.conf says:
> ddb.panic=1 # 0=Do not drop into ddb on a kernel panic
> ddb.console=1   # 1=Permit entry of ddb from the console
> 
> dmesg:
> 
> OpenBSD 5.2-current (GENERIC) #0: Thu Jan  3 22:06:40 CET 2013
>r...@esx9.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 4284039168 (4085MB)
> avail mem = 4147527680 (3955MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeadc0 (105 entries)
> bios0: vendor American Megatrends Inc. version "4.6.4" date 06/30/2011
> bios0: Supermicro X9SCL/X9SCM
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP APIC SSDT MCFG HPET SPMI EINJ ERST HEST BERT
> acpi0: wakeup devices PS2K(S1) PS2M(S1) UAR1(S4) UAR2(S4) BR20(S1) EUSB(S4) 
> USBE(S4) PEX0(S4) PEX4(S4) PEX6(S4) GBE_(S4) P0P1(S4) P0P2(S4) P0P3(S4) 
> P0P4(S4) SLPB(S0) PWRB(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU E31220L @ 2.20GHz, 2195.33 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: apic clock running at 99MHz
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
> acpimcfg0 at acpi0 addr 0xe000, bus 0-255
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 7 (BR20)
> acpiprt2 at acpi0: bus 5 (PEX0)
> acpiprt3 at acpi0: bus 6 (PEX4)
> acpiprt4 at acpi0: bus -1 (PEX6)
> acpiprt5 at acpi0: bus 1 (P0P1)
> acpiprt6 at acpi0: bus 2 (P0P2)
> acpiprt7 at acpi0: bus -1 (P0P3)
> acpiprt8 at acpi0: bus -1 (P0P4)
> acpicpu0 at acpi0: C3, C1, PSS
> acpibtn0 at acpi0: SLPB
> acpibtn1 at acpi0: PWRB
> ipmi at mainbus0 not configured
> cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2201, 2200, 2100, 2000, 1900, 
> 1800, 1700, 1600 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Xeon E3-1200 Host" rev 0x09
> ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 1 function 1 "Intel Core 2G PCIE" rev 0x09: msi
> pci2 at ppb1 bus 2
> ppb2 at pci2 dev 0 function 0 "Intel 41210 PCIE-PCIX" rev 0x09
> pci3 at ppb2 bus 3
> bnx0 at pci3 dev 4 function 0 "Broadcom BCM5706" rev 0x02: apic 0 int 17
> ppb3 at pci2 dev 0 function 2 "Intel 41210 PCIE-PCIX" rev 0x09
> pci4 at ppb3 bus 4
> bnx1 at pci4 dev 5 function 0 "Broadcom BCM5706" rev 0x02: apic 0 int 18
> em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x05: msi, address 
> 00:25:90:27:da:85
> ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 16
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb4 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb5: msi
> pci5 at ppb4 bus 5
> ppb5 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb5: msi
> pci6 at ppb5 bus 6
> em1 at pci6 dev 0 function 0 "Intel PRO/1000 MT (82574L)" rev 0x00: msi, 
> address 00:25:90:27:da:84
> ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x05: apic 0 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb6 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
> pci7 at ppb6 bus 7
> vga1 at pci7 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> pcib0 at pci0 dev 31 function 0 "Intel C204 LPC" rev 0x05
> ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x05: msi, AHCI 1.3
> scsibus0 at ahci0: 32 targets
> sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct 
> fixed naa.500151795956a9d6
> sd0: 38166MB, 512 bytes/sector, 78165360 sectors, thin
> ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x05: apic 0 int 
> 18
> iic0 at ichiic0
> sdtemp0 at iic0 addr 0x19: se97
> sdtemp1 at iic0 addr 0x1b: se97
> spdmem0 at iic0 addr 0x51: 2GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
> spdmem1 at iic0 addr 0x53: 2GB DDR3 SDRAM ECC PC3-10600 with thermal sensor
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60

Re: panic: mtx_enter: locking against myself

2013-01-03 Thread mxb
scp from within internal network (network2) does not trigger this panic, eg.

client_on_network2# scp fw2.int_ip:/bsd .


On 3 jan 2013, at 20:15, mxb  wrote:

> client does 'scp fw2.network2_ip:/bsd .'  - results in panic.
> client does 'scp fw2.public_ip:/bsd .' - all fine.



Re: ralink 3072 not showing up

2013-01-03 Thread Stuart Henderson
On 2013-01-03, David Coppa  wrote:
> On Thu, Jan 3, 2013 at 7:32 PM, Zoran Kolic  wrote:
>>> Please try:
>>>
>>> # eject cd1
>>
>> I did and it was possible to see run0. Nothing more.
>> I cannot approach the router. I fails, since cannot
>> load microcode number 8051.
>
> What are the exact messages from the system?
>
>

run(4) says -

 run%d: could not load 8051 microcode  An error occurred while attempting
 to upload the microcode to the onboard 8051 microcontroller unit.

(firmware is in base, not a package, for this one).



Re: trunking

2013-01-03 Thread Stuart Henderson
On 2013-01-03, Friedrich Locke  wrote:
> Hi folks!
>
> What happens if i have a trunk(loadbalance) interface setted for 2 physical
> interfaces and connect each physical one on different switches?
>
> Tnx
>
>

>From the manual;

 "The trunk protocols loadbalance and roundrobin require a switch which
 supports IEEE 802.3ad static link aggregation; otherwise protocols such
 as inet6(4) duplicate address detection (DAD) cannot properly deal with
 duplicate packets."

you usually can't configure this across two switches (it may be possible
with some fancy switch stacking protocol, but not in the normal case).

trunk(failover) works perfectly well in this scenario.



Re: D.ROOT-SERVERS.NET.

2013-01-03 Thread Stuart Henderson
On 2013-01-03, epsilon  wrote:
> Index: etc/bind/root.hint

Already handled.

> Index: usr.sbin/bind/lib/dns/rootns.c

Unsure whether this is needed as we have the root.hint file; however
if it is done, it should be fully synced, the last few root.hint updates
did not touch this file.

> Index: usr.sbin/unbound/iterator/iter_hints.c
> Index: usr.sbin/unbound/ldns/drill/root.c

This is not linked to the build, so it makes more sense to handle it
as part of an update to a new version from nlnetlabs when available.

Remember these are only hints for bootstrapping, as long as one of
the root servers is available at the listed address, there won't be
a problem. Yes it does need updating but it's not some urgent "the
world will end^UDNS will break if we don't do it today".



Re: carp + 5.1/5.2 woes [PARTIALLY SOLVED]

2013-01-03 Thread Toni Mueller
Hi,

thanks for the insight.

On Thu, Jan 03, 2013 at 01:37:38AM +, Stuart Henderson wrote:
> On 2013-01-02, Toni Mueller  wrote:
> >> /bsd: in6_ifloop_request: ADD operation failed for 3ffe:3ffe::0001 
> >> (errno=17)
> 
> 17 is EEXIST - see errno(2) for a list of these - there's probably
> a loopback route hanging around after destroying the interface,
> check in netstat -rnfinet6, you could try deleting it..

this happens exactly the moment when the carp interface that has an
IPv4 address assigned to it, goes into BACKUP state.

> >> /bsd: nd6_na_input: duplicate IP6 address fe80:0008::0200:5eff:fe00:0102
> Yes, that happens ;)

I can I ignore these, and/or can I safely remove the link-local
addresses that seem to be lifted from the physical CARP device?

> >> /bsd: arpresolve: 10.0.0.1: route without link local address
> 
> I've seen this before, I think it was on a router with a (non-/32)
> address on both the parent interface and the carp interface, though
> I have a few routers doing exactly that which don't see it..
> (Normally it's recommended to use /32 on the carp interface, but
> that's not going to work if you are announcing it into ospf).

Ok. I do not use OSPF (only BGP), so I set all interfaces to

IP address/ netmask of the connected network (eg. "32" for
the IPv6 network).

> Someone tracked down another situation where this can happen,
> http://marc.info/?l=openbsd-misc&m=121455393316796&w=2

I therefore would expect the problem to show up for the IPv6-only
CARP interface (ie, carp2) after that went down and refused to
come up again, until the next reboot. But the error message specified
the IPv4 address for a carp interface that is actually there, up, and
*should* be working.

Is this a known problem, or is it just me, that CARP interfaces
come up only once?


Kind regards,
--Toni++



Re: Running OpenBSD on Raspberry Pi

2013-01-03 Thread James Shupe
On 1/3/2013 1:08 PM, Gene wrote:
> On Tue, Jan 1, 2013 at 1:31 AM, Bruno Flückiger  wrote:
>> On 12/31/12 14:17, BARDOU Pierre wrote:
>>>
>>> I would be very interested by an OpenBSD port too.
>>> Usage : home router with firewall, DNS and DHCP.
>>>
>>> I am looking into FreeBSD and NetBSD ports, but I would prefer to have
>>> the latest PF and OpenSSH versions... plus I am more used to OpenBSD
>>> and I like using it
>>>
>>> If somebody knows X86 hardware able to do the same (routing/firewlling
>>> 20 mbps traffic, VLAN, fits in a tiny box, power consumption below 5W,
>>> price around 50$) as the raspberry I am interested BTW.
>>>
>>
>> A lot of different embedded devices which base on x86 cpus, just ask the
>> web search engine of your trust. It will be hard to get it for "only"
>> $50. But paying some more bucks for a system which fits the needs is
>> justified in my opinion.
>>
>> My personal favorites are the boxes from this small company in
Switzerland:
>>
>> http://www.pcengines.ch
>>
>> Regards,
>> Bruno
>>
>
> The ALIX hardware is incredible.  I own two of the ALIX boards (2d3
> and 2d13), the second one I picked up recently on eBay for $150 with
> case and power supply, I added a CF card for an additional ~$10.  I
> already have a serial cable on hand, but that would be at most another
> $10-$20 to procure.
>
> The ALIX.2d13 has three full fast ethernet (10/100) NICs that aren't
> USB devices on a headless x86 compatible system that will utilise ~5W
> at high to full load for under $200.  All in one enclosure and rock
> solid.
>
> Sure, that may sound expensive, but after purchasing a Raspberry Pi
> with a powered USB hub, one or two USB fast ethernet adapters, an SD
> card, and whatever other accessories you need it isn't that much of a
> price difference.
>
> Or, you can buy a cheap Atom box, throw in some storage and RAM, and
> have a much more powerful system at the expense of higher energy
> usage.
>
> http://www.newegg.com/Product/Product.aspx?Item=N82E16856205007
>
> That one costs $130 (+taxes and shipping) and has two gig-e NICs.
>
> I own a couple of the Raspberry Pi units.  They're fantastic little
> devices, but you'll have to use Linux and have a hodge-podge of
> accessories to go with it.
>
> -Gene
>
> (if you see this message twice please forgive me, I'm bad at mailing lists)
>
>
>

Alix hardware is great. I just felt the need to share this photo of my
office around this time last year... http://i.imgur.com/c528h.jpg

--
James Shupe

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: compiling -current kernel with DEBUG and PROF fails

2013-01-03 Thread Philip Guenther
On Thu, Jan 3, 2013 at 1:56 PM, mxb  wrote:
> this is what I get then I compile -current with
>
> makeoptions DEBUG="-g"  # compile full symbol table
> makeoptions PROF="-pg"  # build profiled kernel
>
>
> ld -Ttext 0x801001e0 -e start --warn-common -nopie -X -o bsd 
> ${SYSTEM_HEAD} vers.o ${OBJS}
> smc93cx6.o(.text+0x12): In function `read_seeprom':
> ../../../../dev/ic/smc93cx6.c:100: undefined reference to `__mcount'
...
> My guess is that those two are mutual exclusive?

No, they are not.  If you're going to edit your kernel config, you
should read options(4).

 makeoptions PROF="-pg"
 The -pg flag causes the kernel to be compiled with support for profiling.
 The option GPROF is required for the kernel compile to succeed.


Philip Guenther



BSDCan 2013 - call for papers - reminder

2013-01-03 Thread Dan Langille
BSDCan 2013 will be held 17-18 May, 2013 in Ottawa at the University of
Ottawa. It will be preceded by two days of tutorials on 15-16 May.

NOTE: This will be Fri/Sat with tutorials on Wed/Thu.

We are now accepting proposals for talks.  You have about two weeks left.
See the schedule below.

The talks should be designed with a very strong technical content bias.
Proposals of a business development or marketing nature are not
appropriate for this venue.

If you are doing something interesting with a BSD operating system,
please submit a proposal. Whether you are developing a very complex
system using BSD as the foundation, or helping others and have a story
to tell about how BSD played a role, we want to hear about your
experience.  People using BSD as a platform for research are also
encouraged to submit a proposal. Possible topics include:

* How we manage a giant installation with respect to handling spam.
* and/or sysadmin.
* and/or networking.

>From the BSDCan website, the Archives section will allow you to review
the wide variety of past BSDCan presentations as further examples.

Both users and developers are encouraged to share their experiences.

The schedule is:

1 Dec 2012 Proposal acceptance begins
19 Jan 2013 Proposal acceptance ends
19 Feb 2013 Confirmation of accepted proposals

See also 

Instructions for submitting a proposal to BSDCan 2013 are available
from: 

-- 
Dan Langille - http://langille.org



Re: Running OpenBSD on Raspberry Pi

2013-01-03 Thread Aaron Mason
On Fri, Jan 4, 2013 at 11:52 AM, James Shupe  wrote:
> On 1/3/2013 1:08 PM, Gene wrote:
>> On Tue, Jan 1, 2013 at 1:31 AM, Bruno Flückiger  wrote:
>>> On 12/31/12 14:17, BARDOU Pierre wrote:

 I would be very interested by an OpenBSD port too.
 Usage : home router with firewall, DNS and DHCP.

 I am looking into FreeBSD and NetBSD ports, but I would prefer to have
 the latest PF and OpenSSH versions... plus I am more used to OpenBSD
 and I like using it

 If somebody knows X86 hardware able to do the same (routing/firewlling
 20 mbps traffic, VLAN, fits in a tiny box, power consumption below 5W,
 price around 50$) as the raspberry I am interested BTW.

>>>
>>> A lot of different embedded devices which base on x86 cpus, just ask the
>>> web search engine of your trust. It will be hard to get it for "only"
>>> $50. But paying some more bucks for a system which fits the needs is
>>> justified in my opinion.
>>>
>>> My personal favorites are the boxes from this small company in
> Switzerland:
>>>
>>> http://www.pcengines.ch
>>>
>>> Regards,
>>> Bruno
>>>
>>
>> The ALIX hardware is incredible.  I own two of the ALIX boards (2d3
>> and 2d13), the second one I picked up recently on eBay for $150 with
>> case and power supply, I added a CF card for an additional ~$10.  I
>> already have a serial cable on hand, but that would be at most another
>> $10-$20 to procure.
>>
>> The ALIX.2d13 has three full fast ethernet (10/100) NICs that aren't
>> USB devices on a headless x86 compatible system that will utilise ~5W
>> at high to full load for under $200.  All in one enclosure and rock
>> solid.
>>
>> Sure, that may sound expensive, but after purchasing a Raspberry Pi
>> with a powered USB hub, one or two USB fast ethernet adapters, an SD
>> card, and whatever other accessories you need it isn't that much of a
>> price difference.
>>
>> Or, you can buy a cheap Atom box, throw in some storage and RAM, and
>> have a much more powerful system at the expense of higher energy
>> usage.
>>
>> http://www.newegg.com/Product/Product.aspx?Item=N82E16856205007
>>
>> That one costs $130 (+taxes and shipping) and has two gig-e NICs.
>>
>> I own a couple of the Raspberry Pi units.  They're fantastic little
>> devices, but you'll have to use Linux and have a hodge-podge of
>> accessories to go with it.
>>
>> -Gene
>>
>> (if you see this message twice please forgive me, I'm bad at mailing lists)
>>
>>
>>
>
> Alix hardware is great. I just felt the need to share this photo of my
> office around this time last year... http://i.imgur.com/c528h.jpg
>
> --
> James Shupe
>
> [demime 1.01d removed an attachment of type application/pgp-signature which 
> had a name of signature.asc]
>

 Bugger me that's a whole lotta ALiX... 2d3 or 2d13?

-- 
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse



growfs on bsd.rd

2013-01-03 Thread Hugo Osvaldo Barrera

Hi all,

I'm curious as to why growfs is not included in bsd.rd.  Is there any 
particular reason for this? I belive it would be inmensly useful - since 
bsd.rd is the first thing one would think of when needing to grow a root 
partition (or a partition you don't want normally want to unmount).


I've googled a bit, but haven't found anything related.

Cheers,

--
Hugo Osvaldo Barrera



Re: Running OpenBSD on Raspberry Pi

2013-01-03 Thread James Shupe
On 1/3/2013 8:26 PM, Aaron Mason wrote:
> On Fri, Jan 4, 2013 at 11:52 AM, James Shupe  wrote:
>> On 1/3/2013 1:08 PM, Gene wrote:
>>> On Tue, Jan 1, 2013 at 1:31 AM, Bruno Flückiger 
wrote:
 On 12/31/12 14:17, BARDOU Pierre wrote:
>
> I would be very interested by an OpenBSD port too.
> Usage : home router with firewall, DNS and DHCP.
>
> I am looking into FreeBSD and NetBSD ports, but I would prefer to have
> the latest PF and OpenSSH versions... plus I am more used to OpenBSD
> and I like using it
>
> If somebody knows X86 hardware able to do the same (routing/firewlling
> 20 mbps traffic, VLAN, fits in a tiny box, power consumption below 5W,
> price around 50$) as the raspberry I am interested BTW.
>

 A lot of different embedded devices which base on x86 cpus, just ask the
 web search engine of your trust. It will be hard to get it for "only"
 $50. But paying some more bucks for a system which fits the needs is
 justified in my opinion.

 My personal favorites are the boxes from this small company in
>> Switzerland:

 http://www.pcengines.ch

 Regards,
 Bruno

>>>
>>> The ALIX hardware is incredible.  I own two of the ALIX boards (2d3
>>> and 2d13), the second one I picked up recently on eBay for $150 with
>>> case and power supply, I added a CF card for an additional ~$10.  I
>>> already have a serial cable on hand, but that would be at most another
>>> $10-$20 to procure.
>>>
>>> The ALIX.2d13 has three full fast ethernet (10/100) NICs that aren't
>>> USB devices on a headless x86 compatible system that will utilise ~5W
>>> at high to full load for under $200.  All in one enclosure and rock
>>> solid.
>>>
>>> Sure, that may sound expensive, but after purchasing a Raspberry Pi
>>> with a powered USB hub, one or two USB fast ethernet adapters, an SD
>>> card, and whatever other accessories you need it isn't that much of a
>>> price difference.
>>>
>>> Or, you can buy a cheap Atom box, throw in some storage and RAM, and
>>> have a much more powerful system at the expense of higher energy
>>> usage.
>>>
>>> http://www.newegg.com/Product/Product.aspx?Item=N82E16856205007
>>>
>>> That one costs $130 (+taxes and shipping) and has two gig-e NICs.
>>>
>>> I own a couple of the Raspberry Pi units.  They're fantastic little
>>> devices, but you'll have to use Linux and have a hodge-podge of
>>> accessories to go with it.
>>>
>>> -Gene
>>>
>>> (if you see this message twice please forgive me, I'm bad at mailing
lists)
>>>
>>>
>>>
>>
>> Alix hardware is great. I just felt the need to share this photo of my
>> office around this time last year... http://i.imgur.com/c528h.jpg
>>
>> --
>> James Shupe
>>
>> [demime 1.01d removed an attachment of type application/pgp-signature which
had a name of signature.asc]
>>
>
>  Bugger me that's a whole lotta ALiX... 2d3 or 2d13?
>

They're the 2D13 boards, with Kingston CFs. Of all of those, the only
problems we've had were a few DOA CF cards.

They're running OpenBSD + OpenVPN and serving as VPN "concatenators"
(that's what we're calling them, anyway.) We have employees working at
third party locations where we do not maintain control of their
networks, and need all of our staff's devices -- including network
printers (that can't run VPN software, obviously,) etc, to appear as
though they are on our local network. We chose OpenVPN over IPsec
because of the single port requirement and the fact that most of these
sites have outbound traffic blocked by default. We run a few server
instances on the other end, on various common ports to increase the
chances of success calling home. Each device has between one and six
desktops behind it, along with one or two Xerox machines, and some other
junk that has to be brought back to us.

--
James Shupe

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: Running OpenBSD on Raspberry Pi

2013-01-03 Thread Aaron Mason
On Fri, Jan 4, 2013 at 4:36 PM, James Shupe  wrote:
> On 1/3/2013 8:26 PM, Aaron Mason wrote:
>> On Fri, Jan 4, 2013 at 11:52 AM, James Shupe  wrote:
>>> On 1/3/2013 1:08 PM, Gene wrote:
 On Tue, Jan 1, 2013 at 1:31 AM, Bruno Flückiger 
> wrote:
> On 12/31/12 14:17, BARDOU Pierre wrote:
>>
>> I would be very interested by an OpenBSD port too.
>> Usage : home router with firewall, DNS and DHCP.
>>
>> I am looking into FreeBSD and NetBSD ports, but I would prefer to have
>> the latest PF and OpenSSH versions... plus I am more used to OpenBSD
>> and I like using it
>>
>> If somebody knows X86 hardware able to do the same (routing/firewlling
>> 20 mbps traffic, VLAN, fits in a tiny box, power consumption below 5W,
>> price around 50$) as the raspberry I am interested BTW.
>>
>
> A lot of different embedded devices which base on x86 cpus, just ask the
> web search engine of your trust. It will be hard to get it for "only"
> $50. But paying some more bucks for a system which fits the needs is
> justified in my opinion.
>
> My personal favorites are the boxes from this small company in
>>> Switzerland:
>
> http://www.pcengines.ch
>
> Regards,
> Bruno
>

 The ALIX hardware is incredible.  I own two of the ALIX boards (2d3
 and 2d13), the second one I picked up recently on eBay for $150 with
 case and power supply, I added a CF card for an additional ~$10.  I
 already have a serial cable on hand, but that would be at most another
 $10-$20 to procure.

 The ALIX.2d13 has three full fast ethernet (10/100) NICs that aren't
 USB devices on a headless x86 compatible system that will utilise ~5W
 at high to full load for under $200.  All in one enclosure and rock
 solid.

 Sure, that may sound expensive, but after purchasing a Raspberry Pi
 with a powered USB hub, one or two USB fast ethernet adapters, an SD
 card, and whatever other accessories you need it isn't that much of a
 price difference.

 Or, you can buy a cheap Atom box, throw in some storage and RAM, and
 have a much more powerful system at the expense of higher energy
 usage.

 http://www.newegg.com/Product/Product.aspx?Item=N82E16856205007

 That one costs $130 (+taxes and shipping) and has two gig-e NICs.

 I own a couple of the Raspberry Pi units.  They're fantastic little
 devices, but you'll have to use Linux and have a hodge-podge of
 accessories to go with it.

 -Gene

 (if you see this message twice please forgive me, I'm bad at mailing
> lists)



>>>
>>> Alix hardware is great. I just felt the need to share this photo of my
>>> office around this time last year... http://i.imgur.com/c528h.jpg
>>>
>>> --
>>> James Shupe
>>>
>>> [demime 1.01d removed an attachment of type application/pgp-signature which
> had a name of signature.asc]
>>>
>>
>>  Bugger me that's a whole lotta ALiX... 2d3 or 2d13?
>>
>
> They're the 2D13 boards, with Kingston CFs. Of all of those, the only
> problems we've had were a few DOA CF cards.
>
> They're running OpenBSD + OpenVPN and serving as VPN "concatenators"
> (that's what we're calling them, anyway.) We have employees working at
> third party locations where we do not maintain control of their
> networks, and need all of our staff's devices -- including network
> printers (that can't run VPN software, obviously,) etc, to appear as
> though they are on our local network. We chose OpenVPN over IPsec
> because of the single port requirement and the fact that most of these
> sites have outbound traffic blocked by default. We run a few server
> instances on the other end, on various common ports to increase the
> chances of success calling home. Each device has between one and six
> desktops behind it, along with one or two Xerox machines, and some other
> junk that has to be brought back to us.
>
> --
> James Shupe
>
> [demime 1.01d removed an attachment of type application/pgp-signature which 
> had a name of signature.asc]
>

Hmm, something to consider.  We've been using GRE and IPSec but found
that we needed to employ some serious firewall trickery to get it
going, and it's just too much, especially if the other side's a bit
green on the concept.  Might suggest it to my boss.  Worst case we
send out an old laptop running OpenBSD and OpenVPN.

-- 
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse



Re: openBSD 5.2 amd64 on lenovo x201s

2013-01-03 Thread Tomas Bodzar
On Thu, Jan 3, 2013 at 8:15 PM, Andriy Samsonyuk
 wrote:
> On Thu, Jan 03, 2013 at 06:40:39PM +0100, Jes wrote:
>> And probably no power on usb ports after resume, like my T410.
> have not checked yet
>
> Do i understand it correctly, that there is no chance of it
> running properly until the CEO of Intel want to improve his
> karma?

You need to run current with latest HW. Not release/stable.

>
> Thanx for your replys!
>
> Andriy
>
> --
> Your goose is cooked.
> (Your current chick is burned up too!)
>
> [demime 1.01d removed an attachment of type application/pgp-signature which 
> had a name of signature.asc]



Why does time/ident/daytime/comsat run after an OpenBSD 5.2 install?

2013-01-03 Thread Random, Eyes
I installed an OpenBSD 5.2 using "-* & +etc* & +base* & +bsd".

Can someone tell my why are these:

egrep -i '^time|^daytime|^ident|comsat' /etc/inetd.conf
ident  stream  tcp nowait  _identd /usr/libexec/identd
identd -el
ident  stream  tcp6nowait  _identd /usr/libexec/identd
identd -el
127.0.0.1:comsat dgram udp waitroot/usr/libexec/comsat
comsat
[::1]:comsat   dgram   udp6waitroot/usr/libexec/comsat
comsat
daytimestream  tcp nowait  rootinternal
daytimestream  tcp6nowait  rootinternal
time   stream  tcp nowait  rootinternal
time   stream  tcp6nowait  rootinternal
daytimedgram   udp waitrootinternal
daytimedgram   udp6waitrootinternal
time   dgram   udp waitrootinternal
time   dgram   udp6waitrootinternal

important in the default install to be enabled? With this the KISS
principle is not followed...

Please read the thread in the:

http://unix.stackexchange.com/questions/60175/why-does-time-ident-daytime-comsat-run-after-an-openbsd-5-2-install

if further comments needed.