arm64 recommendation Pine64 or Rock64

2018-07-07 Thread Predrag Punosevac
Hi Misc,

I am soliciting opinions about the arm64 board which I would like to buy
for a project. I am debating between Pine64 Pine 64 which has Allwinner
A64/H5 processor

https://www.pine64.org/?product=pine-a64-lts

or much newer model Pine64 Rock64 with Rockchip RK3328 processor

https://www.pine64.org/?product=rock64-media-board-computer

I eliminated Raspberry Pi 3 early on due to the proprietary firmware and
lack of storage drivers.

It seems like  Rock64 with Rockchip RK3328 is clear winner of the two.
Can somebody confirm that OpenBSD 6.3 current runs smoothly and that I
can install OS on MicroSD Card. I am in particularly keen on building an
embedded computer which will use  Arduino UNO a microcontroller
motherboard(s) to pool DHT22 AM2302 Digital Temperature And Humidity
Measurement Sensor as well as HC-SR501 Human Sensor Module Pyroelectric
Infrared. I see arduino-1.0.2p6v0.tgz among aarch64 packages so I am
guessing somebody has already tried this. Any feed back on developing
Arduino sketches from arm64 board?

Best,
Predrag



Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Stuart Henderson
On 2018-07-07, Tom Smyth  wrote:
> Hi otto
>
> I must check that last time i read man page  it was related it was for
> syspatch

/etc/installurl is used if present, pkg_add selects /snapshots/ or /6.3/
etc depending on the kernel version string.

If set, PKG_PATH overrides /etc/installurl, and this takes either a short
hostname (in which case the same rules apply for version string), or a
full path (either as a static string or with placeholders replaced by
arch/version).

That is why I asked if PKG_PATH was set.




touchpad are not detected? OpenBSD 6.3 [LENOVO YOGA 3 PRO-1370]

2018-07-07 Thread tao
hello,

I installed OpenBSD 6.3 in my LENOVO YOGA 3 PRO-1370.

Left and right button click of touchpad works well.
But I don't know how to configure it to twofingerscroll.

I searched a lot about this. And found that my touchpad device may not be
detected?

Here is some information, please help me!!!

tao# uname -a
>> OpenBSD tao 6.3 GENERIC.MP#107 amd64

tao# dmesg | grep synaptcs
>> nothing appears

tao# dmesg | grep psm
>> nothing appears

tao# xinput
+ Virtual core pointer  id=2[master pointer 
(3)]
|   + Virtual core XTEST pointerid=4[slave  pointer 
(2)]
|   + /dev/wsmouse  id=7[slave  pointer 
(2)]
+ Virtual core keyboard id=3[master keyboard
(2)]
+ Virtual core XTEST keyboard   id=5[slave  keyboard
(3)]
+ /dev/wskbdid=6[slave  keyboard
(3)]

tao# wsconsctl | grep mouse
wsconsctl: Use explicit arg to view keyboard.map.
mouse.type=usb
mouse.rawmode=1
mouse.scale=0,0,0,0,0,0,0

tao# dmesg
OpenBSD 6.3 (GENERIC.MP) #107: Sat Mar 24 14:21:59 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8489857024 (8096MB)
avail mem = 8225488896 (7844MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe6f70 (65 entries)
bios0: vendor LENOVO version "A6CN38WW" date 09/30/2014
bios0: LENOVO 80HE
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI MSDM ASPT DBGP LPIT MCFG SSDT SSDT SSDT SSDT
BOOT APIC SSDT SSDT ASF! WDAT UEFI HPET DMAR CSRT FPDT
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4)
GLAN(S4) EHC1(S4) EHC2(S4) XHC_(S3) HDEF(S4) PXSX(S4) RP01(S4) PXSX(S4)
RP02(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Processor 5Y70 CPU @ 1.10GHz, 1197.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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
acpitimer0: recalibrated TSC frequency 1296997480 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Processor 5Y70 CPU @ 1.10GHz, 1197.23 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Processor 5Y70 CPU @ 1.10GHz, 1197.23 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Processor 5Y70 CPU @ 1.10GHz, 1197.23 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins
acpihpet0 at acpi0: 14318179 Hz
acpihpet0: recalibrated TSC frequency 1296979210 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus -1 (RP01)
acpiprt5 at acpi0: bus -1 (RP02)
acpiprt6 at acpi0: bus 1 (RP03)
acpiprt7 at acpi0: bus -1 (RP04)
acpiprt8 at acpi0: bus -1 

Re: DWA-131 Rev E

2018-07-07 Thread Stefan Sperling
On Sat, Jul 07, 2018 at 03:25:17PM +1000, Jonathan Matthew wrote:
> On Fri, Jul 06, 2018 at 07:19:42AM +, Stuart Henderson wrote:
> > On 2018-07-06, Christopher Turkel  wrote:
> > > Thanks!
> > >
> > > Are there any plans to support this adapter? I'll donate my adapter if it
> > > would help.
> > 
> > I don't know if anyone already plans on doing this. If there is, there's
> > support in FreeBSD which might help with the task..
> 
> I did some work on this a while ago.  It's pretty dispiriting but I'll 
> probably
> get back to it soon.  The one thing it has going for it is that the hardware
> is cheap and readily available.

Have you talked to kevlo@? He wrote the FreeBSD driver
support and might have something in progress for OpenBSD.



Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Tom Smyth
Hello
yeah the installurl functionality appears to have been added to
after 6.1

thanks Otto

On 7 July 2018 at 17:10, Tom Smyth  wrote:
> Hi otto
>
> I must check that last time i read man page  it was related it was for
> syspatch
>
>
> Thanks
>
>
>
> On Sat 7 Jul 2018, 17:07 Otto Moerbeek,  wrote:
>>
>> On Sat, Jul 07, 2018 at 03:52:44PM +0100, Tom Smyth wrote:
>>
>> > Hello Nan,
>> > you need to set the PKG_path as Stuart suggested to install packages
>> > using
>> >
>> > pkg_add command
>> >
>> > for example to use fastly cdn  mirror you would set your pkg_path
>> > variable as
>> > shown below
>> >
>> > export PKG_PATH=https://fastly.cdn.openbsd.org/pub/OpenBSD/$(uname
>> > -r)/packages/$(uname -p)/
>> >
>> > /etc/installurl  file is for the syspatch utility to install binary
>> > patches for the release
>>
>> Wrong. installurl *is* used by pkg_add. Read the man page.
>>
>> -Otto
>> >
>> >
>> >
>> > if you are using current ... Packages  are less straight forward as
>> > packages and current
>> > are modified regularly updated
>> > so if you go to install a package from today on a current snapshot from
>> > 1 week
>> > ago it is not guaranteed to work
>> >
>> > i believe there are few ways around this
>> > 1) install the packages that you expect to use on current as soon as
>> > possible
>> > after install
>> > 2) if you must use that version of current for some reason ... when
>> > downloading
>> > the current install iso / install image, download the contents of the
>> > entire package
>> > directory for current also. (on the same day )  your millage on this
>> > will vary  depending
>> > on what work is being done on the tree at the time
>> >
>> > and if anyone else uses a  better way id love to know also
>> >
>> >
>> > I hope this helps
>> >
>> >
>> > On 7 July 2018 at 15:26, Nan Xiao  wrote:
>> > > HI Stuart,
>> > >
>> > > Thanks for your reply!
>> > >
>> > > I don't set PKG_PATH environment.
>> > >
>> > > Yes, it seems I installed the current package:
>> > > $ ls -l /usr/local/bin/egdb
>> > > -rwxr-xr-x  1 root  bin  10040410 Jun 28 19:03 /usr/local/bin/egdb
>> > >
>> > > But I can't remember what I have done. I can only remember I modified
>> > > /etc/installurl before.
>> > >
>> > > Thanks!
>> > > Best Regards
>> > > Nan Xiao
>> > >
>> > >
>> > > On Sat, Jul 7, 2018 at 8:23 PM, Stuart Henderson 
>> > > wrote:
>> > >> On 2018-07-07, Nan Xiao  wrote:
>> > >>> Hi Philip,
>> > >>>
>> > >>> Thanks very much for your time and effort!
>> > >>>
>> > >>> The following is the command output:
>> > >>>
>> > >>> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print
>> > >>> ($5+0)/1024}'
>> > >>> 88.4844
>> > >>>
>> > >>> The same as yours.
>> > >>
>> > >> That is from -current.
>> > >>
>> > >>> Honestly, I am not sure whether the package is for -stable or
>> > >>> -current.
>> > >>>
>> > >>> After installation, I just add following config in /etc/installurl:
>> > >>> $ cat /etc/installurl
>> > >>> https://ftp.openbsd.org/pub/OpenBSD
>> > >>>
>> > >>> Then I use "pkg_add -u" sometimes. Doesn't
>> > >>> https://ftp.openbsd.org/pub/OpenBSD guarantee it selects correct
>> > >>> packages? Or I miss something?
>> > >>
>> > >> Do you have PKG_PATH set in the environment?
>> > >>
>> > >> Whatever the reason, it looks like you have a -current version of the
>> > >> gdb package installed.
>> > >>
>> > >> The one in 6.3 should look like this:
>> > >>
>> > >> $ ls -l /usr/local/bin/egdb
>> > >> -rwxr-xr-x  1 root  bin  9452688 Mar 28 00:40 /usr/local/bin/egdb
>> > >>
>> > >> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print($5+0)/1024}'
>> > >> 0.0078125
>> > >>
>> > >>
>> > >
>> >
>> >
>> >
>> > --
>> > Kindest regards,
>> > Tom Smyth
>> >
>> > Mobile: +353 87 6193172
>> > The information contained in this E-mail is intended only for the
>> > confidential use of the named recipient. If the reader of this message
>> > is not the intended recipient or the person responsible for
>> > delivering it to the recipient, you are hereby notified that you have
>> > received this communication in error and that any review,
>> > dissemination or copying of this communication is strictly prohibited.
>> > If you have received this in error, please notify the sender
>> > immediately by telephone at the number above and erase the message
>> > You are requested to carry out your own virus check before
>> > opening any attachment.



-- 
Kindest regards,
Tom Smyth

Mobile: +353 87 6193172
The information contained in this E-mail is intended only for the
confidential use of the named recipient. If the reader of this message
is not the intended recipient or the person responsible for
delivering it to the recipient, you are hereby notified that you have
received this communication in error and that any review,
dissemination or copying of this communication is strictly prohibited.
If you have received this in error, please notify the sender
immediately by telephone at the number above and erase the message
You are 

Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Tom Smyth
Hi otto

I must check that last time i read man page  it was related it was for
syspatch


Thanks



On Sat 7 Jul 2018, 17:07 Otto Moerbeek,  wrote:

> On Sat, Jul 07, 2018 at 03:52:44PM +0100, Tom Smyth wrote:
>
> > Hello Nan,
> > you need to set the PKG_path as Stuart suggested to install packages
> using
> >
> > pkg_add command
> >
> > for example to use fastly cdn  mirror you would set your pkg_path
> variable as
> > shown below
> >
> > export PKG_PATH=https://fastly.cdn.openbsd.org/pub/OpenBSD/$(uname
> > -r)/packages/$(uname -p)/
> >
> > /etc/installurl  file is for the syspatch utility to install binary
> > patches for the release
>
> Wrong. installurl *is* used by pkg_add. Read the man page.
>
> -Otto
> >
> >
> >
> > if you are using current ... Packages  are less straight forward as
> > packages and current
> > are modified regularly updated
> > so if you go to install a package from today on a current snapshot from
> 1 week
> > ago it is not guaranteed to work
> >
> > i believe there are few ways around this
> > 1) install the packages that you expect to use on current as soon as
> possible
> > after install
> > 2) if you must use that version of current for some reason ... when
> downloading
> > the current install iso / install image, download the contents of the
> > entire package
> > directory for current also. (on the same day )  your millage on this
> > will vary  depending
> > on what work is being done on the tree at the time
> >
> > and if anyone else uses a  better way id love to know also
> >
> >
> > I hope this helps
> >
> >
> > On 7 July 2018 at 15:26, Nan Xiao  wrote:
> > > HI Stuart,
> > >
> > > Thanks for your reply!
> > >
> > > I don't set PKG_PATH environment.
> > >
> > > Yes, it seems I installed the current package:
> > > $ ls -l /usr/local/bin/egdb
> > > -rwxr-xr-x  1 root  bin  10040410 Jun 28 19:03 /usr/local/bin/egdb
> > >
> > > But I can't remember what I have done. I can only remember I modified
> > > /etc/installurl before.
> > >
> > > Thanks!
> > > Best Regards
> > > Nan Xiao
> > >
> > >
> > > On Sat, Jul 7, 2018 at 8:23 PM, Stuart Henderson 
> wrote:
> > >> On 2018-07-07, Nan Xiao  wrote:
> > >>> Hi Philip,
> > >>>
> > >>> Thanks very much for your time and effort!
> > >>>
> > >>> The following is the command output:
> > >>>
> > >>> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}'
> > >>> 88.4844
> > >>>
> > >>> The same as yours.
> > >>
> > >> That is from -current.
> > >>
> > >>> Honestly, I am not sure whether the package is for -stable or
> -current.
> > >>>
> > >>> After installation, I just add following config in /etc/installurl:
> > >>> $ cat /etc/installurl
> > >>> https://ftp.openbsd.org/pub/OpenBSD
> > >>>
> > >>> Then I use "pkg_add -u" sometimes. Doesn't
> > >>> https://ftp.openbsd.org/pub/OpenBSD guarantee it selects correct
> > >>> packages? Or I miss something?
> > >>
> > >> Do you have PKG_PATH set in the environment?
> > >>
> > >> Whatever the reason, it looks like you have a -current version of the
> > >> gdb package installed.
> > >>
> > >> The one in 6.3 should look like this:
> > >>
> > >> $ ls -l /usr/local/bin/egdb
> > >> -rwxr-xr-x  1 root  bin  9452688 Mar 28 00:40 /usr/local/bin/egdb
> > >>
> > >> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print($5+0)/1024}'
> > >> 0.0078125
> > >>
> > >>
> > >
> >
> >
> >
> > --
> > Kindest regards,
> > Tom Smyth
> >
> > Mobile: +353 87 6193172
> > The information contained in this E-mail is intended only for the
> > confidential use of the named recipient. If the reader of this message
> > is not the intended recipient or the person responsible for
> > delivering it to the recipient, you are hereby notified that you have
> > received this communication in error and that any review,
> > dissemination or copying of this communication is strictly prohibited.
> > If you have received this in error, please notify the sender
> > immediately by telephone at the number above and erase the message
> > You are requested to carry out your own virus check before
> > opening any attachment.
>


Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Otto Moerbeek
On Sat, Jul 07, 2018 at 03:52:44PM +0100, Tom Smyth wrote:

> Hello Nan,
> you need to set the PKG_path as Stuart suggested to install packages using
> 
> pkg_add command
> 
> for example to use fastly cdn  mirror you would set your pkg_path variable as
> shown below
> 
> export PKG_PATH=https://fastly.cdn.openbsd.org/pub/OpenBSD/$(uname
> -r)/packages/$(uname -p)/
> 
> /etc/installurl  file is for the syspatch utility to install binary
> patches for the release

Wrong. installurl *is* used by pkg_add. Read the man page.

-Otto
> 
> 
> 
> if you are using current ... Packages  are less straight forward as
> packages and current
> are modified regularly updated
> so if you go to install a package from today on a current snapshot from 1 week
> ago it is not guaranteed to work
> 
> i believe there are few ways around this
> 1) install the packages that you expect to use on current as soon as possible
> after install
> 2) if you must use that version of current for some reason ... when 
> downloading
> the current install iso / install image, download the contents of the
> entire package
> directory for current also. (on the same day )  your millage on this
> will vary  depending
> on what work is being done on the tree at the time
> 
> and if anyone else uses a  better way id love to know also
> 
> 
> I hope this helps
> 
> 
> On 7 July 2018 at 15:26, Nan Xiao  wrote:
> > HI Stuart,
> >
> > Thanks for your reply!
> >
> > I don't set PKG_PATH environment.
> >
> > Yes, it seems I installed the current package:
> > $ ls -l /usr/local/bin/egdb
> > -rwxr-xr-x  1 root  bin  10040410 Jun 28 19:03 /usr/local/bin/egdb
> >
> > But I can't remember what I have done. I can only remember I modified
> > /etc/installurl before.
> >
> > Thanks!
> > Best Regards
> > Nan Xiao
> >
> >
> > On Sat, Jul 7, 2018 at 8:23 PM, Stuart Henderson  
> > wrote:
> >> On 2018-07-07, Nan Xiao  wrote:
> >>> Hi Philip,
> >>>
> >>> Thanks very much for your time and effort!
> >>>
> >>> The following is the command output:
> >>>
> >>> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}'
> >>> 88.4844
> >>>
> >>> The same as yours.
> >>
> >> That is from -current.
> >>
> >>> Honestly, I am not sure whether the package is for -stable or -current.
> >>>
> >>> After installation, I just add following config in /etc/installurl:
> >>> $ cat /etc/installurl
> >>> https://ftp.openbsd.org/pub/OpenBSD
> >>>
> >>> Then I use "pkg_add -u" sometimes. Doesn't
> >>> https://ftp.openbsd.org/pub/OpenBSD guarantee it selects correct
> >>> packages? Or I miss something?
> >>
> >> Do you have PKG_PATH set in the environment?
> >>
> >> Whatever the reason, it looks like you have a -current version of the
> >> gdb package installed.
> >>
> >> The one in 6.3 should look like this:
> >>
> >> $ ls -l /usr/local/bin/egdb
> >> -rwxr-xr-x  1 root  bin  9452688 Mar 28 00:40 /usr/local/bin/egdb
> >>
> >> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print($5+0)/1024}'
> >> 0.0078125
> >>
> >>
> >
> 
> 
> 
> -- 
> Kindest regards,
> Tom Smyth
> 
> Mobile: +353 87 6193172
> The information contained in this E-mail is intended only for the
> confidential use of the named recipient. If the reader of this message
> is not the intended recipient or the person responsible for
> delivering it to the recipient, you are hereby notified that you have
> received this communication in error and that any review,
> dissemination or copying of this communication is strictly prohibited.
> If you have received this in error, please notify the sender
> immediately by telephone at the number above and erase the message
> You are requested to carry out your own virus check before
> opening any attachment.



Re: DWA-131 Rev E

2018-07-07 Thread Christopher Turkel
That would be nice! Let me know if there is anything I can do to help :-)

On Sat, Jul 7, 2018 at 1:28 AM Jonathan Matthew  wrote:

> On Fri, Jul 06, 2018 at 07:19:42AM +, Stuart Henderson wrote:
> > On 2018-07-06, Christopher Turkel  wrote:
> > > Thanks!
> > >
> > > Are there any plans to support this adapter? I'll donate my adapter if
> it
> > > would help.
> >
> > I don't know if anyone already plans on doing this. If there is, there's
> > support in FreeBSD which might help with the task..
>
> I did some work on this a while ago.  It's pretty dispiriting but I'll
> probably
> get back to it soon.  The one thing it has going for it is that the
> hardware
> is cheap and readily available.
>
>


Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Tom Smyth
Hello Nan,
you need to set the PKG_path as Stuart suggested to install packages using

pkg_add command

for example to use fastly cdn  mirror you would set your pkg_path variable as
shown below

export PKG_PATH=https://fastly.cdn.openbsd.org/pub/OpenBSD/$(uname
-r)/packages/$(uname -p)/

/etc/installurl  file is for the syspatch utility to install binary
patches for the release



if you are using current ... Packages  are less straight forward as
packages and current
are modified regularly updated
so if you go to install a package from today on a current snapshot from 1 week
ago it is not guaranteed to work

i believe there are few ways around this
1) install the packages that you expect to use on current as soon as possible
after install
2) if you must use that version of current for some reason ... when downloading
the current install iso / install image, download the contents of the
entire package
directory for current also. (on the same day )  your millage on this
will vary  depending
on what work is being done on the tree at the time

and if anyone else uses a  better way id love to know also


I hope this helps


On 7 July 2018 at 15:26, Nan Xiao  wrote:
> HI Stuart,
>
> Thanks for your reply!
>
> I don't set PKG_PATH environment.
>
> Yes, it seems I installed the current package:
> $ ls -l /usr/local/bin/egdb
> -rwxr-xr-x  1 root  bin  10040410 Jun 28 19:03 /usr/local/bin/egdb
>
> But I can't remember what I have done. I can only remember I modified
> /etc/installurl before.
>
> Thanks!
> Best Regards
> Nan Xiao
>
>
> On Sat, Jul 7, 2018 at 8:23 PM, Stuart Henderson  wrote:
>> On 2018-07-07, Nan Xiao  wrote:
>>> Hi Philip,
>>>
>>> Thanks very much for your time and effort!
>>>
>>> The following is the command output:
>>>
>>> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}'
>>> 88.4844
>>>
>>> The same as yours.
>>
>> That is from -current.
>>
>>> Honestly, I am not sure whether the package is for -stable or -current.
>>>
>>> After installation, I just add following config in /etc/installurl:
>>> $ cat /etc/installurl
>>> https://ftp.openbsd.org/pub/OpenBSD
>>>
>>> Then I use "pkg_add -u" sometimes. Doesn't
>>> https://ftp.openbsd.org/pub/OpenBSD guarantee it selects correct
>>> packages? Or I miss something?
>>
>> Do you have PKG_PATH set in the environment?
>>
>> Whatever the reason, it looks like you have a -current version of the
>> gdb package installed.
>>
>> The one in 6.3 should look like this:
>>
>> $ ls -l /usr/local/bin/egdb
>> -rwxr-xr-x  1 root  bin  9452688 Mar 28 00:40 /usr/local/bin/egdb
>>
>> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print($5+0)/1024}'
>> 0.0078125
>>
>>
>



-- 
Kindest regards,
Tom Smyth

Mobile: +353 87 6193172
The information contained in this E-mail is intended only for the
confidential use of the named recipient. If the reader of this message
is not the intended recipient or the person responsible for
delivering it to the recipient, you are hereby notified that you have
received this communication in error and that any review,
dissemination or copying of this communication is strictly prohibited.
If you have received this in error, please notify the sender
immediately by telephone at the number above and erase the message
You are requested to carry out your own virus check before
opening any attachment.



Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Nan Xiao
HI Stuart,

Thanks for your reply!

I don't set PKG_PATH environment.

Yes, it seems I installed the current package:
$ ls -l /usr/local/bin/egdb
-rwxr-xr-x  1 root  bin  10040410 Jun 28 19:03 /usr/local/bin/egdb

But I can't remember what I have done. I can only remember I modified
/etc/installurl before.

Thanks!
Best Regards
Nan Xiao


On Sat, Jul 7, 2018 at 8:23 PM, Stuart Henderson  wrote:
> On 2018-07-07, Nan Xiao  wrote:
>> Hi Philip,
>>
>> Thanks very much for your time and effort!
>>
>> The following is the command output:
>>
>> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}'
>> 88.4844
>>
>> The same as yours.
>
> That is from -current.
>
>> Honestly, I am not sure whether the package is for -stable or -current.
>>
>> After installation, I just add following config in /etc/installurl:
>> $ cat /etc/installurl
>> https://ftp.openbsd.org/pub/OpenBSD
>>
>> Then I use "pkg_add -u" sometimes. Doesn't
>> https://ftp.openbsd.org/pub/OpenBSD guarantee it selects correct
>> packages? Or I miss something?
>
> Do you have PKG_PATH set in the environment?
>
> Whatever the reason, it looks like you have a -current version of the
> gdb package installed.
>
> The one in 6.3 should look like this:
>
> $ ls -l /usr/local/bin/egdb
> -rwxr-xr-x  1 root  bin  9452688 Mar 28 00:40 /usr/local/bin/egdb
>
> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print($5+0)/1024}'
> 0.0078125
>
>



Re: httpd serving php

2018-07-07 Thread Stuart Henderson
On 2018-07-06, Teno Deuter  wrote:
> Dear support team,

There is no "support team" ..

> in a OpenBSD 6.3 installation with php packges added, I have the
> following httpd configuartion:
>
> server "domain" {
> listen on * tls port 443
> listen on :: tls port 443
> tls {
> certificate "/etc/ssl/private/server.pem"
> key "/etc/ssl/server.key"
> }
>
> directory index index.php
>
> location "/pub/*" {
> directory auto index
> }
>
> root "/htdocs/domain"
>
> location "*.php" {
> fastcgi socket "/run/php-fpm.sock"
> }
> }
>
> the above generates a 500 error!

Other replies explain this, but one extra:

> Also, no '/run/php-fpm.sock' exists!

This is relative to the chroot jail, by default /var/www, so it would
look like this:

$ ls -l /var/www/run/php-fpm.sock   
 
srw-rw  1 www  www  0 Jul  5 21:42 /var/www/run/php-fpm.sock




Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Stuart Henderson
On 2018-07-07, Nan Xiao  wrote:
> Hi Philip,
>
> Thanks very much for your time and effort!
>
> The following is the command output:
>
> $ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}'
> 88.4844
>
> The same as yours.

That is from -current.

> Honestly, I am not sure whether the package is for -stable or -current.
>
> After installation, I just add following config in /etc/installurl:
> $ cat /etc/installurl
> https://ftp.openbsd.org/pub/OpenBSD
>
> Then I use "pkg_add -u" sometimes. Doesn't
> https://ftp.openbsd.org/pub/OpenBSD guarantee it selects correct
> packages? Or I miss something?

Do you have PKG_PATH set in the environment?

Whatever the reason, it looks like you have a -current version of the
gdb package installed.

The one in 6.3 should look like this:

$ ls -l /usr/local/bin/egdb 
   
-rwxr-xr-x  1 root  bin  9452688 Mar 28 00:40 /usr/local/bin/egdb

$ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print($5+0)/1024}'
0.0078125




Re: "Cannot allocate memory" error when memory is enough

2018-07-07 Thread Nan Xiao
Hi Philip,

Thanks very much for your time and effort!

The following is the command output:

$ readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print ($5+0)/1024}'
88.4844

The same as yours.

Honestly, I am not sure whether the package is for -stable or -current.

After installation, I just add following config in /etc/installurl:
$ cat /etc/installurl
https://ftp.openbsd.org/pub/OpenBSD

Then I use "pkg_add -u" sometimes. Doesn't
https://ftp.openbsd.org/pub/OpenBSD guarantee it selects correct
packages? Or I miss something?

Thanks very much in advance!
Best Regards
Nan Xiao


On Sat, Jul 7, 2018 at 1:08 PM, Philip Guenther  wrote:
> On Wed, Jul 4, 2018 at 6:31 PM Nan Xiao  wrote:
>>
>> Thanks very much for your time and patience. I run "syspatch" command
>> regularly, so it should be 6.3-stable.
>>
>>
>> My full dmesg output is here:
>
> ...
> Okay, nothing weird in there.
>
>
>> And full ouput of "vmstat -m":
>
>
> Nothing stands out in that output either, with nothing showing failures or
> consuming much more than might be expected.
>
> So, I'm back to my theory that the programs that are failing to run for you
> are from packages built for -current and not -stable and have
> PT_OPENBSD_RANDOMIZE segments larger than are permitted by -stable.
>
> For example, the gdb-7.12.1p2 package in -current has an 88kB
> PT_OPENBSD_RANDOMIZE segment:
>
> : morgaine; readelf -Wl /usr/local/bin/egdb | awk '/RANDOM/{print
> ($5+0)/1024}
> 88.4844
> : morgaine;
>
> That's bigger than what a -stable kernel will permit.
>
> So, what's the output of that command for the egdb binary that fails for
> you, and how confident are you that it's from a -stable package and not a
> -current package?
>
>
> Philip Guenther
>



Re: httpd serving php

2018-07-07 Thread Henrik Dige Semark
One thing is to enable it, but if you run
rcctl start php56_fpm
Does that change your problem?

/Henrik 

On 6 July 2018 18.31.56 CEST, Teno Deuter  wrote:
>sorry, if you mean the following:
>
>rcctl enable php56_fpm
>
>then yes, I did it but I still get a 500 error!
>
>On Fri, Jul 6, 2018 at 6:07 PM, Daniel Corbe  wrote:
>> at 11:40 AM, Teno Deuter  wrote:
>>
>>> Dear support team,
>>>
>>> in a OpenBSD 6.3 installation with php packges added, I have the
>>> following httpd configuartion:
>>>
>>> server "domain" {
>>> listen on * tls port 443
>>> listen on :: tls port 443
>>> tls {
>>> certificate "/etc/ssl/private/server.pem"
>>> key "/etc/ssl/server.key"
>>> }
>>>
>>> directory index index.php
>>>
>>> location "/pub/*" {
>>> directory auto index
>>> }
>>>
>>> root "/htdocs/domain"
>>>
>>> location "*.php" {
>>> fastcgi socket "/run/php-fpm.sock"
>>> }
>>> }
>>>
>>> the above generates a 500 error!
>>>
>>> Also, no '/run/php-fpm.sock' exists!
>>>
>>> Thank you for your help
>>
>>
>> Did you start php-fpm?
>>
>>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.