Re: Android device detach/attach loop

2017-01-02 Thread Anthony J. Bentley
Adam Van Ymeren writes:
> I was attempting to to use android's adb toolbut when I enable usb 
> debugging on my phoneit appears to repeatedly detach/reattach the device.
> 
> Anyone experience this before or have any advice on how to debug this?

...

> Jan  2 15:12:30 adam-laptop /bsd: ugen2 at uhub0 port 5 "Samsung Galaxy 
> Nexus" rev 2.00/2.16 addr 2

This seems to be a problem with the Galaxy Nexus, and I've seen it on
mine. I did buy another Galaxy Nexus to pass on to any dev with
potential interest but couldn't reproduce the problem on the new phone;
maybe I forgot to enable USB debugging.



Re: isakmpd set up

2017-01-02 Thread Denis Fondras
> ike  from egress to 192.102.11/24 peer 192.102.11.1 srcid kwaccessability.ca
> dstid thinkage.ca tag ipsec-kwa
> ike  from 192.168.254/24 to 192.102.11/24 peer 192.102.11.1 srcid
> kwaccessability.ca dstid thinkage.ca tag ipsec-kwa
> 

Have you tried to replace 192.102.11/24 with 192.102.11.0/24 and 192.168.254/24
with 192.168.254.0/24 ?



Re: kicad will not install on 6.0/i386

2017-01-02 Thread Tracy Bales
Thanks, that did the trick!

On Mon, Jan 2, 2017 at 7:15 PM, Josh Grosse  wrote:

> On Mon, Jan 02, 2017 at 04:23:57PM -0800, Tracy Bales wrote:
> > kicad will not install using pkg_add.  It reports that it cannot resolve
> > wxWidgets-gtk2-2.8.12p12
>
> Tracy, it appears to me that you have an old glib2 installed, from
> 5.9-release.
> The glib2 for 6.0-release is 2.48.1, whereas your installed version is
> 2.46.2p0:
>
> > $ doas pkg_add -i kicad
> > quirks-2.241 signed on 2016-07-29T15:39:09Z
> > Can't install wxWidgets-gtk2-2.8.12p12 because of libraries
> > |library gio-2.0.4200.3 not found
> > | /usr/local/lib/libgio-2.0.so.4200.2 (glib2-2.46.2p0): minor is too
> small
> > |library glib-2.0.4200.3 not found
> > | /usr/local/lib/libglib-2.0.so.4200.2 (glib2-2.46.2p0): minor is too
> small
> > |library gobject-2.0.4200.3 not found
>
> You should keep your packages in sync with the release you're using.
> After you
> upgraded from 5.9 to 6.0, you should have updated all of your installed
> packages
> with # pkg_add -u.  Back up your system, give that a try before installing
> packages for 6.0 that expect any installed  dependencies to be at the
> correct
> revisions.



Re: kicad will not install on 6.0/i386

2017-01-02 Thread Josh Grosse
On Mon, Jan 02, 2017 at 04:23:57PM -0800, Tracy Bales wrote:
> kicad will not install using pkg_add.  It reports that it cannot resolve
> wxWidgets-gtk2-2.8.12p12

Tracy, it appears to me that you have an old glib2 installed, from 5.9-release.
The glib2 for 6.0-release is 2.48.1, whereas your installed version is 2.46.2p0:

> $ doas pkg_add -i kicad
> quirks-2.241 signed on 2016-07-29T15:39:09Z
> Can't install wxWidgets-gtk2-2.8.12p12 because of libraries
> |library gio-2.0.4200.3 not found
> | /usr/local/lib/libgio-2.0.so.4200.2 (glib2-2.46.2p0): minor is too small
> |library glib-2.0.4200.3 not found
> | /usr/local/lib/libglib-2.0.so.4200.2 (glib2-2.46.2p0): minor is too small
> |library gobject-2.0.4200.3 not found

You should keep your packages in sync with the release you're using.  After you
upgraded from 5.9 to 6.0, you should have updated all of your installed packages
with # pkg_add -u.  Back up your system, give that a try before installing 
packages for 6.0 that expect any installed  dependencies to be at the correct
revisions.



kicad will not install on 6.0/i386

2017-01-02 Thread Tracy Bales
kicad will not install using pkg_add.  It reports that it cannot resolve
wxWidgets-gtk2-2.8.12p12

$ doas pkg_add -i kicad
quirks-2.241 signed on 2016-07-29T15:39:09Z
Can't install wxWidgets-gtk2-2.8.12p12 because of libraries
|library gio-2.0.4200.3 not found
| /usr/local/lib/libgio-2.0.so.4200.2 (glib2-2.46.2p0): minor is too small
|library glib-2.0.4200.3 not found
| /usr/local/lib/libglib-2.0.so.4200.2 (glib2-2.46.2p0): minor is too small
|library gobject-2.0.4200.3 not found
| /usr/local/lib/libgobject-2.0.so.4200.2 (glib2-2.46.2p0): minor is too
small
|library gthread-2.0.4200.3 not found
| /usr/local/lib/libgthread-2.0.so.4200.2 (glib2-2.46.2p0): minor is too
small
|library jpeg.68.1 not found
| /usr/local/lib/libjpeg.so.67.0 (jpeg-9a): bad major
|library png.17.3 not found
| /usr/local/lib/libpng.so.17.2 (png-1.6.20): minor is too small
Direct dependencies for wxWidgets-gtk2-2.8.12p12 resolve to libiconv-1.14p3
libmspack-0.5alphav0 gtk+2-2.24.29 iodbc-3.52.10 gettext-0.19.7 sdl-1.2.15p7
Full dependency tree is libcroco-0.6.11 libiconv-1.14p3 glib2-2.46.2p0
libxml-2.9.3 librsvg-2.40.13 gtk-update-icon-cache-3.18.7
gnome-icon-theme-symbolic-3.12.0p2 libmspack-0.5alphav0 bzip2-1.0.6p7
gnome-icon-theme-3.12.0p3 cairo-1.14.6 gettext-0.19.7 lzo2-2.09
python-2.7.11 pango-1.38.1 libffi-3.2.1p0 graphite2-1.3.5 jasper-1.900.1p4
libelf-0.8.13p3 atk-2.18.0 jpeg-9a shared-mime-info-1.5 harfbuzz-1.1.3
gtk+2-2.24.29 png-1.6.20 tiff-4.0.6p0 pcre-8.38 hicolor-icon-theme-0.15
iodbc-3.52.10 gdk-pixbuf-2.32.3 sdl-1.2.15p7 xz-5.2.2p0
Can't install kicad-20100505p5: can't resolve wxWidgets-gtk2-2.8.12p12



Here's my dmesg:

OpenBSD 6.0 (GENERIC.MP) #1992: Tue Jul 26 12:52:55 MDT 2016
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU 330 @ 1.60GHz ("GenuineIntel" 686-class) 1.61
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
real mem  = 3748806656 (3575MB)
avail mem = 3664297984 (3494MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 12/14/10, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.5
@ 0xfd170 (27 entries)
bios0: vendor American Megatrends Inc. version "1.0c" date 12/14/2010
bios0: Supermicro X7SLA
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC OEMB
acpi0: wakeup devices P0P2(S4) P0P1(S4) PS2K(S4) PS2M(S4) EUSB(S4) MC97(S4)
P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) LAN0(S1) P0P9(S4) LAN1(S1)
USB0(S4) USB1(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Atom(TM) CPU 330 @ 1.60GHz ("GenuineIntel" 686-class) 1.61
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Atom(TM) CPU 330 @ 1.60GHz ("GenuineIntel" 686-class) 1.61
GHz
cpu2:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU 330 @ 1.60GHz ("GenuineIntel" 686-class) 1.61
GHz
cpu3:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF,SENSOR
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus 4 (P0P1)
acpiprt3 at acpi0: bus 1 (P0P4)
acpiprt4 at acpi0: bus -1 (P0P5)
acpiprt5 at acpi0: bus -1 (P0P6)
acpiprt6 at acpi0: bus -1 (P0P7)
acpiprt7 at acpi0: bus 2 (P0P8)
acpiprt8 at acpi0: bus 3 (P0P9)
acpicpu0 at acpi0: C1(@1 halt!)
acpicpu1 at acpi0: C1(@1 halt!)
acpicpu2 at acpi0: C1(@1 halt!)
acpicpu3 at acpi0: C1(@1 halt!)
"PNP0501" at acpi0 not configured
"PNP0501" at acpi0 not configured
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xaa00!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945G Host" rev 0x02
inteldrm0 at pci0 dev 2 function 0 "Intel 82945G Video" rev 0x02
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0: apic 4 int 16
inteldrm0: 1280x1024
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
ppb0 at 

Re: isakmpd set up

2017-01-02 Thread Steve Williams

Hi,

I have been using OpenBSD on a dynamic IP address for 10+ years.

I have an account with dynamic dns provider Zoneedit and use the 
ddclient package.


I run a SMTP daemon, HTTP, SSH and in those 10+ years, I have never had 
a situation where I could not reach my server.  I access it from all 
over the world using putty (ssh), imap (dovecot), webmail 
(roundcubemail) and access my web server for various purposes.


When I first got my server going, I was a paranoid & had a modem 
connected to the serial port of my server so I could get to my server in
the case of loosing Internet access.  I used the modem exactly 0 times 
and finally got rid of the landline.


Since I am paranoid, I had a backup to the backup & received an email 
every 2 hours (initially) that had the IP address of the interface.  I 
had a filter so the email just went into a folder.  I never had to use it...


If you feel tied to an ISP because of static IP, I would not hesitate to 
go the dynamic route.


Cheers,
Steve Williams

On 02/01/2017 3:05 PM, Peter Fraser wrote:

A charity that I support has been having trouble with its internet provider
(Rogers).
The problem I have is that Roger is the only supplier that is available that
will
give a fixed IP address.

I want the fixed IP address so I don't have to drive there to fix problems.

It occurred to me that if I could get a VPN set up automatically when their
OpenBSD  firewall boots.
I could then use the VPN to reach back into their computer.

Having never set up a VPN using OpenBSD I started by reading, and I was left
very confused.

I came up with:

On my firewall I have /etc/ipsec.conf

ike passive from egress to 192.168.254/24 peer 192.168.254.1 srcid thinkage.ca
dstid kwaccessability.ca tag ipsec-kwa
ike passive from 192.102.11.0/24 to 192.168.254.0/24 peer 192.168.254.1 srcid
thinkage.ca  dstid kwaccessability.ca tag ipsec-kwa

on their firewall

ike  from egress to 192.102.11/24 peer 192.102.11.1 srcid kwaccessability.ca
dstid thinkage.ca tag ipsec-kwa
ike  from 192.168.254/24 to 192.102.11/24 peer 192.102.11.1 srcid
kwaccessability.ca dstid thinkage.ca tag ipsec-kwa

I also  opened up the firewall to allow packed in from both networks without
restrictions,
something I will have to clean up later

On both system I have isakmpd_flags=-K -v -D A=10

because of some of the readings I also put on both systems into
/etc/hostname.enc0
up

when I try to start isakmpd on the remote system I get only a message about
privilege droping.

on my local system I get

Jan  2 16:23:55 gateway isakmpd[71980]: timer_add_event: event
ui_conn_reinit(0x0) added last, expiration in 5s
Jan  2 16:23:55 gateway isakmpd[71980]: timer_remove_event: removing event
ui_conn_reinit(0x0)
Jan  2 16:23:55 gateway isakmpd[71980]: timer_add_event: event
ui_conn_reinit(0x0) added last, expiration in 5s
gateway:/etc # Jan  2 16:24:00 gateway isakmpd[71980]:
timer_handle_expirations: event ui_conn_reinit(0x0)
Jan  2 16:24:00 gateway isakmpd[71980]: ipsec_get_id: invalid section
to-192.168.254/24 network 192.168.254
Jan  2 16:24:00 gateway isakmpd[71980]: connection_init: could not record
passive connection "from-ste0-to-192.168.254/24"
Jan  2 16:24:00 gateway isakmpd[71980]: ipsec_get_id: invalid section
from-192.102.11/24 network 192.102.11
Jan  2 16:24:00 gateway isakmpd[71980]: connection_init: could not record
passive connection "from-192.102.11/24-to-192.168.254/24"
JaJan  2 16:23:55 gateway isakmpd[71980]: timer_add_event: event
ui_conn_reinit(0x0) added last, expiration in 5s
Jan  2 16:23:55 gateway isakmpd[71980]: timer_remove_event: removing event
ui_conn_reinit(0x0)
Jan  2 16:23:55 gateway isakmpd[71980]: timer_add_event: event
ui_conn_reinit(0x0) added last, expiration in 5s
gateway:/etc # Jan  2 16:24:00 gateway isakmpd[71980]:
timer_handle_expirations: event ui_conn_reinit(0x0)
Jan  2 16:24:00 gateway isakmpd[71980]: ipsec_get_id: invalid section
to-192.168.254/24 network 192.168.254
Jan  2 16:24:00 gateway isakmpd[71980]: connection_init: could not record
passive connection "from-ste0-to-192.168.254/24"
Jan  2 16:24:00 gateway isakmpd[71980]: ipsec_get_id: invalid section
from-192.102.11/24 network 192.102.11
Jan  2 16:24:00 gateway isakmpd[71980]: connection_init: could not record
passive connection "from-192.102.11/24-to-192.168.254/24"


any hint as to what I am doing wrong?




isakmpd set up

2017-01-02 Thread Peter Fraser
A charity that I support has been having trouble with its internet provider
(Rogers).
The problem I have is that Roger is the only supplier that is available that
will
give a fixed IP address.

I want the fixed IP address so I don't have to drive there to fix problems.

It occurred to me that if I could get a VPN set up automatically when their
OpenBSD  firewall boots.
I could then use the VPN to reach back into their computer.

Having never set up a VPN using OpenBSD I started by reading, and I was left
very confused.

I came up with:

On my firewall I have /etc/ipsec.conf

ike passive from egress to 192.168.254/24 peer 192.168.254.1 srcid thinkage.ca
dstid kwaccessability.ca tag ipsec-kwa
ike passive from 192.102.11.0/24 to 192.168.254.0/24 peer 192.168.254.1 srcid
thinkage.ca  dstid kwaccessability.ca tag ipsec-kwa

on their firewall

ike  from egress to 192.102.11/24 peer 192.102.11.1 srcid kwaccessability.ca
dstid thinkage.ca tag ipsec-kwa
ike  from 192.168.254/24 to 192.102.11/24 peer 192.102.11.1 srcid
kwaccessability.ca dstid thinkage.ca tag ipsec-kwa

I also  opened up the firewall to allow packed in from both networks without
restrictions,
something I will have to clean up later

On both system I have isakmpd_flags=-K -v -D A=10

because of some of the readings I also put on both systems into
/etc/hostname.enc0
up

when I try to start isakmpd on the remote system I get only a message about
privilege droping.

on my local system I get

Jan  2 16:23:55 gateway isakmpd[71980]: timer_add_event: event
ui_conn_reinit(0x0) added last, expiration in 5s
Jan  2 16:23:55 gateway isakmpd[71980]: timer_remove_event: removing event
ui_conn_reinit(0x0)
Jan  2 16:23:55 gateway isakmpd[71980]: timer_add_event: event
ui_conn_reinit(0x0) added last, expiration in 5s
gateway:/etc # Jan  2 16:24:00 gateway isakmpd[71980]:
timer_handle_expirations: event ui_conn_reinit(0x0)
Jan  2 16:24:00 gateway isakmpd[71980]: ipsec_get_id: invalid section
to-192.168.254/24 network 192.168.254
Jan  2 16:24:00 gateway isakmpd[71980]: connection_init: could not record
passive connection "from-ste0-to-192.168.254/24"
Jan  2 16:24:00 gateway isakmpd[71980]: ipsec_get_id: invalid section
from-192.102.11/24 network 192.102.11
Jan  2 16:24:00 gateway isakmpd[71980]: connection_init: could not record
passive connection "from-192.102.11/24-to-192.168.254/24"
JaJan  2 16:23:55 gateway isakmpd[71980]: timer_add_event: event
ui_conn_reinit(0x0) added last, expiration in 5s
Jan  2 16:23:55 gateway isakmpd[71980]: timer_remove_event: removing event
ui_conn_reinit(0x0)
Jan  2 16:23:55 gateway isakmpd[71980]: timer_add_event: event
ui_conn_reinit(0x0) added last, expiration in 5s
gateway:/etc # Jan  2 16:24:00 gateway isakmpd[71980]:
timer_handle_expirations: event ui_conn_reinit(0x0)
Jan  2 16:24:00 gateway isakmpd[71980]: ipsec_get_id: invalid section
to-192.168.254/24 network 192.168.254
Jan  2 16:24:00 gateway isakmpd[71980]: connection_init: could not record
passive connection "from-ste0-to-192.168.254/24"
Jan  2 16:24:00 gateway isakmpd[71980]: ipsec_get_id: invalid section
from-192.102.11/24 network 192.102.11
Jan  2 16:24:00 gateway isakmpd[71980]: connection_init: could not record
passive connection "from-192.102.11/24-to-192.168.254/24"


any hint as to what I am doing wrong?



Android device detach/attach loop

2017-01-02 Thread Adam Van Ymeren
I was attempting to to use android's adb toolbut when I enable usb 
debugging on my phoneit appears to repeatedly detach/reattach the device.


Anyone experience this before or have any advice on how to debug this?


Here's the output of /var/log/messages with some usb debugging enabled 
and ugendebug set to 0x



First connecting with usb debugging disabled

Jan  2 15:12:26 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:26 adam-laptop /bsd: uhub0: port 5 status=0x0501 change=0x0001
Jan  2 15:12:26 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:26 adam-laptop /bsd: uhub0: port 5 status=0x0500 change=0x0001
Jan  2 15:12:26 adam-laptop /bsd: uhub0: port 5, device disappeared 
after reset

Jan  2 15:12:26 adam-laptop /bsd: uhub0: port 7 status=0x0500 change=0x0001
Jan  2 15:12:26 adam-laptop /bsd: uhub0: port 8 status=0x0500 change=0x0001
Jan  2 15:12:27 adam-laptop /bsd: uhub0: port 5 status=0x0500 change=0x0001
Jan  2 15:12:27 adam-laptop /bsd: uhub3: intr status=0
Jan  2 15:12:27 adam-laptop /bsd: uhub3: port 1 status=0x0101 change=0x0001
Jan  2 15:12:27 adam-laptop /bsd: uhub3: intr status=0
Jan  2 15:12:27 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:27 adam-laptop /bsd: uhub3: intr status=0
Jan  2 15:12:27 adam-laptop /bsd: uhub3: port 1 status=0x0100 change=0x0011
Jan  2 15:12:27 adam-laptop /bsd: uhub3: port 1, device disappeared 
after reset

Jan  2 15:12:27 adam-laptop /bsd: uhub3: port 1 status=0x0100 change=0x0011
Jan  2 15:12:27 adam-laptop /bsd: uhub0: port 5 status=0x0501 change=0x0001
Jan  2 15:12:28 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:28 adam-laptop /bsd: uhub0: port 5 status=0x0500 change=0x0001
Jan  2 15:12:28 adam-laptop /bsd: uhub0: port 5, device disappeared 
after reset

Jan  2 15:12:28 adam-laptop /bsd: uhub0: port 5 status=0x0500 change=0x0001
Jan  2 15:12:28 adam-laptop /bsd: uhub3: intr status=0
Jan  2 15:12:28 adam-laptop /bsd: uhub3: port 1 status=0x0100 change=0x0001
Jan  2 15:12:28 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:28 adam-laptop /bsd: uhub0: port 5 status=0x0501 change=0x0001
Jan  2 15:12:28 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:29 adam-laptop /bsd: uhub0: port 5 status=0x0500 change=0x
Jan  2 15:12:29 adam-laptop /bsd: uhub0: port 5, device disappeared 
after reset

Jan  2 15:12:29 adam-laptop /bsd: uhub0: port 5 status=0x0500 change=0x
Jan  2 15:12:29 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:29 adam-laptop /bsd: uhub0: port 5 status=0x0501 change=0x0001
Jan  2 15:12:30 adam-laptop /bsd: uhub0: port 5 status=0x0503 change=0x
Jan  2 15:12:30 adam-laptop /bsd: ugen2 at uhub0 port 5 "Samsung Galaxy 
Nexus" rev 2.00/2.16 addr 2
Jan  2 15:12:30 adam-laptop /bsd: ugen_set_config: ugen2 to configno 1, 
sc=0xd5562000

Jan  2 15:12:30 adam-laptop /bsd: ugen_set_config: ifaceno 0
Jan  2 15:12:30 adam-laptop /bsd: ugen_set_config: endptno 0, 
endpt=0x81(1,128), sce=0xd556229c
Jan  2 15:12:30 adam-laptop /bsd: ugen_set_config: endptno 1, 
endpt=0x02(2,0), sce=0xd5562364
Jan  2 15:12:30 adam-laptop /bsd: ugen_set_config: endptno 2, 
endpt=0x82(2,128), sce=0xd556242c



Then I enabled usb debugging on the phone.  It appears to set up a 
second interface on device (ifaceno 1) and then detaches immediately 
afterwards.



Jan  2 15:12:52 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:52 adam-laptop /bsd: uhub0: port 5 status=0x0500 change=0x0001
Jan  2 15:12:52 adam-laptop /bsd: ugen_detach: sc=0xd5562000 flags=1
Jan  2 15:12:52 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:52 adam-laptop /bsd: ugen2 detached
Jan  2 15:12:52 adam-laptop /bsd: uhub0: port 5 status=0x0501 change=0x0001
Jan  2 15:12:53 adam-laptop /bsd: uhub0: port 5 status=0x0503 change=0x
Jan  2 15:12:53 adam-laptop /bsd: ugen2 at uhub0 port 5 "Samsung Galaxy 
Nexus" rev 2.00/2.16 addr 2

Jan  2 15:12:53 adam-laptop /bsd: uhub0: intr status=0
Jan  2 15:12:53 adam-laptop /bsd: ugen_set_config: ugen2 to configno 1, 
sc=0xd5562000

Jan  2 15:12:53 adam-laptop /bsd: ugen_set_config: ifaceno 0
Jan  2 15:12:53 adam-laptop /bsd: ugen_set_config: endptno 0, 
endpt=0x81(1,128), sce=0xd556229c
Jan  2 15:12:53 adam-laptop /bsd: ugen_set_config: endptno 1, 
endpt=0x02(2,0), sce=0xd5562364
Jan  2 15:12:53 adam-laptop /bsd: ugen_set_config: endptno 2, 
endpt=0x82(2,128), sce=0xd556242c

Jan  2 15:12:53 adam-laptop /bsd: ugen_set_config: ifaceno 1
Jan  2 15:12:53 adam-laptop /bsd: ugen_set_config: endptno 0, 
endpt=0x83(3,128), sce=0xd55625bc
Jan  2 15:12:53 adam-laptop /bsd: ugen_set_config: endptno 1, 
endpt=0x03(3,0), sce=0xd55624f4

Jan  2 15:12:53 adam-laptop /bsd: uhub0: port 5 status=0x0501 change=0x0001
Jan  2 15:12:53 adam-laptop /bsd: ugen_detach: sc=0xd5562000 flags=1
Jan  2 15:12:53 adam-laptop /bsd: ugen2 detached
Jan  2 15:12:54 adam-laptop /bsd: uhub0: port 5 status=0x0503 change=0x
Jan  2 15:12:54 adam-laptop /bsd: ugen2 at uhub0 port 5 "Samsung Galaxy 
Nexus" rev 2.00/2.16 addr 2

Jan  2 15:12:54 adam-laptop /bsd: 

Re: PC-Engines Wireless - PPPOE timeouts.

2017-01-02 Thread Patrick Dohman
In effort to troubleshoot an increase in LCP keepalive timeouts have gone
ahead & placed the APU’s PPPoE interface in debug mode

At this point it appears that for a approximately 60 seconds this morning no
lcp echo req were received & a LCP keepalive timeout occurred shortly there
after.

In addition have gone ahead & updated PF with the following changes to
facilitate Path MTU Discovery with the intention of improving stability.

# Pass all inbound ICMP echo requests specifically destination unreachable.
icmp_types = "{ echoreq, unreach }"
pass in log quick on egress inet proto icmp all icmp-type $icmp_types keep
state

#Enforces a maximum Maximum Segment Size on outgoing pppoe0 traffic only.
"match out on pppoe0 scrub (max-mss 1440)”

#Do not Normalize DF and Identification packets
“Remove match in all scrub (no-df random-id)”

Based on a review the pf log it appears that very little if no PMTU traffic
was received in the last 24 hours.

Please see below for more info:

Jan  2 04:25:36 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:25:36 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:25:36 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:25:50 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=92
Jan  2 04:25:51 Firewall /bsd: pppoe0: lcp input(opened): 
Jan  2 04:25:51 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:25:51 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:25:51 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:26:06 Firewall /bsd: pppoe0: lcp input(opened): 
Jan  2 04:26:06 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:26:06 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:26:06 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:26:18 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=92
Jan  2 04:26:21 Firewall /bsd: pppoe0: lcp input(opened): 
Jan  2 04:26:21 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:26:21 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:26:21 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:26:36 Firewall /bsd: pppoe0: lcp input(opened): 
Jan  2 04:26:36 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:26:36 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:26:36 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:26:46 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=92
Jan  2 04:26:51 Firewall /bsd: pppoe0: lcp input(opened): 
Jan  2 04:26:51 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:26:51 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:26:51 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:27:06 Firewall /bsd: pppoe0: lcp input(opened): 
Jan  2 04:27:06 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:27:06 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:27:06 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:27:14 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=92
Jan  2 04:27:18 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=72
Jan  2 04:27:18 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=72
Jan  2 04:27:18 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=60
Jan  2 04:27:18 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=253
Jan  2 04:27:18 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=60
Jan  2 04:27:18 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=60
Jan  2 04:27:21 Firewall /bsd: pppoe0: lcp input(opened): 
Jan  2 04:27:21 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:27:21 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:27:21 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:27:36 Firewall /bsd: pppoe0: lcp input(opened): 
Jan  2 04:27:36 Firewall /bsd: pppoe0: got lcp echo req, sending echo rep
Jan  2 04:27:36 Firewall /bsd: pppoe0: lcp output 
Jan  2 04:27:36 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=16
Jan  2 04:27:39 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=134
Jan  2 04:27:39 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=60
Jan  2 04:27:41 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, len=85
Jan  2 04:27:41 Firewall /bsd: pppoe0 (8864) state=3, session=0x15d2 output ->
3c:8a:b0:cd:ee:72, 

Re: PC Engines APU2xx wireless card for router?

2017-01-02 Thread Steve Williams

Thanks for the input!

Happy New Year :)

Cheers,
Steve Williams


On 31/12/2016 2:29 PM, Eike Lantzsch wrote:

On Saturday, 31 December 2016 11:13:53 PYST Steve Williams wrote:

Hi,

I have decided to modernize my OpenBSD system from an old desktop PC to
something lower power.  It seems that the PC Engines APU line is well
supported by OpenBSD and low power and the price point is rather attractive.

I've never done wireless with OpenBSD.  Since some of the APU cases come
with holes for two antennae, I thought it would be a new learning
experience to implement a wireless base station (router) in OpenBSD.

I can't seem to find much information on what wireless cards people have
used in the APU system(s).

The PC Engines website lists a WLE200NX which google reveals is a
Atheros AR9280 Wireless Mini PCIe 2.4/5 Ghz Dual Band card.

I used the WLM200NX with an Alix as OpenBSD AP until the Alix was destroyed by
lightning. Since then using an APU1 as router but no WiFi yet.

According to athn.4, it should be supported and operate as a base
station (router).

It seems that the WLE200NX is electronically the same as the WLM200NX. But I
can't be sure until I get mine together with an additional APU2 sometime in
Jan 2017.
I'll make sure to report and send a dmesg.

In any case you need to decide in which band you want to operate (2.4GHz or
5GHz) and choose the right antenna respectively, unless you decide to order a
dual-band antenna. The latter is said to perform worse but I couldn't detect a
difference to the single-band antenna - at least @ 2.4GHz where the signal is
very much interfered with.
I went eventually with 5GHz because with that I'm alone in the neighbourhood.


Is this a card that people have had success with operating as a base
station (wireless router)?

Is there a better Mini PCIe card that is supported by OpenBSD?

If the WLE600VX is "better" or if it works at all w/ OpenBSD still remains to
be seen.

I'm not scrimping on money...  I anticipate this running for 5+ years.
I've been on OpenBSD since the 2.7 days and have only had 2 different
sets of hardware (retired PC's).  This would be the third and the only
"new" system :)

Thanks,
Steve Williams

All the best
Eike




Re: PC Engines APU2xx wireless card for router?

2017-01-02 Thread Steve Williams

Thanks!

On 02/01/2017 3:17 AM, Stefan Sperling wrote:

On Sat, Dec 31, 2016 at 11:13:53AM -0700, Steve Williams wrote:

The PC Engines website lists a WLE200NX which google reveals is a Atheros
AR9280 Wireless Mini PCIe 2.4/5 Ghz Dual Band card.

According to athn.4, it should be supported and operate as a base station
(router).

Is this a card that people have had success with operating as a base station
(wireless router)?

Yes.


Is there a better Mini PCIe card that is supported by OpenBSD?

No.




Some questions for my laptop before installing OpenBSD

2017-01-02 Thread Bruno d'Arcangeli
Hi all,

Some years passed since i've used OpenBSD. It's time to come back ;)

I've got a tablet-pc Asus T100HAN wich run well under Linux with some
tweaking. I think that it may be useable under OpenBSD if some tricks
are possibles.

The DSDT from the BIOS contain one bug that can be patched under Linux
with a modified DSDT inside the initrd. FreeBSD can do similar thing
with loading a complete DSDT (aml file) at boot.
Is it possible to do so with OpenBSD and how?
This is needed for the SDCard reader to work (and the WiFi but as it's
broadcom it's not important here).

After boot, the screen is in portrait mode. I know that it's possible to
rotate X screen but is it possible with the console?
The bootloader screen is in landscape and rotate to portrait when kernel
load. Which is not handy ;)

If these thing can be done, i'll install OpenBSD as second OS for now.
The time to make it fully usable (suspend, backlight control).

Thanks and happy new year.

Bruno

-- 
╔═ ╔═║║ ║╔═ ╔═║  ╔═ ╝╔═║╔═║╔═╝╔═║╔═ ╔═╝╔═╝║  ╝
╔═║╔╔╝║ ║║ ║║ ║  ║ ║ ╔═║╔╔╝║  ╔═║║ ║║ ║╔═╝║  ║
══ ╝ ╝══╝╝ ╝══╝  ══  ╝ ╝╝ ╝══╝╝ ╝╝ ╝══╝══╝══╝╝



Re: PC Engines APU2xx wireless card for router?

2017-01-02 Thread Stefan Sperling
On Sat, Dec 31, 2016 at 11:13:53AM -0700, Steve Williams wrote:
> The PC Engines website lists a WLE200NX which google reveals is a Atheros
> AR9280 Wireless Mini PCIe 2.4/5 Ghz Dual Band card.
> 
> According to athn.4, it should be supported and operate as a base station
> (router).
> 
> Is this a card that people have had success with operating as a base station
> (wireless router)?

Yes.

> Is there a better Mini PCIe card that is supported by OpenBSD?

No.



Re: macbook EFI bootloader

2017-01-02 Thread miraculli .
According to Paul Ammann's mail:

>From my experience, models released after 2008 (MacBook5 and higher)
should have
> GOP.


My MacbookPro (v 3.1) form mid 2007 utilizes UGA.



2016-12-29 15:50 GMT+01:00 YASUOKA Masahiko :

> On Tue, 27 Dec 2016 18:24:38 -0800
> Byron Klippert  wrote:
> > This setup gets as far as shown below and then stops...
> >
> > probing: pc0 mem[572K 64K 3039M 11M 60K 48K]
> > disk: hd0
> >>> OpenBSD/amd64 BOOTIA32 3.32
> > boot>
> > booting hd0a:/bsd: 6979304+2212872+258624+0+765952
> > [72+710280+477696]=0xae2350
> > entry point at 0xf001000 [7205c766, 3404, 24448b12, 1240a304]
> >
> >
> > I've tried booting with `boot> hd0a:/bsd.rd'. Also tried writing
> > install60.tgz and miniroot60.tgz to USB and got similar results there as
> > well.
> >
> >
> > Curious to know if the native EFI bootloader is designed to work with
> > this hardware?
>
> I'm not sure.  OpenBSD efiboot supports GOP for the graphic protocol
> but it doesn't support UGA.  FreeBSD supports both.
>
> Is there anyone who are sure whether the macbook is using UGA?
>
> --yasuoka
>
>


--
+49.179.1448024 <+49%20179%201448024>
Karl-Kunger-Straße 68
D - 12435 Berlin