Re: Intel Microcode Guidance: Abandoned Processor Families and Spectre

2018-04-08 Thread Boyd Stephens

On 04/05/18 09:19, Aham Brahmasmi wrote:

Hello Misc,

Will OpenBSD's patches for Spectre help mitigate the risk for the
processor families which are not receiving Intel's mitigation microcode
for Spectre/Spectre variant 2?

Backdrop
Intel has issued a Microcode Revision Guidance on April 3, 2018 [1].
As per this guidance, some processor families will not be receiving
the Spectre/Spectre variant 2 mitigation microcode updates from Intel.
The reasons for this kind act of benevolence are best known to Intel.

The above is my understanding based on TheRegister's article[2]. As a
layman who understands little to nothing about Spectre or Meltdown, I
am wondering whether OpenBSD's mitigations would be sufficient.

On a side note, older IBM-era ThinkPads seem to be left out by Intel.
ThinkPad Classic is/was for volks with lot of money. Lenovo wants to be
Apple. I do not have words to express myself.

Regards,
ab
[1] - 
https://newsroom.intel.com/wp-content/uploads/sites/11/2018/04/microcode-update-guidance.pdf
[2] - http://www.theregister.co.uk/2018/04/04/intel_spectre_microcode_updates/
-|-|-|-|-|-|-|--



Sir Brahmasmi:

From http://www.openbsd.org/63.html
- What's New
-- section - Security improvements:

OpenBSD/arm64 now uses kernel page table isolation to mitigate Spectre 
variant 3 (Meltdown) attacks.


OpenBSD/armv7 and OpenBSD/arm64 now flush the Branch Target Buffer (BTB) 
on processors that do speculative execution to mitigate Spectre variant 
2 attacks.


--
Boyd Stephens




Re: 4-ports router under $150

2018-04-08 Thread Karel Gardas
On Sat, 7 Apr 2018 19:01:50 -0700
jungle boogie  wrote:

> Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700
> > The Edgerouter 6 is going to be coming out shortly, that is what I am 
> > holding out for to run my home network on.
> > 
> > 
> 
> Just curious, why this and not amd64 bit with something like the 
> pcengine apu2 board? I know it only has three NICs, so it's likely a 

apu4b4 provides 4 intel NICs:

http://pcengines.ch/apu4b4.htm



Re: 4-ports router under $150

2018-04-08 Thread Karel Gardas
On Sat, 7 Apr 2018 20:28:14 -0700
Jordan Geoghegan  wrote:

> 
> On 04/07/18 19:01, jungle boogie wrote:
> > Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700
> >> The Edgerouter 6 is going to be coming out shortly, that is what I am 
> >> holding out for to run my home network on.
> >>
> >>
> >
> > Just curious, why this and not amd64 bit with something like the 
> > pcengine apu2 board? I know it only has three NICs, so it's likely a 
> > non-started for the OP, but it's 64bit amd.
> >
> > I don't know the MSRP of the ER6. Do you?
> >
> Because I don't like amd64 and avoid it when possible. I like the idea 
> of having a niche architecture for my internet facing machines.

niche archs are nice, but if you do not have code of firmware to see what's its 
doing inside, then it's kind of meaningless.
PC Engines can provide you with their coreboot modified sources if you like to 
see them...



Re: [patch] 6.3 relayd.conf(5) man page correction

2018-04-08 Thread Matt Schwartz

Hi Jason,

When I have a moment later today I will look into it. I wasn't using the 
exact example from the man page because I was only proxying for one 
host. Since I did not have check hosts setup, that might have been the 
cause.


Thanks


On 4/8/2018 10:19 AM, Jason McIntyre wrote:

On Sat, Mar 24, 2018 at 09:51:59AM -0400, Matt Schwartz wrote:

Hi tech@,

One small correction to relayd.conf(5). In the examples section for
TLS acceleration, the configuration option match hash "sessid" results
in a syntax error. Diff below.

Thanks,
Matt


hi.

i'm having trouble getting anyone to look at this. i don;t use relayd
myself, so it's not obvious to me. can i just check - are you using that
*exact* example from the man page? if so, can you mail me the exact
errors you get.

if not, what are you using?

i tried running the example in the man page and got a different error.
so it's not clear to me if that section is meant to be stand-alone or
not.

jmc


Index: relayd.conf.5
===
RCS file: /cvs/src/usr.sbin/relayd/relayd.conf.5,v
retrieving revision 1.182
diff -u -p -r1.182 relayd.conf.5
--- relayd.conf.5   29 Nov 2017 21:17:51 -  1.182
+++ relayd.conf.5   24 Mar 2018 13:47:17 -
@@ -1484,7 +1484,6 @@ http protocol "https" {
 match header set "Keep-Alive" value "$TIMEOUT"

 match query hash "sessid"
-   match hash "sessid"

 pass
 block path "/cgi-bin/index.cgi" value "*command=*"





Re: 4-ports router under $150

2018-04-08 Thread Patrick Dohman
As much as I’d rather not point the blame I found the APU platform buggy when 
running OpenBSD.
Yes there are reports of stability with other O.S however subtle 
hardware/firmware bugs appeared on several OpenBSD releases.
I’m actually in the other boat when it comes to hardware stability being an 
excuse however openbsd'd excellent embedded footprint does well at disclosing 
subtle hardware issues.
I’m currently running a MikroTik 2011UiAS that is built on A mips processor. 
Quite honestly I’ve found the secret of stability on the network hardware arena 
to be distinct/discrete hardware.
Router ——> Firewall —— > Switch ——> Access point. Call me  throw back to the 
2001 however the result of one issue cascading across all protocols to heavy a 
load for one chip/box.
B.T.W im currently running a 6.2 DB on a Dell GX620 & things are stable.
Regards
Patrick

> On Apr 8, 2018, at 7:42 AM, Karel Gardas  wrote:
> 
> On Sat, 7 Apr 2018 20:28:14 -0700
> Jordan Geoghegan  wrote:
> 
>> 
>> On 04/07/18 19:01, jungle boogie wrote:
>>> Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700
 The Edgerouter 6 is going to be coming out shortly, that is what I am 
 holding out for to run my home network on.
 
 
>>> 
>>> Just curious, why this and not amd64 bit with something like the 
>>> pcengine apu2 board? I know it only has three NICs, so it's likely a 
>>> non-started for the OP, but it's 64bit amd.
>>> 
>>> I don't know the MSRP of the ER6. Do you?
>>> 
>> Because I don't like amd64 and avoid it when possible. I like the idea 
>> of having a niche architecture for my internet facing machines.
> 
> niche archs are nice, but if you do not have code of firmware to see what's 
> its doing inside, then it's kind of meaningless.
> PC Engines can provide you with their coreboot modified sources if you like 
> to see them...



Re: 4-ports router under $150

2018-04-08 Thread Theo de Raadt
Patrick Dohman  wrote:

> As much as I’d rather not point the blame I found the APU platform
> buggy when running OpenBSD.

I doubt anyone believes your extremely vague assertions.  There are
thousands of them running fine.

> I'm currently running a MikroTik 2011UiAS that is built on A mips processor.

Right...



Re: 4-ports router under $150

2018-04-08 Thread Jordan Geoghegan
The pc engines stuff will still have blobs in it. There's no way to have 
fully open firmware on a modern i-series chip based rig. At the end of 
the day, we all are still using proprietary hardware.



On 04/08/18 05:42, Karel Gardas wrote:

On Sat, 7 Apr 2018 20:28:14 -0700
Jordan Geoghegan  wrote:


On 04/07/18 19:01, jungle boogie wrote:

Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700

The Edgerouter 6 is going to be coming out shortly, that is what I am
holding out for to run my home network on.



Just curious, why this and not amd64 bit with something like the
pcengine apu2 board? I know it only has three NICs, so it's likely a
non-started for the OP, but it's 64bit amd.

I don't know the MSRP of the ER6. Do you?


Because I don't like amd64 and avoid it when possible. I like the idea
of having a niche architecture for my internet facing machines.

niche archs are nice, but if you do not have code of firmware to see what's its 
doing inside, then it's kind of meaningless.
PC Engines can provide you with their coreboot modified sources if you like to 
see them...




Re: 4-ports router under $150

2018-04-08 Thread Jordan Geoghegan

Ya, pretty much what Theo said...

I'd rather be running *BSD on ANY platform rather that running some 
proprietary mikrotik garbage.



On 04/08/18 07:39, Patrick Dohman wrote:

As much as I’d rather not point the blame I found the APU platform buggy when 
running OpenBSD.
Yes there are reports of stability with other O.S however subtle 
hardware/firmware bugs appeared on several OpenBSD releases.
I’m actually in the other boat when it comes to hardware stability being an 
excuse however openbsd'd excellent embedded footprint does well at disclosing 
subtle hardware issues.
I’m currently running a MikroTik 2011UiAS that is built on A mips processor. 
Quite honestly I’ve found the secret of stability on the network hardware arena 
to be distinct/discrete hardware.
Router ——> Firewall —— > Switch ——> Access point. Call me  throw back to the 
2001 however the result of one issue cascading across all protocols to heavy a load for 
one chip/box.
B.T.W im currently running a 6.2 DB on a Dell GX620 & things are stable.
Regards
Patrick


On Apr 8, 2018, at 7:42 AM, Karel Gardas  wrote:

On Sat, 7 Apr 2018 20:28:14 -0700
Jordan Geoghegan  wrote:


On 04/07/18 19:01, jungle boogie wrote:

Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700

The Edgerouter 6 is going to be coming out shortly, that is what I am
holding out for to run my home network on.



Just curious, why this and not amd64 bit with something like the
pcengine apu2 board? I know it only has three NICs, so it's likely a
non-started for the OP, but it's 64bit amd.

I don't know the MSRP of the ER6. Do you?


Because I don't like amd64 and avoid it when possible. I like the idea
of having a niche architecture for my internet facing machines.

niche archs are nice, but if you do not have code of firmware to see what's its 
doing inside, then it's kind of meaningless.
PC Engines can provide you with their coreboot modified sources if you like to 
see them...




Re: 4-ports router under $150

2018-04-08 Thread Theo de Raadt
Jordan Geoghegan  wrote:

> The pc engines stuff will still have blobs in it. There's no way to
> have fully open firmware on a modern i-series chip based rig. At the
> end of the day, we all are still using proprietary hardware.

Who cares?

People just want to get the job done.  We do the best we can, but I've
never seen your line on a line of code.



Re: 4-ports router under $150

2018-04-08 Thread Michael Price
Was it an apu2c4 by any chance? I was thinking about picking one of those
up and was curious as to what kind of packet rates people were seeing with
them.

Michael

On Sun, Apr 8, 2018 at 1:41 AM, flipchan  wrote:

> I run a apu board with 3 ports with openbsd 6.2 and coreboot, i recommend
> it
>
> On April 8, 2018 2:01:50 AM UTC, jungle boogie 
> wrote:
> >Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700
> >> The Edgerouter 6 is going to be coming out shortly, that is what I am
> >
> >> holding out for to run my home network on.
> >>
> >>
> >
> >Just curious, why this and not amd64 bit with something like the
> >pcengine apu2 board? I know it only has three NICs, so it's likely a
> >non-started for the OP, but it's 64bit amd.
> >
> >I don't know the MSRP of the ER6. Do you?
>
> --
> Take Care Sincerely flipchan layerprox dev
>


Serial port pci cards.

2018-04-08 Thread Michael Price
I am unwise in the ways of serial port pci cards. Should I be avoiding any
particular brands? Any pointers to more information would be appreciated.

Michael


Re: 4-ports router under $150

2018-04-08 Thread Jordan Geoghegan

On 04/08/18 09:00, Theo de Raadt wrote:

Jordan Geoghegan  wrote:


The pc engines stuff will still have blobs in it. There's no way to
have fully open firmware on a modern i-series chip based rig. At the
end of the day, we all are still using proprietary hardware.

Who cares?
I wasn't arguing , I was pretty much saying "who cares" in a longer less 
obvious way.


People just want to get the job done.  We do the best we can, but I've
never seen your line on a line of code.


I fully agree that folks just want to get the job done.
I am hoping to contribute in a meaningful way this year, but my shyness 
has gotten the best of me as I am not the best C programmer, but do 
decently with Perl. I am sure as my skill and confidence level 
increases, you will see some code out me.




Re: Serial port pci cards.

2018-04-08 Thread joshua stein

On Sun, 08 Apr 2018 at 12:19:01 -0400, Michael Price wrote:

I am unwise in the ways of serial port pci cards. Should I be avoiding any
particular brands? Any pointers to more information would be appreciated.


The puc(4) man page has a lot of brands and models that are 
supported.




Re: 4-ports router under $150

2018-04-08 Thread Patrick Dohman

>  Jordan Geoghegan wrote:
> 
> I'd rather be running *BSD on ANY platform rather that running some 
> proprietary mikrotik garbage.
> 

The MikroTik 2011UiAS is quite respectable. 
It replaced a Zyxel USG that was patched to address KRACK which introduced a 
strange bug that left it unstable. 
The lesson learned being is don’t patch unless qualified.
Regards
Patrick



Unable to use vmm on Xiaomi Air laptop: failed to enter VMM mode

2018-04-08 Thread Justin Yang
Hi,all:

I just bought the Xiaomi Mi Air 12.5 laptop and installed OpenBSD-current
after reading this blog: https://jcs.org/2017/05/22/xiaomiair.

Almost all the functions work except the vmm part. I am not able to start a
guest with the error in dmesg:

cpu3: failed to enter VMM mode
cpu2: failed to enter VMM mode
cpu1: failed to enter VMM mode


I have searched on Google and tried my best to overcome this error, but
still could not figure it out. Could you help me please? I attach my dmesg
and {pf, sysctl, vm}.conf files in this email. Tell me if you need more
information. Thanks.

 --
Justin Yang
OpenBSD 6.3-current (GENERIC.MP) #147: Fri Apr  6 23:18:13 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4156014592 (3963MB)
avail mem = 4022935552 (3836MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x8a6f1000 (64 entries)
bios0: vendor INSYDE Corp. version "XMAKB200P0200" date 11/02/2017
bios0: Timi TM1607
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI UEFI MSDM SSDT SSDT TPM2 SSDT SSDT ASF! ASPT BOOT 
DBGP HPET APIC MCFG SSDT SSDT LPIT WSMT SSDT SSDT SSDT SSDT DBGP DBG2 SSDT SSDT 
DMAR FPDT BGRT
acpi0: wakeup devices PWRB(S4) LID0(S3) GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) 
RP01(S4) RP02(S4) RP03(S4) RP04(S4) RP05(S4) RP06(S4) RP07(S4) RP08(S4) 
RP10(S4) RP11(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) m3-7Y30 CPU @ 1.00GHz, 1197.63 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,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,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 23MHz
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) Core(TM) m3-7Y30 CPU @ 1.00GHz, 960.01 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,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,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu1: 256KB 64b/line cpu1: failed to identify
8-way L2 cachecpu2 at mainbus0
: apid 1 (application processor)
cpu1: smt 0, core 1, package 0
cpu2: Intel(R) Core(TM) m3-7Y30 CPU @ 1.00GHz, 897.91 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,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,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: failed to identify
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) m3-7Y30 CPU @ 1.00GHz, 897.91 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,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,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: failed to identify
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus -1 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiprt5 at acpi0: bus -1 (RP05)
acpiprt6 at acpi0: bus -1 (RP06)
acpiprt7 at acpi0: bus -1 (RP07)
acpiprt8 at acpi0: bus -1 (RP08)
acpiprt9 at acpi0: bus 1 (RP09)
acpiprt10 at acpi0: bus -1 (RP10)
acpiprt11 at acpi0: bus -1 (RP11)
acpiprt12 at acpi0: bus -1 (RP12)
acpiprt13 at acpi0: bus -1 (RP13)
acpiprt14 at acpi0: bus -1 (RP14)
acpiprt15 at acpi0: bus -1 (RP15)
acpiprt16 at acpi0: bus -1 (RP16)
acpiprt17 at acpi0: bus -1 (RP17)
acpiprt18 at acpi0: bus -1 (RP18)
acpiprt19 at acp

Re: 4-ports router under $150

2018-04-08 Thread Rui Ribeiro
Is that this one? https://store.ubnt.com/products/edgerouter-6-port-1

On 8 April 2018 at 01:57, Jordan Geoghegan  wrote:

> The Edgerouter 6 is going to be coming out shortly, that is what I am
> holding out for to run my home network on.
>
>
>
> On 04/07/18 14:59, Anatoli wrote:
>
>> Hi All!
>>
>> I'm looking for a modest 4-5 ports router under $150 that works well with
>> OpenBSD. I don't need WiFi, USB or console port, and the throughput don't
>> need to exceed 100Mbps. The ideal device would be EdgeRouter X (compact, 5
>> ports, $50) but I know it's not supported at this moment and probably never
>> will be.
>>
>> EdgeRouter (ER) Lite only has 3 ports and the switch ports (eth2-4) of
>> ERPOE-5 are not yet supported.
>>
>> ER-4 would be great, but the 4th port is SFP, I'd need to by an SFP NIC
>> for one of my devices and I'm not sure it's supported as the octeon page
>> says ER PRO SFP ports are not supported yet. Also it's a bit expensive
>> ($190).
>>
>> Banana Pi R2 would be great too, but I couldn't find if it's supported by
>> OpenBSD (it has MediaTek MT7623N, Quad-core ARM Cortex-A7).
>>
>> Are there 4-5 port devices that are known to work well with OpenBSD?
>>
>> Thanks,
>> Anatoli
>>
>>
>


-- 
Regards,

--
Rui Ribeiro
https://www.linkedin.com/pub/rui-ribeiro/16/ab8/434


Re: Serial port pci cards.

2018-04-08 Thread Jordon
Here’s a good start

https://man.openbsd.org/puc



> On Apr 8, 2018, at 11:19, Michael Price  wrote:
> 
> I am unwise in the ways of serial port pci cards. Should I be avoiding any
> particular brands? Any pointers to more information would be appreciated.
> 
> Michael


Re: Compilations errors with plan9port on 2018/04/05 snapshot

2018-04-08 Thread Patrick Marchand
Compilation succeeds on the april 8 snapshot



Re: Compilations errors with plan9port on 2018/04/05 snapshot

2018-04-08 Thread Patrick Marchand
On 04/08, Patrick Marchand wrote:
> Compilation succeeds on the april 8 snapshot

Though now I'm getting Abort Trap whenever I try to run the plumber or
acme. I was able to compile some programs with mk though, as I compiled
both $PLAN9/src/cmd/upas and $PLAN9/src/cmd/upas/nfs. I've joined the
dmesg of the current system.
OpenBSD 6.3-current (GENERIC.MP) #135: Thu Apr  5 12:31:23 MDT 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8261529600 (7878MB)
avail mem = 8004063232 (7633MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xccbfd000 (65 entries)
bios0: vendor LENOVO version "N14ET42W (1.20 )" date 09/13/2017
bios0: LENOVO 20BTS0Y500
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT SSDT SSDT 
SSDT SSDT SSDT SSDT PCCT SSDT UEFI MSDM BATB FPDT UEFI DMAR
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 2494.67 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,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
acpihpet0: recalibrated TSC frequency 2593995060 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 1 (application processor)
cpu1: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 2494.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,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 2494.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,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,SENSOR,ARAT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 2494.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,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,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
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 3 (EXP1)
acpiprt3 at acpi0: bus 4 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus 10 (EXP6)
acpicpu0 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1
acpipwrres1 at acpi0: NVP3, resource for PEG_
acpipwrres2 at acpi0: NVP2, resource for PEG_
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpicmos0 at acpi0
"LEN0071" at acpi0 not configured
"LEN0048" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "00HW003" serial   716 type LiP oem "SMP"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not

Re: Compilations errors with plan9port on 2018/04/05 snapshot

2018-04-08 Thread Theo de Raadt
Patrick Marchand  wrote:

> On 04/08, Patrick Marchand wrote:
> > Compilation succeeds on the april 8 snapshot
> 
> Though now I'm getting Abort Trap whenever I try to run the plumber or
> acme. I was able to compile some programs with mk though, as I compiled
> both $PLAN9/src/cmd/upas and $PLAN9/src/cmd/upas/nfs. I've joined the
> dmesg of the current system.

>From your mail:

trap pid 4946 tid 8385 type 6: sp 10581fac3000 not inside 
7f7fffbcc000-7f7cc000
trap pid 1024 tid 121465 type 6: sp 1e5a10690248 not inside 
7f7fffbfb000-7f7fa000

At the moment snapshots contain the MAP_STACK diff.  Your program is
setting up threads incorrectly (it has it's own thread library?),
resulting in stacks not being mapped with MAP_STACK.  Stacks must be
carefully setup now.  ktrace -di may expose the memory allocation which
setup an address corresponding to a crash, basically a mmap with MAP_STACK
will be missing.



Re: Compilations errors with plan9port on 2018/04/05 snapshot

2018-04-08 Thread Patrick Marchand
On 04/08, Theo de Raadt wrote:
> At the moment snapshots contain the MAP_STACK diff.  Your program is
> setting up threads incorrectly (it has it's own thread library?),
> resulting in stacks not being mapped with MAP_STACK.  Stacks must be
> carefully setup now.  ktrace -di may expose the memory allocation which
> setup an address corresponding to a crash, basically a mmap with MAP_STACK
> will be missing.
So there is a mmap right before it crashes and it does not set
MAP_STACK, only MAP_PRIVATE|MAP_ANON. I dont exactly have the time to
investigate more today, but I'll look at it again later this week. In
the meantime I've joined the output of kdump.
 39430 ktrace   RET   ktrace 0
 39430 ktrace   CALL  execve(0x7f7c5630,0x7f7c5bb8,0x7f7c5bd0)
 39430 ktrace   NAMI  "/home/patrick/bin/9"
 39430 ktrace   RET   execve -1 errno 2 No such file or directory
 39430 ktrace   CALL  execve(0x7f7c5630,0x7f7c5bb8,0x7f7c5bd0)
 39430 ktrace   NAMI  "/bin/9"
 39430 ktrace   RET   execve -1 errno 2 No such file or directory
 39430 ktrace   CALL  execve(0x7f7c5630,0x7f7c5bb8,0x7f7c5bd0)
 39430 ktrace   NAMI  "/sbin/9"
 39430 ktrace   RET   execve -1 errno 2 No such file or directory
 39430 ktrace   CALL  execve(0x7f7c5630,0x7f7c5bb8,0x7f7c5bd0)
 39430 ktrace   NAMI  "/usr/bin/9"
 39430 ktrace   RET   execve -1 errno 2 No such file or directory
 39430 ktrace   CALL  execve(0x7f7c5630,0x7f7c5bb8,0x7f7c5bd0)
 39430 ktrace   NAMI  "/usr/sbin/9"
 39430 ktrace   RET   execve -1 errno 2 No such file or directory
 39430 ktrace   CALL  execve(0x7f7c5630,0x7f7c5bb8,0x7f7c5bd0)
 39430 ktrace   NAMI  "/usr/X11R6/bin/9"
 39430 ktrace   RET   execve -1 errno 2 No such file or directory
 39430 ktrace   CALL  execve(0x7f7c5630,0x7f7c5bb8,0x7f7c5bd0)
 39430 ktrace   NAMI  "/usr/local/bin/9"
 39430 ktrace   NAMI  "/bin/sh"
 39430 ktrace   ARGS  
[0] = "/bin/sh"
[1] = "/usr/local/bin/9"
[2] = "acme"
 39430 sh   RET   execve 0
 39430 sh   CALL  mprotect(0xf880fa832d0,0x1d20,0x1)
 39430 sh   RET   mprotect 0
 39430 sh   CALL  kbind(0,0,0)
 39430 sh   RET   kbind 0
 39430 sh   CALL  
mmap(0,0x40,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17088257970176/0xf8aab8bd000
 39430 sh   CALL  getthrid()
 39430 sh   RET   getthrid 125773/0x1eb4d
 39430 sh   CALL  __set_tcb(0xf8aab8bd000)
 39430 sh   RET   __set_tcb 0
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17085717172224/0xf8a141a5000
 39430 sh   CALL  mprotect(0xf8a141a5000,0x1000,0x1)
 39430 sh   RET   mprotect 0
 39430 sh   CALL  pledge(0xf880f9731c2,0)
 39430 sh   STRU  promise="stdio rpath wpath cpath fattr flock getpw proc 
exec tty"
 39430 sh   RET   pledge 0
 39430 sh   CALL  readlink(0xf880f975f8e,0x7f7cd4a0,63)
 39430 sh   NAMI  "/etc/malloc.conf"
 39430 sh   RET   readlink -1 errno 2 No such file or directory
 39430 sh   CALL  issetugid()
 39430 sh   RET   issetugid 0
 39430 sh   CALL  getentropy(0x7f7cd430,40)
 39430 sh   RET   getentropy 0
 39430 sh   CALL  
mmap(0,0x450,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17086025576448/0xf8a267c3000
 39430 sh   CALL  minherit(0xf8a267c3000,0x450,MAP_INHERIT_ZERO)
 39430 sh   RET   minherit 0
 39430 sh   CALL  mprotect(0xf880fa92000,0x1000,0x3)
 39430 sh   RET   mprotect 0
 39430 sh   CALL  
mmap(0,0x4000,0,0x1002,-1,0)
 39430 sh   RET   mmap 17088441876480/0xf8ab682
 39430 sh   CALL  mprotect(0xf8ab6821000,0x2000,0x3)
 39430 sh   RET   mprotect 0
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17089010298880/0xf8ad8637000
 39430 sh   CALL  mprotect(0xf880fa92000,0x1000,0x1)
 39430 sh   RET   mprotect 0
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17087969476608/0xf8a9a59c000
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17088927444992/0xf8ad3733000
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17087480500224/0xf8a7d349000
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17089152483328/0xf8ae0dd
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17086353305600/0xf8a3a04f000
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17089156657152/0xf8ae11cb000
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17088758734848/0xf8ac964e000
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17086749990912/0xf8a51a9e000
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17086604967936/0xf8a4905
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002,-1,0)
 39430 sh   RET   mmap 17086134968320/0xf8a2d016000
 39430 sh   CALL  
mmap(0,0x1000,0x3,0x1002

Re: Compilations errors with plan9port on 2018/04/05 snapshot

2018-04-08 Thread Gleydson Soares
Hi Patrick,
could you please test this diff?
https://marc.info/?l=openbsd-ports&m=152160090624047&w=2



Re: 4-ports router under $150

2018-04-08 Thread Rupert Gallagher
963Mbps

On Sun, Apr 8, 2018 at 18:02, Michael Price  wrote:

> Was it an apu2c4 by any chance? I was thinking about picking one of those up 
> and was curious as to what kind of packet rates people were seeing with them.


Re: Compilations errors with plan9port on 2018/04/05 snapshot

2018-04-08 Thread Patrick Marchand
On 04/08, Gleydson Soares wrote:
> Hi Patrick,
> could you please test this diff?
> https://marc.info/?l=openbsd-ports&m=152160090624047&w=2

The diff worked, I was able to run plumber, factotum and acme without
any aborts. 

Thanks!



Re: 4-ports router under $150

2018-04-08 Thread Joe Holden
On 08/04/2018 23:16, Rupert Gallagher wrote:
> 963Mbps
> 
> On Sun, Apr 8, 2018 at 18:02, Michael Price  wrote:
> 
>> Was it an apu2c4 by any chance? I was thinking about picking one of those up 
>> and was curious as to what kind of packet rates people were seeing with them.

Obtaining a gig isn't hard, what actual pps can they achieve?



Re: 4-ports router under $150

2018-04-08 Thread Anatoli

Guys, thank you all for your recommendations.

> I know it only has three NICs, so it's likely a non-started for the OP

Yepp, there are a lot of nice devices with 3 NICs, but I need at least 4 
and actually I don't need more than 5.



> The Edgerouter 6 is going to be coming out shortly, that is what I am 
holding out for to run my home network on

> I think the ER6 is going to be retailing for about $220

It's a nice device for the suggested price, but it's a bit expensive for 
my project. I need a number of the devices, the idea is not to surpass $150.



> 
https://ru.aliexpress.com/item/QOTOM-310G4-3215U-Barebone-mini-pc-Dual-core-4-nics-Mini-pc-Ubuntu-Industrial-desktop-Computer/32769767156.html

> This is what I bought for similar purposes.
> It has 4 Intel Gigabit ports and their efficiency is 99%.

Thanks Максим, looks interesting, but again it's a bit expensive. The 
basic version with RAM costs about $232.



> apu4b4 provides 4 intel NICs: http://pcengines.ch/apu4b4.htm

Thanks a lot Karel, I didn't know there was an apu4 board. I guess this 
is the device I'm looking for. Though, there's no information on 
internet about it, even the official page doesn't provide links to it, 
it appears only on the order page. Was it released just recently? Can 
you confirm it's working well with OpenBSD 6.2/6.3?


Do you know where to buy it? On the official order page 
(http://www.pcengines.ch/newshop.php?c=4) it says "No stock".


Regards,
Anatoli

*From:* Karel Gardas
*Sent:* Sunday, April 08, 2018 09:39
*To:* Jungle Boogie
*Cc:* Misc
*Subject:* Re: 4-ports router under $150

On Sat, 7 Apr 2018 19:01:50 -0700
jungle boogie  wrote:


Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700

The Edgerouter 6 is going to be coming out shortly, that is what I am
holding out for to run my home network on.



Just curious, why this and not amd64 bit with something like the
pcengine apu2 board? I know it only has three NICs, so it's likely a


apu4b4 provides 4 intel NICs:

http://pcengines.ch/apu4b4.htm






Re: 4-ports router under $150

2018-04-08 Thread Joel Wirāmu Pauling
You can get  4 ports j1900's for sub $100 off ali-express. If you don't
care about AES-NI they do 5gbit duplex slow path l3 forwarding just fine:

If you want AES-NI then these are the Cheapest :
https://www.aliexpress.com/item/Minisys-4-Lan-pfsense-minipc-Intel-atom-E3845-quad-core-mini-itx-motherboard-linux-firewall-computer/32825684280.html

On 9 April 2018 at 12:20, Anatoli  wrote:

> Guys, thank you all for your recommendations.
>
> > I know it only has three NICs, so it's likely a non-started for the OP
>
> Yepp, there are a lot of nice devices with 3 NICs, but I need at least 4
> and actually I don't need more than 5.
>
>
> > The Edgerouter 6 is going to be coming out shortly, that is what I am
> holding out for to run my home network on
> > I think the ER6 is going to be retailing for about $220
>
> It's a nice device for the suggested price, but it's a bit expensive for
> my project. I need a number of the devices, the idea is not to surpass $150.
>
>
> > https://ru.aliexpress.com/item/QOTOM-310G4-3215U-Barebone-
> mini-pc-Dual-core-4-nics-Mini-pc-Ubuntu-Industrial-desktop-
> Computer/32769767156.html
> > This is what I bought for similar purposes.
> > It has 4 Intel Gigabit ports and their efficiency is 99%.
>
> Thanks Максим, looks interesting, but again it's a bit expensive. The
> basic version with RAM costs about $232.
>
>
> > apu4b4 provides 4 intel NICs: http://pcengines.ch/apu4b4.htm
>
> Thanks a lot Karel, I didn't know there was an apu4 board. I guess this is
> the device I'm looking for. Though, there's no information on internet
> about it, even the official page doesn't provide links to it, it appears
> only on the order page. Was it released just recently? Can you confirm it's
> working well with OpenBSD 6.2/6.3?
>
> Do you know where to buy it? On the official order page (
> http://www.pcengines.ch/newshop.php?c=4) it says "No stock".
>
> Regards,
> Anatoli
>
> *From:* Karel Gardas
> *Sent:* Sunday, April 08, 2018 09:39
> *To:* Jungle Boogie
> *Cc:* Misc
> *Subject:* Re: 4-ports router under $150
>
>
> On Sat, 7 Apr 2018 19:01:50 -0700
> jungle boogie  wrote:
>
> Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700
>>
>>> The Edgerouter 6 is going to be coming out shortly, that is what I am
>>> holding out for to run my home network on.
>>>
>>>
>>> Just curious, why this and not amd64 bit with something like the
>> pcengine apu2 board? I know it only has three NICs, so it's likely a
>>
>
> apu4b4 provides 4 intel NICs:
>
> http://pcengines.ch/apu4b4.htm
>
>
>
>
>


Re: 4-ports router under $150

2018-04-08 Thread flipchan
yes a apu2b4 its is very stable with openbsd6.2 and it performs rly good , im 
running it with cat 6 cables and i am much more happier with that one rather 
then my consumer router, i now have a fully working seperation of my different 
networks and having a rly good dhcp server rly does wonders, i recommend it, 
just dont forget to enable com0 as output , i recommended the board to a friend 
and he loves it to he is running linux on it doe :/

On April 8, 2018 4:02:20 PM UTC, Michael Price  wrote:
>Was it an apu2c4 by any chance? I was thinking about picking one of
>those
>up and was curious as to what kind of packet rates people were seeing
>with
>them.
>
>Michael
>
>On Sun, Apr 8, 2018 at 1:41 AM, flipchan  wrote:
>
>> I run a apu board with 3 ports with openbsd 6.2 and coreboot, i
>recommend
>> it
>>
>> On April 8, 2018 2:01:50 AM UTC, jungle boogie
>
>> wrote:
>> >Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700
>> >> The Edgerouter 6 is going to be coming out shortly, that is what I
>am
>> >
>> >> holding out for to run my home network on.
>> >>
>> >>
>> >
>> >Just curious, why this and not amd64 bit with something like the
>> >pcengine apu2 board? I know it only has three NICs, so it's likely a
>> >non-started for the OP, but it's 64bit amd.
>> >
>> >I don't know the MSRP of the ER6. Do you?
>>
>> --
>> Take Care Sincerely flipchan layerprox dev
>>

-- 
Take Care Sincerely flipchan layerprox dev


Re: Serial port pci cards.

2018-04-08 Thread lists
Sun, 8 Apr 2018 12:05:17 -0500 joshua stein 
> On Sun, 08 Apr 2018 at 12:19:01 -0400, Michael Price wrote:
> >I am unwise in the ways of serial port pci cards. Should I be avoiding any
> >particular brands? Any pointers to more information would be appreciated.  
> 
> The puc(4) man page has a lot of brands and models that are 
> supported.
> 

Hi Michael,

Yes, you should be avoiding the no brand generic black mask no name PCI
boards with 2 and 4 port RS232 interfaces from ebay, these do NOT work:

vendor "TXIC", unknown product 0x3473 (class communications subclass serial, 
rev 0x10) at pci4 dev 6 function 0 not configured

This may change in the future, but I am not holding my hopes high here.
I feel cheated every time I order something from some Asian PCB factory
trash bin appearing on many tolerated "stores" of scam sites like ebay.

This post has no purpose other than warn about low cost trashy products
that buyers have not matched against confirmed hardware in manual pages
vendor and product IDs in the source code of the OS and "use this" tip.

I have had much better luck with hardware listing the model chip-set in
the description on ebay, thought this one not having it is a small risk
but the result is dissatisfaction, obviously these are binned products.

I can tell you more about the chip and build quality of this particular
one if I pop the card out of its PCI slot where it wastes power waiting
for an OpenBSD driver (or its model listed in a similar existing one)..

Now thank you for raising the question, I'll be reading all replies and
the puc(4) manual page to find a PCI card again, in the low cost range.

Kind regards,
Anton Lazarov



Date of yesterday

2018-04-08 Thread Max Power
Hi guys,
How can I do to get yesterday's date?
I need for create a backup directory.
On Linux:
yesterday=backup_$(date -d "yesterday" '+%Y_%m_%d')
mkdir -p /raid1/backup/$yesterday

Thanks for reply.



Re: Date of yesterday

2018-04-08 Thread Robert Klein
Hi Max,

this works for me:

date -r $(( $(date +%s) - 1 * 24 * 60 * 60 )) +%Y_%m_%d


Best regards
Robert

On Mon, 09 Apr 2018 07:45:05 +0200
Max Power  wrote:

> Hi guys,
> How can I do to get yesterday's date?
> I need for create a backup directory.
> On Linux:
> yesterday=backup_$(date -d "yesterday" '+%Y_%m_%d')
> mkdir -p /raid1/backup/$yesterday
> 
> Thanks for reply.
> 



Re: Date of yesterday

2018-04-08 Thread Philip Guenther
On Sun, Apr 8, 2018 at 10:54 PM, Robert Klein  wrote:

> this works for me:
>
> date -r $(( $(date +%s) - 1 * 24 * 60 * 60 )) +%Y_%m_%d
>

Did you test that after 11pm on the day when daylight-saving time ends and
the clock is turned back, resulting in a 25 hour long day?

I would use this:
   perl -MPOSIX=strftime,mktime -le '@d=localtime(); $d[3]--; mktime(@d);
print strftime("%Y_%m_%d",@d)'

Philip Guenther


Re: 4-ports router under $150

2018-04-08 Thread Anatoli

Thanks for your suggestion, Joel.

> If you want AES-NI then these are the Cheapest: 
https://www.aliexpress.com/item/Minisys-4-Lan-pfsense-minipc-Intel-atom-E3845-quad-core-mini-itx-motherboard-linux-firewall-computer/32825684280.html


This one looks good, a bit more expensive ($172) than my limit, but 
probably I could expand it.



> You can get  4 ports j1900's for sub $100 off ali-express

Yeah, there're a lot of devices, but I don't know which one works well 
with OpenBSD. Could you please point me to a particular device that you 
know works well?


*From:* Joel Wirāmu Pauling
*Sent:* Sunday, April 08, 2018 23:54
*To:* Anatoli
*Cc:* Misc
*Subject:* Re: 4-ports router under $150

You can get  4 ports j1900's for sub $100 off ali-express. If you don't
care about AES-NI they do 5gbit duplex slow path l3 forwarding just fine:

If you want AES-NI then these are the Cheapest :
https://www.aliexpress.com/item/Minisys-4-Lan-pfsense-minipc-Intel-atom-E3845-quad-core-mini-itx-motherboard-linux-firewall-computer/32825684280.html

On 9 April 2018 at 12:20, Anatoli  wrote:


Guys, thank you all for your recommendations.


I know it only has three NICs, so it's likely a non-started for the OP

Yepp, there are a lot of nice devices with 3 NICs, but I need at least 4
and actually I don't need more than 5.



The Edgerouter 6 is going to be coming out shortly, that is what I am

holding out for to run my home network on

I think the ER6 is going to be retailing for about $220

It's a nice device for the suggested price, but it's a bit expensive for
my project. I need a number of the devices, the idea is not to surpass $150.



https://ru.aliexpress.com/item/QOTOM-310G4-3215U-Barebone-

mini-pc-Dual-core-4-nics-Mini-pc-Ubuntu-Industrial-desktop-
Computer/32769767156.html

This is what I bought for similar purposes.
It has 4 Intel Gigabit ports and their efficiency is 99%.

Thanks Максим, looks interesting, but again it's a bit expensive. The
basic version with RAM costs about $232.



apu4b4 provides 4 intel NICs: http://pcengines.ch/apu4b4.htm

Thanks a lot Karel, I didn't know there was an apu4 board. I guess this is
the device I'm looking for. Though, there's no information on internet
about it, even the official page doesn't provide links to it, it appears
only on the order page. Was it released just recently? Can you confirm it's
working well with OpenBSD 6.2/6.3?

Do you know where to buy it? On the official order page (
http://www.pcengines.ch/newshop.php?c=4) it says "No stock".

Regards,
Anatoli

*From:* Karel Gardas
*Sent:* Sunday, April 08, 2018 09:39
*To:* Jungle Boogie
*Cc:* Misc
*Subject:* Re: 4-ports router under $150


On Sat, 7 Apr 2018 19:01:50 -0700
jungle boogie  wrote:

Thus said Jordan Geoghegan on Sat, 7 Apr 2018 17:57:16 -0700

The Edgerouter 6 is going to be coming out shortly, that is what I am
holding out for to run my home network on.


Just curious, why this and not amd64 bit with something like the

pcengine apu2 board? I know it only has three NICs, so it's likely a


apu4b4 provides 4 intel NICs:

http://pcengines.ch/apu4b4.htm










Re: 4-ports router under $150

2018-04-08 Thread Максим
Hi Anatoli,
Another good device for $165 in basic setup:
https://ru.aliexpress.com/item/Mini-Industrial-PC-Max-8G-DDR3-Dual-Core-Mini-Desktop-Computer-x86-4-Lan-port-12v/32692470253.html?spm=a2g0v.search0104.3.23.1e1e2025iFZAQt&ws_ab_test=searchweb0_0,searchweb201602_2_10152_10151_10065_10344_10068_10342_5722912_10343_10340_5722612_10341_10698_10697_10696_5722812_10084_10083_10618_5722712_10307_10301_10059_10534_308_100031_10103_441_10624_10623_10622_10621_5723012_10620_5722512,searchweb201603_25,ppcSwitch_3&algo_expid=55575e8e-990d-4e17-80a8-5eec917361f0-3&algo_pvid=55575e8e-990d-4e17-80a8-5eec917361f0&transAbTest=ae803_1&priceBeautifyAB=0

-- 
С уважением,
Родин Максим


08.04.2018, 02:45, "Anatoli" :
> Hi All!
>
> I'm looking for a modest 4-5 ports router under $150 that works well
> with OpenBSD. I don't need WiFi, USB or console port, and the throughput
> don't need to exceed 100Mbps. The ideal device would be EdgeRouter X
> (compact, 5 ports, $50) but I know it's not supported at this moment and
> probably never will be.
>
> EdgeRouter (ER) Lite only has 3 ports and the switch ports (eth2-4) of
> ERPOE-5 are not yet supported.
>
> ER-4 would be great, but the 4th port is SFP, I'd need to by an SFP NIC
> for one of my devices and I'm not sure it's supported as the octeon page
> says ER PRO SFP ports are not supported yet. Also it's a bit expensive
> ($190).
>
> Banana Pi R2 would be great too, but I couldn't find if it's supported
> by OpenBSD (it has MediaTek MT7623N, Quad-core ARM Cortex-A7).
>
> Are there 4-5 port devices that are known to work well with OpenBSD?
>
> Thanks,
> Anatoli