Re: Unable to start dhcp server at boot on 5.7 stable

2015-05-28 Thread Edgar Pettijohn III
On May 28, 2015, at 2:06 AM, Ivo Chutkin wrote:

 Hello guys,
 I am lost with this simple task.
 DHCP server does not start at boot.
 If I started by #/etc/rc.d/dhcpd start, it starts and works properly.
 If I check it with #/etc/rc.d/dhcpd check, i get dhcpd(failed)
 I cannot see any errors in logs.
 May be I miss something obvious. I have done it many times without issues.
 Please, take a look and help me if you can.
 
 Thanks,
 Ivo
 
 It is alix2d3 board with read only file system.
 
 My dhcpd.conf file is mostly default:
 
 ~ # cat /etc/dhcpd.conf
 option  domain-name my.domain;
 option  domain-name-servers 192.168.55.1;
 
 subnet 192.168.55.0 netmask 255.255.255.0 {
option routers 192.168.55.1;
 
range 192.168.55.32 192.168.55.127;
 

vlan25 192.168.25.1 is not in this subnet
nor is vlan15 192.168.15.1
if you want them to work add a subnet section for them.  Same probably goes for 
vr0.  Otherwise just start with dhcpd_flags=vr1 which appears to work.  
Otherwise it will not start because of these previous errors.  I have read only 
system and no problems with dhcpd starting.

host static-client {
hardware ethernet 22:33:44:55:66:77;
fixed-address 192.168.55.200;
}
 
host pxe-client {
hardware ethernet 02:03:04:05:06:07;
filename pxeboot;
next-server 192.168.55.1;
}
 }
 
 My hostname.vr2 file:
 ~ # cat /etc/hostname.vr2
 up
 inet 192.168.55.1 255.255.255.0 192.168.55.255
 description MNG
 
 My rc.conf.local file:
 ~ # cat /etc/rc.conf.local
 ntpd_flags=-s
 dhcpd_flags=  # for normal use: 
 
 ifconfig output:
 ~ # ifconfig
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 32768
priority: 0
groups: lo
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
 vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:80
priority: 0
groups: egress
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet XX.XXX.XXX.42 netmask 0xfff8 broadcast XX.XXX.XXX.47
 vr1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:81
description: MTEL
priority: 0
media: Ethernet autoselect (none)
status: no carrier
 vr2: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:82
description: MNG
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.55.1 netmask 0xff00 broadcast 192.168.55.255
 enc0: flags=0
priority: 0
groups: enc
status: active
 vlan15: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:82
description: VITA-OFFICE
priority: 0
vlan: 15 parent interface: vr2
groups: vlan
status: active
inet 192.168.15.1 netmask 0xff00 broadcast 192.168.15.255
 vlan25: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:82
description: VITA-GUEST
priority: 0
vlan: 25 parent interface: vr2
groups: vlan
status: active
inet 192.168.25.1 netmask 0xff00 broadcast 192.168.25.255
 pflog0: flags=141UP,RUNNING,PROMISC mtu 33192
priority: 0
groups: pflog



Re: Intel i217-LM Ethernet not working in -current

2015-05-28 Thread Christian Weisgerber
On 2015-05-28, Sonic sonicsm...@gmail.com wrote:

 More than just a DHCP issue as previously reported. The Intel i217-LM
 is not functional running -current.

Yeah, something is wrong there.  My

em0 at pci0 dev 25 function 0 Intel I217-LM rev 0x04: msi

doesn't work either on -current/amd64.  At least in a VLAN
configuration.  Specifically, it sends packets but apparently can't
receive any.

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



Re: Thinkpad X1 Carbon Suspend issue

2015-05-28 Thread Bojan Nastic
As an update - fiddling with BIOS and holding power button for 2-3 seconds
seems to wake up the machine now!

(Again, this is an i7-4550u with HD5000 GPU)

What works:
- Waking up!

What doesn't quite work:
- Lid opening still doesn't wake
- HD5000 driver is spewing errors on sleep/wake,
so waking from within X will show console errors
before rendering the screen properly.



On 26 May 2015 at 20:58, Bojan Nastic bnas...@gmail.com wrote:



 On 26 May 2015 at 10:44, Laurence Tratt lau...@tratt.net wrote:

 On Mon, May 25, 2015 at 08:21:19PM +0100, Bojan Nastic wrote:

  Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd
 gen
  (Haswell chip)?

 It works pretty well (including wireless), although on my machine the lack
 of a specific video driver means that things in X can be painfully slow
 (forget about watching a video!).

  Everything seems to be working fine, except for waking from suspend.
  Suspend works fine, either via 'zzz' or closing the lid, but waking it
 up
  doesn't work -- hardware seems unresponsive, the sleep light stays on
  regardless of what I do to it (pressing buttons, opening the lid...)

 When I do this, the OS is still working, but the screen doesn't wake back
 up
 (whether this is related to X running in the background or not, I don't
 know
 -- I never run without X). I can see this happening as follows. Log in as
 root on console 1. Suspend with zzz (I don't use suspend-with-lid). Resume
 by pressing the power button. [At this point the screen is blank.] Type
 reboot. Wait a little while and the machine will reboot. I appreciate
 that's not hugely useful, but it does mean that, if I want to test
 suspend/resume support ever so often, I don't have to fsck afterwards...


 Thanks for the tip, but unfortunatelly, it doesn't work in this case.
 The whole machine goes to sleep, so even the LED strip at the top,
 with F keys, is switched off, no way to switch to console.

 Apparently, this all works fine for people with Haswell and HD4000 GPU,
 but mine is an i7 Haswell with HD5000. (Fwiw, it does throw video
 driver errors when switching from X to console).


 --Bojan



Re: spamd - whitelist sender email addresses

2015-05-28 Thread Kevin Chadwick
On Mon, 18 May 2015 17:39:11 +0100
Craig Skinner wrote:

 RFC 5321, in section 4.5.4.1.  Sending Strategy has:
 
 
 ...
 ..
 
Retries continue until the message is transmitted or the sender gives
up; the give-up time generally needs to be at least 4-5 days. .
 
 
  Are there any experiences, after how many hours/days the sender
  side (at the large ones like google, yahoo, hotmail, etc)
  gives up?

 
 I didn't make notes on that, sorry.
 
 From memory, they honour the 4 day rule.

I believe so with the possible exception of hotmail as I seem to
remember thinking it was typical that microsoft were ignorant of the
RFC's and stopped trying after hours. 



dhcp problem

2015-05-28 Thread Thiago da Silva
Hi
Dhcp works fine in windows or in encore router, but in Openbsd 5.7
machine I received this message:

# dhclient re0
DHCPDISCOVER on re0 - interval 3
DHCPDISCOVER on re0 - interval 3
DHCPDISCOVER on re0 - interval 6
DHCPDISCOVER on re0 - interval 11
DHCPDISCOVER on re0 - interval 7
DHCPDISCOVER on re0 - interval 15
DHCPDISCOVER on re0 - interval 16
No acceptable DHCPOFFERS received.
No working leases in persistent database - sleeping.

I tried stop pf and modify dhclient.conf but didn´t work.

Any ideias about this ?

Thanks,
Thiago.



Re: Intel i217-LM Ethernet not working in -current

2015-05-28 Thread Paulo Manoel Mafra
Hi Paul, 

It was working on 5.6. On 5.7 it does not work anymore.


On Thu, May 28, 2015 at 11:22:58AM -0400, Sonic wrote:
* On Thu, May 28, 2015 at 11:14 AM, Paul de Weerd we...@weirdnet.nl wrote:
*  [weerd@pom] $ dmesg | grep ^em0
*  em0 at pci0 dev 25 function 0 Intel I217-LM rev 0x04: msi, address 
b8:ca:3a:93:03:e8
* 
* Hi Paul,
* 
* Thanks, I haven't tried an older version yet.
* 
* I do have a different rev of the device:
* 
* dmesg |grep ^em0
* em0 at pci0 dev 25 function 0 Intel I217-LM rev 0x05: msi, address
* 00:25:90:47:9e:75
* 
* Chris
* 

-- 


Sent by my Mutt
Vitam Impendere Vero



OpenBSD 5.7 Asterisk sendmail voice mail as email

2015-05-28 Thread Peter Fraser
Asterisk seems to run fine on 5.7 with one exception. 
I normally have voice mail messages send as emails.
These emails are not being send.

/usr/local/share/examples/asterisk/default/voicemail.conf

has a  variable 

;mailcmd=/usr/sbin/sendmail -t

which I believe will end up using smptd

since I wanted to use sendmail 
I put into my  /etc/asterisk/voicemail.conf

mailcmd=/usr/local/libexec/sendmail/sendmail -t

and did a

voicemail reload
from within asterisk and it still did not work.

 I even tried  
mailcmd = sh -c cat /home/pjf/messages

after creating message and chmod 777 messages
the file messages was not changed.

any ideas on what I am missing



Re: OpenBSD 5.7 Asterisk sendmail voice mail as email

2015-05-28 Thread John Merriam
On Thu, 28 May 2015, Peter Fraser wrote:

 Asterisk seems to run fine on 5.7 with one exception. 
 I normally have voice mail messages send as emails.
 These emails are not being send.
 
 /usr/local/share/examples/asterisk/default/voicemail.conf
 
 has a  variable 
 
 ;mailcmd=/usr/sbin/sendmail -t
 
 which I believe will end up using smptd
 
 since I wanted to use sendmail 
 I put into my  /etc/asterisk/voicemail.conf
 
 mailcmd=/usr/local/libexec/sendmail/sendmail -t
 
 and did a
 
 voicemail reload
 from within asterisk and it still did not work.
 
  I even tried  
 mailcmd = sh -c cat /home/pjf/messages
 
 after creating message and chmod 777 messages
 the file messages was not changed.
 
 any ideas on what I am missing
 

Have a look at /usr/local/share/doc/pkg-readmes/sendmail-*

Particularly the 'Tweaking /etc/mailer.conf' and 'Client mail queue 
ownership' sections.  I would bet that either your /var/spool/clientmqueue 
isn't owned by _smmsp:_smmsp or your submit.cf is using the old smmsp 
user/group.

-- 

John Merriam



Re: NATing out enc0 traffic

2015-05-28 Thread Justin Mayes
I just wanted to send an update based on some feedback. My subject is 
misleading so let me clarify. I'm not attempting to nat between the networks on 
either side of the vpn. For examples sake assume 192.168.0.0/24 on one side of 
tunnel and 10.10.10.0/24 on the other.  I'm trying to allow servers on one side 
10.x of the tunnel to access the internet via the other side of the tunnel 
192.168.0.1. Egress works, 10.x client gets to the internet and replies come 
back. The return traffic comes back and the gateway drops it. I assume that pf 
translates it back to the 10.x address and has no route for that. I need it to 
go back through enc0. 

J

-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of 
Justin Mayes
Sent: Wednesday, May 27, 2015 2:47 PM
To: misc@openbsd.org
Subject: NATing out enc0 traffic

Greetings everyone

I am playing with amazon virtual private clouds (VPC). I have set a few up. I 
have no issues connecting ipsec from openbsd  - amazon VPC. All of these VPCs 
so far have their own internet connection going out from amazon that works fine.


[OpenBSD]ipsec-[VPC]-Internet


Next I am setting up a VPC that has no internet gateway. Instead the default 
gateway is the vpn and all traffic is sent back through the ipsec tunnel and 
then out the local network gateway.

[Internet]
^
|
|
|
[OpenBSD]---ipsec--[VPC]


I added these relevant lines to pf.conf

Match out on $ext_if from !($ext_if:network) nat-to ($ext_if) pass quick on 
enc0 keep state (if-bound)

With tcpdump and pfctl  I can tell that traffic from the vpc (10.0.0.0/8) comes 
across the tunnel and gets NATed out. I can see that traffic leave the external 
interface and I can see the reply come back to the external interface. The 
reply never hits enc0 though and never makes it back to the client.  Is there 
another piece to the setup I am missing? I assume what I am trying to do is 
possible. I would appreciate any insight or advice anyone may have in regards 
to this type of setup.

J



Re: current and spamd in blacklist mode

2015-05-28 Thread Didier Wiroth
Oh god forgive me  :-/ sorry
pfctl -t spamd -Ts ...


On 28 May 2015 at 15:46, Didier Wiroth dwir...@gmail.com wrote:
 Hello,
 I installed a new machine a few hours ago with a current snapshot.
 I'm running spamd in blacklist mode but I look like spamd-setup -b
 does not update the spamd table.
 May be I miss something ...

 My rc.conf.local contains the following line:
 spamd_flags=-v -b

 $ cat /etc/mail/spamd.conf

 all:\
 :uatraps:nixspam:bsdly

 # University of Alberta greytrap hits.
 # Addresses stay in it for 24 hours from time they misbehave.
 uatraps:\
 :black:\
 :msg=Your address %A has sent mail to a ualberta.ca spamtrap\n\
 within the last 24 hours:\
 :method=http:\
 :file=www.openbsd.org/spamd/traplist.gz

 # Nixspam recent sources list.
 # Mirrored from http://www.heise.de/ix/nixspam
 nixspam:\
 :black:\
 :msg=Your address %A is in the nixspam list\n\
 See http://www.heise.de/ix/nixspam/dnsbl_en/ for details:\
 :method=http:\
 :file=www.openbsd.org/spamd/nixspam.gz

 bsdly:\
 :black:\
 :msg=Your address %A is in the bsdly.net list\n\
 See http://www.bsdly.net/~peter/traplist.shtml for details:\
 :method=http:\
 :file=www.bsdly.net/~peter/bsdly.net.traplist


 My pf contains the following table and rule:
 table spamd persist
 table spamd2 persist
 pass in log quick on $ext_if inet proto tcp from { spamd , spamd2
 } to $ext_if port smtp divert-to 127.0.0.1 port spamd

 Root's crontab has:
 0   *   *   *   *   sleep $((RANDOM \% 1800)) 
 /usr/libexec/spamd-setup -b

 If I run manually spamd-setup with debugging and blacklist mode:
 $ sudo /usr/libexec/spamd-setup -bd
 Getting http://www.openbsd.org/spamd/traplist.gz
 blacklist uatraps 38373 entries
 Getting http://www.openbsd.org/spamd/nixspam.gz
 blacklist nixspam 31796 entries
 Getting http://www.bsdly.net/~peter/bsdly.net.traplist
 blacklist bsdly 2837 entries

 But the problem is the spamd table is not updated:
 $ sudo pfctl -t spamd | wc -l
0

 What ever I try ... spamd-setup does not update the pf rule.

 Do I miss something?

 Thank you very much!
 Didier



-- 
Didier Wiroth



Re: Install 5.7 : fdisk crash

2015-05-28 Thread Philip Guenther
On Thu, May 28, 2015 at 10:51 AM, Bastien Durel bast...@durel.org wrote:
 Le jeudi 28 mai 2015 à 18:40 +0200, Otto Moerbeek a écrit :
...
 That would mean killed by SIGINT (^C), but that doesn't make a lot
 of sense here.

 Looks like many programs crashes this way :

 # ls
 .profile etc  install.sub  sbin usr
 bin  install  mnt  tmp  var
 dev  install.md   mnt2 upgrade
 #
 # echo $?
 130
...
 tried with many baud rates, and it *may* influence *when* programs
 crashes : with 115200 bauds ls outputs more data before crashing ; but
 ls -l output even more and does not crash, so I can't conclude it's
 output-related ...

When 'stty brkint' is set (the default), then a serial break state
will result in SIGINT being sent to the foreground process group.

Do you have a flaky cable?  Or maybe flow control isn't working?


Philip Guenther



Re: ifconfig bridge and trunk

2015-05-28 Thread sven falempin
On Thu, May 28, 2015 at 10:55 AM, Martin Pieuchot m...@openbsd.org wrote:

 On 28/05/15(Thu) 10:38, Ted Unangst wrote:
  Why is the ifconfig keyword to add an interface to a bridge add and the
  keyword to add an interface to a trunk trunkport?

 Because nobody sent a diff to unify ifconfig(8) ?

 If you can also merge vlandev, carpdev, syncdev and pppoedev in
 the same fashion, that would be awesome.  I'd suggest parent since
 that's the term we use, but others might have a better idea.

 Of course backward compatibility is needed ;)


2 cents:

all the *dev could use the 'dev' or 'if' or 'iface' but it s not the same
for trunk and bridge :
they got a list of interfaces.

on freebsd it is addm for addmember and laggport
ifconfig lagg0 up laggproto lacp laggport fxp0 laggport fxp1 10.0.0.3/24

i spare you the linux tools.

-- 
-
() ascii ribbon campaign - against html e-mail
/\



Re: Install 5.7 : fdisk crash

2015-05-28 Thread Bastien Durel
Le jeudi 28 mai 2015 à 18:40 +0200, Otto Moerbeek a écrit :
 On Thu, May 28, 2015 at 05:33:01PM +0200, Bastien Durel wrote:
 
 [snip]
  Which speed should com0 use? (or 'done') [57600] 
  Setup a user? (enter a lower-case loginname, or 'no') [no] 
  What timezone are you in? ('?' for list) [Europe/Paris] 
  
  Available disks are: sd0.
  Which disk is the root disk? ('?' for details) [sd0] 
  Use DUIDs rather than device names in fstab? [yes] 
  Disk: sd0   geometry: 3649/255/63 [58626288 Sectors]
  Offset: 0   Signature: 0xAA55
  Starting 
  
  erase ^?, werase ^W, kill ^U, intr ^C, status ^T
  
  Welcome to the OpenBSD/amd64 5.7 installation program.
  (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? 
  
  
  If I try to restart install, I get struck at the same step.
  
  fdisk ran from console exists with code 130:
  # fdisk sd0 
  Disk: sd0   geometry: 3649/255/63 [58626288 Sectors]
  Offset: 0   Signature: 0xAA55
  Starting # 
  
  
  # echo $?
  130
  
  Is there a way to find from where the error comes ?
 
 That would mean killed by SIGINT (^C), but that doesn't make a lot
 of sense here.
 
   -Otto
 
Looks like many programs crashes this way :

# ls
.profile etc  install.sub  sbin usr 
bin  install  mnt  tmp  var 
dev  install.md   mnt2 upgrade  
#   


# echo $?   
130 

But not in any case :
# ls -l 
total 112   
-rw-r--r--  1 root  wheel   1486 Mar  8 17:06 .profile  
drwxr-xr-x  2 root  wheel512 Mar  8 17:06 bin   
drwxr-xr-x  2 root  wheel   2048 Mar  8 19:53 dev   
drwxr-xr-x  4 root  wheel512 Mar  8 19:53 etc   
-rwxr-xr-x  1 root  wheel   4490 Mar  8 17:06 install   
-rw-r--r--  1 root  wheel   2548 Mar  8 17:06 install.md
-rw-r--r--  1 root  wheel  41430 Mar  8 17:06 install.sub   
drwxr-xr-x  2 root  wheel512 Mar  8 17:06 mnt   
drwxr-xr-x  2 root  wheel512 Mar  8 17:06 mnt2  
drwxr-xr-x  2 root  wheel512 Mar  8 17:06 sbin  
drwxrwxrwt  2 root  wheel512 Mar  8 19:53 tmp   
-rwxr-xr-x  1 root  wheel926 Mar  8 17:06 upgrade   
drwxr-xr-x  6 root  wheel512 Mar  8 17:06 usr   
drwxr-xr-x  6 root  wheel512 Mar  8 17:06 var   
#   
# echo $?   
0   

tried with many baud rates, and it *may* influence *when* programs
crashes : with 115200 bauds ls outputs more data before crashing ; but
ls -l output even more and does not crash, so I can't conclude it's
output-related ...

-- 
Bastien



Re: OpenBSD 5.7 Asterisk sendmail voice mail as email

2015-05-28 Thread Peter Fraser
After a couple of private email

The is no messages in the /var/spool/smtpd structure from asterisk

and one other thing I tried was to use femail  which will works when manual 
invoked 
and I believe uses nothing other that tcpip

Asterisk behaves as if the mail program is not being called at all

-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Peter 
Fraser
Sent: Thursday, May 28, 2015 2:18 PM
To: 'misc@openbsd.org'
Subject: OpenBSD 5.7  Asterisk  sendmail  voice mail as email

Asterisk seems to run fine on 5.7 with one exception. 
I normally have voice mail messages send as emails.
These emails are not being send.

/usr/local/share/examples/asterisk/default/voicemail.conf

has a  variable 

;mailcmd=/usr/sbin/sendmail -t

which I believe will end up using smptd

since I wanted to use sendmail
I put into my  /etc/asterisk/voicemail.conf

mailcmd=/usr/local/libexec/sendmail/sendmail -t

and did a

voicemail reload
from within asterisk and it still did not work.

 I even tried
mailcmd = sh -c cat /home/pjf/messages

after creating message and chmod 777 messages the file messages was not changed.

any ideas on what I am missing



Re: OpenNTPD - no constraint reply - no time sync

2015-05-28 Thread Mikolaj Kucharski
Hi,

I've initially reported this problem a while ago and I thought problem
was related to IPv6. Now I belive it is not. I did some research and
this is what I've found. I contacted Reyk couple of days ago, but didn't
get any reply from him yet, so decided to post here.

I'm using OpenNTPD's constraint from the time it was introduced. However
I found that ntpd(8) often is getting stuck at the very beginning when
it starts and never recovers from that scenario. Usually it looks as
follows when you hit the problem:

# ntpctl -sa
0/4 peers valid, clock unsynced

peer
   wt tl st  next  poll  offset   delay  jitter
87.232.1.41 0.pool.ntp.org 
1  2  -0s0s  peer not valid 
54.171.104.100 1.pool.ntp.org 
1  2  -0s0s  peer not valid 
193.1.193.157 2.pool.ntp.org 
1  2  -0s0s  peer not valid 
85.91.1.180 3.pool.ntp.org 
1  2  -0s0s  peer not valid 

All counters are zero and all peers are not valid. For me it usually
stays like that and never recovers until rcctl restart ntpd. Then often
it fails like above again. Multiple restarts in a row solve the problem.

I did some debug modifications to ntpd and this is what I've found.
I'm running my tests on:

# sysctl -n kern.version
OpenBSD 5.7-current (GENERIC) #955: Thu May 28 13:09:53 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC

and to keep IPv6 out of the picture I have following settings in resolv.conf:

# grep -w family /etc/resolv.conf
family inet4

The ntpd server itself is configured as follows:

# grep -ve '^#' /etc/ntpd.conf
server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server 3.pool.ntp.org
constraints from www.google.com

I'm running debug version of ntpd as follows:

./ntpd.debug -vd 21 | ts 

Here is example debug session when I hit the issue. Lines which contain
XXX MK are added by me via log_debug():

May 28 23:25:54 ntp engine ready
May 28 23:25:54 XXX MK STATE_NONE=0
May 28 23:25:54 XXX MK STATE_DNS_INPROGRESS=1
May 28 23:25:54 XXX MK STATE_DNS_TEMPFAIL=2
May 28 23:25:54 XXX MK STATE_DNS_DONE=3
May 28 23:25:54 XXX MK STATE_QUERY_SENT=4
May 28 23:25:54 XXX MK STATE_REPLY_RECEIVED=5
May 28 23:25:54 XXX MK STATE_INVALID=6
May 28 23:25:54 XXX MK ntp_main() constraint_cnt=0, constraint_median=0
May 28 23:25:54 XXX MK client_query() start
May 28 23:25:54 XXX MK client_query() start
May 28 23:25:54 XXX MK client_query() start
May 28 23:25:54 XXX MK client_query() start
May 28 23:25:54 XXX MK constraint_query() starts state=1
May 28 23:25:54 XXX MK constraint_query() fail with default?
May 28 23:25:54 XXX MK ntp_main() function constraint_query() returned -1
May 28 23:25:54 XXX MK ntp_main() about to loop with control_dispatch_msg() and 
j=3 i=3 nfds=1
May 28 23:25:54 XXX MK ntp_main() about to loop with constraint_dispatch_msg() 
and j=3 i=3 nfds=1
May 28 23:25:54 XXX MK ntp_main() constraint_cnt=0, constraint_median=0
May 28 23:25:54 XXX MK constraint_query() starts state=1
May 28 23:25:54 XXX MK constraint_query() fail with default?
May 28 23:25:54 XXX MK ntp_main() function constraint_query() returned -1
May 28 23:25:55 XXX MK ntp_main() about to loop with control_dispatch_msg() and 
j=3 i=3 nfds=0
May 28 23:25:55 XXX MK ntp_main() about to loop with constraint_dispatch_msg() 
and j=3 i=3 nfds=0
May 28 23:25:55 XXX MK ntp_main() constraint_cnt=1, constraint_median=0
May 28 23:25:55 XXX MK constraint_query() starts with 216.58.208.68 state=3
May 28 23:25:55 constraint request to 216.58.208.68
May 28 23:25:55 XXX MK constraint_query() succeeded?
May 28 23:25:55 XXX MK httpsdate_query() with 216.58.208.68
May 28 23:25:55 XXX MK httpsdate_init() with 216.58.208.68
May 28 23:25:55 XXX MK httpsdate_request() with 216.58.208.68 port 443
May 28 23:25:55 XXX MK httpsdate_request() date from 216.58.208.68 is Date: 
Thu, 28 May 2015 22:25:56 GMT
May 28 23:25:55 XXX MK httpsdate_request() success from 216.58.208.68
May 28 23:25:55 XXX MK httpsdate_query() with 216.58.208.68 done
May 28 23:25:55 XXX MK ntp_main() function poll() returned -1, errno=4 i=4
May 28 23:25:55 XXX MK ntp_main() about to loop with control_dispatch_msg() and 
j=3 i=4 nfds=-1
May 28 23:25:55 XXX MK ntp_main() about to loop with constraint_dispatch_msg() 
and j=3 i=4 nfds=-1
May 28 23:25:55 XXX MK constraint_check_child() bummer, we bump senderrors now 
senderrors=1 fail=0 state=4
May 28 23:25:55 XXX MK constraint_close() are we going to set state to 
STATE_INVALID? state=4
May 28 23:25:55 XXX MK constraint_close() somehow we set the state to 
STATE_INVALID state=6 senderrors=1
May 28 23:25:55 XXX MK ntp_main() constraint_cnt=1, constraint_median=0
May 28 23:25:55 XXX MK constraint_query() starts with 216.58.208.68 state=6
May 28 23:25:55 XXX MK constraint_query() fail with STATE_INVALID last=850 
now=850 diff=0
May 28 23:25:55 XXX MK ntp_main() function constraint_query() returned -1 for 

Unable to start dhcp server at boot on 5.7 stable

2015-05-28 Thread Ivo Chutkin

Hello guys,
I am lost with this simple task.
DHCP server does not start at boot.
If I started by #/etc/rc.d/dhcpd start, it starts and works properly.
If I check it with #/etc/rc.d/dhcpd check, i get dhcpd(failed)
I cannot see any errors in logs.
May be I miss something obvious. I have done it many times without issues.
Please, take a look and help me if you can.

Thanks,
Ivo

It is alix2d3 board with read only file system.

My dhcpd.conf file is mostly default:

~ # cat /etc/dhcpd.conf
option  domain-name my.domain;
option  domain-name-servers 192.168.55.1;

subnet 192.168.55.0 netmask 255.255.255.0 {
option routers 192.168.55.1;

range 192.168.55.32 192.168.55.127;

host static-client {
hardware ethernet 22:33:44:55:66:77;
fixed-address 192.168.55.200;
}

host pxe-client {
hardware ethernet 02:03:04:05:06:07;
filename pxeboot;
next-server 192.168.55.1;
}
}

My hostname.vr2 file:
~ # cat /etc/hostname.vr2
up
inet 192.168.55.1 255.255.255.0 192.168.55.255
description MNG

My rc.conf.local file:
~ # cat /etc/rc.conf.local
ntpd_flags=-s
dhcpd_flags=  # for normal use: 

ifconfig output:
~ # ifconfig
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 32768
priority: 0
groups: lo
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:80
priority: 0
groups: egress
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet XX.XXX.XXX.42 netmask 0xfff8 broadcast XX.XXX.XXX.47
vr1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:81
description: MTEL
priority: 0
media: Ethernet autoselect (none)
status: no carrier
vr2: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:82
description: MNG
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.55.1 netmask 0xff00 broadcast 192.168.55.255
enc0: flags=0
priority: 0
groups: enc
status: active
vlan15: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:82
description: VITA-OFFICE
priority: 0
vlan: 15 parent interface: vr2
groups: vlan
status: active
inet 192.168.15.1 netmask 0xff00 broadcast 192.168.15.255
vlan25: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0d:b9:39:46:82
description: VITA-GUEST
priority: 0
vlan: 25 parent interface: vr2
groups: vlan
status: active
inet 192.168.25.1 netmask 0xff00 broadcast 192.168.25.255
pflog0: flags=141UP,RUNNING,PROMISC mtu 33192
priority: 0
groups: pflog


dmesg:
~ # dmesg
OpenBSD 5.7-stable (GENERIC) #0: Mon May 11 21:00:34 EEST 2015
r...@build.office.bgone.net:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD 
586-class) 499 MHz

cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 267931648 (255MB)
avail mem = 251179008 (239MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 01/15/14, BIOS32 rev. 0 @ 0xfd0e4
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe/0xa800
cpu0 at mainbus0: (uniprocessor)
mtrr: K6-family MTRR support (2 registers)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 AMD Geode LX rev 0x33
glxsb0 at pci0 dev 1 function 2 AMD Geode LX Crypto rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 VIA VT6105M RhineIII rev 0x96: irq 10, 
address 00:0d:b9:39:46:80
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 
0x004063, model 0x0034
vr1 at pci0 dev 10 function 0 VIA VT6105M RhineIII rev 0x96: irq 11, 
address 00:0d:b9:39:46:81
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 
0x004063, model 0x0034
vr2 at pci0 dev 11 function 0 VIA VT6105M RhineIII rev 0x96: irq 15, 
address 00:0d:b9:39:46:82
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 
0x004063, model 0x0034
glxpcib0 at pci0 dev 15 function 0 AMD CS5536 ISA rev 0x03: rev 3, 
32-bit 3579545Hz timer, watchdog, gpio, i2c

gpio0 at glxpcib0: 32 pins
iic0 at glxpcib0
maxtmp0 at iic0 addr 0x4c: lm86
pciide0 at pci0 dev 15 function 2 AMD CS5536 IDE rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: TS4GCF133
wd0: 1-sector PIO, LBA48, 3823MB, 7831152 sectors

Re: usbhidctl(1) and usbhidaction(1)

2015-05-28 Thread Anthony J. Bentley
Martin Pieuchot writes:
 On 07/05/15(Thu) 14:40, ludovic coues wrote:
  hello,
  
  I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
  working and if so for which usage.
 
 If you're using any of these tools, please do not hesitate to explain
 how ;)
 
 Ludovic is currently working on our base USB tools as part of a GSoC,
 so any piece of information would be much appreciated.

I use usbhidaction to activate the volume/mute keys on my USB keyboard.

Consumer:Volume_Increment  1
 mixerctl outputs.master=+8  mixerctl outputs.master.mute=off
Consumer:Volume_Decrement  1
 mixerctl outputs.master=-8  mixerctl outputs.master.mute=off
Consumer:Mute  1
 mixerctl outputs.master.mute=toggle

-- 
Anthony J. Bentley



Re: Unable to start dhcp server at boot on 5.7 stable

2015-05-28 Thread Ivo Chutkin

On 28.5.2015 г. 10:25 ч., Jan Stary wrote:

On May 28 10:06:03, open...@bgone.net wrote:

Hello guys,
I am lost with this simple task.
DHCP server does not start at boot.
If I started by #/etc/rc.d/dhcpd start, it starts and works properly.
If I check it with #/etc/rc.d/dhcpd check, i get dhcpd(failed)
I cannot see any errors in logs.


Really? What does /var/log/daemon say after you restart dhcpd?


Yes, it is really strange...

Here is output of daemon log after restart by /etc/rc.d/dhcpd start:

May 28 11:15:42 vita dhcpd[14929]: Can't listen on vlan25 - dhcpd.conf 
has no subnet declaration for 192.168.25.1.
May 28 11:15:42 vita dhcpd[14929]: Can't listen on vlan15 - dhcpd.conf 
has no subnet declaration for 192.168.15.1.

May 28 11:15:42 vita dhcpd[14929]: Listening on vr2 (192.168.55.1).
May 28 11:15:42 vita dhcpd[14929]: Can't listen on vr1 - it has no IP 
address.
May 28 11:15:42 vita dhcpd[14929]: Can't listen on vr0 - dhcpd.conf has 
no subnet declaration for xx.xxx.xxx.42.


It listens on vr2 as it must be.

If I start it with /usr/sbin/dhcpd vr2 i get in daemon log:

May 28 11:18:50 vita dhcpd[25296]: Listening on vr2 (192.168.55.1).

which is perfectly fine.




May be I miss something obvious. I have done it many times without issues.
Please, take a look and help me if you can.

Thanks,
Ivo

It is alix2d3 board with read only file system.

My dhcpd.conf file is mostly default:

~ # cat /etc/dhcpd.conf
option  domain-name my.domain;
option  domain-name-servers 192.168.55.1;

subnet 192.168.55.0 netmask 255.255.255.0 {
 option routers 192.168.55.1;

 range 192.168.55.32 192.168.55.127;

 host static-client {
 hardware ethernet 22:33:44:55:66:77;
 fixed-address 192.168.55.200;
 }

 host pxe-client {
 hardware ethernet 02:03:04:05:06:07;
 filename pxeboot;
 next-server 192.168.55.1;
 }
}

My hostname.vr2 file:
~ # cat /etc/hostname.vr2
up
inet 192.168.55.1 255.255.255.0 192.168.55.255
description MNG

My rc.conf.local file:
~ # cat /etc/rc.conf.local
ntpd_flags=-s
dhcpd_flags=  # for normal use: 


Shouldn't that be dhcpd_flags=em0 ?
This way, you are trying to serve on all interfaces,
even those without a declaration in dhcpd.conf



It does not make any difference if I put dhcpd_flags=vr2 in rc.conf.local

Thanks,
Ivo



Re: awk regex bug

2015-05-28 Thread Otto Moerbeek
On Thu, May 28, 2015 at 02:08:47AM -0500, cwl...@mst.edu wrote:

 Hi misc,
 
 I'm running a 5.7 release, and I'm wondering if anyone can confirm
 an awk bug I found.
 
 Curly brackets are treated as literal characters instead of bounds
 as specified by re_format(7).
 
 Reproduction:
 
 echo aa | awk '/a{2}/'
 
 produces no output instead of printing aa as expected.
 
 echo 'a{2}' | awk '/a{2}/'
 
 produces output when none is expected.
 
 This bug seems awk specific since the equivalents using grep
 
 echo aa | grep -E 'a{2}'
 
 echo 'a{2}' | grep -E 'a{2}'
 
 work as expected.

Tradiotionally, { } pattersn are not part of awk re's.

Posix added them, but we do not include them afaik. Gnu awk only accepts
them if given an extra arg (--posix or --re-interval).

I think this should be documented.

-Otto



Re: HP LaserJet 1100 lpr printing?

2015-05-28 Thread Antoine Jacoutot
 $ dmesg | egrep 'lpt|ugen' 
 ugen0 at uhub1 port 2 Pr?lific Technology Inc. IEEE-1284 Controller rev 
 1.00/2.00 addr 3

sigh, I totally missed the fact that this was a parallel printer.

 Suggestions welcome.

The underlying issue might be in the USB stack -- I have no USB/Parallel 
adapter (nor parallel printer) so there's no way for me to try and fix this.
Maybe Martin (mpi@) has an idea.

-- 
Antoine



Re: groups new

2015-05-28 Thread Janne Johansson
groups.dat-egypt.diff http://c66.it.su.se:8080/obsd/groups.dat-egypt.diff
..for someones cut-n-paste convenience.


2015-05-26 3:54 GMT+02:00 noob sia009 noobsia...@yahoo.com:

 0
 C Egypt
 P Masr EL-Gdida
 T Cairo
 F irregular
 O Egypt OpenBSD Group
 I Hossam EL-Mansy
 M noobsia...@yahoo.com
 U
 N OpenBSD




-- 
May the most significant bit of your life be positive.



Re: usbhidctl(1) and usbhidaction(1)

2015-05-28 Thread Martin Pieuchot
On 07/05/15(Thu) 14:40, ludovic coues wrote:
 hello,
 
 I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
 working and if so for which usage.

If you're using any of these tools, please do not hesitate to explain
how ;)

Ludovic is currently working on our base USB tools as part of a GSoC,
so any piece of information would be much appreciated.

Thanks,
Martin



Re: Unable to start dhcp server at boot on 5.7 stable

2015-05-28 Thread Jan Stary
On May 28 10:06:03, open...@bgone.net wrote:
 Hello guys,
 I am lost with this simple task.
 DHCP server does not start at boot.
 If I started by #/etc/rc.d/dhcpd start, it starts and works properly.
 If I check it with #/etc/rc.d/dhcpd check, i get dhcpd(failed)
 I cannot see any errors in logs.

Really? What does /var/log/daemon say after you restart dhcpd?

 May be I miss something obvious. I have done it many times without issues.
 Please, take a look and help me if you can.
 
 Thanks,
 Ivo
 
 It is alix2d3 board with read only file system.
 
 My dhcpd.conf file is mostly default:
 
 ~ # cat /etc/dhcpd.conf
 option  domain-name my.domain;
 option  domain-name-servers 192.168.55.1;
 
 subnet 192.168.55.0 netmask 255.255.255.0 {
 option routers 192.168.55.1;
 
 range 192.168.55.32 192.168.55.127;
 
 host static-client {
 hardware ethernet 22:33:44:55:66:77;
 fixed-address 192.168.55.200;
 }
 
 host pxe-client {
 hardware ethernet 02:03:04:05:06:07;
 filename pxeboot;
 next-server 192.168.55.1;
 }
 }
 
 My hostname.vr2 file:
 ~ # cat /etc/hostname.vr2
 up
 inet 192.168.55.1 255.255.255.0 192.168.55.255
 description MNG
 
 My rc.conf.local file:
 ~ # cat /etc/rc.conf.local
 ntpd_flags=-s
 dhcpd_flags=  # for normal use: 

Shouldn't that be dhcpd_flags=em0 ?
This way, you are trying to serve on all interfaces,
even those without a declaration in dhcpd.conf



awk regex bug

2015-05-28 Thread cwlmb3
Hi misc,

I'm running a 5.7 release, and I'm wondering if anyone can confirm
an awk bug I found.

Curly brackets are treated as literal characters instead of bounds
as specified by re_format(7).

Reproduction:

echo aa | awk '/a{2}/'

produces no output instead of printing aa as expected.

echo 'a{2}' | awk '/a{2}/'

produces output when none is expected.

This bug seems awk specific since the equivalents using grep

echo aa | grep -E 'a{2}'

echo 'a{2}' | grep -E 'a{2}'

work as expected.



Re: Unable to start dhcp server at boot on 5.7 stable

2015-05-28 Thread Stuart Henderson
On 2015-05-28, Ivo Chutkin open...@bgone.net wrote:
 Hello guys,
 I am lost with this simple task.
 DHCP server does not start at boot.
 If I started by #/etc/rc.d/dhcpd start, it starts and works properly.
 If I check it with #/etc/rc.d/dhcpd check, i get dhcpd(failed)
 I cannot see any errors in logs.
 May be I miss something obvious. I have done it many times without issues.
 Please, take a look and help me if you can.

 Thanks,
 Ivo

 It is alix2d3 board with read only file system.

Perhaps the read-only fs is the problem.



Re: Unable to start dhcp server at boot on 5.7 stable

2015-05-28 Thread Jan Stary
On May 28 11:24:38, open...@bgone.net wrote:
 May 28 11:15:42 vita dhcpd[14929]: Can't listen on vlan25 - dhcpd.conf has
 no subnet declaration for 192.168.25.1.
 May 28 11:15:42 vita dhcpd[14929]: Can't listen on vlan15 - dhcpd.conf has
 no subnet declaration for 192.168.15.1.
 May 28 11:15:42 vita dhcpd[14929]: Listening on vr2 (192.168.55.1).
 May 28 11:15:42 vita dhcpd[14929]: Can't listen on vr1 - it has no IP
 address.
 May 28 11:15:42 vita dhcpd[14929]: Can't listen on vr0 - dhcpd.conf has no
 subnet declaration for xx.xxx.xxx.42.

Your dhcpd.conf only declares the network in which vr2 is.

 It listens on vr2 as it must be.
 If I start it with /usr/sbin/dhcpd vr2 i get in daemon log:
 May 28 11:18:50 vita dhcpd[25296]: Listening on vr2 (192.168.55.1).
 which is perfectly fine.

That's how it's supposed to be. man dhcpd.

 dhcpd_flags=  # for normal use: 
 
 Shouldn't that be dhcpd_flags=em0 ?
 This way, you are trying to serve on all interfaces,
 even those without a declaration in dhcpd.conf
 
 It does not make any difference if I put dhcpd_flags=vr2 in rc.conf.local

Of course it does, because that makes it /usr/sbin/dhcpd vr2.



Re: HP LaserJet 1100 lpr printing?

2015-05-28 Thread Craig Skinner
On 2015-05-28 Thu 08:40 AM |, Antoine Jacoutot wrote:
  $ dmesg | egrep 'lpt|ugen' 
  ugen0 at uhub1 port 2 Pr?lific Technology Inc. IEEE-1284 Controller rev 
  1.00/2.00 addr 3
 
 sigh, I totally missed the fact that this was a parallel printer.
 

I've an old machine with a parallel port. What would I do to try it
there, directly connected - without the USB adaptor?

Probably ulpt won't be used, so a standard kernel?


  Suggestions welcome.
 
 The underlying issue might be in the USB stack -- I have no USB/Parallel 
 adapter (nor parallel printer) so there's no way for me to try and fix this.
 Maybe Martin (mpi@) has an idea.
 

Thanks Antoine.
-- 
The shortest distance between two points is under construction.
-- Noelie Alito



Re: Logjam Attack: is OpenIKED and OpenSMTPD vulnerable?

2015-05-28 Thread Ruslanas Gžibovskis
Hi team!

Sorry for interruption, but why not just switch to 4096? So no problems for
future...

I expect that there will be something more then just it uses more cpu time
to operate the same... please fix/explane me.

Thank you.
Have a nice $day_time ;)
Ruslanas

On Thu, 28 May 2015 12:16 Pablo Méndez Hernández pabl...@gmail.com wrote:

 Thanks for the update Mike, greatly appreciated.

 On Wed, May 27, 2015 at 9:02 PM, Mike Belopuhov m...@belopuhov.com
 wrote:

  On 25 May 2015 at 14:33, Pablo Méndez Hernández pabl...@gmail.com
 wrote:
   Hi,
  
   Any statement for iked?
  
 
  iked implements IKEv2 which doesn't use SSL/TLS.  So this
  attack doesn't directly apply to IKEv2.  However we would
  accept MODP 1024 and better by default.  Perhaps we
  should bump it to 2048 minimum.
 



 --

 Pablo Méndez Hernández



Re: Logjam Attack: is OpenIKED and OpenSMTPD vulnerable?

2015-05-28 Thread Pablo Méndez Hernández
Thanks for the update Mike, greatly appreciated.

On Wed, May 27, 2015 at 9:02 PM, Mike Belopuhov m...@belopuhov.com wrote:

 On 25 May 2015 at 14:33, Pablo Méndez Hernández pabl...@gmail.com
wrote:
  Hi,
 
  Any statement for iked?
 

 iked implements IKEv2 which doesn't use SSL/TLS.  So this
 attack doesn't directly apply to IKEv2.  However we would
 accept MODP 1024 and better by default.  Perhaps we
 should bump it to 2048 minimum.




--

Pablo Méndez Hernández



sparc64 panic: IOMMU overwrite with vr(4) under load

2015-05-28 Thread Darren Tucker
Hi.

While testing a diff for brad@ I found that vr(4) will panic under
load on a sparc64 when running iperf (after running dhclient on vr0,
if that makes any difference).  Please let me know if there's anything
other info that could help.

Boot device: /pci@1f,0/pci@1/scsi@8/disk@1,0  File and args: bsd.57
OpenBSD IEEE 1275 Bootblock 1.4
.. OpenBSD BOOT 1.7
Booting /pci@1f,0/pci@1/scsi@8/disk@1,0:a/bsd.57
8282776@0x100+7528@0x17e6298+209432@0x180+3984872@0x1833218 
symbols @ 0xfef46380 136+458208+298978 start=0x100
[ using 758224 bytes of bsd ELF symbol table ]
console is /pci@1f,0/pci@1,1/isa@7/serial@0,3f8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.7-current (GENERIC) #547: Wed May 27 14:31:12 MDT 2015
dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1039228928 (991MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: Netra T1 200 (UltraSPARC-IIe 500MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIe (rev 1.4) @ 500 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K external (64 
b/l)
psycho0 at mainbus0: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c000-dfff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 Sun Simba rev 0x13
pci1 at ppb0 bus 1
ebus0 at pci1 dev 12 function 0 Sun RIO EBus rev 0x01
flashprom at ebus0 addr 0-f not configured
clock1 at ebus0 addr 0-1fff: mk48t59
lom0 at ebus0 addr 20-23 ivec 0x2a: LOMlite2 rev 3.12
alipm0 at pci1 dev 3 function 0 Acer Labs M7101 Power rev 0x00: 74KHz clock
iic0 at alipm0
max1617 at alipm0 addr 0x18 skipped due to alipm0 bugs
spdmem0 at iic0 addr 0x54: 512MB SDRAM registered ECC PC133CL2
spdmem1 at iic0 addr 0x55: 512MB SDRAM registered ECC PC133CL2
ebus1 at pci1 dev 7 function 0 Acer Labs M1533 ISA rev 0x00
power0 at ebus1 addr 2000-2007 ivec 0x25
com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
com0: console
com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
gem0 at pci1 dev 12 function 1 Sun ERI Ether rev 0x01: ivec 0x7c6, address 
00:03:ba:13:87:35
ukphy0 at gem0 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI 
0x0010dd, model 0x0002
ohci0 at pci1 dev 12 function 3 Sun USB rev 0x01: ivec 0x7e4, version 1.0, 
legacy support
pciide0 at pci1 dev 13 function 0 Acer Labs M5229 UDMA IDE rev 0xc3: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7cc for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: TEAC, CD-224E, 1.7A ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
gem1 at pci1 dev 5 function 1 Sun ERI Ether rev 0x01interrupt_vector: 
spurious vector 7df at pil 13
: ivec 0x7dc, address 00:03:ba:13:87:36
ukphy1 at gem1 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI 
0x0010dd, model 0x0002
ohci1 at pci1 dev 5 function 3 Sun USB rev 0x01: ivec 0x7e6, version 1.0, 
legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 Sun OHCI root hub rev 1.00/1.00 addr 1
usb1 at ohci1: USB revision 1.0
uhub1 at usb1 Sun OHCI root hub rev 1.00/1.00 addr 1
ppb1 at pci0 dev 1 function 0 Sun Simba rev 0x13
pci2 at ppb1 bus 2
siop0 at pci2 dev 8 function 0 Symbios Logic 53c896 rev 0x07: ivec 0x7e0, 
using 8K of on-board RAM
scsibus2 at siop0: 16 targets, initiator 7
sym0 at scsibus2 targ 0 lun 0: SEAGATE, ST318305LSUN18G, 0340 SCSI3 0/direct 
fixed serial.SEAGATE_ST318305LSUN18G_3JKPYHZB2246FDXB
sd0 at scsibus0 targ 0 lun 0: SEAGATE, ST318305LSUN18G, 0340 SCSI3 0/direct 
fixed serial.SEAGATE_ST318305LSUN18G_3JKPYHZB2246FDXB
sym1 at scsibus2 targ 1 lun 0: SEAGATE, ST318305LSUN18G, 0641 SCSI3 0/direct 
fixed serial.SEAGATE_ST318305LSUN18G_3JKQ5VRC230827Z1
sd1 at scsibus0 targ 1 lun 0: SEAGATE, ST318305LSUN18G, 0641 SCSI3 0/direct 
fixed serial.SEAGATE_ST318305LSUN18G_3JKQ5VRC230827Z1
sd1: 17274MB, 512 bytes/sector, 35378533 sectors
siop1 at pci2 dev 8 function 1 Symbios Logic 53c896 rev 0x07: ivec 0x7e0, 
using 8K of on-board RAM
scsibus3 at siop1: 16 targets, initiator 7
vr0 at pci2 dev 5 function 0 VIA VT6105 RhineIII rev 0x86: ivec 0x7d5, 
address 00:17:9a:07:34:e3
ukphy2 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 4: OUI 0x004063, 
model 0x0034
siop0: target 0 now using tagged 16 bit 40.0 MHz 31 REQ/ACK offset xfers
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
siop0: target 1 now using tagged 16 bit 40.0 MHz 31 REQ/ACK offset xfers
bootpath: /pci@1f,0/pci@1,0/scsi@8,0/disk@1,0
root on sd1a (c0e0da450536c5a8.a) swap on sd1b dump on sd1b
WARNING: / was not properly unmounted
Automatic boot in progress: starting file system checks.

Re: HP LaserJet 1100 lpr printing?

2015-05-28 Thread Martin Pieuchot
On 28/05/15(Thu) 11:27, Craig Skinner wrote:
 On 2015-05-28 Thu 08:40 AM |, Antoine Jacoutot wrote:
   $ dmesg | egrep 'lpt|ugen' 
   ugen0 at uhub1 port 2 Pr?lific Technology Inc. IEEE-1284 Controller rev 
   1.00/2.00 addr 3
  
  sigh, I totally missed the fact that this was a parallel printer.

That might be the important point here.  If you're going the CUPS+ugen+
hplip way make sure your *printer* is recognized.  I don't know how they
all play with USB-to-parallel cable.  This thread [0] is a bit old and
I can't tell if the situation improved.

 I've an old machine with a parallel port. What would I do to try it
 there, directly connected - without the USB adaptor?
 
 Probably ulpt won't be used, so a standard kernel?

Maybe hplip will be able to detect your printer this way...

   Suggestions welcome.
  
  The underlying issue might be in the USB stack -- I have no USB/Parallel 
  adapter (nor parallel printer) so there's no way for me to try and fix this.
  Maybe Martin (mpi@) has an idea.

I don't think there's a USB problem here at least in ugen(4) mode.

Maybe your driver needs a firmware and the current ulpt(4) logic
doesn't work because you're using an adapter...

[0] http://sourceforge.net/p/hplip/mailman/message/9092333/



Re: Unable to start dhcp server at boot on 5.7 stable

2015-05-28 Thread Ivo Chutkin

On 28.5.2015 г. 13:00 ч., Stuart Henderson wrote:

On 2015-05-28, Ivo Chutkin open...@bgone.net wrote:

Hello guys,
I am lost with this simple task.
DHCP server does not start at boot.
If I started by #/etc/rc.d/dhcpd start, it starts and works properly.
If I check it with #/etc/rc.d/dhcpd check, i get dhcpd(failed)
I cannot see any errors in logs.
May be I miss something obvious. I have done it many times without issues.
Please, take a look and help me if you can.

Thanks,
Ivo

It is alix2d3 board with read only file system.


Perhaps the read-only fs is the problem.



Not exactly, but close.
If I mount it rw, it does not solve the problem.

It is not OpenBSD problem.

I use this tutorial as base setup:
http://techblagh.blogspot.com/2008/08/installing-openbsd-43-on-soekris-5501.html

It works fine till now, 5.7.

I guess, it reads /etc/rc.conf.local from wd0a before /etc is mounted on 
memory file system from backup partition.


If I boot -s and add entries in rc.conf.local, it works.

Strangely, it does read other files from /etc mounted on memory file 
systems corectly, for example hostname.if-s end so on...


When /etc/rc.conf.local is read?

Thanks,
Ivo



Inherited directory file permissions on BSD

2015-05-28 Thread n . reusse
Hi misc@,

i just discovered that on BSD, a file inherits the group permissions from
the directory it is created in (contrary to Linux, which uses the default
group of the user).

But i failed to find more information on that topic in the man pages
(chmod, chgrp, chown, touch, chflags) or the FAQ, just Otto@ replying on
misc [1].

Is this expected to be known, or does this information exist somewhere in
the documentation?

Regards
Nils

[1] http://marc.info/?l=openbsd-miscm=138132909225790w=2



Re: Inherited directory file permissions on BSD

2015-05-28 Thread Kenneth Gober
On Thu, May 28, 2015 at 8:40 AM,  n.reu...@hxgn.net wrote:
 i just discovered that on BSD, a file inherits the group permissions from
 the directory it is created in (contrary to Linux, which uses the default
 group of the user).

 But i failed to find more information on that topic in the man pages
 (chmod, chgrp, chown, touch, chflags) or the FAQ, just Otto@ replying on
 misc [1].

 Is this expected to be known, or does this information exist somewhere in
 the documentation?

more specifically, BSD treats directories as if they always have the setgid
bit set.  I think this is expected to be known, although it does exist in the
documentation (but I had to consult wikipedia to find out where):

man 2 open says:

When a new file is created it is given the group of the directory
which contains it.

-ken



Re: Inherited directory file permissions on BSD

2015-05-28 Thread Jiri B
On Thu, May 28, 2015 at 02:40:24PM +0200, n.reu...@hxgn.net wrote:
 Hi misc@,
 
 i just discovered that on BSD, a file inherits the group permissions from
 the directory it is created in (contrary to Linux, which uses the default
 group of the user).
 
 But i failed to find more information on that topic in the man pages
 (chmod, chgrp, chown, touch, chflags) or the FAQ, just Otto@ replying on
 misc [1].
 
 Is this expected to be known, or does this information exist somewhere in
 the documentation?
 
 Regards
 Nils
 
 [1] http://marc.info/?l=openbsd-miscm=138132909225790w=2

Yes, it is how it should work, no sgid needed.

j.



Re: CPU power consumption on thinkpad x201

2015-05-28 Thread Jingcheng Zhang
Hello,

Another x201 user here, suffering from the same problem. Any news/solutions
on this issue?

Sincerely thanks,

Jingcheng

2015-05-21 22:22 GMT+08:00 Shaun Reiger srei...@sprmail.net:

 Thanks for the update.

 On Thursday, May 21, 2015, Stefan Sperling s...@stsp.name wrote:

  On Wed, May 20, 2015 at 08:56:57PM -0600, Shaun Reiger wrote:
   Hello I'm trying to find out if the power consumption relating to the
   intel_powerclamp driver (Package Level C-state Idle Injection for
   Intel CPUs) was ever fixed. I'm current running 5.7 stable and I find
   my cpu is still consuming 6W of power in any state.  It was mentioned
   in the emails from last year that a Linux driver fixed this issue. Any
   updates on this issue would be great. I have attached my dmesg for
   review.
  
   Thanks
 
  There was some work in progress for C-state support by guenther@ but
  I'm not sure what the current status is. I got about one additional
  hour of battery life out of it when I tested it once. With plain
  -current I get about 2h of runtime out of the battery.
 
  Getting to the levels of Linux (additional 4 hours in my case) probably
  requires invasive changes to the process scheduler (prevent it from
  scheduling processes on certain cores to avoid waking them) and/or the
  inteldrm(4) driver (to put the GPU into power-save mode).
 
  It seems the x201 has a CPU generation which requires a ton of special
  support code in drivers for good power saving, while subsequent
  generations of laptops (x220 and later) use CPUs which don't really
  require that much of it. Overall I'm not sure it's really worth pouring
  a lot of development resources into optimizing for the x201 generation.
  Other laptops already run much longer.
 


 --
 Shaun

 Ars longa, vita brevis, occasio praeceps, experimentum periculosum,
 iudicium difficile - Hippocrates (c. 400BC)




-- 
Best regards,
Jingcheng Zhang
Beijing, P.R.China



Re: Inherited directory file permissions on BSD

2015-05-28 Thread n . reusse
 Ingo Schwarze schwa...@usta.de hat am 28. Mai 2015 um 15:41
 geschrieben:
 
 
 Hi Kenneth,
 
 Kenneth Gober wrote on Thu, May 28, 2015 at 09:19:59AM -0400:
  On Thu, May 28, 2015 at 8:40 AM,  n.reu...@hxgn.net wrote:
 
  i just discovered that on BSD, a file inherits the group permissions
  from
  the directory it is created in (contrary to Linux, which uses the
  default
  group of the user).
 
  But i failed to find more information on that topic in the man pages
  (chmod, chgrp, chown, touch, chflags) or the FAQ, just Otto@ replying
  on
  misc [1].
 
  Is this expected to be known, or does this information exist
  somewhere in
  the documentation?
 
  more specifically, BSD treats directories as if they always have the
  setgid
  bit set.  I think this is expected to be known, although it does exist
  in the
  documentation (but I had to consult wikipedia to find out where):
  
  man 2 open says:
  
  When a new file is created it is given the group of the directory
  which contains it.
 
 Actually, i consider that the logical place to document it.
 It would be misplaced in section 1 manuals because it doesn't
 depend on which user-level utility creates the file.  It would
 be misplaced in section 7 because there is no section 7 manual
 about file ownership (ever though there is one about symbolic links).
 
 In general, if a manual seems to be lacking information (like, you
 are creating a file with cat(1) or vi(1) but the manuals don't tell
 you what the group will be) try to ask your question in a precise
 and general form, here:  When i create a new file, which group will
 it have?  Then ask yourself: Which library function or system call
 implements that functionality?  Here:  Which library function is
 used to create new files?  apropos(1) may help with that, for example:
 
$ man -s 3 -k '~create.*file'
   creat(3) - create a new file
   CURLOPT_NEW_FILE_PERMS(3) - permissions for remotely created files
   FcStrCopyFilename(3) - create a complete path from a filename
   posix_spawn_file_actions_destroy, posix_spawn_file_actions_init(3) -
 create and destroy posix_spawn file actions objects
 
 And then creat(3) will point you to open(2), even if you didn't
 know that open(2) is the POSIX standard method for creating new
 files.
 
 So i wouldn't know how to improve the documentation.
 
 Yours,
   Ingo


Hi Ingo,

thanks, that makes sense. I must admit that i didn't think about looking
for create; if i had, even a simple 

apropos create | grep file

would have shown only a small amount of related man pages (in lack of your
man-search-skills).

Thanks to anyone who replied!

Nils



current and spamd in blacklist mode

2015-05-28 Thread Didier Wiroth
Hello,
I installed a new machine a few hours ago with a current snapshot.
I'm running spamd in blacklist mode but I look like spamd-setup -b
does not update the spamd table.
May be I miss something ...

My rc.conf.local contains the following line:
spamd_flags=-v -b

$ cat /etc/mail/spamd.conf

all:\
:uatraps:nixspam:bsdly

# University of Alberta greytrap hits.
# Addresses stay in it for 24 hours from time they misbehave.
uatraps:\
:black:\
:msg=Your address %A has sent mail to a ualberta.ca spamtrap\n\
within the last 24 hours:\
:method=http:\
:file=www.openbsd.org/spamd/traplist.gz

# Nixspam recent sources list.
# Mirrored from http://www.heise.de/ix/nixspam
nixspam:\
:black:\
:msg=Your address %A is in the nixspam list\n\
See http://www.heise.de/ix/nixspam/dnsbl_en/ for details:\
:method=http:\
:file=www.openbsd.org/spamd/nixspam.gz

bsdly:\
:black:\
:msg=Your address %A is in the bsdly.net list\n\
See http://www.bsdly.net/~peter/traplist.shtml for details:\
:method=http:\
:file=www.bsdly.net/~peter/bsdly.net.traplist


My pf contains the following table and rule:
table spamd persist
table spamd2 persist
pass in log quick on $ext_if inet proto tcp from { spamd , spamd2
} to $ext_if port smtp divert-to 127.0.0.1 port spamd

Root's crontab has:
0   *   *   *   *   sleep $((RANDOM \% 1800)) 
/usr/libexec/spamd-setup -b

If I run manually spamd-setup with debugging and blacklist mode:
$ sudo /usr/libexec/spamd-setup -bd
Getting http://www.openbsd.org/spamd/traplist.gz
blacklist uatraps 38373 entries
Getting http://www.openbsd.org/spamd/nixspam.gz
blacklist nixspam 31796 entries
Getting http://www.bsdly.net/~peter/bsdly.net.traplist
blacklist bsdly 2837 entries

But the problem is the spamd table is not updated:
$ sudo pfctl -t spamd | wc -l
   0

What ever I try ... spamd-setup does not update the pf rule.

Do I miss something?

Thank you very much!
Didier



Re: Inherited directory file permissions on BSD

2015-05-28 Thread Ingo Schwarze
Hi Kenneth,

Kenneth Gober wrote on Thu, May 28, 2015 at 09:19:59AM -0400:
 On Thu, May 28, 2015 at 8:40 AM,  n.reu...@hxgn.net wrote:

 i just discovered that on BSD, a file inherits the group permissions from
 the directory it is created in (contrary to Linux, which uses the default
 group of the user).

 But i failed to find more information on that topic in the man pages
 (chmod, chgrp, chown, touch, chflags) or the FAQ, just Otto@ replying on
 misc [1].

 Is this expected to be known, or does this information exist somewhere in
 the documentation?

 more specifically, BSD treats directories as if they always have the setgid
 bit set.  I think this is expected to be known, although it does exist in the
 documentation (but I had to consult wikipedia to find out where):
 
 man 2 open says:
 
 When a new file is created it is given the group of the directory
 which contains it.

Actually, i consider that the logical place to document it.
It would be misplaced in section 1 manuals because it doesn't
depend on which user-level utility creates the file.  It would
be misplaced in section 7 because there is no section 7 manual
about file ownership (ever though there is one about symbolic links).

In general, if a manual seems to be lacking information (like, you
are creating a file with cat(1) or vi(1) but the manuals don't tell
you what the group will be) try to ask your question in a precise
and general form, here:  When i create a new file, which group will
it have?  Then ask yourself: Which library function or system call
implements that functionality?  Here:  Which library function is
used to create new files?  apropos(1) may help with that, for example:

   $ man -s 3 -k '~create.*file'
  creat(3) - create a new file
  CURLOPT_NEW_FILE_PERMS(3) - permissions for remotely created files
  FcStrCopyFilename(3) - create a complete path from a filename
  posix_spawn_file_actions_destroy, posix_spawn_file_actions_init(3) -
create and destroy posix_spawn file actions objects

And then creat(3) will point you to open(2), even if you didn't
know that open(2) is the POSIX standard method for creating new
files.

So i wouldn't know how to improve the documentation.

Yours,
  Ingo



Re: ifconfig bridge and trunk

2015-05-28 Thread Theo de Raadt
 Why is the ifconfig keyword to add an interface to a bridge add and the
 keyword to add an interface to a trunk trunkport?

{ add,NEXTARG,0,  bridge_add },
..
{ trunkport,  NEXTARG,0,  settrunkport },

The ifconfig argument grammar is driven by a flat table, as a result
it is difficult to share keywords.  There are a few hacks, not sure if
we need more.

Also for a time, brconfig was a completely seperate program, and in part
it was trying to escape from making ifconfig more complex.  Then we gave
up because having two programs operating on interfaces was worse.



Re: booting OpenBSD with grub

2015-05-28 Thread David A. Pocock

I've not done this since 2009, but found in my notes:

# The OpenBSD section of the menu.lst config file, for GRUB.
#
## You would like to use:
# root (hd1,1,a)
# kernel --type=openbsd /bsd
#
# But OpenBSD passes bios  kernel parameters with its own bootloader,
# the first stage of which is installed in the partition boot record,
# and in turn calls /boot, which in turn loads kernel /bsd. So just
# use the GRUB chainloader instead:
#
## OpenBSD
title OpenBSD
root (hd1,1)
makeactive
chainloader +1

Naturally, your root device may vary.

-David


On Wed, 27 May 2015, cobalt wrote:


any idea on the the proper way to get grub to boot openbsd:

set root=(hd1,4) is what i have, but i am missing something and i do not
know what.

any thoughts would help.

regards.

gilles




Re: Intel i217-LM Ethernet not working in -current

2015-05-28 Thread Paul de Weerd
Hi Chris,

On Thu, May 28, 2015 at 10:54:00AM -0400, Sonic wrote:
| More than just a DHCP issue as previously reported. The Intel i217-LM
| is not functional running -current.
| 
| Initial support was added back in 2013:
| 
http://openbsd-archive.7691.n7.nabble.com/initial-i217-i218-Haswell-Ethernet-support-for-em-4-td237572.html
| 
| It's listed as a supported device in the 5.5 release splash:
| http://www.openbsd.org/55.html
| 
| And support is claimed in the -current man pages:
| 
http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man4/em.4?query=emsec=4
| 
| Maybe a regression of some sort?
| 
| Oddly enough even though dmesg reports its existence I was not
| prompted to set up em0 during install (it skipped right to em1 - an
| i210 device). The first clue.
| 
| When manually adding the hostname.em0 file with a dhcp argument the
| dhcp server is contacted but no offers are accepted.
| 
| When specifying a proper address for the subnet in the hostname.em0
| file (plus a gateway via mygate). The system reports it is up and
| running, the routing table looks correct but it simply does not
| communicate.
| 
| The device works with other OS's.
| 
| What other information can I provide to help get this corrected?

dmesg would be a good start.  Also, have you tried other versions
(5.5, 5.6 or 5.7 perhaps) and checked if they work?

I can offer that my i217-LM works on an older snapshot:

[weerd@pom] $ sysctl kern.version
kern.version=OpenBSD 5.7-current (GENERIC.MP) #971: Sat May  2 09:18:21 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

[weerd@pom] $ dmesg | grep ^em0
em0 at pci0 dev 25 function 0 Intel I217-LM rev 0x04: msi, address 
b8:ca:3a:93:03:e8

Although I do seem to experience weird IPv6 issues now and then.  I've
tried debugging this in the past, but could never find a reliably
reproducable problem case.

Cheers,

Paul 'WEiRD' de Weerd

-- 
[++-]+++.+++[---].+++[+
+++-].++[-]+.--.[-]
 http://www.weirdnet.nl/ 



ifconfig bridge and trunk

2015-05-28 Thread Ted Unangst
Why is the ifconfig keyword to add an interface to a bridge add and the
keyword to add an interface to a trunk trunkport?



Intel i217-LM Ethernet not working in -current

2015-05-28 Thread Sonic
More than just a DHCP issue as previously reported. The Intel i217-LM
is not functional running -current.

Initial support was added back in 2013:
http://openbsd-archive.7691.n7.nabble.com/initial-i217-i218-Haswell-Ethernet-support-for-em-4-td237572.html

It's listed as a supported device in the 5.5 release splash:
http://www.openbsd.org/55.html

And support is claimed in the -current man pages:
http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man4/em.4?query=emsec=4

Maybe a regression of some sort?

Oddly enough even though dmesg reports its existence I was not
prompted to set up em0 during install (it skipped right to em1 - an
i210 device). The first clue.

When manually adding the hostname.em0 file with a dhcp argument the
dhcp server is contacted but no offers are accepted.

When specifying a proper address for the subnet in the hostname.em0
file (plus a gateway via mygate). The system reports it is up and
running, the routing table looks correct but it simply does not
communicate.

The device works with other OS's.

What other information can I provide to help get this corrected?

Thanks,

Chris



Re: ifconfig bridge and trunk

2015-05-28 Thread Martin Pieuchot
On 28/05/15(Thu) 10:38, Ted Unangst wrote:
 Why is the ifconfig keyword to add an interface to a bridge add and the
 keyword to add an interface to a trunk trunkport?

Because nobody sent a diff to unify ifconfig(8) ?

If you can also merge vlandev, carpdev, syncdev and pppoedev in
the same fashion, that would be awesome.  I'd suggest parent since
that's the term we use, but others might have a better idea.

Of course backward compatibility is needed ;)



Re: Intel i217-LM Ethernet not working in -current

2015-05-28 Thread Sonic
On Thu, May 28, 2015 at 11:14 AM, Paul de Weerd we...@weirdnet.nl wrote:
 [weerd@pom] $ dmesg | grep ^em0
 em0 at pci0 dev 25 function 0 Intel I217-LM rev 0x04: msi, address 
 b8:ca:3a:93:03:e8

Hi Paul,

Thanks, I haven't tried an older version yet.

I do have a different rev of the device:

dmesg |grep ^em0
em0 at pci0 dev 25 function 0 Intel I217-LM rev 0x05: msi, address
00:25:90:47:9e:75

Chris



Install 5.7 : fdisk crash

2015-05-28 Thread Bastien Durel
Hello. I'm trying to install openbsd 5.7 on a soekris board. I've
booted on pxeboot file from 5.7/amd64, with bsd.rd from 5.7/amd64 ; but
install(8) stops on fdisk step, returning back to the start of process

I've tried i386 and got the same results

The session folows :

Intel(R) Boot Agent GE v1.3.72
Copyright (C) 1997-2010, Intel Corporation

CLIENT MAC ADDR: 00 00 24 D1 42 0C 

CLIENT IP: 10.42.42.44  MASK: 255.255.255.0  DHCP IP: 10.42.42.1   

GATEWAY IP: 10.42.42.1 
probing: pc0 com0 pxe![2.1] mem[620K 510M a20=on]  

disk: hd0+*
net: mac 00:00:24:d1:42:0c, ip 10.42.42.44, server 10.42.42.21
 OpenBSD/amd64 PXEBOOT 3.23
switching console to com0
  OpenBSD/amd64 PXEBOOT 3.23
cannot open tftp:/etc/random.seed: No such file or directory
booting tftp:/bsd.rd: 3220112+1373792+2401280+0+520192
[97+355440+231981]=0x7bca08
entry point at 0x1000160 [7205c766, 3404, 24448b12, f680a304]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights
reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  
http://www.OpenBSD.org

OpenBSD 5.7 (RAMDISK_CD) #806: Sun Mar  8 11:08:49 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_C
D
real mem = 519962624 (495MB)
avail mem = 504487936 (481MB)
mainbus0 at root
bios0 at mainbus0
acpi at bios0 not configured
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Genuine Intel(R) CPU @ 600MHz, 600.09 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-
CPL,VMX,E
ST,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG,LAHF,PERF
cpu0: 512KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu at mainbus0: not configured
mpbios0: bus 0 is type PCI   
mpbios0: bus 64 is type ISA   
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor Intel, unknown product 0x4115
rev 0x05
pchb1 at pci0 dev 1 function 0 Intel E600 Config rev 0x00
ppb0 at pci0 dev 23 function 0 Intel E600 PCIE rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 Intel EG20T PCIE rev 0x01
pci2 at ppb1 bus 2
Intel EG20T Packet Hub rev 0x01 at pci2 dev 0 function 0 not
configured
Intel EG20T Ethernet rev 0x02 at pci2 dev 0 function 1 not configured
Intel EG20T GPIO rev 0x01 at pci2 dev 0 function 2 not configured
ohci0 at pci2 dev 2 function 0 Intel EG20T USB rev 0x02: apic 0 int
19, version 1.0
ohci1 at pci2 dev 2 function 1 Intel EG20T USB rev 0x02: apic 0 int
19, version 1.0
ohci2 at pci2 dev 2 function 2 Intel EG20T USB rev 0x02: apic 0 int
19, version 1.0
ehci0 at pci2 dev 2 function 3 Intel EG20T USB rev 0x02: apic 0 int
19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
Intel EG20T USB Client rev 0x02 at pci2 dev 2 function 4 not
configured
sdhc0 at pci2 dev 4 function 0 Intel EG20T SDIO rev 0x01: apic 0 int
18
sdmmc0 at sdhc0
sdhc1 at pci2 dev 4 function 1 Intel EG20T SDIO rev 0x01: apic 0 int
18
sdmmc1 at sdhc1
ahci0 at pci2 dev 6 function 0 Intel EG20T AHCI rev 0x02: msi, AHCI
1.1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, KINGSTON SMS200S, 600A SCSI3
0/direct fixed naa.50026b7253081a83
sd0: 28626MB, 512 bytes/sector, 58626288 sectors, thin
ohci3 at pci2 dev 8 function 0 Intel EG20T USB rev 0x02: apic 0 int
16, version 1.0
ohci4 at pci2 dev 8 function 1 Intel EG20T USB rev 0x02: apic 0 int
16, version 1.0
ohci5 at pci2 dev 8 function 2 Intel EG20T USB rev 0x02: apic 0 int
16, version 1.0
ehci1 at pci2 dev 8 function 3 Intel EG20T USB rev 0x02: apic 0 int
16
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
Intel EG20T DMA rev 0x00 at pci2 dev 10 function 0 not configured
Intel EG20T Serial rev 0x01 at pci2 dev 10 function 1 not configured
Intel EG20T Serial rev 0x00 at pci2 dev 10 function 2 not configured
Intel EG20T Serial rev 0x00 at pci2 dev 10 function 3 not configured
Intel EG20T Serial rev 0x00 at pci2 dev 10 function 4 not configured
Intel EG20T DMA rev 0x00 at pci2 dev 12 function 0 not configured
Intel EG20T SPI rev 0x00 at pci2 dev 12 function 1 not configured
Intel EG20T I2C rev 0x00 at pci2 dev 12 function 2 not configured
Intel EG20T CAN rev 0x00 at pci2 dev 12 function 3 not configured
Intel EG20T 1588 rev 0x01 at pci2 dev 12 function 4 not configured
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 Intel OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 Intel OHCI root hub rev 1.00/1.00 addr 1
usb4 at ohci2: USB revision 1.0
uhub4 at usb4 Intel OHCI root hub rev 1.00/1.00 addr 1
usb5 at ohci3: USB revision 1.0
uhub5 at usb5 Intel OHCI root hub rev 1.00/1.00 addr 1
usb6 at ohci4: USB revision 1.0
uhub6 at usb6 Intel OHCI root hub rev 1.00/1.00 addr 1
usb7 at ohci5: USB 

Re: Install 5.7 : fdisk crash

2015-05-28 Thread Otto Moerbeek
On Thu, May 28, 2015 at 05:33:01PM +0200, Bastien Durel wrote:

[snip]
 Which speed should com0 use? (or 'done') [57600] 
 Setup a user? (enter a lower-case loginname, or 'no') [no] 
 What timezone are you in? ('?' for list) [Europe/Paris] 
 
 Available disks are: sd0.
 Which disk is the root disk? ('?' for details) [sd0] 
 Use DUIDs rather than device names in fstab? [yes] 
 Disk: sd0   geometry: 3649/255/63 [58626288 Sectors]
 Offset: 0   Signature: 0xAA55
 Starting 
 
 erase ^?, werase ^W, kill ^U, intr ^C, status ^T
 
 Welcome to the OpenBSD/amd64 5.7 installation program.
 (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? 
 
 
 If I try to restart install, I get struck at the same step.
 
 fdisk ran from console exists with code 130:
 # fdisk sd0 
 Disk: sd0   geometry: 3649/255/63 [58626288 Sectors]
 Offset: 0   Signature: 0xAA55
 Starting # 
 
 
 # echo $?
 130
 
 Is there a way to find from where the error comes ?

That would mean killed by SIGINT (^C), but that doesn't make a lot
of sense here.

-Otto