Re: Progress on adding support for Perle Speed8 LE

2015-12-26 Thread Jordon
> On Dec 22, 2015, at 11:40 PM, Theo de Raadt 
wrote:
>
>> I originally set all the ports to PUC_COM_POW2(3) and I did communicate
>> with one of the ports to a different machine @ 115200.
>> In the next few days, I will test all the ports @ 115200 and 9600.
>
> Ok great.  We'll avoid throwing a diff at the tree, until you are
> sure.


I tested this by connecting each of the 8 ports to the serial port on a Dell
laptop also running OpenBSD.
I used cu to test each port at 9600 and 115200.  The ‘test’ was mash on
the keyboard on each side and see if letters that looked right showed up on
the other.
Based on this test, I think I have this card working.



pcidevs:

vendor  PERLE   0x155f  Perle
product PERLE   R35583  0xb008  Speed8 LE



pucdata.c:

{
{   PCI_VENDOR_PERLE, PCI_PRODUCT_PERLE_R35583, 0x1415,
0x9501 },
{   0x, 0x, 0x, 0x },
{
{ PUC_COM_POW2(3), 0x10, 0x },
{ PUC_COM_POW2(3), 0x10, 0x0008 },
{ PUC_COM_POW2(3), 0x10, 0x0010 },
{ PUC_COM_POW2(3), 0x10, 0x0018 },
},
},

{
{   PCI_VENDOR_PERLE, PCI_PRODUCT_PERLE_R35583, 0x1415,
0x9511 },
{   0x, 0x, 0x, 0x },
{
{ PUC_COM_POW2(3), 0x10, 0x },
{ PUC_COM_POW2(3), 0x10, 0x0008 },
{ PUC_COM_POW2(3), 0x10, 0x0010 },
{ PUC_COM_POW2(3), 0x10, 0x0018 },
},
},



dmesg:

puc0 at pci0 dev 9 function 0 "Perle Speed8 LE" rev 0x00: ports: 4 com
com4 at puc0 port 0 apic 2 int 18: st16650, 32 byte fifo
com4: probed fifo depth: 16 bytes
com5 at puc0 port 1 apic 2 int 18: st16650, 32 byte fifo
com5: probed fifo depth: 16 bytes
com6 at puc0 port 2 apic 2 int 18: st16650, 32 byte fifo
com6: probed fifo depth: 16 bytes
com7 at puc0 port 3 apic 2 int 18: st16650, 32 byte fifo
com7: probed fifo depth: 16 bytes
puc1 at pci0 dev 9 function 1 "Perle Speed8 LE" rev 0x00: ports: 4 com
com8 at puc1 port 0 apic 2 int 18: st16650, 32 byte fifo
com9 at puc1 port 1 apic 2 int 18: st16650, 32 byte fifo
com10 at puc1 port 2 apic 2 int 18: st16650, 32 byte fifo
com11 at puc1 port 3 apic 2 int 18: st16650, 32 byte fifo



I’m still not sure why the first four ports give the probe message and the
second four don’t.
If this is adequate testing, feel free to add this.  If more testing is
preferred, let me know what to do.

Thanks!
Jordon



Re: WTMP Question

2015-12-26 Thread Duncan Patton a Campbell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Mon, 21 Dec 2015 19:58:28 -0800
Philip Guenther  wrote:

> On Sun, Dec 20, 2015 at 6:06 PM, Duncan Patton a Campbell
>  wrote:
> > On Sun, 20 Dec 2015 12:37:30 -0800
> > Philip Guenther  wrote:
> >
> >> On Sat, Dec 19, 2015 at 3:31 PM, Duncan Patton a Campbell
> >>  wrote:
> >> > I've a question about last/utmp/wtmp that someone here should be
> >> > able to answer.
> >> >
> >> > At the shell I do
> >> >
> >> > # date
> >> > Sat Dec 19 16:29:07 MST 2015
> >> > # last
> >> >
> >> > wtmp begins Sat Dec 19 16:29 2015
> >> >
> >> > This appears to set the beginning time to "now"
> >> > every time I run the thing.  WTF sets the
> >> > lower bound so as to see back from "now"?
> >> >
> >> > It is not exactly obvious from the man pages how this works.
> >> > I'm sure it's there, I just can't find it.
> >>
> >> Well, you apparently know that the data comes from /var/log/wtmp,
> >> so what's the status of that file?  It should be a normal file of
> >> non-zero length.  If it's a symlink to /dev/null or something bogus
> >> then you need to figure out why and maybe reinstall from scratch.
> >
> > # ls -l /var/log/wtmp
> > - -rw-r--r--  1 root  wheel  0 Dec 19 04:00 /var/log/wtmp
> 
> (Not sure why there's that extra '- ' at the beginning of that.  Did
> your email client quote it?)

Apparently yes.

> 
> So, the file isn't growing.  Why?  Is the filesystem full?  Is /var
> not mounted read-write?
# df
Filesystem  512-blocks  Used Avail Capacity  Mounted on
/dev/sd2a 49547260   8237420  3883248018%/
# mount
/dev/sd2a on / type ffs (local)
# last   

wtmp begins Sat Dec 26 11:55 2015

l /var/log/wtmp
- -rw-r--r--  1 root  wheel  0 Dec 26 04:00 /var/log/wtmp

And the only mention of wtmp in /etc is in newsyslog.conf

newsyslog.conf:/var/log/wtmp644  7 *$W6D4 B

and in mtree/special
mtree/special:wtmp  type=file mode=0644 uname=root gname=wheel

thanks,
Dhu


> 
> 
> >> Also, you failed to include the dmesg or even mention what version
> >> you're running, so maybe we should just go with "you're clearly
> >> running an out of date version and probably screwed up an upgrade
> >> across the time_t size change"...
> >
> > I'm running 5.7  dmesg as follows:
> >
> > OpenBSD 5.7 (GENERIC.MP) #881: Sun Mar  8 11:04:17 MDT 2015
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
> Good; not a known problem in that release.  (Hmm, -current might run
> cooler since kettenis enabled some deeper mwait bits on AMD CPUs after
> 5.8 was released, iirc.)
> 
> 
> Philip Guenther
> 


- -- 

http://babayaga.neotext.ca/PublicKeys/Duncan_Patton_a_Campbell_pubkey.txt

Ne obliviscaris, vix ea nostra voco.
iF4EAREIAAYFAlZ+48EACgkQiY6AzzR1lzw6YQD8DhKxw5vH9v4DjX9ff2WrkSSM
lNGloWEJ1r8GImdA4OsA/RVHt/tl66Nl4EJkarVPhuL3v/XDSiuM+X/cLrc60qaR
=V9tn
-END PGP SIGNATURE-



Re: WTMP Question

2015-12-26 Thread Duncan Patton a Campbell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Wed, 23 Dec 2015 10:56:26 +
skin...@britvault.co.uk (Craig Skinner) wrote:

> On 2015-12-22 Tue 12:13 PM |, Otto Moerbeek wrote:
> > hOn Tue, Dec 22, 2015 at 10:26:33AM +, Stuart Henderson wrote:
> > 
> > > There isn't a '> /var/log/wtmp' or something in rc.local from a
> > > past upgrade across the time_t bump is there?
> > 
> > Or in /etc/rc.firsttime and a r/o /etc so it cannot be renamed?
> > 
> 
> $ fgrep -Ri wtmp /etc/rc*
> 

# fgrep -Ri wtmp /etc/rc*
# 

nope.  

thanks,

Dhu
- -- 

http://babayaga.neotext.ca/PublicKeys/Duncan_Patton_a_Campbell_pubkey.txt

Ne obliviscaris, vix ea nostra voco.
iF4EAREIAAYFAlZ+5BMACgkQiY6AzzR1lzxrMAEAuib7UDWFjxx92c48VDd4QiPS
4xev+CXZOdiFxkiZ6uAA/3o0NooeeS4NTTOsYEjdQdX4Xq2buTPfw9tJxObYbU6P
=rXE5
-END PGP SIGNATURE-



Re: WTMP Question

2015-12-26 Thread Philip Guenther
On Sat, Dec 26, 2015 at 11:00 AM, Duncan Patton a Campbell
 wrote:
...
>> So, the file isn't growing.  Why?  Is the filesystem full?  Is /var
>> not mounted read-write?
> # df
> Filesystem  512-blocks  Used Avail Capacity  Mounted on
> /dev/sd2a 49547260   8237420  3883248018%/
> # mount
> /dev/sd2a on / type ffs (local)
> # last
>
> wtmp begins Sat Dec 26 11:55 2015
>
> l /var/log/wtmp
> - -rw-r--r--  1 root  wheel  0 Dec 26 04:00 /var/log/wtmp
>
> And the only mention of wtmp in /etc is in newsyslog.conf
>
> newsyslog.conf:/var/log/wtmp644  7 *$W6D4 
> B
>
> and in mtree/special
> mtree/special:wtmp  type=file mode=0644 uname=root gname=wheel

So what are you going to do next to track this down?  ktrace a
getty/login process to see what happens when it does the open/write?
Reinstall/upgrade to known good binaries and see if it continues?  Or
ignore it and hope it's not because someone guessed your password and
has installed a login binary that doesn't record anything in wtmp?


Philip Guenther



Re: if I were to make a pkg-add diff

2015-12-26 Thread Christoph R. Murauer
Quote from dan mclaughlin :

[ ... ]
> (i am really starting to feel for the devs. this gets wearying.)
[ ... ]
> whenever i want something to work the way i want, i just script around
> it.
> the beauty of unix.

Explains it very good. I personally think, OpenBSD is simple not for
Luke. What Luke does, is simple unfair towards the developers and also
towards new users which are willing to learn and maybe use OpenBSD
only as users.

For Luke, read the following :

http://www.openbsd.org/mail.html

Do your homework before you post
[ ... ] the FAQ and the relevant man pages (start with afterboot(8)),
and check the mailing list archives. We want to help, but we wouldn't
want to deprive you of a valuable learning experience, and no one
wants to see the same question on the lists for the fifth time in a
month.

Respect differences in opinion and philosophy
Intelligent people may look at the same set of facts and come to very
different conclusions. Repeating the same points that didn't convince
someone previously rarely changes their mind and irritates all the
other readers.

http://www.openbsd.org/faq/index.html

8.14 - What web browsers are available for OpenBSD? - for lynx and the
relevant discussions about it at misc@.

14.6 - Soft Updates - for softdep

8.21 - Does OpenBSD support any journaling filesystems? - for softdep
yes or no.

1.11 - Why is/isn't ProductX included?
Why isn't there a graphical or curses(3) based installer?
For a number of reasons, including the goal of keeping the
installation boot media able to be a single floppy disk, the fact that
one installer can be used on all platforms in all configurations, and
the fact that after the second or third OpenBSD install, most users
find the OpenBSD installation system among the fastest and easiest
installers of any OS. Most developers and users greatly prefer the
speed, power, and ease of use of the current installer to any of the
more "colorful" or "pretty" installers on some other platforms.

In most cases, these topics have been discussed in painful detail on
the mail lists, please see archives if you need more information. -
for your (Javascript) installer idea.

14.2 - Using fdisk(8)
14.3 - Using OpenBSD's disklabel(8)
14.21 - How do I use softraid(4)? + man page - for full disc encryption.

And yes, it is expected, that you can handle this tools befor
installing the system !

15.2.2 - Making things easy: PKG_PATH - to define more then one mirrors.

You should stop to reninvent the wheel or, to create problems where
are none.
You should start to RTFM (Reed The Fucking Manuals) or, buy a OpenBSD
relevant book - as others also did.
You also should do the following *shutup and hack* instead of always
complaining.

Let's say your idea for pkg_add is cool, let's say you make a clean
install or a update using bsd.rd and, let's also say, that you have no
supported network device - without the firmware from
firmware.openbsd.org ... what's next ?



Re: i386 packages - snapshot 23/12/2015

2015-12-26 Thread Alexander Hall
On Sat, Dec 26, 2015 at 01:08:47PM +, Stuart Henderson wrote:
> On 2015/12/26 13:45, Alexander Hall wrote:
> > On Sat, Dec 26, 2015 at 12:19:22PM +, Stuart Henderson wrote:
> > > On 2015-12-25, Alexander Hall  wrote:
> > > > On December 24, 2015 4:45:06 PM GMT+01:00, "soko.tica" 
> > > >  wrote:
> > > > Already installed packages should work fine after an upgrade
> > > 
> > > I'd add "usually" here - there are still quite a few times we need to
> > > make changes across the ports tree to cope with a change in base.
> > 
> > While I have my guesses, care to give an example or two for the good of
> > the community (me included)? :)
> 
> Recent examples include the tun(4) "link0" to tap(4) conversion,
> switching ifmedia to 64 bit values (done a few months ago in prep for
> 802.11n), changes to some ports to stop fetching addresses by libkvm as
> they were removed from the returned structures. Going further back there
> are things like some of the libressl changes, kvm_getproc api changes,
> 64-bit time_t/ino_t/etc, route message layout changes etc.
> 
> Additionally inter-library dependencies in X can mean that sometimes old
> packages stopping working (liba 1.0 depends on libb 1.0 and a package
> uses functions from both liba and libb. now libb is updated to 2.0 with
> a majorly incompatible ABI change, maybe a change to struct layout; this
> means the packages must be updated to cope, otherwise they will expect
> the old libb ABI but liba will expect the new one, and you can't have
> both at the same time).

Good examples, thanks!

/Alexander



Highest Speed Network Packet Generator?

2015-12-26 Thread Mohammad BadieZadegan
Hi everybody,
I need a network packet generator that generates Network Packets with the
HIGHEST Speed!
Before I migrate to OpenBSD I used PKTGEN on Linux to generate this with
the highest speed level.
At this state I need one tools BUT on the OpenBSD.
Is that netmap (http://info.iet.unipi.it/~luigi/netmap/) useful in OpenBSD?

-- 
[image: ( openbsd.pro  933k.ir )] 



Re: i386 packages - snapshot 23/12/2015

2015-12-26 Thread Stuart Henderson
On 2015-12-25, Alexander Hall  wrote:
> On December 24, 2015 4:45:06 PM GMT+01:00, "soko.tica"  
> wrote:
>>Hello,
>>
>>I've succesfully installed today the latest i386 snapshot on a usb
>>flash
>>disk (on amd64 box), but the packages (e.g. links+, xfe ) report
>>unresolved
>>dependencies and bad major. This is strange, since it is supposed that
>>older packages run on fresh -current install.
>
> Already installed packages should work fine after an upgrade

I'd add "usually" here - there are still quite a few times we need to
make changes across the ports tree to cope with a change in base.



Re: Highest Speed Network Packet Generator?

2015-12-26 Thread Stuart Henderson
On 2015-12-26, Mohammad BadieZadegan  wrote:
> Hi everybody,
> I need a network packet generator that generates Network Packets with the
> HIGHEST Speed!
> Before I migrate to OpenBSD I used PKTGEN on Linux to generate this with
> the highest speed level.
> At this state I need one tools BUT on the OpenBSD.

There's tcpbench (in base; does udp as well as tcp) or netblast (part of
the netrate package). I don't think you will get anywhere near pktgen speeds
though.

> Is that netmap (http://info.iet.unipi.it/~luigi/netmap/) useful in OpenBSD?

No.



Re: LibreNMS chroot issues

2015-12-26 Thread Stuart Henderson
On 2015-12-25, Predrag Punosevac  wrote:
> I was wondering if anybody tried running LibreNMS with httpd from the
> base and even more fundamentally does httpd from the base support
> "unsecure" mode. I read up and down httpd several times but I didn't see
> anything about insecure mode.

It's PHP, not the http server, that needs to be run without chroot.

> My second question is using PHP with Nginx running in the insecure mode.
> I got Nginx exporting http without any problems. However I can't get 
> to export PHP files. I was under impression that it is sufficient to
> comment out with ; the 
>
> chroot = /var/www
>
> line from 
>
> /etc/php-fpm.conf
>
> However that didn't work. Can anybody who runs php-fpm, MariaDB, and
> Nginx in the insecure mode give me some hint to what I am doing wrong.
> I haven't seen anything interesting in php-fpm log files. 
>
> Best,
> Predrag

You probably need something like this.

fastcgi_param  DOCUMENT_ROOT /var/www$document_root;
fastcgi_param  SCRIPT_FILENAME /var/www$document_root$fastcgi_script_name;

Works with nginx for sure. I don't think httpd will give enough control
over fastcgi path names to work though.

I'll try to find time to revise the pkg-readme.



Re: if I were to make a pkg-add diff

2015-12-26 Thread Stuart Henderson
On 2015-12-26, dan mclaughlin  wrote:
> ftp -o - http://www.openbsd.org/ftp.html | more
>
> will display the html source of the page, which is pretty easy to read even
> unrendered.

No need to parse the html,

ftp -o - http://www.openbsd.org/build/mirrors.dat | grep -e ^U -e ^G[CITS]



Re: Highest Speed Network Packet Generator?

2015-12-26 Thread Uwe Werler
tcpbench in base or iperf from ports.


 Ursprüngliche Nachricht 
Von: Mohammad BadieZadegan  
Datum:26.12.2015  09:15  (GMT+01:00) 
An: misc@openbsd.org 
Cc:  
Betreff: Highest Speed Network Packet Generator? 



Re: i386 packages - snapshot 23/12/2015

2015-12-26 Thread Stuart Henderson
On 2015/12/26 13:45, Alexander Hall wrote:
> On Sat, Dec 26, 2015 at 12:19:22PM +, Stuart Henderson wrote:
> > On 2015-12-25, Alexander Hall  wrote:
> > > On December 24, 2015 4:45:06 PM GMT+01:00, "soko.tica" 
> > >  wrote:
> > > Already installed packages should work fine after an upgrade
> > 
> > I'd add "usually" here - there are still quite a few times we need to
> > make changes across the ports tree to cope with a change in base.
> 
> While I have my guesses, care to give an example or two for the good of
> the community (me included)? :)

Recent examples include the tun(4) "link0" to tap(4) conversion,
switching ifmedia to 64 bit values (done a few months ago in prep for
802.11n), changes to some ports to stop fetching addresses by libkvm as
they were removed from the returned structures. Going further back there
are things like some of the libressl changes, kvm_getproc api changes,
64-bit time_t/ino_t/etc, route message layout changes etc.

Additionally inter-library dependencies in X can mean that sometimes old
packages stopping working (liba 1.0 depends on libb 1.0 and a package
uses functions from both liba and libb. now libb is updated to 2.0 with
a majorly incompatible ABI change, maybe a change to struct layout; this
means the packages must be updated to cope, otherwise they will expect
the old libb ABI but liba will expect the new one, and you can't have
both at the same time).



Re: Highest Speed Network Packet Generator?

2015-12-26 Thread Kamil Cholewiński
You should have a look at Snabb Switch. I haven't tried it myself yet.

On Sat, 26 Dec 2015, Mohammad BadieZadegan  wrote:
> Hi everybody,
> I need a network packet generator that generates Network Packets with the
> HIGHEST Speed!
> Before I migrate to OpenBSD I used PKTGEN on Linux to generate this with
> the highest speed level.
> At this state I need one tools BUT on the OpenBSD.
> Is that netmap (http://info.iet.unipi.it/~luigi/netmap/) useful in OpenBSD?
>
> -- 
> [image: ( openbsd.pro  933k.ir )] 



Re: Hosting a virtual Windows instance

2015-12-26 Thread Fred

On 12/25/15 21:45, Ed Ahlsen-Girard wrote:

Does anybody do that (e.g., deal with a stupid mandatory web site)?

If so, what host do you use?



pkg_add qemu and the following script to start my xp instance:

#! /bin/sh
#
# Add the following line for cdrom to be found
#   -cdrom /dev/cd0a \

ulimit -d 1572864;
/usr/local/bin/qemu-system-i386 -m 768 \
-net nic,model=rtl8139 -net user,hostname=xp \
-no-fd-bootchk \
-monitor stdio \
-hda xp.img

Typical windows took hours to install in qemu using:

/usr/local/bin/qemu-system-i386 -m 768 \
-monitor stdio -vnc :0 \
-no-fd-bootchk \
-hda xp.img \
-cdrom /dev/cd0a -boot d

Although often just changing the user agent in my browser is sometimes 
sufficient for stupid sites.


hth

Fred



Re: i386 packages - snapshot 23/12/2015

2015-12-26 Thread Alexander Hall
On Sat, Dec 26, 2015 at 12:19:22PM +, Stuart Henderson wrote:
> On 2015-12-25, Alexander Hall  wrote:
> > On December 24, 2015 4:45:06 PM GMT+01:00, "soko.tica" 
> >  wrote:
> >>Hello,
> >>
> >>I've succesfully installed today the latest i386 snapshot on a usb
> >>flash
> >>disk (on amd64 box), but the packages (e.g. links+, xfe ) report
> >>unresolved
> >>dependencies and bad major. This is strange, since it is supposed that
> >>older packages run on fresh -current install.
> >
> > Already installed packages should work fine after an upgrade
> 
> I'd add "usually" here - there are still quite a few times we need to
> make changes across the ports tree to cope with a change in base.

While I have my guesses, care to give an example or two for the good of
the community (me included)? :)

/Alexander



Panic when copying files

2015-12-26 Thread Thomas Bohl
Hello,

when copying files from one harddisk to another, which are both
connected via the same SATA3 ASMedia ASM1061 controller, there
eventually will be a kernel panic on my setup. It's reproducible, but
the timing is different on each run of cp -R.
Copying files to a harddisk on the Intel controller works without a problem.

(Already tried two different hard disks. Could still be a hardware
issue, though.)

I was able to take pictures of ddb.

# uname -a
OpenBSD sw2.cve.local 5.9 GENERIC.MP#1778 amd64

# dmesg
OpenBSD 5.9-beta (GENERIC.MP) #1778: Wed Dec 23 18:23:06 MST 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17014210560 (16226MB)
avail mem = 16494436352 (15730MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xecec0 (18 entries)
bios0: vendor American Megatrends Inc. version "C1.60" date 12/15/2015
bios0: ASRock N3700-ITX
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT AAFT MCFG HPET SSDT SSDT SSDT
UEFI LPIT CSRT SSDT
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) UR11(S1) UR12(S1)
UR13(S1) UR14(S1) XHC1(S4) HDEF(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4)
PXSX(S4) RP03(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.43 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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 80MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.01 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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu2: 1MB 64b/line 16-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.01 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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu3: 1MB 64b/line 16-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 115 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (RP03)
acpiprt4 at acpi0: bus 4 (RP04)
acpiec0 at acpi0: not present
acpicpu0 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: CLK0, resource for CAMD
acpipwrres1 at acpi0: CLK0, resource for CAM1
acpipwrres2 at acpi0: CLK1, resource for CAM2, CAM3
acpipwrres3 at acpi0: USBC, resource for XHC1
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1601, 1600, 1520, 1440, 1360,
1280, 1200, 1120, 1040, 960, 880, 800, 720, 640, 560, 480 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x21
vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x21
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ahci0 at pci0 dev 19 function 0 "Intel Braswell AHCI" rev 0x21: 

Softraid Keydisk reboot loop

2015-12-26 Thread Thomas Bohl
Hello,

I updated from 5.8-stabel to current today. (First just an update, than
because of the problem a fresh installation.) On 5.8-stabel I had a
working softraid boot setup with a USB-Stick as keydisk.

Now, if the keydisk is plugged in, the machine resets over and over
again. Unfortunately there is noting shown on screen to present here.
When the bootloader should show up there is just a beep sound (like when
the machine is power on) and than the BIOS comes again.

When the keydisk is unplugged the bootloader shows up and asks for a
password. (As intended.)

Does anyone else has that problem too?


# dmesg
OpenBSD 5.9-beta (GENERIC.MP) #1778: Wed Dec 23 18:23:06 MST 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17014210560 (16226MB)
avail mem = 16494436352 (15730MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xecec0 (18 entries)
bios0: vendor American Megatrends Inc. version "C1.60" date 12/15/2015
bios0: ASRock N3700-ITX
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT AAFT MCFG HPET SSDT SSDT SSDT
UEFI LPIT CSRT SSDT
acpi0: wakeup devices PS2K(S4) PS2M(S4) UAR1(S4) UR11(S1) UR12(S1)
UR13(S1) UR14(S1) XHC1(S4) HDEF(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4)
PXSX(S4) RP03(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.43 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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu0: 1MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 80MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.0.0.0.3.3, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu1: 1MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.01 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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu2: 1MB 64b/line 16-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Pentium(R) CPU N3700 @ 1.60GHz, 1600.01 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,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,LONG,LAHF,3DNOWP,PERF,ITSC,SMEP,ERMS,SENSOR,ARAT
cpu3: 1MB 64b/line 16-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 115 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 2 (RP02)
acpiprt3 at acpi0: bus 3 (RP03)
acpiprt4 at acpi0: bus 4 (RP04)
acpiec0 at acpi0: not present
acpicpu0 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0
C2: state 6: substate 8 >= num 3
C3: state 7: substate 4 >= num 3: C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: CLK0, resource for CAMD
acpipwrres1 at acpi0: CLK0, resource for CAM1
acpipwrres2 at acpi0: CLK1, resource for CAM2, CAM3
acpipwrres3 at acpi0: USBC, resource for XHC1
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 1600 MHz: speeds: 1601, 1600, 1520, 1440, 1360,
1280, 1200, 1120, 1040, 960, 880, 800, 720, 640, 560, 480 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x21
vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x21
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: 

Re: Progress on adding support for Perle Speed8 LE

2015-12-26 Thread Mark Kettenis
Hi Jordon,

Please send future diffs to tech@; misc@ is for trolls ;)

> I'm still not sure why the first four ports give the probe message
> and the second four don't.  If this is adequate testing, feel free
> to add this.  If more testing is preferred, let me know what to do.

The card is actually based on the Oxford OX16PCI954 chip.  This chip
has 4 integrated UARTs and an expansion bus that can be used to
connect additional UART chips.  On your Perle card, that functionality
has been used to add 4 more serial ports.  But they're not identical
to the integrated chips so it isn't entirely surprising the FIFO size
isn't the same.

Anyway, I'm integrating the changes.  Please test things after I've
committed my changes to make sure things still work.

Thanks,

Mark



Re: Softraid Keydisk reboot loop

2015-12-26 Thread Alexander Hall
On Sat, Dec 26, 2015 at 10:41:34PM +0100, Thomas Bohl wrote:
> Hello,
> 
> I updated from 5.8-stabel to current today. (First just an update, than
> because of the problem a fresh installation.) On 5.8-stabel I had a
> working softraid boot setup with a USB-Stick as keydisk.
> 
> Now, if the keydisk is plugged in, the machine resets over and over
> again. Unfortunately there is noting shown on screen to present here.
> When the bootloader should show up there is just a beep sound (like when
> the machine is power on) and than the BIOS comes again.

I'd say it seems your system is trying to boot off the keydisk. Make sure
fdisk shows no flagged partition, or remote the flag by

fdisk:*1> flag 3
Partition 3 marked active.
fdisk:*1> flag 3 0
Partition 3 flag value set to 0x0.

By then, 'p' should show no partition with an asterisk before it.

/Alexander



Re: IKEDv2 lost tunnel. How to reproduce at will, effects and work around.

2015-12-26 Thread Christian Weisgerber
There has been zero reaction to this, but I certainly see what looks 
to be the same problem: After passing a significant amount of traffic 
(hundreds of MBs, I guess), the iked's lose sync, flows and SAs are 
in disarray, and it takes a number of minutes before they manage
to sync up again.

(Yes, that's vague.  Start with Daniel's report for details.  I
haven't gotten around to really looking at what happens.)

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: if I were to make a pkg-add diff

2015-12-26 Thread Luke Small
Come to think about it, it might to be good to do tiny standalone
program called pkg_ping and then I could make it in C like I'd prefer.
I'd hope to make a port maybe, but then it would functionally defeat
the intent.

On 12/26/15, Luke Small  wrote:
> I just figure that adding a little complexity that doesn't adversely
> affect security, to ease initial entry into the system for new users
> could be good. pkg_add initialization and mirror selection can be
> automated in a way to not discourage someone from picking up a fresh
> install and running with it. Maybe I could even add an automatic
> pinging heuristic to select the lowest latency mirror.
>
> On 12/26/15, Christoph R. Murauer  wrote:
>> Quote from dan mclaughlin :
>>
>> [ ... ]
>>> (i am really starting to feel for the devs. this gets wearying.)
>> [ ... ]
>>> whenever i want something to work the way i want, i just script around
>>> it.
>>> the beauty of unix.
>>
>> Explains it very good. I personally think, OpenBSD is simple not for
>> Luke. What Luke does, is simple unfair towards the developers and also
>> towards new users which are willing to learn and maybe use OpenBSD
>> only as users.
>>
>> For Luke, read the following :
>>
>> http://www.openbsd.org/mail.html
>>
>> Do your homework before you post
>> [ ... ] the FAQ and the relevant man pages (start with afterboot(8)),
>> and check the mailing list archives. We want to help, but we wouldn't
>> want to deprive you of a valuable learning experience, and no one
>> wants to see the same question on the lists for the fifth time in a
>> month.
>>
>> Respect differences in opinion and philosophy
>> Intelligent people may look at the same set of facts and come to very
>> different conclusions. Repeating the same points that didn't convince
>> someone previously rarely changes their mind and irritates all the
>> other readers.
>>
>> http://www.openbsd.org/faq/index.html
>>
>> 8.14 - What web browsers are available for OpenBSD? - for lynx and the
>> relevant discussions about it at misc@.
>>
>> 14.6 - Soft Updates - for softdep
>>
>> 8.21 - Does OpenBSD support any journaling filesystems? - for softdep
>> yes or no.
>>
>> 1.11 - Why is/isn't ProductX included?
>> Why isn't there a graphical or curses(3) based installer?
>> For a number of reasons, including the goal of keeping the
>> installation boot media able to be a single floppy disk, the fact that
>> one installer can be used on all platforms in all configurations, and
>> the fact that after the second or third OpenBSD install, most users
>> find the OpenBSD installation system among the fastest and easiest
>> installers of any OS. Most developers and users greatly prefer the
>> speed, power, and ease of use of the current installer to any of the
>> more "colorful" or "pretty" installers on some other platforms.
>>
>> In most cases, these topics have been discussed in painful detail on
>> the mail lists, please see archives if you need more information. -
>> for your (Javascript) installer idea.
>>
>> 14.2 - Using fdisk(8)
>> 14.3 - Using OpenBSD's disklabel(8)
>> 14.21 - How do I use softraid(4)? + man page - for full disc encryption.
>>
>> And yes, it is expected, that you can handle this tools befor
>> installing the system !
>>
>> 15.2.2 - Making things easy: PKG_PATH - to define more then one mirrors.
>>
>> You should stop to reninvent the wheel or, to create problems where
>> are none.
>> You should start to RTFM (Reed The Fucking Manuals) or, buy a OpenBSD
>> relevant book - as others also did.
>> You also should do the following *shutup and hack* instead of always
>> complaining.
>>
>> Let's say your idea for pkg_add is cool, let's say you make a clean
>> install or a update using bsd.rd and, let's also say, that you have no
>> supported network device - without the firmware from
>> firmware.openbsd.org ... what's next ?
>>
>>
>>
>
>
> --
> -Luke
>


-- 
-Luke



Re: if I were to make a pkg-add diff

2015-12-26 Thread Luke Small
I just figure that adding a little complexity that doesn't adversely
affect security, to ease initial entry into the system for new users
could be good. pkg_add initialization and mirror selection can be
automated in a way to not discourage someone from picking up a fresh
install and running with it. Maybe I could even add an automatic
pinging heuristic to select the lowest latency mirror.

On 12/26/15, Christoph R. Murauer  wrote:
> Quote from dan mclaughlin :
>
> [ ... ]
>> (i am really starting to feel for the devs. this gets wearying.)
> [ ... ]
>> whenever i want something to work the way i want, i just script around
>> it.
>> the beauty of unix.
>
> Explains it very good. I personally think, OpenBSD is simple not for
> Luke. What Luke does, is simple unfair towards the developers and also
> towards new users which are willing to learn and maybe use OpenBSD
> only as users.
>
> For Luke, read the following :
>
> http://www.openbsd.org/mail.html
>
> Do your homework before you post
> [ ... ] the FAQ and the relevant man pages (start with afterboot(8)),
> and check the mailing list archives. We want to help, but we wouldn't
> want to deprive you of a valuable learning experience, and no one
> wants to see the same question on the lists for the fifth time in a
> month.
>
> Respect differences in opinion and philosophy
> Intelligent people may look at the same set of facts and come to very
> different conclusions. Repeating the same points that didn't convince
> someone previously rarely changes their mind and irritates all the
> other readers.
>
> http://www.openbsd.org/faq/index.html
>
> 8.14 - What web browsers are available for OpenBSD? - for lynx and the
> relevant discussions about it at misc@.
>
> 14.6 - Soft Updates - for softdep
>
> 8.21 - Does OpenBSD support any journaling filesystems? - for softdep
> yes or no.
>
> 1.11 - Why is/isn't ProductX included?
> Why isn't there a graphical or curses(3) based installer?
> For a number of reasons, including the goal of keeping the
> installation boot media able to be a single floppy disk, the fact that
> one installer can be used on all platforms in all configurations, and
> the fact that after the second or third OpenBSD install, most users
> find the OpenBSD installation system among the fastest and easiest
> installers of any OS. Most developers and users greatly prefer the
> speed, power, and ease of use of the current installer to any of the
> more "colorful" or "pretty" installers on some other platforms.
>
> In most cases, these topics have been discussed in painful detail on
> the mail lists, please see archives if you need more information. -
> for your (Javascript) installer idea.
>
> 14.2 - Using fdisk(8)
> 14.3 - Using OpenBSD's disklabel(8)
> 14.21 - How do I use softraid(4)? + man page - for full disc encryption.
>
> And yes, it is expected, that you can handle this tools befor
> installing the system !
>
> 15.2.2 - Making things easy: PKG_PATH - to define more then one mirrors.
>
> You should stop to reninvent the wheel or, to create problems where
> are none.
> You should start to RTFM (Reed The Fucking Manuals) or, buy a OpenBSD
> relevant book - as others also did.
> You also should do the following *shutup and hack* instead of always
> complaining.
>
> Let's say your idea for pkg_add is cool, let's say you make a clean
> install or a update using bsd.rd and, let's also say, that you have no
> supported network device - without the firmware from
> firmware.openbsd.org ... what's next ?
>
>
>


-- 
-Luke



Re: Progress on adding support for Perle Speed8 LE

2015-12-26 Thread Jordon
> On Dec 26, 2015, at 4:15 PM, Mark Kettenis  wrote:
>
> Hi Jordon,
>
> Please send future diffs to tech@; misc@ is for trolls ;)

Will do.

>> I'm still not sure why the first four ports give the probe message
>> and the second four don't.  If this is adequate testing, feel free
>> to add this.  If more testing is preferred, let me know what to do.
>
> The card is actually based on the Oxford OX16PCI954 chip.  This chip
> has 4 integrated UARTs and an expansion bus that can be used to
> connect additional UART chips.  On your Perle card, that functionality
> has been used to add 4 more serial ports.  But they're not identical
> to the integrated chips so it isn't entirely surprising the FIFO size
> isn't the same.

Ok.  In that case, I won’t worry about it.

> Anyway, I'm integrating the changes.  Please test things after I've
> committed my changes to make sure things still work.

I just pulled in the latest i386 snapshot and installed it on my dev system
(dual core P3 Tualatin)
On booting the CD, i noticed that it identified the card but did not configure
it.
After installing and booting, it loaded it just fine.
I ran a quick test on a single port at 115200 and it worked fine.

> Thanks,
>
> Mark

Thank you much for doing this!

I also have a couple RocketPort cards but in looking at the FreeBSD driver, I
see that this is a whole different beast.  If there is enough demand for this,
I would be willing to send a card to someone interested in porting the
driver.

Jordon