Re: relayd macros

2022-07-17 Thread Kapfhammer, Stefan
Did you try it with quotes only and expand the variables with $var as in the 
manpage?

This would point out if there is a bug in the -n check option and/or in the 
parsing code of relayd.

-Stefan


Le 17 juil. 2022 16:08, Paul Pace  a écrit :
On 2022-07-17 06:51, Stuart Henderson wrote:
> On 2022-07-17, Paul Pace  wrote:
>> On 2022-07-17 00:28, Kapfhammer, Stefan wrote:
>>> You need to define a table.
>>> See relayed.conf manual page
>>> Section macros
>>
>> The macros section does include include creating tables that contain a
>> macro:
>>
>>
>>   MACROS
>>   Macros can be defined that will later be expanded in context.
>> Macro
>>   names must start with a letter, digit, or underscore, and may
>> contain any
>>   of those characters.  Macro names may not be reserved words (for
>> example,
>>   table, relay, or timeout).  Macros are not expanded inside
>> quotes.
>>
>>   For example:
>>
>> www1="10.0.0.1"
>> www2="10.0.0.2"
>> table  {
>> $www1
>> $www2
>> }
>>
>>
>> I have created macros and tables:
>>
>> adminip1 = 203.0.113.5
>> adminip2 = 195.51.100.103
>
> Don't they need to be in quotes?

The configurations pass relayd -n checks and services work as expected
with
the following macro syntax:


adminip1=203.0.113.5
adminip2 = 203.0.113.6
adminip3="203.0.113.7"
adminip4 = "203.0.113.8"


>
>> table  { 203.0.113.5 }
>> table  {
>>  $adminip1
>>  $adminip2
>> }
>>
>> When I replace $adminip1 with  or  in a working
>> protocol
>> filter rule on line 20, I get a bunch of syntax errors beginning on
>> line
>> 20.
>>
>> Thank you,
>>
>> Paul
>>
>>
>>>
>>> -Stefan
>>>
>>>
>>>
>>>
>>> Le 16 juil. 2022 22:09, Paul Pace  a écrit :
>>> Hello!
>>>
>>> I'm working on a relayd.conf configuration where I want to limit
>>> access
>>> to the path of an admin panel at /admin/ by using the from parameter
>>> in
>>> a protocol filter rule.
>>>
>>> I expect more than one IP address so want to use a macro with more
>>> than
>>> one IP address (or even more than one macro), similar to how I use
>>> them
>>> in httpd.conf and pf.conf:
>>>
>>> admin_ips = "{ 203.0.113.5, 198.51.100.103 }"
>>>
>>> When I add this to line 4 of relayd.conf and before creating a rule,
>>> I
>>> get:
>>>
>>> relayd -n
>>> /etc/realyd.conf:4: syntax error
>>>
>>> Have I just merely made a syntax error or is what I want to do not
>>> possible in relayd.conf?
>>>
>>> Thank you,
>>>
>>>
>>> Paul
>>
>>




Re: relayd macros

2022-07-17 Thread Kapfhammer, Stefan
You need to define a table.
See relayed.conf manual page
Section macros

-Stefan




Le 16 juil. 2022 22:09, Paul Pace  a écrit :
Hello!

I'm working on a relayd.conf configuration where I want to limit access
to the path of an admin panel at /admin/ by using the from parameter in
a protocol filter rule.

I expect more than one IP address so want to use a macro with more than
one IP address (or even more than one macro), similar to how I use them
in httpd.conf and pf.conf:

admin_ips = "{ 203.0.113.5, 198.51.100.103 }"

When I add this to line 4 of relayd.conf and before creating a rule, I get:

relayd -n
/etc/realyd.conf:4: syntax error

Have I just merely made a syntax error or is what I want to do not
possible in relayd.conf?

Thank you,


Paul




Re: adding firmware during installation

2021-11-16 Thread Kapfhammer, Stefan
Hi,

if you need a comfortable installation you would need to
integrate them into the installation blob.
AFAIK this is tricky.

-Stefan

> -Ursprüngliche Nachricht-
> Von: Luca Ferrari 
> Gesendet: Dienstag, 16. November 2021 14:46
> An: Kapfhammer, Stefan 
> Cc: misc@openbsd.org
> Betreff: Re: adding firmware during installation
> 
> On Tue, Nov 16, 2021 at 2:30 PM Kapfhammer, Stefan 
> wrote:
> > yes, you need to do stuff manually, because you are going an unusual way.
> 
> the fact is, as far as I understand, that before installing etc.tgz the 
> system will
> not have /etc/firmware writable, and at that time I can simply reboot and
> install manually.
> So apparently there is not a "comfortable" way to do this during the
> installation procedure.
> 
> Luca



Re: adding firmware during installation

2021-11-16 Thread Kapfhammer, Stefan
Hi,

yes, you need to do stuff manually, because you are going an unusual way.

-Stefan

> -Ursprüngliche Nachricht-
> Von: Luca Ferrari 
> Gesendet: Dienstag, 16. November 2021 13:18
> An: Kapfhammer, Stefan 
> Cc: misc@openbsd.org
> Betreff: Re: adding firmware during installation
> 
> On Tue, Nov 16, 2021 at 12:44 PM Kapfhammer, Stefan 
> wrote:
> > extract the files of the firmware package before and place them in
> > [mountpoint-during-installation]/etc/firmware.
> 
> Sorry, but this is not clear to me: what do you mean with mountpoint?
> Because I'm installing from rd0a, that is not writable (I mean, it has no 
> space),
> while the disk on which the system will be installed (wd0) is formatted later
> than the network connection configuration.
> Therefore, extracting it to wd0a/etc/firmaware will require me to manually
> enter on the shell again and do the ifconfig stuff before packages. Is this
> what you mean?
> 
> Luca



Re: adding firmware during installation

2021-11-16 Thread Kapfhammer, Stefan
Hi,

extract the files of the firmware package before and place them 
in [mountpoint-during-installation]/etc/firmware.

-Stefan


> -Ursprüngliche Nachricht-
> Von: owner-m...@openbsd.org  Im Auftrag
> von Luca Ferrari
> Gesendet: Dienstag, 16. November 2021 12:34
> An: misc@openbsd.org
> Betreff: adding firmware during installation
> 
> Hi all,
> I'm installing OpenBSD 7.0 on a Lenovo Thinkpad T410, and I need the
> firmware iwn-firmware-5.11p1.tgz for the wireless card.
> Therefore, I opened a shell from the installer, mounted the USB stick I placed
> the downloaded firmware on, and now I'm stuck: I cannot install it because
> pkg_add is not available, as well as I cannot extract it to /etc/firmware.
> How to proceed from here?
> 
> Note: I can solve installing the system without networking and then add the
> firmware later on, but I would understand how to do it within the installation
> process.
> 
> Thanks,
> Luca



Re: filters in OpenBSD in printing

2020-10-19 Thread Kapfhammer, Stefan
Hello David,

you might make use of the SMM - 4.3BSD Line Printer Spooler Manual.

It is mentioned here https://man.openbsd.org/OpenBSD-6.7/amd64/printcap#SEE_ALSO
but without a referring link.

You can find it here https://docs.freebsd.org/44doc/smm/07.lpd/paper.html

Or for offline reference here 
https://docs.freebsd.org/44doc/smm/07.lpd/paper.pdf

Regards,
-Stefan

P.S. It does not bite, even though it is from 1983



> -Ursprüngliche Nachricht-
> Von: owner-m...@openbsd.org  Im Auftrag
> von Raymond, David
> Gesendet: Dienstag, 20. Oktober 2020 05:19
> An: misc 
> Betreff: filters in OpenBSD in printing
> 
> Questions about lpr printing:
> 
> I tried putting a filter that drives an HP Deskjet printer (works with lprng 
> on
> linux) as an output filter in printcap and it didn't work.
> Would it be more proper to put it as an input filter?  I am still on version 
> 6.7 of
> the OS.  (I saw a recent post indicating that changes were made to the lpr
> system in 6.8.)
> 
> One of the problems was that I couldn't get rid of the banner page even
> though the appropriate flags were set.
> 
> I have looked for lpr documentation more informative than the
> lpr/lpd/printcap man pages, but I haven't found anything.  The printcap page
> describes some really archaic filters, but not much that is helpful in today's
> world.
> 
> I am currently using cups but would like to get rid of it, because if their 
> set of
> filters doesn't do the job, you are stuck.  (Plus other hair-pulling 
> frustrations.)
> 
> Dave
> 
> --
> David J. Raymond
> david.raym...@nmt.edu
> http://kestrel.nmt.edu/~raymond



Re: Recommendation request for LTE modem on PC Engines APU2

2020-07-10 Thread Kapfhammer, Stefan
Hello Mikolaj,

Here are the recommendations from PCengines itself:

https://pcengines.ch/howto.htm#3G

or here:

https://www.sierrawireless.com/products-and-solutions/embedded-solutions/networking-modules/


Regards,
Stefan

> -Ursprüngliche Nachricht-
> Von: owner-m...@openbsd.org  Im Auftrag
> von Mikolaj Kucharski
> Gesendet: Freitag, 10. Juli 2020 10:57
> An: misc@openbsd.org
> Betreff: Recommendation request for LTE modem on PC Engines APU2
> 
> Hi,
> 
> I have couple of PC Engines boards and I was thinking to take one spare
> APU2E4 and plug into it an LTE modem. I see umb(4) manual page listing
> couple of models, but quick searching online shows different interface on
> those cards from available on APU. I see also umsm(4) and this one looks
> probably more appropriate for PC Engiens system, but not sure are they
> capable of LTE speeds.
> 
> Also, not sure what would be the practical differences between the cards, so
> question for some of you who may have hands on experience with any of
> them on OpenBSD.
> 
> - What do you use as LTE modem on OpenBSD with miniPCIe interface?
> 
> - Would you recommend it or would you go for different card?
> 
> - Do you have any type of mobile (3G, 4G or whatever) OpenBSD setup
>   on totally different hardware, if so, what is it?
> 
> I'm looking for LTE/4G card, something capable of (theoretical) 50Mbps or
> more, but if that's not possible, I may revisit my requirements.
> 
> Please CC me in any replies, I'm not subscribed to the list.
> 
> --
> Regards,
>  Mikolaj



Re: An Athn ar9280 client seems to require cold boots of late?

2020-06-29 Thread Kapfhammer, Stefan
Hi,

I am using exactly the same WLE-200NX wifi card in an APU2B4. I have a 
BlackBerry KeyONE
running at Android 8.1 / Version ABT975 which I use as hotspot for the APU2.

After setting athn0 down, it is impossible to establish the connection - 
without further intervention -
a second time.

What helps is:

First:
#/bin/sh
/sbin/ifconfig athn0
/sbin/ifconfig athn0 down -inet -inet6 -join bbk1 -wpakey -chan -bssid
/sbin/ifconfig athn0

Second:
Disabling the hotspot on bbk1 and re-enabling it

Third:
sh -x /etc/netstart athn0

This prevents to do a coldboot on the APU2 - reducing downtime.
AND: It works reliably everytime since month!

Regards,
Stefan



> -Ursprüngliche Nachricht-
> Von: owner-m...@openbsd.org  Im Auftrag
> von Austin Hook
> Gesendet: Sonntag, 28. Juni 2020 23:43
> An: Kevin Chadwick 
> Cc: misc@openbsd.org
> Betreff: Re: An Athn ar9280 client seems to require cold boots of late?
> 
> 
> I have a similar problem with the 6.7 release which I just installed today on 
> an
> 8Tb drive I'm using with my older ASUS laptop.
> 
> athn0 at pci3 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 2 int 17
> athn0: AR9285 rev 2 (1T1R), ROM rev 13, address 74:f0:6d:7a:42:7f
> 
> Can't seem to shake it with a cold boot.  However I have some interesting
> other effects.  I have several wireless routers, one of which is quite old
> and doesn't even do wpa.   It's a UBNT antenna that I use to broadcast
> around the farm. So without any password at all, even the old kind,  if I
> 
> ifconfig athn0 -wpakey
> ifconfig athn0 nwid UBNT
> dhclient athn0
> 
> That works fine.
> 
> Now, I can also project wireless from my cellphone using wpa2. Sometimes it
> works and sometimes it doesn't.  I don't know if it's after a cold boot of the
> laptop, but what does work for me it to just disable the hotspot from the
> cellphone for a moment, and then re-enable it.  Then it works fine with the
> nwid I set up and the wpa2 password I require.
> 
> However no matter what I do I can't get a connection to my farmhouse
> wireless router.  It's a DIR822 Dlink.  Of course I know that's a low end 
> router.
> Recently they recommended a firmware upgrade, and since then I found
> that I was unable to set it up for no password, and had to add one, and then
> add that password to all the other devices in the house.
> 
> Just now I saw that I can enable projecting a separate "guest" zone network
> from it, and that seems to allow having a null password.  However neither
> with a null password nor with an 8 letter password and can I get it to connect
> to the ASUS athn0
> 
> I think I have had athn problems before with the ASUS, and I used to have a
> spare USB wireless of some sort that was more reliable, but I gave it away,
> after not having such problems with some other more recent releases (but
> before 6.7).  Wish I could remember what it was.
> 
> If anyone has a recommendation for a reliable USB wireless stick that I can
> find on eBay, and plays well with athn, I'd be grateful.
> 
> Moreover, if anyone can fix the problem before I go to that extreme, I'll send
> him the shirt off my back...  Happens I have about 1,000 OpenBSD T-shirts :-)
> 
> Austin
> 
> 
> 
> On Fri, 26 Jun 2020, Kevin Chadwick wrote:
> 
> > After upgrading via sysupgrade for a few releases, I have had to cold
> > boot to get dhclient athn0 working on an ar9280 in client mode.
> >
> > Since my latest upgrade to a snapshot of Jun 17 kernel #275 with the
> > previous kernel being from Jun 2nd #237. I seem to have to cold boot
> > after running ifconfig athn0 down and then back up, where I'm *fairly*
> > sure that I didn't need to before that Jun 17th upgrade. ifconfig
> > debug mode shows the wireless handshake completing 4/4. Yet dhclient
> can't establish a link until cold booted.
> > A warm reboot does not resolve the problem.
> >
> > Has anyone else seen this or can reproduce it?
> >
> > I'll try a sysupgrade in the meantime but I'm not sure there has been
> > any code changes in areas that could resolve it.
> >



Re: E3372: LCP: timeout sending Config-Requests

2020-06-25 Thread Kapfhammer, Stefan
Hello,

the chat script seems working, it got all commands recognized.

For the peer parameters I can provide the following, which works:

/dev/cuaU1 < or /dev/cuaU0
921600
modem
crtscts
lock
defaultroute
noipdefault
:0.0.0.2
noauth
user telekom <--- change to your setting
connect '/usr/sbin/chat -v -s -f /etc/ppp/peers/chat/umts.telekom1'  <--- 
change to your chat script path

Please give feedback, if it works!

Regards,

Stefan

> -Ursprüngliche Nachricht-
> Von: Whistle 
> Gesendet: Donnerstag, 25. Juni 2020 22:29
> An: Kapfhammer, Stefan 
> Cc: Misc 
> Betreff: Re: E3372: LCP: timeout sending Config-Requests
> 
> ===> connect-errors
> abort on (BUSY)
> abort on (NO CARRIER)
> abort on (VOICE)
> report (CONNECT)
> timeout set to 20 seconds
> expect (OK)
> ^RSSI:23^M
> ^HCSQ:"LTE",54,53,116,26^M
> ^RSSI:25^M
> ^HCSQ:"LTE",58,53,121,24^M
> alarm
> send (AT^M)
> expect (OK)
> OK
>  -- got it
> 
> send (ATZ^M)
> expect (OK)
> OK
>  -- got it
> 
> send (AT+CMEE=2^M)
> expect (OK)
> OK
>  -- got it
> 
> send (AT^M)
> expect (OKd)
> OK^M
> ^RSSI:23^M
> ^HCSQ:"LTE",55,53,121,26^M
> ^RSSI:25^M
> ^HCSQ:"LTE",59,55,126,26^M
> alarm
> send (AT^M)
> expect (OK)
> OK
>  -- got it
> 
> send (ATI^M)
> expect (OK)
> Manufacturer: huawei^M
> Model: E3372^M
> Revision: 22.328.62.00.1217^M
> IMEI: x^M
> +GCAP: +CGSM,+DS,+ES^M
> OK
>  -- got it
> 
> send (ATZ^M)
> expect (OK)
> OK
>  -- got it
> 
> send (AT^M)
> expect (OK)
> OK
>  -- got it
> 
> send (AT+CGDCONT=1,"IP","giffgaff.com","0.0.0.0",0,0^M)
> expect (OK)
> OK
>  -- got it
> 
> send (ATD*99#^M)
> expect (CONNECT)
> CONNECT
>  -- got it
> 
>  /bsd: umsm0 at uhub0 port 1 configuration 1 interface 0 "HUAWEI_MOBILE
> HUAWEI_MOBILE" rev 2.10/1.02 addr 2
>  /bsd: umsm0 detached
>  /bsd: umsm0 at uhub0 port 1 configuration 1 interface 0 "HUAWEI_MOBILE
> HUAWEI_MOBILE" rev 2.10/1.02 addr 2
>  /bsd: ucom0 at umsm0
>  /bsd: umsm1 at uhub0 port 1 configuration 1 interface 1 "HUAWEI_MOBILE
> HUAWEI_MOBILE" rev 2.10/1.02 addr 2
>  pppd[2097]: pppd 2.3.5 started by lws, uid 0
>  pppd[2097]: Connect: ppp0 <--> /dev/cuaU0
>  pppd[2097]: LCP: timeout sending Config-Requests
>  pppd[2097]: Connection terminated.
>  pppd: Exit.
>  /bsd: ucom0 detached
>  /bsd: umsm0 detached
>  /bsd: umsm1 detached
> 
> 
> > Hello,
> >
> > yes please provide /etc/ppp/connect-errors as mentioned and also a
> > complete dmesg(8).
> >
> > Regards,
> > Stefan
> >



Re: E3372: LCP: timeout sending Config-Requests

2020-06-25 Thread Kapfhammer, Stefan
Hello,

yes please provide /etc/ppp/connect-errors as mentioned and also a complete 
dmesg(8).

Regards,
Stefan

> -Ursprüngliche Nachricht-
> Von: Whistle 
> Gesendet: Donnerstag, 25. Juni 2020 13:31
> An: Kapfhammer, Stefan 
> Cc: Misc 
> Betreff: Re: E3372: LCP: timeout sending Config-Requests
> 
> Hi Stefan,
> no it's not Deutsche Telekom, it giffgaff in uk.
> Do you still want the logs ?
> Also tried to reboot on a linux image and it switchmode with
> usb_switchmode then I rebooted (without detach it and without poweroff
> the laptop) in openbsd and I found a ethernet interface (cdce0). I run
> dhclient cdce0, it gave me the ip and I connected to the web page of the usb
> stick and there I configured the profile with login,password,apm and then I
> was online. Of course I cannot boot every time in linux to switch mode.
> 
> 
> > Hey,
> >
> > do you want to connect to the german 'Deutsche Telekom' ?
> >
> > Please delete /etc/ppp/connect-errors and make ONE more run with 'pppd
> > call telekom'. Then post this file here.
> >
> > Regards,
> > Stefan
> >



Re: E3372: LCP: timeout sending Config-Requests

2020-06-25 Thread Kapfhammer, Stefan
Hey,

do you want to connect to the german 'Deutsche Telekom' ?

Please delete /etc/ppp/connect-errors and make ONE more run with
'pppd call telekom'. Then post this file here.

Regards,
Stefan

> -Ursprüngliche Nachricht-
> Von: owner-m...@openbsd.org  Im Auftrag
> von Whistle
> Gesendet: Mittwoch, 24. Juni 2020 22:10
> An: Misc 
> Betreff: E3372: LCP: timeout sending Config-Requests
> 
> Hi,
> I have the exactly same problem of the following guy:
> https://marc.info/?l=openbsd-misc=151950994024553=2
> I have a e3372 mobile too but wiht openbsd 6.7.
> But the guy forgotten to say how he solved the problem.
> Anyone can help me ?
> Anyway the following are my connections files:
> 
> ===> /etc/ppp/peers/telekom
> cuaU0
> user myuser888
> nocrtscts
> defaultroute
> noipdefault
> ipcp-accept-local
> ipcp-accept-remote
> connect "/usr/sbin/chat -vs -f /etc/ppp/connect.telekom"
> 
> 
> > /etc/ppp/connect.telekom
> ABORT 'BUSY'
> ABORT 'NO CARRIER'
> ABORT 'VOICE'
> REPORT CONNECT
> TIMEOUT 20
> 'OK-AT-OK' 'ATZ'
> 'OK' 'AT+CMEE=2'
> 'OK' 'AT'
> 'OK\d-AT-OK' 'ATI'
> 'OK' 'ATZ'
> 'OK' 'AT'
> 'OK' AT+CGDCONT=1,"IP","giffgaff.com","0.0.0.0",0,0
> 'OK' 'ATD*99#' CONNECT
> 
> and the Errors:
> pppd[13820]: pppd 2.3.5 started by myuser, uid 0
> pppd[13820]: Connect: ppp0 <--> /dev/cuaU0
> pppd[13820]: LCP: timeout sending Config-Requests
> pppd[13820]: Connection terminated.
> pppd: Exit.
> 
> 
> Thank you very much for your help.



Re: How do I get a list of the files of only installed packages?

2020-06-08 Thread Kapfhammer, Stefan
Hello Ottavio,

pkg_info -m

will show you all the packages, which you have installed,
without their dependencies.

pkg_info -a

will show you all the packages, including their dependecies.

Regards,
Stefan


-Ursprüngliche Nachricht-
Von: owner-m...@openbsd.org  Im Auftrag von Ottavio 
Caruso
Gesendet: Sonntag, 7. Juni 2020 22:14
An: misc 
Betreff: Re: How do I get a list of the files of only installed packages?

On Sun, 7 Jun 2020 at 21:11, Ottavio Caruso  
wrote:
>
> Hi,
>
> "pkg_info -L PACKAGE-NAME"
>
> will give me a list of all the files within each package, regardless 
> of whether the package is installed or not.
>
> How can I restrict the output to only installed packages, making it 
> fail if the package is not installed?
>
> I could do:
>
> "pkg_info -f PACKAGE-NAME "
>

Correction: "pkg_info -f" will also show me the packing list of remote 
packages, so that is not an option either.


--
Ottavio Caruso



Re: "bioctl -d" before shutdown

2019-02-25 Thread Kapfhammer, Stefan
‎Hi,

I have the umount and bioctl -d
commands in /etc/rc.shutdown,
in case I forget to do it manually.

If you don't do that proberly, you will need
to fsck the device, next time you attach it.

-Stefan



‎
  Origineel bericht
Van: Roderick
Verzonden: zondag 24 februari 2019 21:53
Aan: misc@openbsd.org
Onderwerp: "bioctl -d" before shutdown


Excuseme that I ask instead of inspecting rc files. :)

I do manually

bioctl -c C -l /dev/XXX softraid0

and mount the resulting device.

Should I manually unmount and do "bioctl -d " before shutdown?

Or just shutdown? The umount will sure be done, but also the bioctl -d?

Thanks
Rodrigo



Re: Can SSH report successful connections to pf?

2018-05-04 Thread Kapfhammer, Stefan

You might want to parse /var/log/authlog and the logrotated authlog.[0-9].gz
for successful and unsuccessful logins and then add the unsuccessful logins
with pfctl to a blocked table. To have it permanent after a reboot you can write
with pfctl the blocked ip's to a file, which you re-read in a pf.conf ruleset.

Like
table  persist file "/etc/pf.bruteforce"
block in quick proto tcp from  to any

Stefan






Van: owner-m...@openbsd.org  namens Luke Small 

Verzonden: zaterdag 5 mei 2018 00:16
Aan: openbsd-misc
Onderwerp: Can SSH report successful connections to pf?

Can SSH and possibly other programs more easily able to report successful
connections so pf can make stricter bruteforce connection rejecting even
better?



Re: [6.2] Problem with X, .cwmrc file missing from fresh install

2018-03-07 Thread Kapfhammer, Stefan

Hello Luca,

there is no default .cwmrc in a user's home folder.
The standard shortcuts are described in cwm(1)‎.

Stefan

  Origineel bericht
Van: Luka Kosanovic
Verzonden: donderdag 8 maart 2018 05:17
Aan: misc
Onderwerp: [6.2] Problem with X, .cwmrc file missing from fresh install


Hi, Im a new user and I have a problem with cwm, everything works, I
login and default xterm window appears but default keyboard shortcuts
do not work. I tried many standard shortcuts and nothing happens, then
I went on mailing lists and found somebody had the same problem a
month ago so I did a little bit of digging and found out .cwmrc conf
file doesnt exist.
Can you please tell me why is that, shouldnt there
be a default file in my home folder with a fresh install? Everything
else works as expected there were no problems.

Thank you



Re: 3g modem

2017-11-05 Thread Kapfhammer, Stefan
Hello,

Ericsson (F)/H5321gw works great with the new
umb(4) MBIM device with OpenBSD 6.2. 

umb(4) was introduced with 6.1 and recognized this modem, but did not work 
correct. Up to OpenBSD 6.1 I used a combination out of  pppd(8) and chat(8),
which worked great for me, for all the pre-6.2 releases.

Get an overview here: 
https://techship.com/products/category/cellular-modules/

dmesg:

umodem0 at uhub4 port 6 configuration 1 interface 1 "TOSHIBA H5321 gw" rev 
2.00/0.00 addr 4
umodem0: data interface 2, has CM over data, has break
umodem0: status change notification available
ucom0 at umodem0
umodem1 at uhub4 port 6 configuration 1 interface 3 "TOSHIBA H5321 gw" rev 
2.00/0.00 addr 4
umodem1: data interface 4, has CM over  data, has break
umodem1: status change notification available
ucom1 at umodem1
umb0 at uhub4 port 6 configuration 1 interface 6 "TOSHIBA H5321 gw" rev 
2.00/0.00 addr 4
umodem2 at uhub4 port 6 configuration 1 interface 9 "TOSHIBA H5321 gw" rev 
2.00/0.00 addr 4
umodem2: data interface 10, has CM over data, has break
umodem2: status change notification available
ucom2 at umodem2
ugen1 at uhub4 port 6 configuration 1 "TOSHIBA H5321 gw" rev 2.00/0.00 addr 4

Regards,
-stefan



  Ursprüngliche Nachricht  
Von: ed...@pettijohn-web.com
Gesendet: 5. November 2017 11:06 nachm.
An: erling.westen...@gmail.com
Cc: misc@openbsd.org
Betreff: Re: 3g modem

On Sun, Nov 05, 2017 at 10:58:47PM +0100, Erling Westenvik wrote:
> On Sun, Nov 05, 2017 at 03:33:48PM -0600, Edgar Pettijohn wrote:
> > My isp leaves a lot to be desired. I'm into possible backup plans for
> > when the connection is unbearable. Are there any 3g usb dongles or
> > mini pci devices which work on openbsd?
> 
> On my old ThinkPad T500:
> 
> $ dmesg | grep cdce
> cdce0 at uhub1 port 4 configuration 1 interface 7 "Ericsson Ericsson F3507g 
> Mobile Broadband Minicard Composite Device" rev 2.00/0.00 addr 2
> cdce0: address 02:80:37:ec:02:00
> 
> Mini-PCI. Works. Check cdce(4) for more adapters.
> 
> Erling

Cool. Wasn't sure which drivers to look at. I guess apropos would have been my 
friend.

Thanks!




PCH transcoder errors on 6.2-stable

2017-11-05 Thread Kapfhammer, Stefan
Hi misc,

following errors are derrived from dmesg (full dmesg below):

error: [drm:pid0:cpt_set_fifo_underrun_reporting] *ERROR* uncleared pch fifo 
underrun on pch transcoder A
error: [drm:pid0:intel_pch_fifo_underrun_irq_handler] *ERROR* PCH transcoder A 
FIFO underrun

Both with 6.2 MP and SP.

These errors haven't been reported with 6.1-stable.

Later on xconsole I get:
error: [drm:pid49268:intel_pipe_update_start] *ERROR* Potential atomic update 
failure on pipe A

PID search:
$ ps ax | grep 49268
49268 ??  S   7:22.26 /usr/X11R6/bin/X :0 -auth /home/sk/.serverauth.vGtgP0

Any advice would be great,
Regards,
-stefan

Full dmesg (MP) here (lladdr's and s/n's have been redacted with  - public 
mailing list)


OpenBSD 6.2 (GENERIC.MP) #0: Thu Oct 12 19:53:18 CEST 2017

r...@syspatch-62-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8445812736 (8054MB)
avail mem = 8182820864 (7803MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xcacff000 (42 entries)
bios0: vendor TOSHIBA version "Version 6.90" date 04/18/2017
bios0: TOSHIBA PORTEGE Z930
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! TCPA BOOT MSDM SLIC SSDT SSDT SSDT 
SSDT DMAR FPDT
acpi0: wakeup devices LANC(S4) HDEF(S3) USBB(S4) RP02(S4) PXSX(S4) RP04(S4) 
PXSX(S4) USBC(S4) EHC1(S4) EHC2(S4) XHC_(S4) PWRB(S4) LID_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 2494.81 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 2494807350 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 2494.34 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 2494.34 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 2494.34 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus 2 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpicpu0 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PDOC, resource for DOCK
acpitz0 at acpi0: critical temperature is 107 degC
tpm0 at acpi0: GTPM addr 0xfed4/0x5000: Infineon SLB9635 1.2 rev 0x10
"TOS7407" at acpi0 not configured
"TOS0220" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpitoshiba0 at acpi0
"TOS6205" at acpi0 not configured
"PNP0C32" at acpi0 not configured
"PNP0C32" at acpi0 not configured
"PNP0C32" at acpi0 not configured
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID_
acpibat0 at acpi0: BAT1 model 

6.2-RELEASE with single disk FDE hangs on serial console after wrong passphrase

2017-10-10 Thread Kapfhammer, Stefan
Hi misc,

I have a PC Engines apu2b4 with one 16 GB
ssd, for installation or reboot reasons I am
connected via serial console.

Here is the boot screen:

(dmesg below)


=

PC Engines apu2
coreboot build 20170831
BIOS version v4.0.12
4080 MB ECC DRAM

SeaBIOS (version rel-1.10.2.1)

Press F10 key now for boot menu

Booting from Hard Disk...
Using drive 0, partition 3.
Loading..
probing: pc0 com0 com1 com2 com3 mem[638K 3582M 496M a20=on] 
disk: hd0+ sr0*
>> OpenBSD/amd64 BOOT 3.33
Passphrase:    accidentially 
pressed Enter
bcrypt_pbkdf failed
open(sr0a:/etc/boot.conf): Operation not permitted    should be loaded 
for com0 switching
boot> 
Passphrase:     given the right 
passphrase
booting sr0a:/bsd: 8520476+2544648+241408+0+675840 
[662700+82+702264+484833]=0xd32ce8
entry point at 0x1000158    hangs forever

=

Hint:
After entering empty or wrong passphrase and at least the correct
passphrase, should reload /etc/boot.conf (with correct permissions set ? )

Workaround:
Giving 'stty com0 115200' and 'set tty com0'
at the bootprompt and given afterwards the 
correct passphrase, seems to work and system switches
to com0 and boots up.

If you are too slow, system tries to boot and hangs on the console.
But it's annoying after the hang, that you have  (especially for APUx devices)
to pull the AC cable and put it back again. Provokes fs checks on crypto device.

This is not a hard bug and I am very good with 6.2-RELEASE, the fastest
and best up to now.

Congratulations to the developers, great great work.

Regards,

Stefan Kapfhammer


dmesg:
OpenBSD 6.2 (GENERIC.MP) #134: Tue Oct  3 21:22:29 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4261076992 (4063MB)
avail mem = 4124921856 (3933MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
bios0: vendor coreboot version "v4.0.12" date 08/31/2017
bios0: PC Engines apu2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4) 
UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.27 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: TSC frequency 998270800 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.13 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.13 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD GX-412TC SOC, 998.13 MHz
cpu3: 

Re: cwm questions

2017-10-02 Thread Kapfhammer, Stefan
Hello Dell,

the current key bindings are displayed in cwm(1),
your settings in cwmrc(5) override these.

There is currently no way to move windows, to
a specified position, with a keyboard shortcut.

You can still move windows with ALT+M1 or resize with ALT+M1+M3. This is a 
faster way, than with
keyboard shortcuts.

Regards,

Stefan


Von: test1dellb...@yahoo.co.uk
Gesendet: 2. Oktober 2017 10:27 vorm.
An: misc@openbsd.org
Antworten: test1dellb...@yahoo.co.uk
Betreff: Fw: cwm questions


Thanks Stefan, but even after a reboot, CM-r (window-vtile) does not work. 
Perhaps CM-r is not bound to anything. Is there anyway to display the current 
key bindings in cwm?
Is there a way to bind a key to move a window to specified position on the 
screen (for example coordinates 0,0)?

On Sunday, 1 October 2017, 13:13, "Kapfhammer, Stefan" <sk...@skapf.de> 
wrote:


 Hey Dell,

I am working with cwm since OpenBSD 5.8

I inserted the command you mentioned in my
~/.cwmrc and restarted cwm with CMS-r
(The default for restarting cwm)

CM-r works as expected and moves the window,
the mouse cursor is in, to the left half of the screen.

Did you move the mouse cursor to the background
and then press the CMS-r to restart cwm?
Maybe some programs own keybindings surpress
the desired action in cwm.

I am using OpenBSD 6.1-stable.

There is a little difference with windows-vtile
between -current and 6.1-stable, as mentioned
below:



Current:  http://man.openbsd.org/amd64/cwmrc.5#BIND_FUNCTION_LIST

"Current window is placed on the left of the screen, maximized vertically and 
resized to half of the horizontal screen space. Other windows in its group 
share remaining screen space."



6.1-stable:  http://man.openbsd.org/OpenBSD-6.1/amd64/cwmrc.5#BIND_FUNCTION_LIST

"Current window is placed on the left of the screen and maximized vertically, 
other windows in its group share remaining screen space."



Regards,

Stefan

Von: test1dellb...@yahoo.co.uk
Gesendet: 1. Oktober 2017 9:07 vorm.
An: misc@openbsd.org
Antworten: test1dellb...@yahoo.co.uk
Betreff: cwm questions


Hello,
I have recently installed OpenBSD snapshot 6.2.I created a simple ~/.cwmrc with 
a single line -
bind-key CM-r window-vtile
then I restarted cwm, opened a few windows and hit CTRL-ALT-r.
I expected the current window to move to the left half of the screen but it did 
not work.I tried this with xterm, firefox, keepassx and vim as current windows 
but nothing happened.Does anyone know why?
Is there a way to bind a key to move a window to specified position on the 
screen (for example coordinates 0,0)?







Re: cwm questions

2017-10-01 Thread Kapfhammer, Stefan
Hey Dell,

I am working with cwm since OpenBSD 5.8

I inserted the command you mentioned in my
~/.cwmrc and restarted cwm with CMS-r
(The default for restarting cwm)

CM-r works as expected and moves the window,
the mouse cursor is in, to the left half of the screen.

Did you move the mouse cursor to the background
and then press the CMS-r to restart cwm?
Maybe some programs own keybindings surpress
the desired action in cwm.

I am using OpenBSD 6.1-stable.

There is a little difference with windows-vtile
between -current and 6.1-stable, as mentioned
below:



Current:  http://man.openbsd.org/amd64/cwmrc.5#BIND_FUNCTION_LIST

"Current window is placed on the left of the screen, maximized vertically and 
resized to half of the horizontal screen space. Other windows in its group 
share remaining screen space."



6.1-stable:  http://man.openbsd.org/OpenBSD-6.1/amd64/cwmrc.5#BIND_FUNCTION_LIST

"Current window is placed on the left of the screen and maximized vertically, 
other windows in its group share remaining screen space."



Regards,

Stefan

Von: test1dellb...@yahoo.co.uk
Gesendet: 1. Oktober 2017 9:07 vorm.
An: misc@openbsd.org
Antworten: test1dellb...@yahoo.co.uk
Betreff: cwm questions


Hello,
I have recently installed OpenBSD snapshot 6.2.I created a simple ~/.cwmrc with 
a single line -
bind-key CM-r window-vtile
then I restarted cwm, opened a few windows and hit CTRL-ALT-r.
I expected the current window to move to the left half of the screen but it did 
not work.I tried this with xterm, firefox, keepassx and vim as current windows 
but nothing happened.Does anyone know why?
Is there a way to bind a key to move a window to specified position on the 
screen (for example coordinates 0,0)?



Re: Version skew?

2017-05-05 Thread Kapfhammer, Stefan
Hello Donald,

PKG_PATH is deprecated since 6.1-RELEASE.

Use /etc/installurl instead.

https://man.openbsd.org/installurl


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: Donald Allen
Gesendet: Freitag, 5. Mai 2017 20:16
An: OpenBSD general usage list
Betreff: Version skew?


I am running current on an amd64 system. I updated the system from the
latest (5/4) snapshot this morning, downloaded from the Alberta site.
But I am (still) unable to install the following package:

 doas /usr/sbin/pkg_add rust
quirks-2.319 signed on 2017-05-03T14:53:25Z
Can't install rust-1.16.0 because of libraries
|library c.89.5 not found
| /usr/lib/libc.so.89.3 (system): minor is too small
| /usr/lib/libc.so.89.4 (system): minor is too small
Direct dependencies for rust-1.16.0 resolve to gcc-libs-4.9.4p4
Full dependency tree is gcc-libs-4.9.4p4

This is with

PKG_PATH=https://ftp.OpenBSD.org/pub/OpenBSD/snapshots/packages/amd64

The /etc/doas.conf uses the KEEPENV option for /usr/sbin/pkg_add.

What I am not clear about is why a package would require a library
with a greater minor version (and presumably newer) than that supplied
by the most recent snapshot? If someone could explain this I'd
appreciate it.

/Don Allen



Re: pppoe takes 3 or 4 minutes to come up

2017-04-03 Thread Kapfhammer, Stefan
Harald,

I don't know how you do the VLAN tagging for Deutsche Telekom,
but
this article will help you:

http://un.geeig.net/openbsd-vdsl.html

Here is my
ifconfig pppoe0:

pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST>
mtu 1492
index 9 priority 0 llprio 3
dev: vlan7 state: session
sid: 0x952a PADI retries: 5 PADR retries: 0 time: 9d 18:47:52
sppp:
phase network authproto chap 
groups: pppoe egress
status:
active
inet 87.138.aa.bb --> 217.0.cc.dd netmask 0x

I use
CHAP instead of PAP auth.

Hope that works for you, too.

-stefan

From: owner-m...@openbsd.org
<owner-m...@openbsd.org> on behalf of Harald Dunkel
Sent: Monday, April 3,
2017 01:15 PM
To: misc@openbsd.org
Subject: Re: pppoe takes 3 or 4 minutes to
come up

On 04/02/17 11:46, Kapfhammer, Stefan wrote:
> Harald, could you
please post
> the full output of 'ifconfig pppoe0'‎?
> After successful
established connection.
>
> Of course without credentials :)
>

Sure:

#
ifconfig pppoe0
pppoe0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST>
mtu 1500
index 6 priority 0 llprio 3
dev: re0 state: session
sid: 0x64 PADI retries: 2 PADR retries: 0 time: 1d 04:57:54
sppp:
phase network authproto pap authname "x...@t-online.de"
groups:
pppoe extern egress
status: active
inet 93.233.206.xx -->
62.155.241.yy netmask 0x

Regards
Harri



Re: pppoe takes 3 or 4 minutes to come up

2017-04-02 Thread Kapfhammer, Stefan
Harald, could you please post
the full output of 'ifconfig pppoe0'‎?
After successful established connection.

Of course without credentials :)


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht  
Von: Harald Dunkel
Gesendet: Sonntag, 2. April 2017 10:06
An: misc@openbsd.org
Betreff: pppoe takes 3 or 4 minutes to come up

Hi folks,

I am using pppoe on OpenBSD 6.0 stable to setup a connection
to Deutsche Telekom (VDSL). Problem: Usually it takes 3 or 4
minutes to establish the connection. Is this as expected?

See below for the hostname.??? files. Using the default mtu
doesn't make a difference.


Any helpful comment is highly appreciated
Harri

# cat /etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE \
pppoedev re0 mtu 1500 \
authproto pap authname 'xx...@t-online.de' authkey 
'' \
up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1

## not verified
## inet6 autoconf
#inet6 eui64
#!/sbin/route add -inet6 default -ifp pppoe0 fe80::

group extern

# cat /etc/hostname.re0
up mtu 1508



Re: OpenBSD 6.0 "netstat -p proto" behavior

2017-01-25 Thread Kapfhammer, Stefan
Works as expected with 6.0 stable ‎on amd64 MP kernel.


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: Denis Lapshin
Gesendet: Mittwoch, 25. Januar 2017 21:13
An: misc@openbsd.org
Betreff: OpenBSD 6.0 "netstat -p proto" behavior


On a regular basis I'm using # netstat -p proto command.

On 5.4 it returns:

# netstat -p tcp
Active Internet connections (including servers)
Proto   Recv-Q Send-Q  Local Address  Foreign Address(state)
tcp  0 44  127.0.0.1. 192.168.1.37.25253
ESTABLISHED
tcp  0  0  127.0.0.1.9911  77.88.42.32.11.64385
ESTABLISHED
tcp  0  0  82.32.11.11.48279 208.242.56.59.443
ESTABLISHED
tcp  0  0  127.0.0.1.7110 *.*LISTEN
...

On 6.0 it seems to be "-p" option is not affected onto output at all
(the same data is provided by clear # netstat utility call):

# netstat -p tcp
NameMtu   Network Address  Ipkts IerrsOpkts
Oerrs Colls
lo0 32768   196530 0   196530
0 0
lo0 32768 ::1/128 ::1 196530 0   196530
0 0
lo0 32768 fe80::%lo0/ fe80::1%lo0 196530 0   196530
0 0
lo0 32768 127/8   127.0.0.1   196530 0   196530
0 0
bge0150000:02:b6:42:ea:c070224 095117
0 0
pflog0  331440 0  250
0 0
...

What I'm doing wrong?

Thanks.



Re: PC-Engines apu2c4 install reboot loop :(

2017-01-10 Thread Kapfhammer, Stefan
Hey Steve,

newer bios available at http://pcengines.ch/howto.htm#bios
http://www.pcengines.ch/file/apu2_160311.zip
Strongly recommended BEFORE installation!

Use 'install60.fs' from 6.0-RELEASE and dd it to a usb stick.
Mount stick on second OpenBSD machine and edit the
/etc/boot.conf and add
stty com0 115200
set tty com0

Boot the APU2c4 now from that modified stick and with
second machine attached via nullmodem cable.

(I use a USB-to-RS232C adapter with a nullmodem cable attached to apu2)

$ cu -d -l /dev/cuaU3 -s 115200

Now you should be able to install OpenBSD 6.0-REL to the apu2.



Regards,
-stefan



Von: owner-m...@openbsd.org [owner-m...@openbsd.org] im Auftrag von Steve
Williams [st...@williamsitconsulting.com]
Gesendet: Dienstag, 10. Januar 2017 23:16 Uhr
An: misc@openbsd.org
Betreff: PC-Engines apu2c4 install reboot loop :(

Hi,

I purchased a new PC-Engines APU 2c4 system.  I have a wireless card as
well and a msata SSD (250 gig).  I've tried the install with all these
two boards installed, none installed and both combinations with no
change in symptoms.

I have tried
 OpenBSD current "install60.fs"
 OpenBSD 6.0 miniroot60.fs
 OpenBSD 6.0 install60.fs

I'm using another OpenBSD box hooked up to the serial port (null modem)
and "cu" at 115200.

 From what I can tell, it's got the latest BIOS for the apu2.

The BIOS prompts work fine, I get the "boot>" prompt in OpenBSD, but
right after the "entry point" line prints out, the system reboots.  It
will do this endlessly.  I have run the on-board memtest with and
without the wireless and SSD and it all passes.

The system boots the "TinyCore Linux" system that PC-Engines provides on
their website.  I have included a dmesg from it at the bottom.  Sorry
it's so long!

Any hints on what I should do to troubleshoot this further?

Where the problem is:
---
boot>
cannot open hd0a:/etc/random.seed: No such file or directory
booting hd0a:/6.0/amd64/bsd.rd: 3396956+1430528+3876632+0+606208
[72+431976+281268]=0x9914e8
entry point at 0x1001000 [7205c766, 3404, 24448b12, 3550a304]


Entire boot transcript
-
Script started on Tue Jan 10 14:12:46 2017
# cu -ltty00 -s115200
Connected
PCEngines apu2
coreboot build 20160307
4080 MB ECC DRAM

SeaBIOS (version ?-20160307_153453-michael-desktop64)
Found mainboard PC Engines PCEngines apu2
multiboot: eax=0, ebx=0
boot order:
1: /pci@i0cf8/usb@10/usb-*@1
2: /pci@i0cf8/usb@10/usb-*@2
3: /pci@i0cf8/usb@10/usb-*@3
4: /pci@i0cf8/usb@10/usb-*@4
5: /pci@i0cf8/*@14,7
6: /pci@i0cf8/*@11/drive@0/disk@0
7: /pci@i0cf8/*@11/drive@1/disk@0
8: /rom@genroms/pxe.rom
9: pxen0
10: scon1
11:
Found 21 PCI devices (max PCI bus is 03)
Copying SMBIOS entry point from 0xdffb7000 to 0x000f3110
Copying ACPI RSDP from 0xdffb8000 to 0x000f30e0
Copying MPTABLE from 0xdffdc000/dffdc010 to 0x000f2f30
Copying PIR from 0xdffdd000 to 0x000f2f00
Using pmtimer, ioport 0x818
Scan for VGA option rom
Running option rom at c000:0003
Google, Inc.
Serial Graphics Adapter 08/22/15
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $
(wiv@coreboot-Virtual-Machine) Sat Aug 22 09:25:30 UTC 2015
Term: 80x25
IO4 0
Turning on vga text mode console
SeaBIOS (version ?-20160307_153453-michael-desktop64)
XHCI init on dev 00:10.0: regs @ 0xfeb22000, 4 ports, 32 slots, 32 byte
contexts
XHCIextcap 0x1 @ feb22500
XHCIprotocol USB  3.00, 2 ports (offset 1), def 0
XHCIprotocol USB  2.00, 2 ports (offset 3), def 10
XHCIextcap 0xa @ feb22540
Found 2 serial ports
ATA controller 1 at 4010/4020/0 (irq 0 dev 88)
EHCI init on dev 00:13.0 (regs=0xfeb25420)
ATA controller 2 at 4018/4024/0 (irq 0 dev 88)
Searching bootorder for: /pci@i0cf8/*@14,7
Searching bootorder for: /rom@img/memtest
Searching bootorder for: /rom@img/setup
ata0-0: Samsung SSD 850 EVO mSATA 250GB ATA-9 Hard-Disk (232 GiBytes)
Searching bootorder for: /pci@i0cf8/*@11/drive@0/disk@0
XHCI port #3: 0x00200e03, powered, enabled, pls 0, speed 3 [High]
Searching bootorder for: /pci@i0cf8/usb@10/storage@3/*@0/*@0,0
Searching bootorder for: /pci@i0cf8/usb@10/usb-*@3
USB MSC vendor='CBM' product='Flash Disk' rev='5.00' type=0 removable=1
USB MSC blksize=512 sectors=2064384
Initialized USB HUB (0 ports used)
All threads complete.
Scan for option roms
PCengines Press F10 key now for boot menu:
Select boot device:

1. USB MSC Drive CBM Flash Disk 5.00
2. ata0-0: Samsung SSD 850 EVO mSATA 250GB ATA-9 Hard-Disk (23
3. Payload [memtest]
4. Payload [setup]

Searching bootorder for: HALT
drive 0x000f2e60: PCHS=0/0/0 translation=lba LCHS=1024/32/63 s=2064384
drive 0x000f2e90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
s=488397168
Space available for UMB: c1000-ef000, f-f2e60
Returned 258048 bytes of ZoneHigh
e820 map has 7 items:
   0:  - 0009f800 = 1 RAM
   1: 0009f800 - 000a = 2 RESERVED
   2: 000f - 0010 = 2 RESERVED
   3: 

Re: How to both redirect to console and screen

2016-10-17 Thread Kapfhammer, Stefan
Hello,

write in /etc/boot.conf

stty com0 115200  # Set the correct baud rate for com port
set tty com0  # Redirect output to console port com0

Edit your baudrate. For e.g. APU2 it's 115200, may differ
from other pc's.

-stefan


Von: owner-m...@openbsd.org [owner-m...@openbsd.org] im Auftrag von Mik J
[mikyde...@yahoo.fr]
Gesendet: Montag, 17. Oktober 2016 13:34 Uhr
An: Miscellaneous OBSD
Betreff: Re: How to both redirect to console and screen

Hello,
It is possible to redirect the boot sequence to the console using
# cat /etc/boot.conf
set tty com0
But then there is no screen output. How is it possible to have both of them ?


Thank you



Re: An AR9280 as an Access Point

2016-10-12 Thread Kapfhammer, Stefan
The card from pcengines is well supported by OpenBSD.
Use the athn(4) driver. Works nice in my APU2 :)

‎http://man.openbsd.org/OpenBSD-6.0/man4/athn.4

For your use case look at the end of the man page
@bugs and @caveeats


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: physkets
Gesendet: Mittwoch, 12. Oktober 2016 16:20
An: misc@openbsd.org
Betreff: An AR9280 as an Access Point


Hello!

I'd asked a related question on the OpenBSD subreddit, and someone
pointed me here. Hope this is appropriate.
https://www.reddit.com/r/openbsd/comments/56lzhu/which_wifi_card_to_make_an_access_point

Does anyone know how good a WiFi Access Point I could make of the
Atheros AR9280 card (Compex-wle200nx) offered by the guys at PC Engines:
http://www.pcengines.ch/wle200nx.htm

Thanks a lot!



WG: cuaU0 problems

2016-09-19 Thread Kapfhammer, Stefan
fwd misc@


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: Kapfhammer, Stefan <sk...@skapf.de>
Gesendet: Montag, 19. September 2016 22:33
An: Edgar Pettijohn
Betreff: AW: cuaU0 problems


I am a bit astonished, that it works
without "-d" for you. Without it
would wait for a carrier to be detected.


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: Edgar Pettijohn
Gesendet: Montag, 19. September 2016 22:01
An: misc@openbsd.org
Betreff: Re: cuaU0 problems


On 16-09-19 19:56:31, Kapfhammer, Stefan wrote:
> Hello Edgar,
>
> I have no Soekris, but Apu2 is also connected
> with a serial cable.
>
> When cable is plugged in the controlling pc
> before booting, it is to be found as /dev/cuaU???0.
>
> When I plug it in after the boot completed, it is to be
> found as /dev/cuaU3. (0/1/2 is normally int. 3G modem)
>
> Hope this helps debugging. Feedback would be fine.

Thanks for the reply. It has always worked with:

# cu -l cuaU0

when it stopped working I tried cuaU{1,2} with same result.

I suppose I may as well provide some dmesg porn.
>
>
> Freundliche Gre / Regards
> -stefan kapfhammer
>   Originalnachricht
> Von: Edgar Pettijohn
> Gesendet: Montag, 19. September 2016 20:52
> An: misc@openbsd.org
> Betreff: cuaU0 problems
>
>
> I use a usb serial cable to talk to my soekris router. That works with
> 6.0 release but not current.  I was hoping to find commits related to it
> and roll back to find what broke it, but I'm not sure where to look.
>
> Any help is appreciated.
>
> Thanks,
> --
> Edgar Pettijohn

--
Edgar Pettijohn
OpenBSD 6.0-current (GENERIC.MP) #2139: Sun Sep 18 23:16:59 MDT 2016
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz ("GenuineIntel" 686-class) 798
MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,D
S-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,D
EADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC,SENSOR,ARAT
real mem  = 3662811136 (3493MB)
avail mem = 3580022784 (3414MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 03/26/12, BIOS32 rev. 0 @ 0xfc200, SMBIOS rev. 2.6 @
0xdae9c000 (64 entries)
bios0: vendor LENOVO version "83ET69WW (1.39 )" date 03/26/2012
bios0: LENOVO 42368J2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC SSDT SSDT SSDT HPET APIC MCFG ECDT ASF! TCPA SSDT
SSDT UEFI UEFI UEFI
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP4(S4) EHC1(S3) EHC2(S3)
HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz ("GenuineIntel" 686-class) 2.50
GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,D
S-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,D
EADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz ("GenuineIntel" 686-class) 2.50
GHz
cpu2:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,D
S-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,D
EADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz ("GenuineIntel" 686-class) 2.50
GHz
cpu3:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,PCLMUL,DTES64,MWAIT,D
S-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,D
EADLINE,AES,XSAVE,AVX,LAHF,PERF,ITSC,SENSOR,ARAT
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus 5 (EXP4)
acpiprt5 at acpi0: bus 13 (EXP5)
acpicpu0 at acpi0: C3(200@109 io@0x416), C2(500@80 io@0x414), C1(1000@1 halt),
PSS
acpicpu1 at acpi0: C3(200@109 io@0x416), C2(500@80 io@0x414), C1(1000@1 halt),
PSS
acpicpu2 at acpi0: C3(200@109 io@0x416), C2(500@80 io@0x414), C1(1000@1 halt),
PSS
acpicpu3 at acpi0: C3(

Re: cuaU0 problems

2016-09-19 Thread Kapfhammer, Stefan
Hello Edgar,

I have no Soekris, but Apu2 is also connected
with a serial cable.

When cable is plugged in the controlling pc
before booting, it is to be found as /dev/cuaU‎0.

When I plug it in after the boot completed, it is to be
found as /dev/cuaU3. (0/1/2 is normally int. 3G modem)

Hope this helps debugging. Feedback would be fine.


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: Edgar Pettijohn
Gesendet: Montag, 19. September 2016 20:52
An: misc@openbsd.org
Betreff: cuaU0 problems


I use a usb serial cable to talk to my soekris router. That works with
6.0 release but not current.  I was hoping to find commits related to it
and roll back to find what broke it, but I'm not sure where to look.

Any help is appreciated.

Thanks,
--
Edgar Pettijohn



Re: PPPoE (5.9 still): https gets stuck

2016-09-13 Thread Kapfhammer, Stefan
Hello Harald,

use the setup from there:

http://www.un.geeig.net/openbsd-vdsl.html

‎if you don't have IPTV, leave everything after
'ping' probe and reboot out. I didn't use
the 5 sysctl settings.

Update ALLNET Bridge to at least fw c46a,
reboot the device and reset to factory defaults.
Don't change anything here after defaults apply!

Wait for VDSL synchronization ‎(LINK/WAN)
permanent green LED on.‎ Then start soekris,
alix, apu/2, whatever is after the bridge.

My setup:
ALLNET ALL-BM100VDSL2V‎ with fw c46a
APU2B4 previously with OpenBSD 5.9 now 6.0
with fw 20160311
Grandstream HT-702 ATA ‎with fw 1.82
Telekom VDSL 50 Business Premium

Works well, even with https connections.
Good luck.


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: Harald Dunkel
Gesendet: Dienstag, 13. September 2016 13:08
An: misc@openbsd.org
Betreff: Re: PPPoE (5.9 still): https gets stuck


Hi Markus,

On 09/13/2016 12:42 PM, Markus Hennecke wrote:
>>
>> I use the same VDSL modem with Deutsche Telekom and can reach
>> https://telekom.de/
>> The only MTU related setting in pf.conf seems to be this:
>>
>> ext_if = pppoe0
>> match in on $ext_if all scrub (no-df max-mss 1440)
>>
>> It is an old soekris, which does not support gbit ethernet.
>> I do the VLAN tagging on the OpenBSD router, I think I disabled the
>> automatic tagging the modem supports.
>>
>> Regards,
>> Markus
>>
>
> Damn. Of course without this line it won't work:
>
> match out on $ext_if all scrub (max-mss 1440)
>

I have

match in on pppoe0 scrub (no-df random-id max-mss 1440)

but no "match out". I will check.

Unfortunately I cannot check right now, since I use this line
to access my home network.


Thanx very much
Harri



Re: Mbim device umb0 - no authentification?

2016-09-05 Thread Kapfhammer, Stefan
Thank you Theo,

that's what I wanted to know. No magic!
So I will write a little script, which catches
the DNS's and the IP's from ifconfig's
output and writes it to the correct files/
launches the correct commands

Will be no magic anyway ;)

Thank you for answering.


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: Theo de Raadt
Gesendet: Montag, 5. September 2016 10:34
An: Kapfhammer, Stefan
Cc: Stuart Henderson; misc@openbsd.org
Betreff: Re: Mbim device umb0 - no authentification?


> Other question: In case the nameservers from the provider
> change, do I have to change them myself in resolv.conf or
> is there some magic with umb0, that the nameservers
> find there way to the resolv.conf (like with dhclient)?
>
> Even with default gateway 

We do not have magic to do this at the moment.

The driver was provided to us with a bunch of that magic, but it
interferes with the network smp effort (flippingroutes from an
uncomfortable place), as well as hard-wired semantics different from
other networks.

So we pulled out those parts when integrating the driver. Will revisit
such magic when the network stack is more ready.

For now, static configuration.



Re: Mbim device umb0 - no authentification?

2016-09-05 Thread Kapfhammer, Stefan
Um 0
1 32768 4 lo0


ifconfig -A


after doing ifconfig umb0 -apn down

umb0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
index 5 priority 0 llprio 3
roaming disabled registration not registered
state open cell-class none
SIM initialized PIN valid (3 attempts left)
subscriber-id 26201120 ICC-id 894902
device KRD 131 21/141  IMEI 358749040 firmware CXP 901 8700/1
*phone# ++49171000
status: down

relevant dmesg:
===

umodem0 at uhub4 port 6 configuration 1 interface 1 "TOSHIBA H5321 gw" rev
2.00/0.00 addr 4
umodem0: data interface 2, has CM over data, has break
umodem0: status change notification available
ucom0 at umodem0
umodem1 at uhub4 port 6 configuration 1 interface 3 "TOSHIBA H5321 gw" rev
2.00/0.00 addr 4
umodem1: data interface 4, has CM over data, has break
umodem1: status change notification available
ucom1 at umodem1
umb0 at uhub4 port 6 configuration 1 interface 6 "TOSHIBA H5321 gw" rev
2.00/0.00 addr 4
umodem2 at uhub4 port 6 configuration 1 interface 9 "TOSHIBA H5321 gw" rev
2.00/0.00 addr 4
umodem2: data interface 10, has CM over data, has break
umodem2: status change notification available
ucom2 at umodem2
ugen1 at uhub4 port 6 configuration 1 "TOSHIBA H5321 gw" rev 2.00/0.00 addr 4


From: owner-m...@openbsd.org [owner-m...@openbsd.org] on behalf of Stuart
Henderson [s...@spacehopper.org]
Sent: Friday, September 2, 2016 12:21 PM
To: misc@openbsd.org
Subject: Re: Mbim device umb0 - no authentification?

On 2016-09-01, Kapfhammer, Stefan <sk...@skapf.de> wrote:
> What I have to give‎, but still missing in the manpage
> is the username telekom, the password telekom
> and the authentication protocol pap.

That is for PPP and is only used for the connection to the dongle itself, it
is
not passed to the network. It should be irrelevant for use with umb(4).

> Is this work-in-progress and I missed some reading
> or what did I wrong? With Telekom DE no packets pass
> without authentication.

Did you add a default route pointing to the umb interface?

It would be useful to show 'ifconfig -A' and 'netstat -rn'.



Mbim device umb0 - no authentification?

2016-09-01 Thread Kapfhammer, Stefan
Hello misc,
hello developers,

‎first of all thank you for the stunning release
of OpenBSD 6.0.
Well, so much improvements. WOW!

I have a builtin UMTS card Ericsson H5321gw.
Until 5.9 I used pppd(1) together with chat(1)
to connect to my mobile provider. Devices
/dev/cuaU0 - /dev/cuaU2

To my surprise I could see today, that this
card is registered as MBIM device umb0.
I created a hostname.umb0 file in /etc
with:

apn internet.telekom
pin 

after 'ifconfig umb0 up'

the blue light at the frontpanel, indicating
UMTS connection, turned on.

'ifconfig umb0' showed up the correct apn,
‎the entered pin as valid, 2 provider given dns servers
as well as a remote and a local ip address.

What I have to give‎, but still missing in the manpage
is the username telekom, the password telekom
and the authentication protocol pap.

Is this work-in-progress and I missed some reading
or what did I wrong? With Telekom DE no packets pass
without authentication.

Have you any advice for me?

Freundliche Grüße / Regards
-stefan kapfhammer



Decisions to use OpenBSD only

2016-08-18 Thread Kapfhammer, Stefan
Good morning people at misc@,

now for a year I used Windows 7 Pro and OpenBSD 5.8/5.9
in a multiboot installation on my Ultrabook Toshiba Portege Z930-12C
very well. Mostly all components in the Portege are well supported
since longer time (was not 3 years ago, when I bought it :-(  )
MEI = Management Engine Interface? I believe no one needs ;)

After the anniversary update this month, I decided to get my
free copy of Windows 10 and use it also as a multiboot installation.
HORROR installation. Cleaned up sd0 with dc3dd, partitioned with
my beloved OpenBSD fdisk, Starting with giving windows 80, 100
120 GB disk space, nothing worked, would not install. Installed
Windows 10 alone and reading out the mbr table to adjust my
setup. No way. Partitioning with OpenBSD fdisk same way as
Windows did, Windows would not format nor install on the
partition I choose. So I have given up entirely on Windows 10.

The year I had the multiboot installation on Win7Pro and OpenBSD
I converted my workflow and files mostly over to LibreOffice,
GIMP and some others, which I used in parallel on both OS.

What I am missing a bit, is the BlackBerry and BlackBerry Enterprise Server
support (BES12), but my service provider offers a Outlook Web App
to have my PIM data on notebook and handheld.
What I will say, it is no pain for me.
(Even he opened access for me, that I can use standards to access
mail only and use my beloved MUA mutt :-)   )

Thank you to Microsoft to make it such a pain to use their latest OS
as dual boot installation. That made the decision for me very, very
easy to take the step to fully work only with OpenBSD.

And of course, thank you Theo and all the developers of the base
system and the ports tree to have that system grown up in a way
that is well supported, even on exotic machines. Having a secure,
reliable and performant system. Having programs like LibreOffice,
Firefox, VLC, GIMP, Postscript, PDF and many, many more.

Even printing with a Brother MFC-9140CDN over network or USB,
connected to my APU2 or directly with USB works

with ONLY the standard installation of lpd(8)
of the 4.3BSD Line printer spooler (Yay!)
No dependencies! Of course the Printer has an
integrated print server with 6 queues for txt, bin, ps, pcl ;)
Mostly using txt output from console or ps output from Firefox/Libreoffice.

And I am pretty sure, that even faxing out from the notebook over
the Brother machine, will work in the next few weeks, as I have time
to gather the required informations.

Thank you very much developers, maintainers, list and irc supporters
who spent time on supporting people to stay with OpenBSD, to motivate
people to read faq's, man pages and other documentations. To get
people ready to even help other people with particular problems.




Regards,
-stefan

dmesg v5.9 patchlevel #23 no customizations
* anonymized MAC addr / serials
** not configured (only 1)


OpenBSD 5.9-stable (GENERIC.MP) #0: Sun Aug  7 11:07:54 CEST 2016
s...@system23.sphinx.eska:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8445812736 (8054MB)
avail mem = 8185647104 (7806MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xcacff000 (42 entries)
bios0: vendor TOSHIBA version "Version 6.80" date 06/25/2013
bios0: TOSHIBA PORTEGE Z930
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! TCPA BOOT MSDM SLIC SSDT SSDT SSDT
SSDT DMAR FPDT
acpi0: wakeup devices LANC(S4) HDEF(S3) USBB(S4) RP02(S4) PXSX(S4) RP04(S4)
PXSX(S4) USBC(S4) EHC1(S4) EHC2(S4) XHC_(S4) PWRB(S4) LID_(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 1895.98 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A
ES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,AR
AT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 1895.69 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,A
ES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,SENSOR,AR
AT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-3667U CPU @ 2.00GHz, 1895.69 MHz
cpu2:

Re: athn0: device timeout with AR9271

2016-08-09 Thread Kapfhammer, Stefan
http://man.openbsd.org/usb.4

Go through all the manpages and look at "bugs",
mostly at the end of all manpages. I have no
recommen‎dation right now. Have no USB network
device‎. Good luck.

‎Wireless network interfaces
athn(4)
Atheros IEEE 802.11a/b/g/n wireless network device
atu(4)
Atmel AT76C50x IEEE 802.11b wireless network device
otus(4)
Atheros USB IEEE 802.11a/b/g/n wireless network device
rsu(4)
Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n wireless network device
rum(4)
Ralink Technology/MediaTek USB IEEE 802.11a/b/g wireless network device
run(4)
Ralink Technology/MediaTek USB IEEE 802.11a/b/g/n wireless network device
uath(4)
Atheros USB IEEE 802.11a/b/g wireless network device
upgt(4)
Conexant/Intersil PrismGT SoftMAC USB IEEE 802.11b/g wireless network device
ural(4)
Ralink Technology/MediaTek USB IEEE 802.11b/g wireless network device
urtw(4)
Realtek RTL8187L/RTL8187B USB IEEE 802.11b/g wireless network device
urtwn(4)
Realtek RTL8188CU/RTL8188EU/RTL8192CU USB IEEE 802.11b/g/n wireless network 
device
wi(4)
Intersil PRISM 2-3 IEEE 802.11b wireless network device
zyd(4)
ZyDAS ZD1211/ZD1211B USB IEEE 802.11b/g wireless network device


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: ML mail
Gesendet: Dienstag, 9. August 2016 10:13
An: Miscellaneous OBSD
Antwort an: ML mail
Betreff: Re: athn0: device timeout with AR9271


Uh oh, now it all makes sense with AP mode is not working propery with my
athn...

Can anyone recommend me a USB wireless adapter which does work as host AP on
OpenBSD?


On Monday, August 8, 2016 9:34 PM, "Kapfhammer, Stefan" <sk...@skapf.de>
wrote:



http://man.openbsd.org/OpenBSD-current/man4/athn.4

Last line "Bugs":

‎Host AP mode does not work with USB devices.

Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht

Von: ML mail
Gesendet: Montag, 25. Juli 2016 12:00
An: Miscellaneous OBSD
Antwort an: ML mail
Betreff: athn0: device timeout with AR9271


Hi,

I installed a USB Wifi card on my OpenBSD 5.8 firewall as AP and from time to
time there are timeouts which prevents any access to it anymore until I either
plug out and in the Wifi dongle again or reboot.

Here is the hardware details of that Wifi USB dongle:


athn0 at uhub1 port 4 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev
2.00/1.08 addr 4
athn0: AR9271 rev 1 (1T1R), ROM rev 13, address c4:e9:84:xx:xx:xx


There error is the following (many of these messages are repeated):


athn0: device timeout


My /etc/hostname.athn0 is the following:

inet 172.16.20.1 255.255.255.0
media autoselect
mediaopt hostap
mode 11b
chan 6
nwid 
wpakey 

So I was wondering what is going on here... Is my Wifi USB dongle crap? or am
I maybe doing something wrong?

Let me know if I should provide any other infos...


Regards
ML



Re: athn0: device timeout with AR9271

2016-08-08 Thread Kapfhammer, Stefan
http://man.openbsd.org/OpenBSD-current/man4/athn.4

Last line "Bugs":

‎Host AP mode does not work with USB devices.

Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: ML mail
Gesendet: Montag, 25. Juli 2016 12:00
An: Miscellaneous OBSD
Antwort an: ML mail
Betreff: athn0: device timeout with AR9271


Hi,

I installed a USB Wifi card on my OpenBSD 5.8 firewall as AP and from time to 
time there are timeouts which prevents any access to it anymore until I either 
plug out and in the Wifi dongle again or reboot.

Here is the hardware details of that Wifi USB dongle:


athn0 at uhub1 port 4 configuration 1 interface 0 "ATHEROS USB2.0 WLAN" rev 
2.00/1.08 addr 4
athn0: AR9271 rev 1 (1T1R), ROM rev 13, address c4:e9:84:xx:xx:xx


There error is the following (many of these messages are repeated):


athn0: device timeout


My /etc/hostname.athn0 is the following:

inet 172.16.20.1 255.255.255.0
media autoselect
mediaopt hostap
mode 11b
chan 6
nwid 
wpakey 

So I was wondering what is going on here... Is my Wifi USB dongle crap? or am I 
maybe doing something wrong?

Let me know if I should provide any other infos...


Regards
ML



Re: athn0: device timeout with AR9271

2016-07-26 Thread Kapfhammer, Stefan
Hi ML,

in which machine is the usb dongle plugged in?
Alix/Apu1/Apu2? Other?


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht
Von: ML mail
Gesendet: Dienstag, 26. Juli 2016 21:59
An: Adam Wolk; Miscellaneous OBSD
Antwort an: ML mail
Betreff: Re: athn0: device timeout with AR9271


Hi Adam,


I upgraded yesterday from 5.8 to 5.9 and already encountered this morning the
same issue. In the kernel log I get a ton of these messages:

athn0: firmware command 0x17 timed out
athn0: firmware command 0x18 timed out


Now what would be the next step? Should I upgrade to -CURRENT?

or is there any patches I can try from you?

Regards,
ML


On Tuesday, July 26, 2016 11:38 AM, Adam Wolk  wrote:



On Mon, Jul 25, 2016 at 01:31:13PM +0200, Stefan Sperling wrote:

> On Mon, Jul 25, 2016 at 09:57:38AM +, ML mail wrote:
> > Hi,
> >
> > I installed a USB Wifi card on my OpenBSD 5.8 firewall as AP and from time
to time there are timeouts which prevents any access to it anymore until I
either plug out and in the Wifi dongle again or reboot.
> >
>
> Please upgrade from 5.8 to 5.9 and then to -current. Last week, bugs
> in the wifi stack were fixed in -current which might affect this.
>

The issue might also be what I encountered with my athn0 usb dongle.
  https://marc.info/?l=openbsd-misc=144895556213390=2

I do plan on implementing the process context for this specific driver (even
started during pkgsrcon in the beginning of this month). Let me know if the
issue persists after upgrading, would be nice to have more than one person to
test the changes when I get around to finishing it up.

Regards,
Adam



Re: athn0: device timeout with AR9271

2016-07-26 Thread Kapfhammer, Stefan
Yeah,

But answer to list and Adam as well, sorry pressed wrong button on my
BlackBerry.


Freundliche Grüße / Regards
-stefan kapfhammer
  Originalnachricht  
Von: ML mail
Gesendet: Dienstag, 26. Juli 2016 22:34
An: Kapfhammer, Stefan
Antwort an: ML mail
Betreff: Re: AW: athn0: device timeout with AR9271

Thanks for the tip regarding the BIOS. The machine was bought autumn 2015 so I
will check with the hardware vendor see if he has a newer firmware for this
BIOS and get back to you.


On Tuesday, July 26, 2016 10:28 PM, "Kapfhammer, Stefan" <sk...@skapf.de>
wrote:

Have latest bis firmware upgrade?
That was the issue on apu2.
After upgrading workes like a charm.


Freundliche Grüße / Regards
-stefan kapfhammer
Originalnachricht

Von: ML mail
Gesendet: Dienstag, 26. Juli 2016 22:26
An: Kapfhammer, Stefan; Adam Wolk; Miscellaneous OBSD
Antwort an: ML mail
Betreff: Re: AW: athn0: device timeout with AR9271


Hi Stefan,

It's a Nexcom network application NSA 1150, you will find the exact specs
here:


http://www.nexcom.com/Products/network-and-communication-solutions/entry-leve
l-appliance/entry-level-appliance/network-communication-nsa-1150

Regards,
ML



On Tuesday, July 26, 2016 10:05 PM, "Kapfhammer, Stefan" <sk...@skapf.de>
wrote:
Hi ML,

in which machine is the usb dongle plugged in?
Alix/Apu1/Apu2? Other?


Freundliche Grüße / Regards
-stefan kapfhammer
Originalnachricht

Von: ML mail
Gesendet: Dienstag, 26. Juli 2016 21:59
An: Adam Wolk; Miscellaneous OBSD
Antwort an: ML mail
Betreff: Re: athn0: device timeout with AR9271


Hi Adam,


I upgraded yesterday from 5.8 to 5.9 and already encountered this morning the
same issue. In the kernel log I get a ton of these messages:

athn0: firmware command 0x17 timed out
athn0: firmware command 0x18 timed out


Now what would be the next step? Should I upgrade to -CURRENT?

or is there any patches I can try from you?

Regards,
ML


On Tuesday, July 26, 2016 11:38 AM, Adam Wolk <adam.w...@tintagel.pl> wrote:



On Mon, Jul 25, 2016 at 01:31:13PM +0200, Stefan Sperling wrote:

> On Mon, Jul 25, 2016 at 09:57:38AM +, ML mail wrote:
> > Hi,
> >
> > I installed a USB Wifi card on my OpenBSD 5.8 firewall as AP and from time
to time there are timeouts which prevents any access to it anymore until I
either plug out and in the Wifi dongle again or reboot.
> >
>
> Please upgrade from 5.8 to 5.9 and then to -current. Last week, bugs
> in the wifi stack were fixed in -current which might affect this.
>

The issue might also be what I encountered with my athn0 usb dongle.
https://marc.info/?l=openbsd-misc=144895556213390=2

I do plan on implementing the process context for this specific driver (even
started during pkgsrcon in the beginning of this month). Let me know if the
issue persists after upgrading, would be nice to have more than one person to
test the changes when I get around to finishing it up.

Regards,
Adam



Re: form printer

2016-05-31 Thread Kapfhammer, Stefan
‎Hello Edgar,

I would recommend OKI dot matrix printers.
They have 9- and 24-dot printers. They are
well supported with lpd. OKI has also every
part on stock in case of repair.
The rippon cartridges are cheap and last
for up to 2 million chars.

Regards,
-stefan

Gesendet von meinem BlackBerry 10-Smartphone.
  Originalnachricht
Von: li...@wrant.com
Gesendet: Dienstag, 31. Mai 2016 10:12
An: misc@openbsd.org
Cc: ed...@pettijohn-web.com
Betreff: Re: form printer


Mon, 30 May 2016 18:23:03 -0500 Edgar Pettijohn 
> I am looking for a form printer.  (The kind that take the paper with
> the holes on the side.)

Tractor-feed continuous form paper
[https://en.wikipedia.org/wiki/Continuous_stationery]

> New ones are a little on the pricey side, so if anyone can share
> their experience with a make/model that works with little fuss.

Dot matrix (impact printer)
[https://en.wikipedia.org/wiki/Dot_matrix_printing#Contemporary_use]

The price is higher compared to speculatively inexpensive ink printers,
for recurring consumables (ink) act as subsidy to the acquisition cost.

Now narrower application (industry) reduced demand, lowered production
numbers and respectively raised production cost per unit of dot matrix
printers compared to seemingly cheaper actually expensive ink printers.

Ribbon cartridges remain the cheapest consumable, dot matrix printers
still offer lowest printing cost comparable only with laser printers.

> Preferably with lpd, but I'm not completely opposed to using cupsd.
> Any suggestions are greatly appreciated.

Important decision is the computer interface, here parallel port.
[https://en.wikipedia.org/wiki/IEEE_1284]

Compare parallel (legacy) and USB (contemporary) device bandwidths.
[https://en.wikipedia.org/wiki/List_of_device_bandwidths#Peripheral]

A list of other printing processes, very interesting.
[https://en.wikipedia.org/wiki/Category:Non-impact_printing]

Laser printing is the document printing technology today.
[https://en.wikipedia.org/wiki/Laser_printing]

Some variants exist to make ink printing less of a problem.
[https://en.wikipedia.org/wiki/Continuous_ink_system]

Both laser and ink printers have various artificially introduced
software support problems & were listed here for comparison only.

You did not include specific details, so the info is just as general.
The synopsis is dot matrix printers are cheap, reliable and just work.

lpd - line printer spooler daemon
[http://man.openbsd.org/lpd]

My suggestion would be to look for the consumable availability nearby.

> Thanks,
> Edgar



Re: form printer

2016-05-31 Thread Kapfhammer, Stefan
Sorry forgot to mention:
www.oki.com

Models: OKI ML-380/ML-381/ML-390/ML-391

-stefan

Gesendet von meinem BlackBerry 10-Smartphone.
  Originalnachricht  
Von: Kapfhammer, Stefan
Gesendet: Dienstag, 31. Mai 2016 10:49
An: li...@wrant.com; misc@openbsd.org
Cc: ed...@pettijohn-web.com
Betreff: AW: form printer

‎Hello Edgar,

I would recommend OKI dot matrix printers.
They have 9- and 24-dot printers. They are
well supported with lpd. OKI has also every
part on stock in case of repair.
The rippon cartridges are cheap and last
for up to 2 million chars.

Regards,
-stefan

Gesendet von meinem BlackBerry 10-Smartphone.
Originalnachricht
Von: li...@wrant.com
Gesendet: Dienstag, 31. Mai 2016 10:12
An: misc@openbsd.org
Cc: ed...@pettijohn-web.com
Betreff: Re: form printer


Mon, 30 May 2016 18:23:03 -0500 Edgar Pettijohn <ed...@pettijohn-web.com>
> I am looking for a form printer. (The kind that take the paper with
> the holes on the side.)

Tractor-feed continuous form paper
[https://en.wikipedia.org/wiki/Continuous_stationery]

> New ones are a little on the pricey side, so if anyone can share
> their experience with a make/model that works with little fuss.

Dot matrix (impact printer)
[https://en.wikipedia.org/wiki/Dot_matrix_printing#Contemporary_use]

The price is higher compared to speculatively inexpensive ink printers,
for recurring consumables (ink) act as subsidy to the acquisition cost.

Now narrower application (industry) reduced demand, lowered production
numbers and respectively raised production cost per unit of dot matrix
printers compared to seemingly cheaper actually expensive ink printers.

Ribbon cartridges remain the cheapest consumable, dot matrix printers
still offer lowest printing cost comparable only with laser printers.

> Preferably with lpd, but I'm not completely opposed to using cupsd.
> Any suggestions are greatly appreciated.

Important decision is the computer interface, here parallel port.
[https://en.wikipedia.org/wiki/IEEE_1284]

Compare parallel (legacy) and USB (contemporary) device bandwidths.
[https://en.wikipedia.org/wiki/List_of_device_bandwidths#Peripheral]

A list of other printing processes, very interesting.
[https://en.wikipedia.org/wiki/Category:Non-impact_printing]

Laser printing is the document printing technology today.
[https://en.wikipedia.org/wiki/Laser_printing]

Some variants exist to make ink printing less of a problem.
[https://en.wikipedia.org/wiki/Continuous_ink_system]

Both laser and ink printers have various artificially introduced
software support problems & were listed here for comparison only.

You did not include specific details, so the info is just as general.
The synopsis is dot matrix printers are cheap, reliable and just work.

lpd - line printer spooler daemon
[http://man.openbsd.org/lpd]

My suggestion would be to look for the consumable availability nearby.

> Thanks,
> Edgar



Re: Unable to boot on APU2C4

2016-04-22 Thread Kapfhammer, Stefan
Hello Bryan, hello Christer,

what I forgot to mention:
During installation process you are asked wheather you
want the default console to be set to 'com0'.
Let it stand at 'com0' (or answer 'yes'?!)

In case you misconfigured your network, you will still
be able to access your APU2 via serial console, without
typing the commands for 'stty' and 'set' manually.
Sometimes after a long time from install on, they
are simply forgotten ...

Regards,
Stefan


-Ursprüngliche Nachricht-
Von: Bryan C. Everly [mailto:br...@bceassociates.com]
Gesendet: Freitag, 22. April 2016 14:42
An: Christer Solskogen <christer.solsko...@gmail.com>
Cc: Kapfhammer, Stefan <sk...@skapf.de>; misc <misc@openbsd.org>
Betreff: Re: Unable to boot on APU2C4

Thank you so much. Worked perfectly.

Thanks,
Bryan


On Thu, Apr 21, 2016 at 4:40 PM, Christer Solskogen
<christer.solsko...@gmail.com> wrote:
> On Thu, Apr 21, 2016 at 9:23 PM, Kapfhammer, Stefan <sk...@skapf.de> wrote:
>> You have to type at boot prompt:
>> stty com0 115200
>> set tty com0
>> boot /bsd.rd
>>
>
> Aha, much better.
> Thanks!

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: Unable to boot on APU2C4

2016-04-21 Thread Kapfhammer, Stefan
You have to type at boot prompt:
stty com0 115200
set tty com0
boot /bsd.rd

Using a nullmodem cable with crossed pins
would also be recommended :)

Regards,
Stefan
  Originalnachricht
Von: Christer Solskogen
Gesendet: Donnerstag, 21. April 2016 21:12
An: misc
Betreff: Unable to boot on APU2C4


Hi!

I've gotten my finger on a APU2C4, but I'm not able to install nor
even start OpenBSD on it. I've tried both USB and iPXE and all I ever
get is this:

Booting from Hard Disk...
Booting from :7c00
Using drive 0, partition 3.
Loading.
probing: pc0 com0 com1 mem[638K 3582M 496M a20=on]
disk: hd0+
>> OpenBSD/amd64 BOOT 3.30
boot>
cannot open hd0a:/etc/random.seed: No such file or directory
booting hd0a:/bsd: 3339844+1409808+2413568+0+585728=0x766238
entry point at 0x1001000 [7205c766, 3404, 24448b12, 8680a304]

Then it stops for a couple of seconds before it reboots like this:
PCEngines apu2
coreboot build 20160311
...

I do not have a mSATA drive in it, yet. But that should not have
anything to do with it, should it?

--
chs



Re: BlackBerry Classic to use OpenBSD

2016-03-02 Thread Kapfhammer, Stefan
Hello Karel,

seems for that issue there is a community project
at foundry27@QNX. Will investigate...
So far, thanks for the useful advise, Karel. :-)

Regards,
Stefan
___
From: Karel Gardas [gard...@gmail.com]
Sent: Wednesday, March 2, 2016 12:11 PM
To: Kapfhammer, Stefan
Cc: OpenBSD general usage list
Subject: Re: BlackBerry Classic to use OpenBSD

On Wed, Mar 2, 2016 at 11:51 AM, Kapfhammer, Stefan <sk...@skapf.de> wrote:
> Hello Karel,
>
> interesting aspect, how to go about it.
> The challenge would be, on how to root the
> device to move OpenBSD to it.

There is no chance to do that, that's the reason I've suggested
running OpenBSD inside Qemu on top of BB OS. You don't need to root it
then, just install Qemu user application. The tricky part may start
once you start with networking/tunnelling, but there is still a long
way to it.

> BB OS has
> something like VNC, but only client, not server.
> We have also a shell ;) http://imgur.com/RoG1Ukg

Qemu provides VNC server so with BB OS VNC client you may try to connect it.



Re: BlackBerry Classic to use OpenBSD

2016-03-02 Thread Kapfhammer, Stefan
Hello Karel,

interesting aspect, how to go about it.
The challenge would be, on how to root the
device to move OpenBSD to it. BB OS has
something like VNC, but only client, not server.
We have also a shell ;) http://imgur.com/RoG1Ukg

I agree, that it's one of the best end secure
smartphone OS with less to no viruses, malware
and trojans. The iOS and android fraction will
see what they will get by time ;)

Regards,
Stefan


From: Karel Gardas [gard...@gmail.com]
Sent: Wednesday, March 2, 2016 11:27 AM
To: Kapfhammer, Stefan
Cc: OpenBSD general usage list
Subject: Re: BlackBerry Classic to use OpenBSD

Sweet! I would recommend to port Qemu to QNX first, then add some UI
for BlackBerry to be at least able to start the Qemu. Also you will
probably need some kind of VNC for QNX/BB OS. Once you do have all
this on the phone you may try to install OpenBSD into Qemu. i guess
i386 or amd64 system support should work fine. I've also tested
OpenBSD insidde Qemu running sparc64 emulation and this was also
working fine. I'm not sure about PPC nor ARM, have not tested that. I
guess installing VM on your PC and then moving to phone should work
fine...

Good luck! QNX/BB OS is fine, pity that market is going against it
with Android/IOS duopoly...

On Tue, Mar 1, 2016 at 11:49 PM, Kapfhammer, Stefan  wrote:
> Hi list,
>
> I've 2 BlackBerry Classic (SQC100-1) here and want
> to try running OpenBSD on one of it. Is there a known way
> to get it on the device‎ (not an easy task I believe).
>
> Hints are welcome,
> regards,
> Stefan



Re: BlackBerry Classic to use OpenBSD

2016-03-02 Thread Kapfhammer, Stefan
Hello bofh,

1. ok, but it's my time, right?
2. Secure platform / BlackBerry good SP's
3. Doesn't matter

Regards,
Stefan

From: owner-m...@openbsd.org [owner-m...@openbsd.org] on behalf of bofh
Sent: Wednesday, March 2, 2016 4:11 AM
To: OpenBSD general usage list
Subject: Re: BlackBerry Classic to use OpenBSD

Things like this is just a freaking waste of time.  Why would you even
consider it?  How long have you been using OpenBSD that you would think
this is a good idea?



Re: BlackBerry Classic to use OpenBSD

2016-03-02 Thread Kapfhammer, Stefan
Hello Nick,

thank you for your explanation. If it's not for that architecture,
it's almost done for me.

Joke was nice ;)

Regards,
Stefan

From: owner-m...@openbsd.org [owner-m...@openbsd.org] on behalf of Nick
Holland
Sent: Wednesday, March 2, 2016 3:46 AM
To: misc@openbsd.org
Subject: Re: BlackBerry Classic to use OpenBSD

On 03/01/16 17:49, Kapfhammer, Stefan wrote:
> Hi list,
>
> I've 2 BlackBerry Classic (SQC100-1) here and want
> to try running OpenBSD on one of it. Is there a known way
> to get it on the device (not an easy task I believe).
>
> Hints are welcome,

Place smart phone on table.
Place laptop running OpenBSD on top of phone.
done.

But otherwise, no...there's no port of OpenBSD to this or any other
phone-like device at the moment...and considering the effort involved in
porting to undocumented hardware and the life expectancy of the platform
(both in new availability and life span once the embedded batteries
die), I'd be surprised if anyone was jumping for joy over the idea of
spending time on it.

Feel free to prove me wrong.

Nick.



BlackBerry Classic to use OpenBSD

2016-03-01 Thread Kapfhammer, Stefan
Hi list,

I've 2 BlackBerry Classic (SQC100-1) here and want
to try running OpenBSD on one of it. Is there a known way
to get it on the device‎ (not an easy task I believe).

Hints are welcome,
regards,
Stefan



Re: [SOLVED] with pain / was: APU2 WLE200NX ATHN0: Device timeout

2016-01-31 Thread Kapfhammer, Stefan
Hello Mathias,

on -stable it runs fine and I've no reboot issues.

Regards,

Stefan
  Originalnachricht
Von: Mathias Schmocker
Gesendet: Sonntag, 31. Januar 2016 16:56
Cc: Kapfhammer, Stefan
Betreff: Re: [SOLVED] with pain / was: APU2 WLE200NX ATHN0: Device timeout


Le 28.01.16 23:12, Stuart Henderson a écrit :
> On 2016-01-27, Kapfhammer, Stefan <sk...@skapf.de> wrote:
>> thanks for all the hints with the WiFi problem on an
>> (beta testing) APU2b4 with a Compex WLE200NX
>> wireless mini PCIE card.
> [..]
>>
>> At the time I bought the board, the mSATA SSD, WiFi card, pigtails and
>> dual antennas‎, PCengines had the information that I want to
>> run OpenBSD on it. But no word, that at this time, the combination won't
>> work.
>
> If it was expected to work fully, it wouldn't be called "beta testing"..
>

Hi Stefan,

After flashing my APU2 with the last BIOS from PC Engines
SeaBIOS (version rel-1.8.0-190-gc029eab-20160115_121336-wim-ws)
BUILD: gcc:  binutils: (GNU Binutils) 2.23.2
<...>
Serial Graphics Adapter 08/22/15
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $
(wiv@coreboot-Virtual-Machine) Sat Aug 22 09:25:30 UTC 2015

I still experienced hangup on reboot after rebuilding 5.9-beta amd64 ...
So a switch has to be manually flipped for restarting the box after /bsd
upgrade.

Do you have the same ?

Mathias

BTW
https://github.com/jasperla/openbsd-wip/tree/master/sysutils/flashrom
with the internal programmer, single-user on the serial console "just
works" on my APU2 ;)



[SOLVED] with pain / was: APU2 WLE200NX ATHN0: Device timeout

2016-01-27 Thread Kapfhammer, Stefan
Hello misc,

thanks for all the hints with the WiFi problem on an
(beta testing) APU2b4 with a Compex WLE200NX
wireless mini PCIE card.

‎I spent 10th of hours in checking hardware,
configuration, reinstallation of snapshots‎, ...

Finally it works, I had nearly given up in that issue.

Yesterday I got mail from PCengines, announcing
a new BIOS for the APU2‎.


apu2_160120.zip:
 fix miniPCIe IRQ assignments, wle200nx working.
Please 
seehttp://pcengines.ch/howto.php#bios‎

At the time I bought the board, the mSATA SSD, WiFi card, pigtails and dual 
antennas‎, PCengines had the information
that I want to run OpenBSD on it. But no word, that
at this time, the combination won't work.

Now it works like a charm. :-)

Regards,

Stefan



Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout

2016-01-02 Thread Kapfhammer, Stefan
Hello,

first of all I want to wish everyone on the list a happy new year and best
wishes.

I have now checked hardware: card has contact and ground, removed sma
cabling,
checked for defective contacts on sma and antennas. Everything seems ok.

Installed fresh 5.9-current (2015-12-28)
Installed cat6 network cable from homerouter to APU2 at em0
Left network config off

10.3.12.45 homerouter as default gw and nameserver
10.3.12.70 APU2 em0 fixed IP
10.10.10.1 APU2 athn0 wifi hostap IP

Did

echo "pf=\"NO\"" > /etc/rc.conf.local
pfctl -d
ifconfig em0 inet 10.3.12.70 netmask 255.255.255.0 up
route add default 10.3.12.45
echo nameserver 10.3.12.45 > /etc/resolv.conf

ping 10.3.12.45 works
traceroute google.de works

Did

ifconfig athn0 inet 10.10.10.1 netmask 255.255.255.0 \
media autoselect mediaopt hostap nwid APU2TestNet \
wpakey my-Socks!are-GREY chan 1 up

Result:

athn0: Device timeout

ifconfig athn0 switches between chan 1 (status: active) and chan 36 (status:
no network)

ifconfig athn0 debug shows

athn0: creating ibss
athn0: synchronized with 04:f0:21:14:ca:c0 ssid "APU2TestNet" channel 1
start 1Mb short preamble long slot time

Is the card, sma cabling or the antennas defect? Driver problem?
Anyone else with this problem?

Friendly regards,

Stefan




-Ursprüngliche Nachricht-
Von: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] Im Auftrag von
Kapfhammer, Stefan
Gesendet: Mittwoch, 30. Dezember 2015 21:22
An: Mihai Popescu <mih...@gmail.com>; misc@openbsd.org
Betreff: Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout

Hello Mihai,

I installed the current snapshot 2015-12-28 and the corresponding
athn-firmware for 5.9 Here is the output from dmesg and the debug output
from 'ifconfig athn0 debug'
'ifconfig athn0 scan' got result 'none' but I am connected with my
BlackBerry Classic and my notebook (Toshiba Portege Z930-12J). The scan with
my NB shows 7 active AP's.
I got the same error 'athn0: Device timeout' with -current.

Here are the outputs.

Friendly regards, Stefan


--dmesg--

OpenBSD 5.9-beta (GENERIC.MP) #1783: Sun Dec 27 17:08:42 MST 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4261076992 (4063MB)
avail mem = 4127813632 (3936MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
bios0: vendor coreboot version "APU2A_20150928-13-gdfdf4a2-dirty" date
11/06/2015
bios0: PC Engines apu2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4)
UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.25 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
S
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POP
C
NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AM
C
R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.14 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
S
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POP
C
NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AM
C
R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.14 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
S
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POP
C
NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AM
C
R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line
16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (applicatio

Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout

2015-12-30 Thread Kapfhammer, Stefan
Hello Mihai,

I installed the current snapshot 2015-12-28 and the corresponding
athn-firmware for 5.9
Here is the output from dmesg and the debug output from 'ifconfig athn0
debug'
'ifconfig athn0 scan' got result 'none' but I am connected with my BlackBerry
Classic
and my notebook (Toshiba Portege Z930-12J). The scan with my NB shows 7
active
AP's.
I got the same error 'athn0: Device timeout' with -current.

Here are the outputs.

Friendly regards, Stefan


--dmesg--

OpenBSD 5.9-beta (GENERIC.MP) #1783: Sun Dec 27 17:08:42 MST 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4261076992 (4063MB)
avail mem = 4127813632 (3936MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
bios0: vendor coreboot version "APU2A_20150928-13-gdfdf4a2-dirty" date
11/06/2015
bios0: PC Engines apu2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4)
UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.25 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC
NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMC
R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.14 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC
NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMC
R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.14 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC
NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMC
R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line
16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD GX-412TC SOC, 998.14 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPC
NT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMC
R8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line
16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 21, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec2, version 21, 32 pins
ioapic1: misconfigured as apic 0, remapped to apid 5
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PBR4)
acpiprt2 at acpi0: bus 2 (PBR5)
acpiprt3 at acpi0: bus 3 (PBR6)
acpiprt4 at acpi0: bus 4 (PBR7)
acpiprt5 at acpi0: bus -1 (PBR8)
acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpibtn0 at acpi0: PWRB
cpu0: 998 MHz: speeds: 1000 800 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Root Complex" rev 0x00
pchb1 at pci0 dev 2 function 0 "AMD AMD64 16h Host" rev 0x00
ppb0 at pci0 dev 2 function 1 "AMD AMD64 16h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
athn0 at pci1 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4 int 16

Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout

2015-12-30 Thread Kapfhammer, Stefan
Hello Chris,

thank you for giving deeper insights, how the driver works.
Would you give me some advise, in which order I have to
set the commands in hostname.athn0 for accessing an
access‎ point (AVM FritzBox 7490).
This is only for setup, testing and configuration.
Later on, this box will be connected to a VDSL2 bridge modem as an AP, NAS,
FW, IPsec VPN Srv and PS.

But first I have to check, that the OpenBSD works with all components‎ of the
APU2b4 system board and it's mounted cards.

Thank you in advance.

Friendly regards,

Stefan

  Originalnachricht
Von: Chris Cappuccio‎
Gesendet: Mittwoch, 30. Dezember 2015 00:54
An: Mihai Popescu‎
Cc: misc@openbsd.org
Betreff: Re: wle200nx WiFi card on apu2b4 - no link
‎

Mihai Popescu [mih...@gmail.com] wrote:
> > -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4
int 16
> > -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 
>
> AR9281 and AR9280 are two different chips as they are listed in the man
page.
> Why does your dmesg report 2 chips?

One is based on the PCI device ID, one is based on the internal card
identifier used by the driver. You'll have to examine the driver to
understand
what implication this has. The ath and athn drivers are both finicky and
require
specific combinations of settings, set in a particular order, to work
properly.



Re: wle200nx WiFi card on apu2b4 - athn0: Device timeout

2015-12-30 Thread Kapfhammer, Stefan
Hello Mihai,

thank you for the anwer. I will support of course the community and the
developers with logs and outputs, to improve the OS and the corresponding
drivers.
At the moment I'm in vacation and have only access to a minimal equipment.
(Notebook, APU, AP) Next week, things will go much easier, but I will try to
test in that spare time - I AM STILL ADDICTED TO OPENBSD 8-;)
and it's security concepts!

Friendly regards,

Stefan

  Originalnachricht
Von: Mihai Popescu
Gesendet: Mittwoch, 30. Dezember 2015 00:34
An: misc@openbsd.org
Betreff: Re: wle200nx WiFi card on apu2b4 - no link


> seems that I am not alone.

This can be changed. But you and other users need to provide some
information.

Try a snapshot install and simple commands like:

$ ifconfig athn0 scan (this scans for available WiFi networks)
$ ifconfig athn0 debug (enable debug mode)

Be sure your AP is accesible and fully functional, if you can provide
some info about AP, too. Test it with other client. If it is not a
standard one, check for not so common settings, forced modes, etc...



Re: wle200nx WiFi card on apu2b4 - no link

2015-12-29 Thread Kapfhammer, Stefan
Hello Mihai,

seems that I am not alone:

http://permalink.gmane.org/gmane.os.openbsd.misc/227232

Regards, Stefan


-Ursprüngliche Nachricht-
Von: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] Im Auftrag von
Mihai Popescu
Gesendet: Dienstag, 29. Dezember 2015 19:27
An: misc@openbsd.org
Betreff: Re: wle200nx WiFi card on apu2b4 - no link

> -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic 4 int
16
> -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 

AR9281 and AR9280 are two different chips as they are listed in the man page.
Why does your dmesg report 2 chips?

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: wle200nx WiFi card on apu2b4 - athn0: device timeout

2015-12-28 Thread Kapfhammer, Stefan
Hello Dániel,

thank you for your reply. I changed from PCIe slot 1 to PCie slot 2 - same
result.
got athn0: device timeout. (Sorry forgot the "n" in error msg in first post)
I tried also to set media with

- media autoselect
- media autoselect mode 11g
- media DS1 mode 11g

but won't work. I will give -current a try, but that's not the right way
for a production system.

Friendly regards,

Stefan

-Ursprüngliche Nachricht-
Von: LÉVAI Dániel [mailto:l...@ecentrum.hu]
Gesendet: Montag, 28. Dezember 2015 15:10
An: Kapfhammer, Stefan <sk...@skapf.de>
Cc: misc@openbsd.org
Betreff: Re: wle200nx WiFi card on apu2b4 - no link

Kapfhammer, Stefan @ 2015-12-27T22:44:09 +0100:
> Good evening,
>
> I cannot access hotspot with apu2b4's wle200nx wifi card.
>
> got ath0: device timeout
[...]

How come it's not athn? Is this the full and only error message?

>From athn(4):
athn0: device timeout  A frame dispatched to the hardware for
transmission did not complete in time.  The driver will reset the
hardware.  This should not happen.

Can you try the minipcie card in an other board, or switch minipcie slots?

[...]
> -> athn0 at pci4 dev 0 function 0 "Atheros AR9281" rev 0x01: apic
> -> 4 int 16
> -> athn0: AR9280 rev 2 (2T2R), ROM rev 22, address 
[...]
> # ifconfig
>
> athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr 
> priority: 4
> groups: wlan
> media: IEEE802.11 autoselect (OFDM6 mode 11a)
> status: no network
> ieee80211: nwid  chan 9 wpakey 0x
> wpaprotos
> wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher tkip
>
> # cat /etc/hostname.athn0
>
> nwid TESTNET
> wpakey 'Do!Not-deal+w1th-IT'
> dhcp

I'm using exactly the same minipcie card, in almost the same board (apu1d),
only with -current, and in hostap mode.

Just off the top of my head, you could try to set media to autoselect, and
make sure that you use the right mode:

# ifconfig athn0 media
[...]
supported media:
media autoselect
media autoselect mediaopt hostap
media autoselect mediaopt monitor
media autoselect mode 11a
media autoselect mode 11a mediaopt hostap
media autoselect mode 11a mediaopt monitor
media autoselect mode 11b
media autoselect mode 11b mediaopt hostap
media autoselect mode 11b mediaopt monitor
media autoselect mode 11g
media autoselect mode 11g mediaopt hostap
media autoselect mode 11g mediaopt monitor


The one and only problem with my WLE card was that I set the mode to 11g
before setting it to a 5GHz channel, and that combo does not exist, and I
could not set it back without a reboot. But other than that, it is
performing really well, set to 11a and 5GHz.


Daniel

--
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



wle200nx WiFi card on apu2b4 - no link

2015-12-27 Thread Kapfhammer, Stefan
Good evening,

I cannot access hotspot with apu2b4's wle200nx wifi card.

got ath0: device timeout

I am running on OpenBSD 5.8-release with no patches applied yet.

Do I have to update with patches or does the combination of apu2b4
and Compex wle200nx not work with 5.8-release?

Below the output from POST, dmesg, ifconfig and hostname.athn0

Did not find hints on the net with this combination of hw and os.

What to do next?

Regards,

Stefan


Mainboard PCEngines apu2 Enable.
APIC: 00 missing read_resources
APIC: 01 missing read_resources
APIC: 02 missing read_resources
APIC: 03 missing read_resources
SeaBIOS (version rel-1.8.0-190-gc029eab-20151109_141843-wim-ws)
BUILD: gcc:  binutils: (GNU Binutils) 2.23.2
SeaBIOS (version rel-1.8.0-190-gc029eab-20151109_141843-wim-ws)
BUILD: gcc:  binutils: (GNU Binutils) 2.23.2
Found coreboot cbmem console @ dffdf000
Found mainboard PC Engines PCEngines apu2
Relocating init from 0x000eb200 to 0xdff66110 (size 32352)
Found CBFS header at 0xfc50
multiboot: eax=0, ebx=0
boot order:
1: /pci@i0cf8/*@11/drive@0/disk@0
2: /pci@i0cf8/usb@10/usb-*@1
3: /pci@i0cf8/usb@10/usb-*@2
4: /pci@i0cf8/usb@10/usb-*@3
5: /pci@i0cf8/usb@10/usb-*@4
6: /pci@i0cf8/*@11/drive@1/disk@0
7: 
8: pxen0
9: scon1
10: 
Found 23 PCI devices (max PCI bus is 04)
Copying SMBIOS entry point from 0xdffb7000 to 0x000f3040
Copying ACPI RSDP from 0xdffb8000 to 0x000f3010
Copying MPTABLE from 0xdffdc000/dffdc010 to 0x000f2e60
Copying PIR from 0xdffdd000 to 0x000f2e30
Using pmtimer, ioport 0x818
Scan for VGA option rom
Running option rom at c000:0003

Google, Inc.
Serial Graphics Adapter 08/22/15
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $
(wiv@coreboot-Virtual-Machine) Sat Aug 22 09:25:30 UTC 2015
Term: 80x43
IO 4 0
Turning on vga text mode console

SeaBIOS (version rel-1.8.0-190-gc029eab-20151109_141843-wim-ws)

XHCI init on dev 00:10.0: regs @ 0xfeb22000, 4 ports, 32 slots, 32 byte
contexts
XHCIextcap 0x1 @ feb22500
XHCIprotocol USB  3.00, 2 ports (offset 1), def 0
XHCIprotocol USB  2.00, 2 ports (offset 3), def 10
XHCIextcap 0xa @ feb22540
Found 2 serial ports
ATA controller 1 at 4010/4020/0 (irq 0 dev 88)
EHCI init on dev 00:13.0 (regs=0xfeb25420)
ATA controller 2 at 4018/4024/0 (irq 0 dev 88)
Searching bootorder for: /pci@i0cf8/*@14,7
Searching bootorder for: /rom@img/memtest
Searching bootorder for: /rom@img/setup
ata0-0: SATA SSD ATA-10 Hard-Disk (15272 MiBytes)
Searching bootorder for: /pci@i0cf8/*@11/drive@0/disk@0
XHCI no devices found
Initialized USB HUB (0 ports used)
All threads complete.
Scan for option roms

PCengines Press F10 key now for boot menu:

Searching bootorder for: HALT
drive 0x000f2dc0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63
s=31277232
Space available for UMB: c1000-ef000, f-f2dc0
Returned 262144 bytes of ZoneHigh
e820 map has 7 items:
  0:  - 0009f800 = 1 RAM
  1: 0009f800 - 000a = 2 RESERVED
  2: 000f - 0010 = 2 RESERVED
  3: 0010 - dffae000 = 1 RAM
  4: dffae000 - e000 = 2 RESERVED
  5: f800 - fc00 = 2 RESERVED
  6: 0001 - 00011f00 = 1 RAM
enter handle_19:
  NULL

Booting from Hard Disk...
Booting from :7c00
Using drive 0, partition 3.
Loading.
probing: pc0 com0 com1 mem[638K 3582M 496M a20=on] 
disk: hd0+
>> OpenBSD/amd64 BOOT 3.28
switching console to com0
>> OpenBSD/amd64 BOOT 3.28
boot> 
booting hd0a:/bsd: 
entry point at 0x1000160 [7205c766, 3404, 24448b12, 4060a304]
[ using 938176 bytes of bsd ELF symbol table ]
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.8 (GENERIC.MP) #1236: Sun Aug 16 02:31:04 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4261076992 (4063MB)
avail mem = 4128043008 (3936MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
bios0: vendor coreboot version "APU2A_20150928-13-gdfdf4a2-dirty" date
11/06/2015
bios0: PC Engines apu2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4)
UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.25 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,PO
PCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,
AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 

APU2: no boot from internal mSATA storage

2015-12-23 Thread Kapfhammer, Stefan
Hello,

recently I got it and installed OpenBSD 5.8 on an APU-2 to the internal
mSATA SSD (16 GByte).
After rebooting the system it's running into memtest instead of booting the
internal sd0.
When I boot from the USB storage, I can mount the mSATA storage and see,
that the installation
is IMHO correct. Also /etc/boot.conf (on sd0) contains the correct
redirection to com0 with 115200 baud.

At boot time I changed the boot order to mSATA in first line and saved with
"E"

Won't boot from sd0.

Have I overseen something important?

Friendly regards,

Stefan

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: APU2: no boot from internal mSATA storage

2015-12-23 Thread Kapfhammer, Stefan
Hello Brian,

thanks. That does the stuff :-)

Stefan

Von: Brian Conway [mailto:bcon...@rcesoftware.com]
Gesendet: Mittwoch, 23. Dezember 2015 21:17
An: Kapfhammer, Stefan <sk...@skapf.de>
Cc: misc@openbsd.org
Betreff: Re: APU2: no boot from internal mSATA storage

Bios and APU2 flashing tools here (3rd post):

http://www.pcengines.info/forums/?page=post=44BEA6F6-FC84-4F4B-BCE8-34A00764910B=DF5ACB70-99C4-4C61-AFA6-4C0E0DB05B2A

Brian Conway

On Wed, Dec 23, 2015 at 2:01 PM, Kapfhammer, Stefan <sk...@skapf.de> wrote:
> Hello Brian,
>
> thank you for your quick reply. Do you have an URL, where the beta
> bios are available?
> No one in the office right now :-( and tomorrow I don't believe they are, 
> too.
>
> Friendly regards,
>
> Stefan
>
>
>
> You probably need to contact the folks at PC Engines for a newer beta bios.
> I've seen rel-1.8.0-143, -181, and -190, and I recall at least one of
> them included updated boot support. There may be newer available as well.

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: APU2: no boot from internal mSATA storage

2015-12-23 Thread Kapfhammer, Stefan
Hello Brian,

thank you for your quick reply. Do you have an URL, where the beta bios are 
available?
No one in the office right now :-( and tomorrow I don't believe they are, too.

Friendly regards,

Stefan



You probably need to contact the folks at PC Engines for a newer beta bios. 
I've seen rel-1.8.0-143, -181, and -190, and I recall at least one of them 
included updated boot support. There may be newer available as well.

Brian Conway

On Wed, Dec 23, 2015 at 12:32 PM, Kapfhammer, Stefan <sk...@skapf.de> wrote:
> Hello,
>
> recently I got it and installed OpenBSD 5.8 on an APU-2 to the
> internal mSATA SSD (16 GByte).
> After rebooting the system it's running into memtest instead of
> booting the internal sd0.
> When I boot from the USB storage, I can mount the mSATA storage and
> see, that the installation is IMHO correct. Also /etc/boot.conf (on
> sd0) contains the correct redirection to com0 with 115200 baud.
>
> At boot time I changed the boot order to mSATA in first line and saved
> with "E"
>
> Won't boot from sd0.
>
> Have I overseen something important?

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: APU-2: Changing Installer Image

2015-12-23 Thread Kapfhammer, Stefan
Thank you Chris, that worked for me.

Wish all a merry christmas.

Stefan

  Originalnachricht
Von: Chris Cappuccio
Gesendet: Dienstag, 22. Dezember 2015 19:53
An: Kapfhammer, Stefan
Cc: openbsd-misc
Betreff: Re: APU-2: Changing Installer Image


Kapfhammer, Stefan [sk...@skapf.de] wrote:
> Hello,
>
> I want to install OpenBSD 5.8 on an APU-2 board with a mSATA SSD installed.
>
> I have to redirect the output to serial console with a change in
/etc/boot.conf (2 lines)
>
> How do I write the change to a USB-Stick, so that the installer boots from
the APU? Or is there a better way to install the APU?
>

You'll have to edit /etc/boot.conf on the USB stick:

stty com0 115200
set tty com0



APU-2: Changing Installer Image

2015-12-22 Thread Kapfhammer, Stefan
Hello,

I want to install OpenBSD 5.8 on an APU-2 board with a mSATA SSD installed.

I have to redirect the output to serial console with a change in /etc/boot.conf 
(2 lines)

How do I write the change to a USB-Stick, so that the installer boots from the 
APU? Or is there a better way to install the APU?

Friendly regards,

Stefan