Re: cpu cores

2024-06-10 Thread Riccardo Mottola

Hi,

Kirill A. Korinsky wrote:

Thus, here old but interesting results that enabling hyperthreading has
negative effect on performance of have CPU used applications:
https://web.archive.org/web/20220325090914/http://users.telenet.be/nicvroom/performanceP4.htm


there are many different experiences on Threading - HT. I started 
checking when it was disabled on my i5 and then I re-enabled it on OpenBSD.

Same fate on NetBSD.

I can say that for compiling bit packages where you can run senveral 
make jobs - as long as you have enough memory "per core", HT gives a 
great benefit.
It gives also benefit if you compile say "n-1" threads and want to use 
your system as a desktop and it gives also definitive benefit in an 
average desktop where you want to browse, have a couple tabs open, check 
mail and run a terminal. This is more subjective, while diminishing 
compilation times are real.


This is for workstation use, mixed user and developer. To each its own. 
I bet it ends depending also on cache, memory and specific jobs.


I also read of cases where performance is abysmal and worse with more HT.
And there are all the known security issues too.

Riccardo



Re: cpu cores

2024-06-10 Thread Riccardo Mottola

Hi Stuartd,

Stuart Henderson wrote:

Exactly. dmesg | grep smt will make it obvious. The cache information
for each attached cpu will probably also show differences between the
P and E cores.


Spec of the CPU listed in dmesg

https://ark.intel.com/content/www/us/en/ark/products/226269/intel-core-i3-1215u-processor-10m-cache-up-to-4-40-ghz-with-ipu.html?countrylabel=Latin


It is given as 6 core cpu, 8 threads.

Riccardo



Re: ATB.com

2024-05-07 Thread Riccardo Mottola

Hi Austin,

I feel your pain.
The world things Chrome, or at least Blink, is the only Browser. It is 
the new IE!!!



Austin Hook wrote:

In the past 6 months is has gotten more and more difficult to sign-on
to with Firefox and OpenBSD, as they have tried to make their sites more
and more bullet proof.

Now, starting from atb.com it's hard to even get to where one signs into
personal banking, and to where it requests a username and password.

It seems to go through an amazing number of redirects, and then gets hung
up in the process.  Sometimes, tapping different cadences with lots of
control-R or control-F5 sequences, I can get through.  It must be a matter
of timing.

I guess it works better with other operating systems and/or browsers.  In
fact I do have much better luck with Chromium + OpenBSD although not
always.


try using as dns 1.1.1.1
try using Firefox on Windows and compare results.
try the same site using Chrome on OpenBSD.

Maybe they hate Firefox...


I'd prefer to use Firefox, so long as it exists semi-independently of
monsters like Google.
I too... even if I don't like where Firefox is going with their UI and 
rustc choices... I feel it is still better than Chromium, where the long 
arm of data-sucking of Google is so strong.


Riccardo



Re: >10W idle power usage on framework laptop 12th gen 13inch

2024-04-30 Thread Riccardo Mottola

Hi Nathaniel,


Nathaniel Griswold wrote:


I meant to clarify: I have had the battery for over a year and I’m not 
sure why the cycles reset to 5. I am puzzled by it.


is it an genuine (really in strict sense of the term) brand battery or a 
compatible replacement (even if they call it "genuine", always puzzles me).
Since I keep alive a lot of vintage laptops and am the author of 
GNUstep's BatteryMonitor I share the experience that non-original 
battery can have their controllers do the wildest things. Usually 
sourced from China they have compatible controllers (well, I can imagine 
producing hundreds of different models, they must have compatible 
emulating chips).


I have seen incorrect cycle count. Sometimes I think they just miss to 
calculate partial cycles... so if you never do full cycles, the battery 
appears new. Otherwise it is just buggy or explainable for me.


Some batteries skimp on the design vs. last capacity too. Most often I 
have seen them to be about the same value forever. Or a too high design 
value is tricked and if you open the cell it is not corresponding.


Riccardo



Re: Default Revival of a ten years old computer : how would you do it?

2023-11-07 Thread Riccardo Mottola

Hi,

h...@mailo.com wrote:

i have tested "recent" openbsd releases, since 2022, and almost all of them are 
a bit slow with xfce/firefox etc.

i was wondering, for laptops range of 2013/16 years old, what would you 
recommmend them for a common web browsing using openbsd?


I like to run BSD and Linux on a variety of older hardware, so I have 
some experience here.
First, OpenBSD is nice, but essentially, given "the same userland", that 
is the same X11, same desktop setup, same browser will be reasonably 
similar in performance to NetBSD or a good linux. Do not expect some 
"magic speed" in average user. What helps, usually is that you have a 
clean setup and install selectively what you need. So, usually, I have a 
a very clean system on NetBSD and OpenBSD, while perhaps on e.g. Debian 
you start with a big "gnome desktop setup" and then customized later, 
but removing is harder than adding. A good Devuan setup (no systemd) 
with basic X11, wm and firefox performs for me similarly to a NetBSD and 
OpenBSD system for browsing.
Other differences? Hardware support. On your system you might have the 
luck that the OpenBSD driver for some of your chips (e.g. network) works 
better than others. FFS is just faster than certan journaled file system 
you get as default elsewhere.


Also "old".. it might be a low-end system with some crippled processor 
and low on ram.. or a good i5 with 8GB of RAM (top of the line back 
then). Key for browsing is RAM in any case. Under 3/4GB you cannot often 
open more than one or two tabs nowadays!


"common web browsing" can be an incredibly demanding task. Graphic and 
intensive website can kill current and top systems. Using chrome with 10 
GitHub Tabs open and then open YouTube?
Or browse some manpages, use wikipedia and duck-duck-go... that you can 
also on an old Centrino.


Given that... on selected systems OpenBSD works just very well. My aging 
HP laptop has suspend-to-ram support, wifi support... just everything 
out of the box. Easy to configure too!


Riccardo



Re: APCI on old Thinkpad

2023-07-07 Thread Riccardo Mottola

Hi,

Thomas Vetere wrote:

Yep, Claudio is correct. I have an old 600e and this is an official
statement from IBM support page long ago:

*"The ThinkPad 600E is ACPI ready. ACPI is not installed, but the system
hardware supports ACPI. While ACPI shows a great deal of promise for the
future, numerous problems affect the operation of ACPI on ThinkPad and
other notebook systems. Therefore, the system comes with Windows 98 running
in APM mode."*

So while it might


correct, old ThinkPads - wonderful keyboards... wonderful chassis :) 
Never matched.


However indeed - ACPI is a hit and miss... there were BIOS upgrades to 
install (you have to fiddle with floppies or old CD ISOs to install 
them... DOS and dark ages). which help a lot.
I have tried on my 600 various linux, NetBSD and OpenBSD... some 
supported it, some not, disabling it by known bugs.
Basic ACPI can work (sleep and such) other stuff is not useful anyway, 
processor fans were independent.


Riccardo



Re: Lightweight Web browser

2023-02-06 Thread Riccardo Mottola

Hi,

Rodrigo Readi wrote:

Can someone recommend a lightweight Browser that support javascript?


"Lightweight" is a hard term here.. .there are several options. But if 
you need heavy usage - gmail, youtube and similar, at the end you need a 
gecko, blink or webkit engine and so there things become equal.

Are you pressed by RAM or CPU?
E.g. in my experience Firefox was never "lighter" than seamonkey. Opera 
or Bing are at the end similar to Chrome in terms of resources. The 
difference are in "spy" amount.
I like SeaMonkey but it is lagging behind in packages on most BSDs 
and/or it was removed.
In my experience, Firefox is much easier on RAM than Chrome(ium) and 
good on more RAM pressed system. Limited Firefox is usable on a good 
32bit system with 2GB of RAM, but OpenBSD no longer provides firefox there.


My distaste with Firefox is that it took a bad turn after FF52/FF60... 
making horrible design choices - rust included and mocking more and more 
Chrome interface.



In which I can use gmail?

Otter browser hangs and even make core dumping with gmail.
Also with chromium I get core dumping sometimes.
There is no port for elinks to test it.


You might try your luck with ArcticFox. Login works. Reading messages 
appears to, replying by detaching into a separate panel does not anymore.


ArcitcFox received a lot of care since I last tried it with gmail, but 
also gmail is a moving JS target... so you are always at Google's mercy.


Riccardo



Re: Lightweight Web browser

2023-02-06 Thread Riccardo Mottola

Hi,

Bodie wrote:

Light and JavaScript do not go well together in web of this era. Plus
we have now variation of 90's, but instead everything made for IE
there is everything made for Chrome


I second that, especially JavaScript which is used to build whole apps, 
like webmails.

GitHub is currently perhaps the worst offender together with Facebook.

I'd consider using an IMAP or POP3 based mail and then using the mail 
reader of your choice.


Riccardo



OpenBSD 6.9 and disappearing mouse

2021-07-24 Thread Riccardo Mottola

Hi,


I have a Toshiba laptop with double internal pointing device (pointer 
stick and touchpad) to which I attach via USB a classic Logitech M100 
mouse, wired. The mouse is working on other computers and if I enable 
legacy mode, I can even use it in the BIOS to click around, so I am sure 
"it can work".


When I boot I notice in the messages it gets detected, then while I 
login, a kernel message says it is detached and it does not work in X11. 
Also, removing and reinserting the mouse, does not reattach it. The 
pointing LED remains off, as if not powered up.


I borrowed another random mouse, with a fresh reboot, the mouse works 
under X11 attached to the same USB port. Then if detached and 
reattached, it does not work again. Since this mouse is illuminated, it 
looks powered up even if not reattached. So different from the Logitech.



So I fear two issues: 1) Why does a mouse if reattached do not work 
again? 2) why does the Logitech detach by itself.



Riccardo



Re: Machine age and OpenBSD - Thinkpad R51e

2021-06-29 Thread Riccardo Mottola
Hi,


Thomas Vetere wrote:
> I was looking to get a laptop to run OpenBSD. The one I am looking at in
> particular is the Thinkpad R51e (2005). I like this particular model
> because it does not come with any extra hardware that OpenBSD does not
> support in the first place (bluetooth, camera, etc.) My main concern is the
> longevity that this model would have going forward. I already have a '94
> Thinkpad that cannot run the latest OpenBSD well because hardware support
> was gradually dropped during code cleanups, etc (i.e. newer versions of X11
> removed support for my ancient graphics chip because it just wasn't worth
> the time to maintain the code). Does anyone know, given the age of that
> model, how many years I might get out of it with OpenBSD and its packaged
> software before hardware support starts to drop? What is a good rule of
> thumb for selecting a machine to run OpenBSD with respect to its age?

hard to speak for "OpenBSD" in general, but seeing the trend, I'd say
you should be served well for a while.
I have several ThinkPad of that vintage (T4x, R5x) and they do run
various opensource OSs very well. The only hardware "support drop" I
have seen across the board is due to video drivers - but these have
either Intel or classic ATI which appears to continue to work quite well.
They are "the best crop" of 32bit Intel Machines.
I have an almost equivalent Toshiba too and recently Stefan fixed even
the internal WiFi card support for it!

Older ones like the classic 600 or T2x series, while having also clearer
memory limitations, have strange video cards and those are an issue now.
Also SSE2 is useful for browsing, video, etc, if needed.

If Intel 32bit support continues for a while, you ThinkPad will remain
useful. Of course don't expect super-heavy browsing! Browsers get more
andmore hungry... But on my R52 (with Linux though) I can use FireFox
and ArcticFox quite well with few tabs and watch full-screen movies too.
What do you want more from such a trusty thing? Enough for a quick web
look up. Then they are fantastic coding machines, remote terminals, etc
due to the nice 4:3 displays with relaxing look and good keyboards.
Infrared ports, fireware and nice stuff, some of these have RS232.

There is only one thing to "avoid as pest": nVidia cards. My experience
is that OpenBSD sucks with them, I got no vintage laptop working. NetBSD
not much better (although it has nouveau inside it didn't work for me).
FreeBSD was nice because it has binary drivers, but with the lastes X11
upgrades they are no longer compatible, so sicne you need also those
"legacy drivers" nVidia did not update, you end up with lots of nice bricks.

ThinkPad T61 might have (as mine has) those as an option and now I don't
know what to do, right now with it. Nice machine - except that it is a
little bit more "lenovo quality" than the R5x and T4x series. I could
switch from FreeBSD to OpenBSD but last time I tried no decent video
support, only the old nv divers which are antique (although theys till
run, but you have almost no acceleration and have other issues with
sleep, etc).

Then, nobody knows what the future will be... especially in software.

Riccardo



Re: Intel wifi ipw showing up but not working

2021-03-28 Thread Riccardo Mottola

Hi Stefan!

sorry for the even longer delay - but dayjob was demanding, working 
even on sunday.


However, if you can read this message, it means that I am connected 
through the internal ipw card to WEP WiFi at the first attempt. 
Wonderful. Great work, Stefan,


Both patches together applied, of course.

Outside on the balcony... battery works too checked with GNUstep's 
battery monitor (written.. by me). Mail written with GNUMail... it got 
me some tricks to get GNUstep linking, but also that was solved.



Riccardo


On 2021-03-17 16:09:32 +0100 Stefan Sperling  wrote:




My best guess is that because ipw doesn't bother with calling into
the net80211 newstate function, the interface's link state is never
updated and packets cannot flow. With WPA, link state gets updated
as a side-effect of a successful WPA handshake.

Does this fix it?

diff 1ff4cf56fdff3473d72fc4b29d69428c688d47c6 /usr/src
blob - ab16cd51ba6a2efdf89ac588801a1ae2bc714ed5
file + sys/dev/pci/if_ipw.c
--- sys/dev/pci/if_ipw.c
+++ sys/dev/pci/if_ipw.c
@@ -679,7 +679,11 @@ int
ipw_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, 
int arg)

{
struct ipw_softc *sc = ic->ic_softc;
+   struct ifnet *ifp = &ic->ic_if;

+   if (LINK_STATE_IS_UP(ifp->if_link_state))
+   ieee80211_set_link_state(ic, LINK_STATE_DOWN);
+
switch (nstate) {
case IEEE80211_S_SCAN:
task_add(systq, &sc->sc_scantask);
@@ -690,6 +694,14 @@ ipw_newstate(struct ieee80211com *ic, enum 
ieee80211_s

break;

case IEEE80211_S_RUN:
+   if (!(ic->ic_flags & IEEE80211_F_RSNON)) {
+   /*
+* NB: When RSN is enabled, we defer setting
+* the link up until the port is valid.
+*/
+   ieee80211_set_link_state(ic, LINK_STATE_UP);
+   }
+   break;
case IEEE80211_S_INIT:
case IEEE80211_S_ASSOC:
/* nothing to do */



--
GNUMail running on GNUstep on OpenBSD/i386 Toshiba Tecra



Re: Intel wifi ipw showing up but not working

2021-03-15 Thread Riccardo Mottola

Hi Stefan,

Stefan Sperling wrote:

That means there is another bug. I will try to find it.

Could you show what 'netstat -W ipw0' looks like after an unsuccesful
attempt of connecting to a WEP access point?


ipw0: flags=8843 mtu 1500
lladdr 00:0c:f1:1f:b2:a0
index 1 priority 4 llprio 3
groups: wlan
media: IEEE802.11 autoselect (DS11 mode 11b)
status: active
ieee80211: nwid westernesse chan 2 bssid 94:0c:6d:f7:a4:9c 
-61dBm nwkey



then I run dhclient

ieee80211 on ipw0:
0 input packets with bad version
0 input packets too short
0 input packets from wrong bssid
0 input packet duplicates discarded
0 input packets with wrong direction
0 input multicast echo packets discarded
0 input packets from unassociated station discarded
0 input encrypted packets without wep/wpa config discarded
0 input unencrypted packets with wep/wpa config discarded
0 input wep/wpa packets processing failed
0 input packet decapsulations failed
2 input management packets discarded
0 input control packets discarded
0 input packets with truncated rate set
0 input packets with missing elements
0 input packets with elements too big
0 input packets with elements too small
0 input packets with invalid channel
3 input packets with mismatched channel
0 node allocations failed
0 input packets with mismatched ssid
0 input packets with unsupported auth algorithm
0 input authentications failed
0 input associations from wrong bssid
0 input associations without authentication
0 input associations with mismatched capabilities
0 input associations without matching rates
0 input associations with bad rsn ie
0 input deauthentication packets
0 input disassociation packets
0 input packets with unknown subtype
0 input packets failed for lack of mbufs
0 input decryptions failed on crc
0 input ahdemo management packets discarded
0 input packets with bad auth request
0 input eapol-key packets
0 input eapol-key packets with bad mic
0 input eapol-key packets replayed
0 input packets with bad tkip mic
0 input tkip mic failure notifications
0 input packets on unauthenticated port
0 output packets failed for lack of mbufs
0 output packets failed for no nodes
0 output packets of unknown management type
0 output packets on unauthenticated port
1 active scan started
0 passive scans started
0 nodes timed out
0 failures with no memory for crypto ctx
0 ccmp decryption errors
0 ccmp replayed frames
0 cmac icv errors
0 cmac replayed frames
0 tkip icv errors
0 tkip replays
0 pbac errors
0 HT negotiation failures because peer does not support MCS 0-7
0 HT negotiation failures because we do not support basic MCS set
0 HT negotiation failures because peer uses bad crypto
0 HT protection changes
0 new input block ack agreements
0 new output block ack agreements
0 input frames below block ack window start
0 input frames above block ack window end
0 input block ack window slides
0 input block ack window jumps
0 duplicate input block ack frames
0 expected input block ack frames never arrived
0 input block ack window gaps timed out
0 input block ack agreements timed out
0 output block ack agreements timed out


The two "suspect" values im my humble opinion are:
2 input management packets discarded
3 input packets with mismatched channel

Riccardo



Re: Intel wifi ipw showing up but not working

2021-03-12 Thread Riccardo Mottola

Hi,


Stefan Sperling wrote:

tecra$ netstat -W ipw0
ieee80211 on ipw0:



 10 input management packets discarded


This one looks bad. I think it means the net80211 stack ends up ignoring
the AP's assoc response frame. I believe your situation is that the
firmware is in associated state, the driver itself sets media status to
'active' in response to the firmware signalling successful association,
but the net80211 stack has not participated in the association sequence so
no WPA handshake can happen. The incoming data packets indicate that the
AP is trying to initiate the WPA handshake but net80211 doesn't expect
such packets and doesn't respond.


At a high-level I understand, a mismatch between the driver status and 
what net80211 expects.




The way the association sequence works in this driver is pretty weird...

Can you try this patch? Does it change anything?

diff dfcb0a350e790649cafe6bd5f9f4cf2319ce75fd /usr/src
blob - 20a9b617e6d7ae0e179370512376ce8142c96986
file + sys/dev/pci/if_ipw.c
--- sys/dev/pci/if_ipw.c
+++ sys/dev/pci/if_ipw.c
@@ -1781,6 +1781,12 @@ ipw_auth_and_assoc(void *arg1)
if (error != 0)
goto fail;
  
+	/*

+* net80211 won't see the AP's AUTH response. Move to ASSOC state
+* in order to make net80211 accept the AP's assoc response.
+*/
+   ic->ic_newstate(ic, IEEE80211_S_ASSOC, -1);
+
return;
  fail:
printf("%s: association failed (error=%d)\n", sc->sc_dev.dv_xname,



I just tried your patch against 6.8 release sources, compiled... and 
yay! ipw0 connects to WPA WiFi just fine! Thanks, I hope it will make it 
in 6.9 :)


It took quite some time.. after one hour compiling with the fan 
incredibly quiet. I remebered/discovered APM set my CPU frequency to 
whopping 748 MHz.. "apm -A" fixed it quickly.


ipw0: flags=808843 mtu 
1500

lladdr 00:0c:f1:1f:b2:a0
index 1 priority 4 llprio 3
groups: wlan egress
media: IEEE802.11 autoselect (DS11 mode 11b)
status: active
ieee80211: nwid westernesse-hl chan 5 bssid 78:b2:13:69:9e:91 
-58dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp

inet 192.168.1.150 netmask 0xff00 broadcast 192.168.1.255
fxp0: flags=808843 mtu 
1500

lladdr 00:a0:d1:d7:e5:66
index 2 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=0<>

ieee80211 on ipw0:
0 input packets with bad version
0 input packets too short
0 input packets from wrong bssid
0 input packet duplicates discarded
0 input packets with wrong direction
0 input multicast echo packets discarded
0 input packets from unassociated station discarded
0 input encrypted packets without wep/wpa config discarded
0 input unencrypted packets with wep/wpa config discarded
0 input wep/wpa packets processing failed
0 input packet decapsulations failed
0 input management packets discarded
0 input control packets discarded
0 input packets with truncated rate set
0 input packets with missing elements
0 input packets with elements too big
0 input packets with elements too small
0 input packets with invalid channel
0 input packets with mismatched channel
0 node allocations failed
0 input packets with mismatched ssid
0 input packets with unsupported auth algorithm
0 input authentications failed
0 input associations from wrong bssid
0 input associations without authentication
0 input associations with mismatched capabilities
0 input associations without matching rates
0 input associations with bad rsn ie
0 input deauthentication packets
0 input disassociation packets
0 input packets with unknown subtype
0 input packets failed for lack of mbufs
0 input decryptions failed on crc
0 input ahdemo management packets discarded
0 input packets with bad auth request
4 input eapol-key packets
0 input eapol-key packets with bad mic
0 input eapol-key packets replayed
0 input packets with bad tkip mic
0 input tkip mic failure notifications
0 input packets on unauthenticated port
0 output packets failed for lack of mbufs
0 output packets failed for no nodes
0 output packets of unknown management type
0 output packets on unauthenticated port
5 active scans started
0 passive scans started
0 nodes timed out
0 failures with no memory for crypto ctx
0 ccmp decryption errors
0 ccmp replayed frames
0 cmac icv errors
0 cmac replayed frames
0 tkip icv errors
0 tkip replays
0 pbac errors
0 HT negotiation failures because peer does not support MCS 0-7
0 HT negotiation failu

gold linker on OpenBSD

2021-03-12 Thread Riccardo Mottola

Hello,

is the gold linker available for OpenBSD i386? maybe as a package and I 
am not finding it?


I have issues linking with the standard and bfd linkers, a suggestion 
was to use gold, which helps on e.g. FreeBSD.


Riccardo



Re: Intel wifi ipw showing up but not working

2021-03-11 Thread Riccardo Mottola

Hi Stefan,

sorry for the delayed response, but dayjob took over and for that I 
unfortunately cannot use an old OpenBSD laptop with no wireless :) Also 
I had to use another system to conveniently do the tests you asked me.


Stefan Sperling wrote:


With WEP, if the key is wrong, the interface will appear connected
but it will be unable to communicate. There is no setup phase in WEP.
You either encrypt and decrypt packets with the correct key, or you
don't.

With WPA, the link should no reach 'active' state unless you are using
the correct passphrase. This is because the AP and client will try to
negotiate a per-client session key, and if this key cannot be obtained,
the link will stay down. The interface flags will show UP, however.


Thank you for this confirmation. Right now in my studio I have thi setup

- Router which runs DHCP and offers WiFi-WPA + Wired connectivity
- Second wireless router which offers WiFi WEP, which DHCP deactivated

So, I have 3 networks, but they all the the address from the same DHCP, 
it should help "debugging"


Wired network works perfectly and I just connected remotely so I can 
easily type this email while tinkering and it restricts the issue on the 
Network part, not a fundamental incompatibility between OpenBSD and that 
DHCP server (fact that was also refuted when being able to connect with 
a Cardbus WiFi)




OK, thanks for confirming.


The script proves that the network settings if applied are correct and do
work and that I do not "mistype"!


Yes, since the WPA link is 'active' the key should be correct.


Perfect let's concentrate on WPA, since also being with one device less 
in the chain makes it easier to debug. I hope he older onboard card has 
no issues with WPA?



The next step is getting a DHCP lease.
If DHCP does not manage to obtain a lease, something is wrong.
Perhaps this driver was broken somehow for multicast encryption or decryption.


Ok. Let me follow yours. I run the commancs in the script -except 
removing the defaults routes, to keep my wired connection alive.




What does this command print before, and after, an attempt to connect?

   netstat -W ipw0



Before:
tecra$ netstat -W ipw0
ieee80211 on ipw0:
0 input packets with bad version
0 input packets too short
0 input packets from wrong bssid
0 input packet duplicates discarded
0 input packets with wrong direction
0 input multicast echo packets discarded
0 input packets from unassociated station discarded
0 input encrypted packets without wep/wpa config discarded
0 input unencrypted packets with wep/wpa config discarded
0 input wep/wpa packets processing failed
0 input packet decapsulations failed
0 input management packets discarded
0 input control packets discarded
0 input packets with truncated rate set
0 input packets with missing elements
0 input packets with elements too big
0 input packets with elements too small
0 input packets with invalid channel
0 input packets with mismatched channel
0 node allocations failed
0 input packets with mismatched ssid
0 input packets with unsupported auth algorithm
0 input authentications failed
0 input associations from wrong bssid
0 input associations without authentication
0 input associations with mismatched capabilities
0 input associations without matching rates
0 input associations with bad rsn ie
0 input deauthentication packets
0 input disassociation packets
0 input packets with unknown subtype
0 input packets failed for lack of mbufs
0 input decryptions failed on crc
0 input ahdemo management packets discarded
0 input packets with bad auth request
0 input eapol-key packets
0 input eapol-key packets with bad mic
0 input eapol-key packets replayed
0 input packets with bad tkip mic
0 input tkip mic failure notifications
0 input packets on unauthenticated port
0 output packets failed for lack of mbufs
0 output packets failed for no nodes
0 output packets of unknown management type
0 output packets on unauthenticated port
0 active scans started
0 passive scans started
0 nodes timed out
0 failures with no memory for crypto ctx
0 ccmp decryption errors
0 ccmp replayed frames
0 cmac icv errors
0 cmac replayed frames
0 tkip icv errors
0 tkip replays
0 pbac errors
0 HT negotiation failures because peer does not support MCS 0-7
0 HT negotiation failures because we do not support basic MCS set
0 HT negotiation failures because peer uses bad crypto
0 HT protection changes
0 new input block ack agreements
0 new output block ack agreements
0 input frames belo

Re: Intel wifi ipw showing up but not working

2021-02-16 Thread Riccardo Mottola

Hi Stefan,


Stefan Sperling wrote:

Sounds like a wrong key, or the wrong type of crypto.
Are you the AP is using WEP? Perhaps you need 'wpakey' instead of 'nwkey'?


If the key is wrong or the crypto is wrong, would the interface still be 
active and connected?


I am sure the AP is using WEP: I connect to that access point with many 
computer since years.
Also, I tried connectiong to another access point which has WPA, same 
failure.




If you want more help, please show commands you are typing and their output.
It is much easier to provide help when we can see what you are seeing,
instead of trying to guess what happened based on your verbal description.


Sure, to be more scientific about determining the issue, I proceeded 
making a small script.
I invoked the script once with ipw0 - the internal interface, then with 
a CardBus WiFi card I grabbed from another computer. I actually tested two.


sudo route delete default
sudo pkill dhclient
sudo ifconfig $1 up
sudo ifconfig $1 nwid westernesse-hlwpakey xx
sudo dhclient $1

whhere westernesse-hlis the access point with WPA, for the one with WEP, 
I use the corresponding nwkey. This I love of OpenBSD: the lack of 
wpasupplicant:


ipw0: internal 2100;
ipw0: flags=808843 mtu 
1500

    lladdr 00:0c:f1:1f:b2:a0
    index 1 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect (DS11 mode 11b)
    status: active
    ieee80211: nwid westernesse-hl chan 2 bssid 78:b2:13:69:9e:91 
-48dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp


ral0:
ral0: flags=808843 mtu 
1500

    lladdr 00:22:b0:64:44:06
    index 5 priority 4 llprio 3
    groups: wlan egress
    media: IEEE802.11 autoselect (OFDM36 mode 11g)
    status: active
    ieee80211: nwid westernesse-hl chan 2 bssid 78:b2:13:69:9e:91 
-115dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher 
ccmp

    inet 192.168.1.137 netmask 0xff00 broadcast 192.168.1.255


of course the old card can connect only in 11b to the access point.

The script proves that the network settings if applied are correct and 
do work and that I do not "mistype"!


If I try to scan, I see networks:
$ sudo ifconfig ipw0 scan
ipw0: flags=808843 mtu 
1500

    lladdr 00:0c:f1:1f:b2:a0
    index 1 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect (DS11 mode 11b)
    status: active
    ieee80211: nwid westernesse-hl chan 2 bssid 78:b2:13:69:9e:91 
-48dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
    nwid Paredi chan 2 bssid 60:32:b1:d1:7e:96 -19dBm 
HT-MCS15 privacy,short_preamble,short_slottime,wep
    nwid westernesse chan 2 bssid 94:0c:6d:f7:a4:9c -46dBm 
54M privacy,short_preamble,short_slottime,wep
    nwid westernesse-hl chan 2 bssid 78:b2:13:69:9e:91 
-52dBm HT-MCS23 privacy,wpa2



you can see both a WPA and WEP network which I can use plus another 
network, apparently WEP enabled too. This proves that the card is 
capable of receiving.


Riccardo



issues linking on OpenBSD i386 (has non-ABS relocation R_386_GOTOFF against symbol)

2021-02-14 Thread Riccardo Mottola

Hi,

I was doing some compilations on OpenBSD 6.8 i386 using gcc 8.4 
available from pkg.


When compiling gnustep-gui current GIT (tests before release), I get 
this error:


ld: error: NSPrintOperation.m:(.debug_info+0x2FE631): has non-ABS 
relocation R_386_GOTOFF against symbol '_OBJC_INSTANCE_7.23243'


I tried both using ld and ld.bfd . In the past it used to compile link & 
run on OpenBSD with gcc, with 6.7 thouhg, i updated to 6.8 relatively late.


A common suggestion I found would be using ld.gold, but I couldn't find 
it for OpenBSD! is it in a separate package to install?


At first, I thought an issue specific to GNUstep when build with gcc, 
but then I tried building ArcticFox browser with the same gcc. There I 
get these:


 1:28.82 cd mangle; /usr/local/bin/gmake export
 1:28.82 ld: error: prprf.c:(.debug_info+0x193FD): has non-ABS 
relocation R_386_GOTOFF against symbol '.LC5'
 1:28.82 ld: error: prdtoa.c:(.debug_info+0x3865E): has non-ABS 
relocation R_386_GOTOFF against symbol '.LSSH2'
 1:28.82 ld: error: ptio.c:(.debug_info+0x5FB43): has non-ABS 
relocation R_386_GOTOFF against symbol '.LSSH22'
 1:28.82 ld: error: praton.c:(.debug_info+0x4A112): has non-ABS 
relocation R_386_GOTOFF against symbol '.LSSH0'


I see a pattern here then!


I was able to compile ArcticFox - same code base, using system clang 
however.
I did not try GNustep with clang, because it requires libobjc2 and that 
has other issues for the moment. Also both software compile with gcc 
equivalent version on NetBSD, FreeBSD and different Linux.


Any suggestions with these linking issues?

Riccardo



Re: Intel wifi ipw showing up but not working

2021-02-14 Thread Riccardo Mottola

Hi Stuart and others,,


Stuart Henderson wrote:



I installed the firmware with fw_update. I try to bring the interface
up, I can set the nwid, but it never connects.

What do you type to bring the interface up?
If you are using /etc/hostname.ipw0 and "sh /etc/netstart ipw0", what
are the contents of the file?


I am typing "ifconfig ipw0 up" as root (or sudo) and then directly 
starting the interface with dhclient.



I set the WEP password and it does not get saved if I check back with
ifconfig.

WEP password definitely won't get displayed back if you check as non-root.
I don't recall if it is displayed for root or not.


It is not - I was confused with another BSD which does, as root, display 
back the used key.



What does "ifconfig ipw0" say?

Is there an "RF kill" (wifi on/off) switch on the laptop, if so did you
try toggling it?


Actually, that was the solution. The laptop has both a "soft" button 
with Fn-F8 and a HW toggle, I forgot about the latter. I am not 
accustomed to having "both". (Add to that that it is invisible gray and 
acts the opposite, sliding right "kills" and not "activates" but the 
icon hints to right with an antenna not a off-antenna)


I am used that on other laptops, the toggle issues a send 
connect/disconnect of the device, here it seems that the device is up 
but with no antenna.



If I try to scan, nothing is shown, I get no errors on the console/dmesg.

I tried enabling debug and I see:

ifconfig debug ipw0 list
ifconfig: SIOCDIFADDR: Device not configured
Syntax for that is "ifconfig ipw0 debug", if you get any messages they'll
appear in dmesg and/or /var/log/messages



Thanks for the pinpoint. Now with the correct settings I finally see the 
LED on. The interface comes up and finally says "active" when it 
attaches to the correct SSID. A scan shows all network, so I believe the 
radio is fine.


dhclient however fails to get an address. It waits a few instants and 
then prints "no link".


That is very strange, if with ifconfig I got the interface to active and 
thus connected. Am I overseeing again something obvious?


Riccardi



Intel wifi ipw showing up but not working

2021-02-12 Thread Riccardo Mottola

Hello


I just installed OpenBSD 6.8 on a Toshiba Tecra S1. It is a fresh 
install, so i can't say if it worked on previous OpenBSD versions (I 
have seen something in the mailing list about that). the BIOS has no 
special options regarding the wireless card.


The laptop has this network card:

ipw0 at pci2 dev 4 function 0 "Intel PRO/Wireless 2100" rev 0x04: irq 
11, address 00:0c:f1:1f:b2:a0


I installed the firmware with fw_update. I try to bring the interface 
up, I can set the nwid, but it never connects.


I set the WEP password and it does not get saved if I check back with 
ifconfig.


If I try to scan, nothing is shown, I get no errors on the console/dmesg.

Also I notice the LED does never blink, there is no activity on the card


I tried enabling debug and I see:

ifconfig debug ipw0 list
ifconfig: SIOCDIFADDR: Device not configured


what am I missing? some magic sysctl?


Thank you,

Riccardo



Re: ULTRASPARC vs ARMv7 (Sun Netra T1 vs Orange PI ONE) from ONLY a security point of view

2020-05-18 Thread Riccardo Mottola
Hi,


Глеб Рахмановский wrote:
>  
> Dear Gurus,
> Please let me know, are there any advantages of UltraSparc IIe over Cortex A7 
> AllWinner H3 for a secure communication host ignoring a factor of power 
> efficiency, size and loud noise?
> IMHO the only feature OpenBSD can benefit from UltraSparc is StackGhost ?
>

The comparison is a little far fetched.
I prefer the Big-Endian CPU of SPARC where sometimes just a 1-byte off
in a string or a badly aligned or initialized struct segfaults your
program: hapy debugging. Do that on ARM.
Also, you can fully load your Netra T1, yet connect via ssh, do some
work and just notice it is slower. Do the same on your PI or similar or
even (compared to the higher CPU performance) on laptop it cringes.

What would be lovable would be a cheap, modern, multi-core SPARC. You
could do that, but commercially nobody does it because it is a complex
architecture.
But there is the LEON, modern 32bit CPU for Aerospace and Russia also
has several iterations of the SPARC, dating back to the Elbrus. Of
course, for us "mortals" not available and not as cheap as an ARM.

MIPS is in a little better shape, but there too you need to resort to
Little Endian if you want something cheap as ARM.

Sad, but true... right now you have an ARM/i386/amd64 monoculture, but
it reflects in the cheap prices of the CPUs.

Riccardo



Re: Cross platform apps.

2020-04-22 Thread Riccardo Mottola
Hi,


Kevin Chadwick wrote:
> Go/Golang can cross compile non graphical programs for many systems including
> OpenBSD from Windows etc.
>
> This means that web apps can be almost as cross platform. Of course the 
> browser
> isn't so easily built/bundled cross platform with many app creation 
> technologies
> supporting OSX, Windows, Linux and occasionally Android like ionic but not 
> BSD.
>
> fyne may work but not sure I want many OS installations for building apps and
> again fyne-cross, leaves BSD... in the cold.
>
> Electron doesn't support mobile, but mobile apps have webview/go support.
> Electron produces huge apps though.
>
> Currently I am thinking like portsdancer of just opening a web browser but in
> app mode where possible for PCs. Not sure how slick that option, can be made 
> but
> is most flexible.
>
> I guess an option is to build for some platforms and provide the source for
> packagers. Perhaps porters would know of graphical apps that were easy to port
> e.g. Qt?
>
> Any other ideas, perhaps from the Lua gaming community etc.?
>
> Thank You for any help


You don't say much about your requisites

I use, program and contribute to GNUstep. It is fine for Desktop, but if
you cite mobile, I think you need a secondo front-end anyway to have a
decent app. With GNUstep you could then target UIKit Cocoa, but for
Android you are alone.

GNUstep is well packaged for OpenBSD, is very BSD (NetBSD and FreeBSD)
friendly, Linux, Solaris.
Making an app then work also on Mac is easy.
(other way around, as most people do, is harder)
Windows is there too, but a bit less maintained :-P lots of potential,
works for what is there (there are corporate users) but not as polished,
since we FOSS developers don't know that platform so well or don't have
fun in it.


Riccardo



Re: S3 Virge support on IBM T23 for 6.6

2020-04-15 Thread Riccardo Mottola
Ciao Paolo,

Paolo Aglialoro wrote:
> */usr/X11R6/lib/modules/drivers/s3_drv.la 
> /usr/X11R6/lib/modules/drivers/s3_drv.so
> /usr/X11R6/lib/modules/drivers/s3virge_drv.la 
> /usr/X11R6/lib/modules/drivers/s3virge_drv.so/usr/X11R6/man/man4/s3.4
> /usr/X11R6/man/man4/s3virge.4*
>
> are being deleted as "retired". Does this mean that my IBM T23 will stop
> its X-life at 6.5 or is its S3 Virge video card supported in some other
> decent way (VESA or whatever)? I would be glad to know it *before* trying
> this upgrade.
>
> If the sad answer would be "no more support", could I ask why this,
> together with several i686 still working boxes, would be dropped while
> other OSs aren't doing so?

I fear so. You might play with framebuffer.

the S3 Virge driver has always been problematic though, very little
maintained. I have it usable on Linux, but, you need to hack your Xorg
file and tweak some accelerations options and essentially restrict
yourself to 16bit (or 24bit without most accel, which is even worse).

Unfortunately other drivers which were perfectly working, like the
Neomagic, which were culled. Sure, even older than the S3 driver, but
perfectly working.

The issue is mostly "upstream" (well.. lack of thereof).

A pity indeed. Kills some old nice laptops around..


Riccardo



Re: Switchable graphics intel/ati - Fatal error during GPU init

2020-04-15 Thread Riccardo Mottola
Hi!

Hemno Sapients wrote:
>> If I try to run X11, it does not even attempt radeon and simply runs on
>> intel i965.
>>
>> Am I missing some firmware? "fw_update" did not download me anything new.
>> Or... some other "trick" ?
>>
>> Thanks,
>>
>> Riccardo
>>
> I don't think OpenBSD's build of X.Org supports PRIME.
>

by PRIME you mean this dual-GPU setup, an integrated and a discrete one?

I don't expect the dirty tricks of using both at the same time (special
HP drivers attempt this and it goes havoc on windows too)

Just when I know I have the laptop plugged in power, I'd like to start
X11 on the faster graphics. Even a reboot is perfectly fine for me.

I notice the error already in the console - so the issue is not X.Org,
but in DRM itself, not while loading X.org


Riccardo



Switchable graphics intel/ati - Fatal error during GPU init

2020-04-14 Thread Riccardo Mottola
Hi!

My HP laptop has switchable graphics. When I first installed OpenBSD
some releases ago, I had to disable in BIOS or it would freeze as soon
as X started and showed a pointer.

Now, I thought, let's try again.: so many things improved!

Now, even during boot when I reach console, in dmesg I already see an issue:

initializing kernel modesetting (CAICOS 0x1002:0x6760 0x103C:0x167D 0x00).
[drm] *ERROR* Unable to locate a BIOS ROM
drm:pid0:radeondrm_attachhook *ERROR* Fatal error during GPU init
[TTM] Memory type 2 has not been initialized
drm1 detached
radeondrm0 detached
"ATI Radeon HD 6400M" rev 0x00 at pci1 dev 0 function 0 not configured
inteldrm0: 1366x768, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0


If I try to run X11, it does not even attempt radeon and simply runs on
intel i965.

Am I missing some firmware? "fw_update" did not download me anything new.
Or... some other "trick" ?

Thanks,

Riccardo



Re: X start failure - OpenGL Version

2020-04-06 Thread Riccardo Mottola
Hi Marcus,

Marcus MERIGHI wrote:
> Hello Riccardo, 
>
> startx(1) had it's setuid bit removed. I think in the timeframe you are
> upgrading over. The canonical advice is to use xenodm(1).
>
> Marcus
>

exactly, that was it... the error message wasn't that helpful.

xenodm works.. but since I prefer to run X11 "when I need it" on that
machine, I just +s startx and it works fine too.

Thanks for the quick help.

Riccardo



X start failure - OpenGL Version

2020-04-06 Thread Riccardo Mottola
Hi,

lockdown times gave me finally times to update my workstation/home
server to 6.6 too, after my successful laptop upgrades.

I was a moment scared when fw_update told me to reboot due to microcode
update :-P But it went fine.

I followed 6.5 -> 6.6 upgrade. All packages are upgraded too (although X
should not depent on any pkg, right?)

startx fails:

(==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
Require OpenGL version 2.1 or later.
(EE)
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0
(EE)
(EE)
Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.
(EE) Please also check the log file at
"/home/multix/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.


$ glxinfo | grep "OpenGL version"
OpenGL version string: 3.1 Mesa 19.0.8

and 3.1 is > 2.1 I do think...

However, if I look into xorg.log, there is no "EE"! I am confused.

I have an Intel graphics card and from Xorg.log everything looks fine:

[    89.926]    ABI class: X.Org Video Driver, version 23.0
[    89.926] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
    i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
    915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
    Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35,
Q33,
    GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    89.927] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[    89.927] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[    89.927] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics:
5200, 6200, P6300
[    89.930] (II) intel(0): Using Kernel Mode Setting driver: i915,
version 1.6.0 20151010
[    89.933] (--) intel(0): Integrated Graphics Chipset: Intel(R) 915G
[    89.933] (--) intel(0): CPU: x86, sse2, sse3
[    89.933] (II) intel(0): Creating default Display subsection in
Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    89.933] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    89.934] (==) intel(0): RGB weight 888
[    89.934] (==) intel(0): Default visual is TrueColor
[    89.935] (II) intel(0): Output VGA1 has no monitor section
[    89.935] (II) intel(0): Enabled output VGA1
[    89.935] (--) intel(0): Using a maximum size of 256x256 for hardware
cursors
[    89.935] (II) intel(0): Output VIRTUAL1 has no monitor section
[    89.935] (II) intel(0): Enabled output VIRTUAL1
[    89.935] (--) intel(0): Output VGA1 using initial mode 1024x768 on
pipe 0
[    89.936] (==) intel(0): TearFree disabled
[    89.936] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[    89.936] (==) intel(0): DPI set to (96, 96)
[    89.936] (II) Loading sub module "dri3"
[    89.936] (II) LoadModule: "dri3"
[    89.936] (II) Module "dri3" already built-in
[    89.936] (II) Loading sub module "dri2"
[    89.936] (II) LoadModule: "dri2"
[    89.936] (II) Module "dri2" already built-in
[    89.936] (II) Loading sub module "present"
[    89.936] (II) LoadModule: "present"
[    89.936] (II) Module "present" already built-in
[    89.936] (==) Depth 24 pixmap format is 32 bpp
[    89.970] (II) intel(0): SNA initialized with Alviso (gen3) backend
[    89.970] (==) intel(0): Backing store enabled
[    89.970] (==) intel(0): Silken mouse enabled
[    89.970] (II) intel(0): HW Cursor enabled
[    89.970] (II) intel(0): RandR 1.2 enabled, ignore the following
RandR disabled message.
[    89.973] (==) intel(0): DPMS enabled
[    89.974] (II) intel(0): [DRI2] Setup complete
[    89.974] (II) intel(0): [DRI2]   DRI driver: i915
[    89.974] (II) intel(0): [DRI2]   VDPAU driver: i915
[    89.974] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[    89.974] (II) intel(0): hardware support for Present enabled
[    89.974] (--) RandR disabled
[    90.163] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[    90.163] (II) AIGLX: enabled GLX_ARB_create_context
[    90.163] (II) AIGLX: enabled GLX_ARB_create_context_profile
[    90.163] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[    90.164] (II) AIGLX: enabled GLX_INTEL_swap_event
[    90.164] (II) AIGLX: enabled GLX_SGI_swap_control
[    90.164] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[    90.164] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[    90.164] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[    90.164] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer
objects
[    90.172] (II) AIGLX: Loaded and initialized i915
[    90.172] (II) GLX: Initialized DRI2 GL provider for screen 0
[    90.184] (II) intel(0): switch to mode 1024x768@60.0 on VGA1 using
pipe 0, position (0, 0), rotation normal, reflecti
on none
[    90.195] (II) intel(0): Setting screen physical size to 270 x 203
[    90.699] (II) config/wscons: checking input device /dev/wskbd
[    90.699] (II) wskbd: using layout it
[    90.700] (II) LoadModule: "kbd"
[    90.729] (II) Loading /usr/X11R6/lib/modules/inp

Re: 6.5 crashing on an old Thinkpad 600X

2019-10-14 Thread Riccardo Mottola

Hi,

I have a 600X! It is a super-vintage machine with a wonderful keyboard.

Gwen Nelson wrote:

Hi all, I've been trying to fix up an old Thinkpad, a 600X model with a
Pentium III and 64mb RAM, I get some errors in the AML code:

https://imgur.com/gallery/IRrpgmk

Unfortunately I can't obtain a dmesg as the machine has no networking and
I've managed to kill the bootloader while trying to update.

Any ideas?


You need to disable acpi:

boot -c and "disable acpi".

If that works, test it. I think 64MB should be enough for a login, but 
for X you are pushing the limits. You can put more RAM and with a light 
WM, you can use it for terminal and Xterm work easily.
Finding a woking PCMCIA WiFi card is not so easy, but wired ethernet is 
easy.


Riccardo



Re: 6.5 crashing on an old Thinkpad 600X

2019-10-14 Thread Riccardo Mottola

Hi,

Stuart Henderson wrote:

First I'd try a snapshot, if that doesn't help then I'd try "boot -c"
and "disable acpitz". If you can get it booting, the acpi tables
generated in the report by running sendbug as root might help track
it down.



I also have a 600X with that issue. I totally disable acpi, not just the 
tz, which is your suggestion, I suppose.

I will try if it helps!

Riccardo



compiling one's own GCC - configuration considerations

2019-06-21 Thread Riccardo Mottola

Hi,

ports prrovide two gcc's 4.9 and 8.
I have a program which compiles fine with up to gcc 7, also the system 
clang is too "new". On OpenBSD 6.4 I could use the system clang.


Now, a solution would be to install gcc 6.5 or 7.4, a compiler which I 
know works fine on NetBSD and Linux for ArcticFox.


I want to make it as stock as possible, I did not apply any patches. I 
took inspiration from:


https://raw.githubusercontent.com/openbsd/ports/master/lang/gcc/8/Makefile


I installed gmake, gas, bison, libexecinfo

I ended up with this command line (the rationale is not to overwrite 
anything of ports, put it :


./configure --prefix=/usr/local/gcc7 --program-suffix=7 
--enable-languages=c,c++,objc,obj-c++ --enable-shared --enable-wchar_t 
--enable-threads=posix --disable-nls --with-system-zlib 
--disable-libmudflap --disable-libgomp --disable-libssp --with-gnu-ld 
--with-gnu-as --with-gmp=/usr/local --disable-libstdcxx-pch 
--without-isl --enable-cpp --with-arch=sandybridge 
--with-tune=sandybridge --enable-default-pie CC=clang CXX=clang++ AS=gas


however compilation fails:

checking whether the 
/home/multix/code/gcc-7.4.0/host-x86_64-unknown-openbsd6.5/gcc/xgcc 
-B/home/multix/code/gcc-7.4.0/host-x86_64-unknown-openbsd6.5/gcc/ 
-B/usr/local/gcc7/x86_64-unknown-openbsd6.5/bin/ 
-B/usr/local/gcc7/x86_64-unknown-openbsd6.5/lib/ -isystem 
/usr/local/gcc7/x86_64-unknown-openbsd6.5/include -isystem 
/usr/local/gcc7/x86_64-unknown-openbsd6.5/sys-include    linker 
(/home/multix/code/gcc-7.4.0/host-x86_64-unknown-openbsd6.5/gcc/collect-ld) 
supports shared libraries... yes

checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... openbsd6.5 ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... configure: error: Link tests are not allowed 
after GCC_NO_EXECUTABLES.

gmake[2]: *** [Makefile:13983: configure-stage1-target-libstdc++-v3] Error 1
gmake[2]: Leaving directory '/home/multix/code/gcc-7.4.0'



Anyone has a useful suggestion to get gcc7 ?

Thanks,

Riccardo



assembler issue - no such instruction

2019-06-21 Thread Riccardo Mottola

Hi all,

I am trying to compile ArcticFox on OpenBSD 6.5. On 6.4 I had no 
issues,it compiled and worked!

I am using gcc 4.9 from ports and it dies with:

 2:16.64 host_pathsub.o
 2:16.85 /tmp//cctgHRHn.s: Assembler messages:
 2:16.85 /tmp//cctgHRHn.s:36: Error: no such instruction: `vmovaps 
%xmm0,80(%rsp)'
 2:16.85 /tmp//cctgHRHn.s:37: Error: no such instruction: `vmovaps 
%xmm1,96(%rsp)'
 2:16.85 /tmp//cctgHRHn.s:38: Error: no such instruction: `vmovaps 
%xmm2,112(%rsp)'
 2:16.85 /tmp//cctgHRHn.s:39: Error: no such instruction: `vmovaps 
%xmm3,128(%rsp)'
 2:16.85 /tmp//cctgHRHn.s:40: Error: no such instruction: `vmovaps 
%xmm4,144(%rsp)'
 2:16.85 /tmp//cctgHRHn.s:41: Error: no such instruction: `vmovaps 
%xmm5,160(%rsp)'
 2:16.85 /tmp//cctgHRHn.s:42: Error: no such instruction: `vmovaps 
%xmm6,176(%rsp)'
 2:16.85 /tmp//cctgHRHn.s:43: Error: no such instruction: `vmovaps 
%xmm7,192(%rsp)'
 2:16.87 In the directory 
/home/multix/code/Arctic-Fox/obj-amd64-unknown-openbsd6.5/config

 2:16.87 The following command failed to execute properly:
 2:16.87 egcc -o host_pathsub.o -c -DXP_UNIX -MD -MP -MF 
.deps/host_pathsub.o.pp -O2 -march=sandybridge -DUNICODE -D_UNICODE 
-I/home/multix/code/Arctic-Fox/config -I. -I../dist/include 
-I/home/multix/code/Arctic-Fox/obj-amd64-unknown-openbsd6.5/dist/include/nspr 
/home/multix/code/Arctic-Fox/config/pathsub.c
 2:16.87 gmake[5]: *** 
[/home/multix/code/Arctic-Fox/config/rules.mk:889: host_pathsub.o] Error 1


From looking on the internet, this seems an assembler problem

I tried to force AS to gas, but it did not change, maybe egcc is not 
respecting it



Riccardo



Re: reinstalling boot blocks

2019-06-21 Thread Riccardo Mottola

Hi all,

Riccardo Mottola wrote:


I want to reinstall safely boot blocks as the installer does, how can 
I do it? best from the CD-ROM


let me summarize the situation:
- I had 6.4 not booting correctly (partition boot size issue)
- I upgraded 6.5, and all works, boots fine
- actually it did not work, certain things make the kernel crash (but 
can't report properly, I can't produce a dmesg, etc.. wifi makes a 
kernel panic)
- after two or three panics the machine does not boot anymore, I did 
run fsck


It looks early crashing, like reverting to the previous situation. I 
wonder if the filesystem may corrupt that way?


I resorted in "upgrading" in place, from 6.5 to 6.5 again, this forced 
reinstall.. and the laptop boots again fine :)


Smart installer! After all, overwriting what was just installed should 
not do big harm.


Riccardo



reinstalling boot blocks

2019-06-18 Thread Riccardo Mottola

Hi,

I want to reinstall safely boot blocks as the installer does, how can I 
do it? best from the CD-ROM


let me summarize the situation:
- I had 6.4 not booting correctly (partition boot size issue)
- I upgraded 6.5, and all works, boots fine
- actually it did not work, certain things make the kernel crash (but 
can't report properly, I can't produce a dmesg, etc.. wifi makes a 
kernel panic)
- after two or three panics the machine does not boot anymore, I did run 
fsck


It looks early crashing, like reverting to the previous situation. I 
wonder if the filesystem may corrupt that way?


First thing I'd try is to reinstall just the boot loader and stuff, but 
the standard way doesn't work from installer, but I bet a command does it!


As soon as I get the box booting again, I try to report the bad wireless 
kernel crashes.


Thanks,

Riccardo



Re: Modern browser for OpenBSD powerpc

2019-05-30 Thread Riccardo Mottola

Hi Jordan,

Jordan Geoghegan wrote:


If you're going down that path, you should see if you can get 
TenFourFox to compile. TenFourFox does have a jit and supports altivec.



http://www.floodgap.com/software/tenfourfox/

https://github.com/classilla/tenfourfox


I do know, having contributed to TenFourFox myself. However, things are 
not so easy: TFF is optimized specifically for one Mac version, 10.4 and 
PowerPC.


While I assume that the JIT can be generalized and implanted into 
ArcticFox (or maybe even into official FireFox?) it is added and 
#ifdef'd specifically for Mac, so not easy at all.


ArcticFox, while intending to target also older macs (but not 10.4) 
intends to remain Unix compatible and portable!
We are already importing endian fixes and AltiVec optimizations, but the 
JIT will be harder.


So, in case, patches for ArcticFox are appreciated.

Riccardo



Re: Modern browser for OpenBSD powerpc

2019-05-30 Thread Riccardo Mottola

Hi Henry,

Henry Bonath wrote:

Here's my build info for 6.5 PowerPC:

pkg list:
autoconf--%2.13
dbus-glib--
g++--%4.9
gcc--%4.9
gmake--
python--%2.7
py-pip--
yasm--
unzip--
zip--

And my .mozconfig:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

export CC="egcc -O3 -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec
-falign-loops=16 -falign-functions=16 -falign-labels=16
-falign-jumps=16"
export CXX="eg++ -fpermissive -O3 -mcpu=7450 -mtune=7450 -maltivec
-mabi=altivec -falign-loops=16 -falign-functions=16 -falign-labels=16
-falign-jumps=16"

mk_add_options MOZ_OBJDIR=/usr/local/src/afbuild/
mk_add_options MOZ_MAKE_FLAGS="-s -j2"

ac_add_options --disable-crashreporter
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-updater
ac_add_options --enable-mozril-geoloc
ac_add_options --disable-webrtc
ac_add_options --disable-safe-browsing
ac_add_options --disable-parental-controls
ac_add_options --enable-release
ac_add_options --disable-necko-wifi
ac_add_options --disable-eme
ac_add_options --disable-gamepad
ac_add_options --enable-dbus
ac_add_options --disable-gio
ac_add_options --disable-pulseaudio
ac_add_options --enable-strip
ac_add_options --enable-install-strip
ac_add_options --enable-application=browser
ac_add_options --with-branding=browser/branding/arcticfox
ac_add_options --enable-optimize="-O2"

After about 11 hours, the build failed, I *think* it was my machine as
I got the error about Virtual memory exhausted..
(I attempted on a Powerbook G4 w/512MB of RAM)
I have some XServe G5's around here somewhere, I might load one of
those up to see if I can get it to build on that.




Yes, you exhausted your RAM. The build needs around 2GB to complete well 
(later, during the linking of libxul)
On my iBook with 1.25GB of RAM I need a lot of swap and linking 
completes after 20-30 minutes but completes.


I have an x86 I would like to test a bit (because it doesn't have SSE3) 
but with only 1GB of RAM it fails essentially or swaps for hours, 
depending on compiler optimization.


Also, big note: if you are limited in RAM don't issue a Make parallel 
build, it is useless and consumes more RAM.


Thanks for trying, I hope your XServe will do better!

Riccardo



Re: Modern browser for OpenBSD powerpc

2019-05-25 Thread Riccardo Mottola

Hi Jordan,


On 5/25/19 8:13 PM, Jordan Geoghegan wrote:


Riccardo

[1] : Official Repo: https://github.com/wicknix/Arctic-Fox

[2] : My current working fork, which gets regularly pulled into main: 
https://github.com/rmottola/Arctic-Fox






If you're going down that path, you should see if you can get 
TenFourFox to compile. TenFourFox does have a jit and supports altivec.



http://www.floodgap.com/software/tenfourfox/

https://github.com/classilla/tenfourfox



I do know about TenFourFox - having contributed to it myself and having 
worked on making on i386 again. An interesting fork, the best thing you 
can get on a PPC 10.4 or 10.5 Mac! However, the code is very Mac specific.


ArcticFox derives from PaleMoon 27 and thus is more portable, but 
improved build and compiler compatibility. Of course, in the long term, 
it would be delicious to merge in TenFourFox's PPC JIT! AF and PaleMoon 
are not so "refined" as TenFourFox which really backported a lot of 
FireFox stuff


Yet, ArcticFox allows you to use stuff like yahoo mail, gmail and 
facebook, if needed. It doesn't work well enough for github, which is 
now a monster.


I'd be interested to know if OpenBSD/PPC works... or try to help, in case.

In the meanwhile, I think ArcticFox will fit the OP needs: you can 
access gmail and yahoo mail



Help for ArcticFox... generally appreciated!




Riccardo



Re: Modern browser for OpenBSD powerpc

2019-05-25 Thread Riccardo Mottola

Hi,

On 5/23/19 8:19 AM, John Gould wrote:

Can someone suggest a modern graphical browser for OpenBSD PowerPC?
I'm trying to run
several G5's and g4 mini's on 6.5 as desktop machines. The basic
install works really well but there doesn't seem to be an up to date
graphically browser.

It's thanks to all the work the devs have put into OpenBSD powerpc
that these machine are still very usable. They are hopelessly out of
date as far as the Mac OS are concerned!



you might try ArcticFox, it has a decent success on Linux PowerPC. 
Several endianness fixes were imported.


It is not "totally" modern, but still more modern than Dillo. Beware 
that you need at least 1G of RAM to be of decent use with modern 
websites, 2GB is better.


Although it is of PaleMoon heritage and thus Linux/Mac heritage, I fixed 
compilation on NetBSD, OpenBSD and lately even FreeBSD compiles out of 
the box.



Beware however, that while perfectly usable on older x86, it has no 
working JIT, so JS intensive websites will be slow on PowerPC. Also 
compilation on OpenBSD/ppc was never attempted by me, only on Linux/PPC. 
OpenBSD amd64 however does work.



Riccardo

[1] : Official Repo: https://github.com/wicknix/Arctic-Fox

[2] : My current working fork, which gets regularly pulled into main: 
https://github.com/rmottola/Arctic-Fox







Re: increase user memory limits (staff group)

2019-02-11 Thread Riccardo Mottola

Hi Solene!

Solene Rapenne wrote:

The names in login.conf are classes, this is not related to groups.
You can find in which class your user by looking at the 5th field of
your username in /etc/master.passwd. You can use the following command:

 $ doas awk -F':' '/^YOUR_USER/ { print $5 }' /etc/master.passwd

If it returns "staff" then you should have the correct limits from
/etc/login.conf


thanks for the hint, I got side-tracked by the name of the class being 
the same as group.


Your command does not return anything, so the solution was as simple as

sudo usermod -L staff 

and now your command returns "staff"... fine!

I won't set any defaults for classes, since it is only me that needs 
this for now.



Thanks,

Riccardo



increase user memory limits (staff group)

2019-02-11 Thread Riccardo Mottola

Hi all,

I need to compile certain big softare and want to do this as user, I am 
hitting memory limits, e.g:


../../js/src/libjs_static.a: could not read symbols: Memory exhausted

I read in various post and man pages, but am a little confused.

First thing, I added my user to the "staff" group, which should have 
increased limits, but they are not enough.


$ groups
staff wheel wsrc

in login.conf, I have:

default:\
    :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin 
/usr/local/bin /usr/local/sbin:\

    :umask=022:\
    :datasize-max=2048M:\
    :datasize-cur=1024M:\
    :maxproc-max=256:\
    :maxproc-cur=128:\
    :openfiles-cur=512:\
    :stacksize-cur=4M:\
    :localcipher=blowfish,a:\
    :tc=auth-defaults:\
    :tc=auth-ftp-defaults:

staff:\
    :datasize-cur=2048M:\
    :datasize-max=infinity:\
    :maxproc-max=512:\
    :maxproc-cur=256:\
    :stacksize-cur=32M:\
    :ignorenologin:\
    :requirehome@:\
    :tc=default:



I see this once logged in:
$ ulimit -a
time(cpu-seconds)    unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 1325784
stack(kbytes)    4096
lockedmem(kbytes)    3957020
memory(kbytes)   3957020
nofiles(descriptors) 512
processes    128


I suppose that to solve my "memory exhausted" error I need to increase 
data and perhaps stack, since memory is already 4GB.


However, if I attempt:

$ ulimit -d 3957016
ksh: ulimit: -d exceeds allowable limit

$ ulimit -d 2097152
ksh: ulimit: -d exceeds allowable limit

can you give me a hint of what am I missing? apparently both 
"datasize-max" and "datasize-cur" aren't working, since as default I get 1GB


Thanks.

Riccardo



Re: Boot reboot issue after upgrade to 6.4 on amd64

2019-02-11 Thread Riccardo Mottola

Hi,

Joel Sing wrote:

The specific "heap full" issue that can be triggered by using a single large
partition is not likely to be at fault here - if you cannot boot the ramdisk
(bsd.rd/installer) for 6.3 or 6.4 from a USB key, then something else is
presumably up (unless you're actually trying to load the installed kernel or
ramdisk from the hard disk).


some time passed, but I have new information.
Essentially, booting from USB key proved sometimes unreliable. I burned 
a CD-CDROM and am able to do the following

- boot from cd and at the bootload prompt
- "bood hd0a:bsd"

and boot into a fully working 6.4 installation.

This is of course a little cumbersome as a workaround. Can I fix it?

I attempted to install "biosboot" of 6.3: I extracted 6.3, used 6.4 
installboot to install mdec/biosboot from 6.3

It does not help though.

What else could I try, given that the bootloader of the CD appears to 
work fine?


Riccardo




Re: Boot reboot issue after upgrade to 6.4 on amd64

2018-11-27 Thread Riccardo Mottola

Hi Nick,


Nick Holland wrote:

So far, with one or two exceptions, everyone complaining about this has
a One Big Partition disk layout.  A bad idea, not suggested, and I don't
think you will get much sympathy.


yes of course (TM).. I won't get much sympathy, but it is the best 
set-up for a dual-booting laptop it works for every OS I test and worked 
until 6.3 for me.
For other set-ups I use different partitioning schemes, but I suppose in 
the past twenty years or so, we all had our issues with disk layouts.





I know of one machine that behaves as you describe with a very modest
(smaller than suggested) root partition, but I'm feeling very alone
here. :D


what is the actual size limit? from where? I wonder that I cannot even 
boot the old kernel which worked.. at the previous boot!



I cannot shuffle the partitions, I cannot even reinstall from scratch, 
since I am unable to boot from an USB key with the installer image, it 
crashes both the 6.4 installer image as the old 6.3.


All important data is backed up, but I need to reinstall at least and 
cennot even do that. Of course booting abd being able to copy a last 
snapshot of my home directory would be even best, to retain my profiles.


Should I try boot from optical media? could that help? I suppose not...

Thanks,


Riccardo



Boot reboot issue after upgrade to 6.4 on amd64

2018-11-27 Thread Riccardo Mottola

Hi all,

I have a strange and blocking issue after upgrade to 6.4 on my x86-64 
laptop, which was running 6.3 just fine.


I got the bsd.rd kernel, booted it and installed, quick, easy no issue.
Now, if I reboot, the kernel will reboot just after having written the 
first line of numbers on the screen.


The bad news is that both booting the new kernel as well as the bsd.rd 
kernel gives the issue, so the existing bsd.rd which for installation 
booted just fine.


The only thing I can think is that the boot blocks were updated and that 
they fail to load.


I also tried making an USB key with 64, I get to the bootloader prompt, 
but everything I try will make the laptop reboot, both booting from hd0a 
as wella s hd1a!

I also tried making an USB key with 63, but that too fails the same way?

Windows partition continues to boot fine, or I would almost think of 
having some sort of hardware failure!!!


I did not make changes to the Bios, UEFI boot is still disabled. I found 
"Intel Anti-Theft" enabled and disabled it.


And now?


Riccardo



Re: New laptop recommendations

2018-06-26 Thread Riccardo Mottola

Hi,

Stuart Longland wrote:

The IBM Thinkpads… sure, they worked well.  The Lenovo ones?  Looking at
the ones around the office, they've been a bit hit-and-miss, on both
Linux and their out-of-the-box Windows installs.


that is true... the latest IBM heritage you can get is the T43, although 
already manufactured by Lenovo.
Wonderful chassis, incredible hinges... and I have one running Ubuntu, 
une NetBSD.
I run OpenBSD on a T60 with the hi-res screen and while it works very 
well as far as hardware supports, the chassis quality is already lesser.


The bigger cousin, the T61 I have, already has nvidia and that is a 
nightmare: I couldn't get it useful on neither OpenBSD nor NetBSD so it 
is my FreeBSD tinker machine now, where I have to use the proprietary 
drivers (the opensources ones are available, but not up to it)


then from there it goes up and down...




I can't comment on their reliability on OpenBSD however as I think I'm
the only one in my office that uses it at all, and I tend to reserve it
for servers and routers which is an area which OpenBSD excels at.


I try to use my BSD boxen for every day use, although I always have a 
Windows machine at hand for the "stupid" work.

I use X11 program on it and browse and use mail.

One thing I never tried on any BSD since a long time is the use of a 
webcam: the only thing I use is Skype and it is quite hopeless.


The OP asked for a MacBook Pro replacement: since the value of a Mac for 
me is now mostly MacOS (oh, sorry macOS)

With OpenBSD many alterantives are interesting: besides the cited ThinkPads

I have tried OpenBSD on a discarded hp ProBook 4530s... I need to use 
intel graphics instead of the Radeon, but it works very well. It used 
not too, but 6.2 and 6.3 brought an incredible improvement: sleep works, 
wireless, correct display brightness: quick and responsive! The machine 
has a very decent keyboard too and the i5 is fine also for development 
and browsing (except the classic browser issues on FOSS). If you can get 
one for cheap, recommended: but it is a big beast.


Riccardo



Re: screenshot with maim: Invalid number of channels provided to image.

2018-06-20 Thread Riccardo Mottola

Hi,

Rudolf Sykora wrote:

Failed to detect a compositor, OpenGL hardware-accelleration disabled...


and fix the typo?

Riccardo



Re: WEP broken

2018-06-09 Thread Riccardo Mottola

Hi Stuart,


On 04/06/2018 22:35, Stuart Henderson wrote:

On 2018-06-04, Riccardo Mottola  wrote:

just an update, it took me a while. I had issues with the sources on
certain mirrors.

Can you provide more details please? If there are anoncvs mirrors with
bad source code that needs fixing.




I did not use anoncvs, I downloaded sys.tar.gz and src.tar.gz fron the 
6.3 release from a mirror, I believe the french mirror.
I just "fixed" anther system (this time amd64) for WEP and used again 
fresh tarballs and it went fine. Perhaps the mirror updated or had 
another issue.


Riccardo


Re: WEP broken

2018-06-04 Thread Riccardo Mottola

Hi Stefan


Stefan Sperling wrote:

I don't think it is worth the effort for us.

You are literally the only person I know of who has requested an
official backport of this fix. WEP was already broken in OpenBSD 6.2
which was released in October 2017. In all this time, nobody complained.
So it does not look like this problem affects many people.

The patch to fix WEP is trivial and should apply cleanly to
a 6.3 source tree if needed:


just an update, it took me a while. I had issues with the sources on 
certain mirrors.
I was able to get a good one, compile a GENERIC.MP kernel with just your 
patch applied and it fixes for me both the newer as the older ThinkPads 
I had. Very fine.


Thanks,

Riccardo



Re: 6.3 - dhclient not working on wireless

2018-05-11 Thread Riccardo Mottola

Hi,

Stefan Sperling wrote:

The keyword 'nwkey' indicates you are using WEP. Is that correct?


Yes!



A commit of mine accidentally broke WEP support back in August 2017.
This was eventually fixed in -current 2 weeks ago. Nobody noticed
that WEP was broken for 8 months...


I did notice that actually, but I upgraded two computers on a different 
timeframe. The first one being old, i supposed had different issues, I 
thought it had an issue with the PCMCIA adapter.. so i was unable to do 
further test
When I updated a more modern ThinkPad which was known good and which has 
both wired and wireless integrated networks I was able to track it down.


Is a backport possible to "stable"?



I'd suggest switching this wifi network to WPA2, or just leaving it open
since WEP is no better than leaving your wifi open in the first place.


Well, almost, but at least people don't accidentally hack, but must do 
that on purpose..




We provide WEP only for interop with legacy networks outside your control.


That's the case... certain devices do not support WPA2 on that network 
so it stays such and data is encrypted on a higher level (e.g. ssh 
connections)


Riccardo



frequent SeaMonkey crashes

2018-05-06 Thread Riccardo Mottola

Hi,

after 6.3 upgade (with associated packages) I experience very frequent 
crashes of the SeaMonkey browser.
I checked RAM consumption and it crashes even if it is not very hight, 
around 400MB, for example.


I tried starting it from a terminal and see this message after a crash:

seamonkey: Fatal IO error 12 (Cannot allocate memory) on X server :0.

Is it a bug perhaps_ or some limit i can extend?

I tried FireFox and it seems a little bit better: strange though, 
because usually it is has always been the other way and I am a long-time 
seamonkey fan.


Riccardo



6.3 - dhclient not working on wireless

2018-05-05 Thread Riccardo Mottola

Hi,

I upgraded to 6.3 and I cannot connect to a certain WiFi network 
anymore, or, better, ifconfig says it is connected and the LED says it 
is too, but then dhclient fails to get a lease from it.
I can connect to the same network through wired ethernet and dhclient 
correctly gets an address from the same router.


What is going wrong? can I enable some further information?

Here you can see ifconfig "active":
wpi0: flags=8843 mtu 1500
    lladdr 00:13:02:9a:52:1b
    index 2 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect (DS1 mode 11g)
    status: active
    ieee80211: nwid westernesse chan 10 bssid f8:d1:11:b9:07:2a 
-16dBm nwkey


(getting very near to the access point doesn't help eiher).
 dhclient -v wpi0
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: DHCPDISCOVER - interval 1
wpi0: no lease ... sleeping

what's going wrong? how can I get more information?
It used to work: I have a small shell script I launch so i know I did 
not change anything, nor did the network configuration change.


Thanks,

Riccardo


Mandatory dmesg:
OpenBSD 6.3 (GENERIC.MP) #491: Sat Mar 24 14:38:11 MDT 2018
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2500 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF,SENSOR

real mem  = 3219472384 (3070MB)
avail mem = 3146792960 (3001MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 04/01/10, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS rev. 
2.4 @ 0xe0010 (68 entries)

bios0: vendor LENOVO version "79ETE6WW (2.26 )" date 04/01/2010
bios0: LENOVO 2007WRU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) EXP0(S4) EXP1(S4) EXP2(S4) 
EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2500 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF,SENSOR

ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: !C3(100@57 io@0x1016), !C2(500@1 io@0x1014), 
C1(1000@1 halt), PSS
acpicpu1 at acpi0: !C3(100@57 io@0x1016), !C2(500@1 io@0x1014), 
C1(1000@1 halt), PSS

acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB7
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"IBM0057" at acpi0 not configured
"IBM0071" at acpi0 not configured
"ATM1200" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "92P1137" serial   121 type LION oem "SANYO"
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout0 at acpivideo0: LCD0
acpivideo1 at acpi0: VID_
acpivout at acpivideo1 not configured
bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 
0xdc000/0x4000! 0xe/0x1!

cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2000, 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82945GM PCIE" rev 0x03: apic 1 int 16
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon Mobility X1400" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 1 int 16
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog 
Devices AD1981HD

audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 20
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel 82573L" rev 0x00: msi, address 
00:15:58:2e:43:6c

ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 1 int 21
pci3 at ppb2 bus 3
w

strange hang of ThinkPad with 6.2, pms0 issue

2018-03-28 Thread Riccardo Mottola

Hi all,

I am running 6.2 on x86 on an old ThinkPad.
6.1 was rock-solid and never had issues, I was able to complete the 
install of 6.2 only recently, because I had issues with network and all 
network cards (PCMCIA) I had at hand. No wireless card would work 
properly and only one of two wired cards I had at hand would. Before all 
worked.


I was running X11 and compiling happily and also had a ssh session 
active, no particular issues.
Suddenly, without even typing or using the system, it became 
unresponsive. Typing in the terminal seemed not working, actually I got 
garbage after some time.

The ssh connection dropped and could not be re-established.

I was able to switch to the first console again and could see this 
kernel message repeated three times:


pms0: not in sync yet, discard input (state 0)

also, I noticed that typing worked somehow: each keystroke would be 
repeated 6 times in a row, making it impossible to type in anything or 
reboot the machine


Riccardo

OpenBSD 6.2 (GENERIC) #163: Tue Oct  3 19:51:20 MDT 2017
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 499 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,PSN,MMX,FXSR,SSE

real mem  = 334839808 (319MB)
avail mem = 314380288 (299MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 11/30/99, BIOS32 rev. 0 @ 0xfd820, SMBIOS rev. 
2.2 @ 0xf7690 (55 entries)

bios0: vendor IBM version "ITET55WW" date 11/30/1999
bios0: IBM 26454EG
acpi at bios0 function 0x0 not configured
apm0 at bios0: Power Management spec V1.2
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x800
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf9d00/128 (6 entries)
pcibios0: PCI Exclusive IRQs: 11
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371AB PIIX4 ISA" 
rev 0x00)

pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0x4000, size 0x400
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Neomagic Magicgraph NM2360" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
cbb0 at pci0 dev 2 function 0 "TI PCI1450 CardBus" rev 0x03: irq 11
cbb1 at pci0 dev 2 function 1 "TI PCI1450 CardBus" rev 0x03: irq 11
"AT&T/Lucent LTMODEM" rev 0x01 at pci0 dev 3 function 0 not configured
clcs0 at pci0 dev 6 function 0 "Cirrus Logic CS4280/46xx CrystalClear" 
rev 0x01: irq 11

ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02: 
unable to claim ownership from BIOS, SpeedStep disabled
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0:  ATAPI 
5/cdrom removable

cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x03: SMI
iic0 at piixpm0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at piixpcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev 
1.00/1.00 addr 1

vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
ne3 at pcmcia0 function 0 "D-Link, DFE-670TXD, PC Card" port 0xa000/32, 
address 00:13:46:34:0d:62

nsphyter0 at ne3 phy 1: DP83815 10/100 PHY, rev. 0
root on wd0a (378dd2c6192ddec8.a) swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
clcs0: firmware loaded
audio0 at clcs0



Re: the Alpha lives...

2018-03-18 Thread Riccardo Mottola

Hi Paul,

On 2018-03-18 15:55:34 +0100 Paul de Weerd  wrote:


I recently started to resurrect my old Alpha (Digital PWS 600au).  It
was spewing a garbled mess on serial console, so I had to find a PCI
video card to install in it first.  Then a PS/2 keyboard.  Then it
turned out to have reverted to the PWS 600a (AlphaBIOS, supposed to
run Windows NT).  This was due to a dead battery (no wonder, the
machine was in my storage for ~13 years).  However, with the battery
replaced, it booted fine into the OpenBSD 3.7 install that was still
on there.


compliments! I must admit the coolness factor!

I'm envious you can OpenBSD your alpha, while I am always been a SPARC 
(32) fan and now I have many machines but the only current OS is 
NetBSD!


I hope it will prove stable!

Riccardo



Re: Lenovo T60p touchpad not working (6.2-stable/amd64)

2018-02-07 Thread Riccardo Mottola

Hi Jonathan,

it took me some time to verify, so sorry for the long answer.

I updated my T60 to OpenBSD 6.2 and both the Touchpad as the Track 
Pointer work fine without tricks of suspend/resume.



bios0 at mainbus0: date 04/01/10, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS rev. 
2.4 @ 0xe0010 (68 entries)

bios0: vendor LENOVO version "79ETE6WW (2.26 )" date 04/01/2010
bios0: LENOVO 2007WRU

pms0: Synaptics touchpad, firmware 6.2, 0x81a0b1 0x30

Maybe different revisions of firmware/BIOS?

If I may ask, does screen brightness work for you? I have a dim 
setting and can't change it with the keyboard blue keys, but.


I also tried xbacklight

$ xbacklight
No outputs have backlight property


So... I'm stuck with something that is too dim with normal office 
lightning and too bright for an evening hack :)



Cheers,

Riccardo

On 2018-01-11 13:23:08 +0100 Jonathan Thornburg 
 wrote:



A further update... after a suspend-resume cycle (suspend-to-RAM,
which 'just works' via Fn-F4), the touchpad works fine.  'dmesg' shows
15 new lines appended after my most recent suspend-resume cycle, but
none of them mention the mouse (pms0) explicitly:

WARNING !(rw_status(&mode_config->mutex) == 0x0001UL) && 
!drm_modeset_is_locked(&mode_config->connection_mutex) failed at 
/sys/dev/pci/drm/drm_crtc.h:1577
WARNING !(rw_status(&mode_config->mutex) == 0x0001UL) && 
!drm_modeset_is_locked(&mode_config->connection_mutex) failed at 
/sys/dev/pci/drm/drm_crtc.h:1577

uhub0 detached
uhub1 detached
uhub2 detached
uhub3 detached
uhub4 detached
uhub0 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 
1.00/1.00 
addr 1
uhub1 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 
1.00/1.00 
addr 1
uhub2 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 
1.00/1.00 
addr 1
uhub3 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 
1.00/1.00 
addr 1
uhub4 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 
2.00/1.00 
addr 1
drm:pid80100:radeon_bo_unpin *WARNING* 0x80444390 unpin not 
necessary
WARNING !(rw_status(&mode_config->mutex) == 0x0001UL) && 
!drm_modeset_is_locked(&mode_config->connection_mutex) failed at 
/sys/dev/pci/drm/drm_crtc.h:1577
WARNING !(rw_status(&mode_config->mutex) == 0x0001UL) && 
!drm_modeset_is_locked(&mode_config->connection_mutex) failed at 
/sys/dev/pci/drm/drm_crtc.h:1577


Do other T60/T60p users see touchpad problems?





Re: drm (i915): add missing firmware

2018-01-02 Thread Riccardo Mottola

Hi,

On 2018-01-02 14:04:20 +0100 Luca Franchini  wrote:


I have downloaded skl_dmc_ver1.bin from Intel site.

Is there a chance to have it loaded?
Better power saving?
I'm very happy with OpenBSD 6.2 hw support in this laptop (Thinkpad 
T460p)



What does running "fw_update" do? I run OpenBSD fine with my 915.
I did not have to download anything from intel.

Most probably you have a different revision or a different issue

Riccardo



Re: 18-year-old laptop "Compaq Armada 1750" still works fine ...

2017-12-15 Thread Riccardo Mottola

Hi Jens,

On 2017-12-03 19:24:48 +0100 Jens A. Griepentrog 
 wrote:



OpenBSD 6.2 (GENERIC) #1: Fri Dec  1 12:00:30 CET 2017

r...@syspatch-62-i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Celeron ("GenuineIntel" 686-class, 256KB L2 cache) 366 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR,PERF

real mem  = 200785920 (191MB)
avail mem = 182915072 (174MB)
mpath0 at root


<...>

rl0 at cardbus0 dev 0 function 0 "Realtek 8139" rev 0x10: irq 11, 
address 
00:19:e0:18:0c:fe

rlphy0 at rl0 phy 0: RTL internal PHY
root on wd0a (98c8f8a7f56949dd.a) swap on wd0b dump on wd0b



That is cool.. BSD rocks, doesn't it? At least OpenBSD and NetBSD are 
still very capable here.


Question: how do you configure your network and does it work?

I just upgraded a similar vintage ThinkPad from 6.1 to 6.2 and network 
stopped working after the upgrade, both using a Wired and a Wiredless 
card: can get an IP address, but not ping even a local address.
I did not make a report yet because getting a dmesg and more 
information is a bit cumbersome, so just curious how it i for you. You 
have your network card on cardbus like me.


Riccardo



Re: Image viewer alternative to eog

2017-11-26 Thread Riccardo Mottola

Hi there,


On 25/11/2017 20:51, x9p wrote:

Is there a good/safe and light image viewer? Was used to eog, but it has
too many "vfprintf %s NULL" in messages. gimp is too big and good for play
with images, In need of smth fast.


I use LaternaMagica for that, small, single-window with list and has 
handy functions for exporting and resizing if needed.

I should know, I wrote it :) Latest version is even in ports!
But you may like or may not that it is in GNUstep.

Riccardo



Re: Thinkpad R40 varia

2017-09-07 Thread Riccardo Mottola

Hi,

Florian Ermisch wrote:

Swapping the general battery clears the 'CMOS' memory. I surmise that
>there is no seperate CMOS battery: I consider this a design flaw.
>

Have you checked for a separate CMOS
battery - which is probably long dead?




there is one, usually wrapped in a yellow plastic. a Lithium battery. I 
have seen dozens of thinkpads of your vintage. From model to model it 
might change place and way to access it. Usually under the palmrest or 
under the keyboard. Sometimes near the RAM access door.


A non original hard-disk might give you a Bios error, but will work. No 
need for any extra partition, you can install OpenBSD (or NetBSD or also 
Linux) just straight on it. I have done that on many thinkpads, in 
cluding models very similar to yours.


Riccardo



Re: Etnernal & infernal browser woes

2017-04-29 Thread Riccardo Mottola

Hi,


On 28/04/2017 14:18, Jyri Hovila [iki.fi] wrote:

which is properly coded, very stable and secure, but (when it comes to
a "normal" user or even an experienced sysadmin) utterly useless when
it comes to doing the stuff everyone does these days -- browsing the
net. Yes, I know many of you are browsing the net with OpenBSD. So am
I. Just to make sure everyone understands what I mean: it is not that
it would be impossible, it is just insanely irritating and slow.


I am an avid NetBSD and OpenBSD user and the two system perform similar 
regarding browsers.
The first reason of crash is memory limits,: so be sure to raise them. 
If you use those "hungry" sites you cite, the most common problem is 
killing of the browser because of memory. The delay you notice is then 
given by the dump.


Personally I do not notice any "slowdown" on OpenBSD when using a 
comparable NetBSD system or even Linux or FreeBSD system. Actually, 
except where video, plugins or other similar things are involved, the 
system works very well. I will say more: on BSDs the machine remains 
quite usable even if the browser slows down, while e.g. on Windows not.
I use gecko engines mostly: SeaMonkey and Firefox and compare on all 
platforms. I stay away from Chrome/Chromium stuff for various reasons.
I haven't tested Midori well on BSD, but on Linux and Windows it isn't 
that better than Firefox: slow opening and starting, even if then pages 
perform decently


The issue is that the browsers themselves are very much Windows and 
x86/amd64 oriented, with a little eye on Mac and Linux. Other 
architectures work worse. PPC is rotting, ARM is not that different.


I use Salesforce.com all day long professionally (which has very 
intensive pages) and notice I can use it very well on my OpenBSD or 
NetBSD laptop, even gaining some speed compared to a Windows machine! 
What is slower is that the whole "video" is a bit slower surely due to 
worse drivers, but e.g. SeaMonkey itself works quite well.


Keep an eye with top on your browser memory usage and the limits you se.

Riccardo



Re: Opinion about Rust and Go

2017-03-29 Thread Riccardo Mottola

Hi,


On 03/29/17 11:42, Janne Johansson wrote:

As a non-obsd dev but fan of running non-mainstream platforms, things like
this feels like a guarantee that those languages don't really hit off on
anything that isn't arm64 or amd64 (or i386):


and for that reason firefox will become less portable in the future... I 
fear bye bye firefox on PPC, Sparc... even on Linux and of course worse 
on BSD or older version of MacOS. I don't know about MIPS but it will be 
in the same park.


You loose years of of work on GCC and clang platform support that give 
your application portability!


Riccardo



Re: Microsoft announced it is joining The Linux Foundation

2016-11-16 Thread Riccardo Mottola

Hi,

SOUL_OF_ROOT 55 wrote:

Can this be?  Microsoft announced it is joining The Linux Foundation



this is "misc" but still OpenBSD misc.

Riccardo



Re: seamonkey package x86

2016-10-31 Thread Riccardo Mottola
Hi Stuart,


On 07/10/2016 19:54, Stuart Henderson wrote:
> It doesn't build, it requires 64-bit atomic operations and the usual way
> to request these on those i386 CPUs which support it (-march=i686) didn't
> work when I tried it.

I have successfully built seamonkey on FreeBSD and on Gentoo Linux on 
x86 and they work, I also have it as binary package on Ubuntu, thus 
there must be a way to have it.
Do you think that it could depend on the compiler version used?

FreeBSD nowadays builds with clang, but Gentoo not.

https://packages.gentoo.org/packages/www-client/seamonkey

shows x86 as fine in fact. What version would you build, 2.40?

The only "trick" that I spot there in Gentoo is this:

|

if  [[  $(gcc-major-version)  -lt4  ]]  ;  then
append-cxxflags -fno-stack-protector
elif  [[  $(gcc-major-version)  -gt4  ||  $(gcc-minor-version)  -gt3  
]]  ;  then
if  use amd64||  use x86;  then
append-flags -mno-avx
fi
fi

|

seems to disable AVX, I don't see any other stuff though.

Riccardo



seamonkey package x86

2016-10-07 Thread Riccardo Mottola

Hi,

has the seamonkey package been removed or has it special issues? I see 
it available on amd64 but not on x86... although seamonkey-enimgmail is 
present.
I'd like to avoid building it myself if it is known to fail and also it 
is oen fo the "big" packages to build on a laptop.


Thank you,

Riccardo



Re: hw.sensors.acpibat0.raw0 - does it change state?

2016-09-19 Thread Riccardo Mottola

Hi,

tomr wrote:

Am I right in thinking that pulling the power cable cannot be directly
detected by sensorsd, because a 'state change' does not occur? A la...

hw.sensors.acpibat0.raw0=1 (battery discharging), OK

vs:

hw.sensors.acpibat0.raw0=2 (battery charging), OK


acpiac0.indicator0 ?

That's what I use in GNUstep battery monitor - appears to be fine on 
most laptops I have ad access to.


Riccardo



Re: image view and manipulation

2016-07-04 Thread Riccardo Mottola

Hi,

jsg wrote:

 Can some of you recommend what packages or package
you use to manipulate, view, resive  .png or .img (other) imaeges
for website content.


command-line or GUI?
For GUI, I use LaternaMagica and PRICE. I use LaternaMagica for mssive 
exports and resizing.
A limitation is that they only save JPG and TIFF, while they open many 
more formats, although not .img which you cite.


I'm biased of course, being the author of both programs. The mantra is 
that if you need something, you can code it yourself. It takes some time 
though so you can't apply it ot everything!


Riccardo



Re:

2016-05-16 Thread Riccardo Mottola

Don't feed the troll.

1 9 wrote:

What editor? vim or emacs? what is the reason?


start by putting a subject in your mails,  having a proper name, 
greeting and sign-off.


Riccardo



Re: non-wintel hardware choices

2016-05-06 Thread Riccardo Mottola

Hi,

Bryan Everly wrote:

Unfortunately PA-RISC doesn't have X support at the console. You can
run X on it and have the Windows render on a SPARC, MIPS or Intel
platform though.


sorry, didn't know that. I always did run my HP hardware headless... so 
I never noticed.
I always liked the CPU since University... I am sad that it morphed into 
Itanic and now drowns to oblivion.


Riccardo



Re: non-wintel hardware choices

2016-05-05 Thread Riccardo Mottola

Hi,

Gregory Edigarov wrote:
if I want to build a non-wintel system with commodity running OpenBSD 
without problems, what are my options?
preferably something non-apple also, which i will be able to connect 
display, mouse, and keyboard, and hopefully run X, etc. 


since we don't have Raspberry support, then your choice for reasonable 
(albeit almost all obsolete) platform restricts to ultra-sparc (old 
sparcs are fun, but slow by any means and also the CPU support is for 
OpenBSD hit and miss... 2 of my SparcStations are unstable), PPC (some 
Amiga boards, older Macs) and... nothing else. PA-RISC is fun, but I 
never tried X there.
And, if you think, the only other machines that could do are Itanium and 
Alpha.



For most of these, you will notice that base OpenBSD stuff works pretty 
well (as does NetBSD and to a lesser degree Linux) but several bigger 
application prove quite buggy! Browsers, mail clients.. everything is 
tested on i386/amd64 only.
SPARC and PPC seem to me more crashy when bad programming happens, which 
is actually a good thing and a reason to keep computing diversity alive. 
But I fear it will become worse, the only thing that has a chance is ARM 
which is used little-endian. Or embedded PPC, which is used also LE. Big 
Endian will perhaps not even taught at school in 10+ years.


On Linux I have Firefox running on PPC, but I read that others have 
issues with it on non-intel. Be prepared to find more bugs than usual.
We at GNUstep take quite some care that things work on PPC, SPARC and 
ARM, but because I love them :)


Riccardo



Re: After resuming from sleep, HP laptop kb unusable

2016-04-19 Thread Riccardo Mottola

Hi All,

Theo Buehler wrote:

This problem should be fixed for this machine in -current.
See this thread on tech@:

https://marc.info/?l=openbsd-tech&m=146035659601245&w=2

and this commit:

https://marc.info/?l=openbsd-cvs&m=146061765314970&w=2


I tried latest snapshot kernel and keyboard works after resuming! Great!
By looking at the commit comment, I am using exactly the same HP model 
mentioned!


Riccardo



After resuming from sleep, HP laptop kb unusable

2016-04-19 Thread Riccardo Mottola

Hi,

I can suspend my laptop by closing the lid, hitting the powerbutton the 
computer comes up again, however it looks frozen, I cannot type anything 
(or I may type 1 or two chars before it locks up). It happens both under 
console as with X11
Actually, it is not frozen. I noticed that with a mouse, under X11 and I 
also can ssh into the machine and get a dmesg, which contains also the 
resume messages.


I notice there is a "stack trace". Is that a hint to the issue? Someone 
other experience such a behaviour?


Riccardo

$ dmesg
OpenBSD 5.9 (GENERIC.MP) #1888: Fri Feb 26 01:20:19 MST 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 
9d

real mem = 4209762304 (4014MB)
avail mem = 4077973504 (3889MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xacdb6000 (25 entries)
bios0: vendor Hewlett-Packard version "68SRR Ver. F.41" date 05/22/2013
bios0: Hewlett-Packard HP ProBook 4530s
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SSDT SSDT SLIC SSDT SSDT
acpi0: wakeup devices LANC(S0) EHC1(S0) EHC2(S0) PCIB(S5) RP02(S4) 
ECF0(S4) RP03(S4) RP04(S5) WNIC(S5) RP06(S0) NIC_(S0) RP07(S4) RP08(S0) 
HST1(S5)

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) i5-2450M CPU @ 2.50GHz, 2494.73 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT

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) i5-2450M CPU @ 2.50GHz, 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,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) i5-2450M CPU @ 2.50GHz, 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,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) i5-2450M CPU @ 2.50GHz, 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT

cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus -1 (PEGP)
acpiprt1 at acpi0: bus -1 (PCIB)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus 35 (RP03)
acpiprt5 at acpi0: bus 36 (RP04)
acpiprt6 at acpi0: bus 37 (RP06)
acpiprt7 at acpi0: bus 38 (RP08)
acpiprt8 at acpi0: bus 0 (PCI0)
acpiec0 at acpi0
acpicpu0 at acpi0: C3(350@104 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(350@104 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(350@104 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(350@104 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: APPR, resource for HDEF
acpipwrres1 at acpi0: COMP, resource for COM1
acpipwrres2 at acpi0: LPP_, resource for LPT0
acpitz0 at acpi0: critical temperature is 128 degC
acpitz1 at acpi0: critical temperature is 128 degC
acpitz2 at acpi0: critical temperature is 128 degC
acpitz3 at acpi0: critical temperature is 128 degC
acpitz4 at acpi0: critical temperature is 128 degC
acpitz5 at acpi0: critical temperature is 128 degC
acpitz6 at acpi0: critical temperature is 128 degC
acpitz7 at acpi0: critical temperature is 128 degC
acpibat0 at acpi0: BAT0 model "Primary" serial 03294 2011/09/28 type 
LIon oem "Hewlett-Packard"

acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: LID_
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
cpu0: Enhanced SpeedStep 2494 MHz: speeds: 2501, 2500, 2000, 1800, 1600, 
1400, 1200, 1000, 800 MHz

pci

Re: xbacklight / screen brightness

2016-04-07 Thread Riccardo Mottola

Hi Ted,

On 04/07/16 16:22, Ted Unangst wrote:

Most drivers maintain soft state that should mirror the hardware state. Except
when it doesn't. Sometimes the driver has a bug, sometimes the hardware lies,
sometimes something else goes wrong. The many layers of abstraction and acpi
don't help either.


I supposed something like this.



It's a bug and it's worth reporting as much info about your hardware as
possible, but don't expect a quick fix. As a workaround, just run 'xbacklight
50 ; xbacklight 100' or whatever you want.


It is not "critical", just inconvenient!
I copy below my dmesg.
What other information could you need? Xorg information about the 
detected video card? In the log I see a mention about backlight:

[   136.527] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, 
Q35, Q33,

GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   136.527] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[   136.527] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[   136.527] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 
5200, 6200, P6300

[   136.527] (II) VESA: driver for VESA chipsets: vesa
[   136.537] (II) intel(0): Using Kernel Mode Setting driver: i915, 
version 1.6.0 20080730

[   136.537] (WW) Falling back to old probe method for vesa
[   136.538] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD 
Graphics 3000
[   136.538] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, 
sse4.2, avx
[   136.538] (II) intel(0): Creating default Display subsection in 
Screen section

"Default Screen Section" for depth/fbbpp 24/32
[   136.538] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[   136.538] (==) intel(0): RGB weight 888
[   136.538] (==) intel(0): Default visual is TrueColor
[   136.543] (II) intel(0): Output LVDS1 has no monitor section
[   136.559] (--) intel(0): Found backlight control interface wscons 
(type 'platform') for output LVDS1

[   136.559] (II) intel(0): Enabled output LVDS1
[   136.559] (II) intel(0): Output VGA1 has no monitor section
[   136.559] (II) intel(0): Enabled output VGA1
[   136.559] (II) intel(0): Output HDMI1 has no monitor section
[   136.559] (II) intel(0): Enabled output HDMI1
[   136.559] (II) intel(0): Output DP1 has no monitor section
[   136.559] (II) intel(0): Enabled output DP1
[   136.559] (--) intel(0): Using a maximum size of 64x64 for hardware 
cursors

[   136.559] (II) intel(0): Output VIRTUAL1 has no monitor section
[   136.559] (II) intel(0): Enabled output VIRTUAL1
[   136.559] (--) intel(0): Output LVDS1 using initial mode 1366x768 on 
pipe 0

[   136.559] (==) intel(0): TearFree disabled
[   136.559] (==) intel(0): DPI set to (96, 96)

dmesg:
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
RTC BIOS diagnostic error 
9d

real mem = 4209762304 (4014MB)
avail mem = 4078280704 (3889MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xacdb6000 (25 entries)
bios0: vendor Hewlett-Packard version "68SRR Ver. F.41" date 05/22/2013
bios0: Hewlett-Packard HP ProBook 4530s
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG ASF! SSDT SSDT SLIC SSDT SSDT
acpi0: wakeup devices LANC(S0) EHC1(S0) EHC2(S0) PCIB(S5) RP02(S4) 
ECF0(S4) RP03(S4) RP04(S5) WNIC(S5) RP06(S0) NIC_(S0) RP07(S4) RP08(S0) 
HST1(S5)

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) i5-2450M CPU @ 2.50GHz, 2494.69 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT

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) i5-2450M CPU @ 2.50GHz, 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,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC,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) i5-2450M CPU @ 2.50GHz, 2494.34 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,

xbacklight / screen brightness

2016-04-07 Thread Riccardo Mottola

Hi,

I noticed that on an HP 4530 laptop (using the intel video card, the 
extra video card which wasn't properly initialized and used in OpenBSD 
is directly disabled in the bios) comes up both in console and in X with 
a pretty dim screen brightness.


"xbacklight" tells me however "100".
if I lower it with "-set 90" I actually notice it gets brighter, setting 
it to "-set 100" .. it goes to full brightness.


It looks as if initially the value is read back incorrect from a status 
register?


Anyone else has a similar problem?

It appears very similar to what is happening on my ThinkPad.. there 
however I can't go up with brightness excepbt by putting the laotp to 
sleep and resuming it.


Riccardo



Re: GUI Designer

2016-02-22 Thread Riccardo Mottola

Hi,

Riccardo Mottola wrote:
I do use ProjectCenter for GNUstep and then code everything in 
Objective-C. 


I correct, I use Gorm, which is the GUI designer. ProjectCenter is the 
corresponding project builder, which I do use too, but only for simple 
projects since it is less refined than Gorm and for complex projects I 
end up writing makefiles myself. Slo I prefer gvim or emacs to the 
integrated editor for bigger work.


Riccardo



Re: GUI Designer

2016-02-22 Thread Riccardo Mottola

Hi,

Daniel Boyd wrote:

What do youguys use for a simple GUI with a
visualdesigner?


I do use ProjectCenter for GNUstep and then code everything in Objective-C.

Riccardo



Re: VAX - are we dropping support in 5.9?

2016-01-26 Thread Riccardo Mottola

Hi,

Christian Weisgerber wrote:

Armish, socppc, and sparc are also on their death beds.  I'm not
divulging deep secrets here; you can just check the dates on ftp
and see that no recent snapshots have been built.


I have two sparcstations and it is since 5.7 that building packages has 
been close to impossible. In the absence of packages, I tried to build 
them myself several times, but the kernel is quite unstable on certain 
CPU combinations, sadly, exactly those which I have.
Only the sparcstation 5 seemed to work, but the machine is a tad slow 
and low on ram here.


I remember Miod was looking at it, but the past months I did not check 
lately if there has been progress, had been busy fixing GNUstep "upstream".


I want also to revive my hppa box, if we speak about strange 
architectures, but the HDDs for these old machines are scarce and 
problematic.


Riccardo



Re: text-mode gui

2015-12-23 Thread Riccardo Mottola

Hi,

this thread has gone a long way.

Ted Unangst wrote:

improvements to the installer are welcome. suggestions that the installer
could use javascript to write cookies are not an improvement.


I actually like the OpenBSD installer quite a bit! it is easy on the 
machine, works and I have no issues with a command-line installer which 
asks questions. It has the added bonus that can be run on over a console 
and also on machines with little RAM! I know of cretain free OS where 
the installer requires MORE ram than the actual installed operating 
system, even if it has a text "pseudo" gui mode.


I only have a minor complaint: the network has to be set-up if one uses 
stuff from the network (or performs an upgrade without having the FULL 
cd) . I need to drop to shell, configure the network card, exit and then 
just procede with e.g. upgrade.


At first I was a little confused that I had to do that and how I would 
re-enter the process. Which is of course quite easy: just ctrl-d for a 
new login!


An explanatory sentence would help. I wouldn't change the workflow 
itself because it is easy.


Riccardo



Re: state of SSD by OpenBSD

2015-11-14 Thread Riccardo Mottola

Hi,

Nick Holland wrote:

><* peers over at the case of narrow SCSI drives sitting on the spare
>parts shelf and wonder if they'll still spin up; they probably will *>

and before tossing them, let developers know -- 4, 6 and 9G narrow scsi
drives are few and far between, and needed to keep some old hw running.
(I'm guessing everyone has more than enough 2G and smaller disks).


If they spin up and don't make terrible noises, they are precious indeed 
:) I agree with Nick! These are getting scarce.
Although if you have place for 2 drives, even a 2G one is useful, but 
I'm running short even on those. 68->50 pin converters do not fit and do 
not with all bus/drives versions, as I sadly discovered myself while 
trying to revitalize some Sparc and HP-PA boxen.


Riccardo



Re: SPARC minimum hardware specification

2015-07-17 Thread Riccardo Mottola

Hi,

Mihai Popescu wrote:

What are the minimum requirements for a "decent" SPARC machine? I mean
by that a machine who is able to run OpenBSD as a desktop. I am
currently use a Pentium 4 3.2GHz with 2 GB DDR and it barely meets my
needs. Tell me please the CPU or the machine name, I will search the
prices:-).
if "desktop" includes "browsing" the answer is "none". None that can 
won't be too big or too noisy.


Your P4 is still a mighty machine as a CPU, but it is single-core and 
has a terribly long pipeline too: today for browsing and most web-based 
stuff it is just not enough, even a slower, but dual-core cpu works better.

And you need a decent graphics card too.

The only non-intel machines that could be used as a desktop were PPC 
macs, but even those suffer today.


For all the rest, including development, compilation, email, 
newsgroup... even a decently fitted Ultra workstation could do.


I used to have "non intel" hardware for everything, but today it is not 
feasible anymore. You just need an intel laptop for that convenience. 
Not only for the power, but also because Firefox & friends often show 
bugs on non-intel. Furthermore if you do need Skype or other proprietary 
crap, you need Linux at least or directly Windows/Mac.


I love all my alternative architectures and OS's... but I need to have a 
standard piece of hardware handy. A pity, but for my even basic needs it 
is that way.

SSH to your sparc box, export display.

Riccardo



Re: Dual Booting OpenBSD vs Windows7

2015-06-29 Thread Riccardo Mottola

Hi,

Mohammad BadieZadegan wrote:

I want to dual booting OpenBSD with Windows7 and read many more pages about
customizing windows*bcdedit*  tools to booting dual OS like
*http://cromwell-intl.com/linux/multiboot-windows-openbsd/
*
*BUT*, all of these pages nothing changed and could not running dual OS.
Is that any hints about dual booting OpenBSD vs Windows7?


could you state a bit better what your problem is? I have dual-booting 
with Vista, which should be similar.


Are you getting the initial windows boot loader with the choice of your 
OS or not? Check 2) below (bcdedit.exe)

If you do, do you get a failure then? check 3), copy openbsd.pbr into c:

In short:

1) shrink: worked for me even with windows tools
2) set up BCD: worked for me as in FAQ, except that I missed another 
command to actually add the new entry

3) remember to generate and copy openbsd.pbr !

Riccardo



Re: hp laptop with nvidia - slow X11

2015-06-27 Thread Riccardo Mottola

Hi Alexandre,

Alexandre Ratchov wrote:

Sorry, I don't know. I got mine while debugging the vesa bits of a
boot loader. Try increasing X log verbosity. Or possibly guess it
from the output of "memconfig list", it's likely to be the only
variable-length entry large around 256GB-512GB, with ending address
right below 4GB.


the output of my memconfig list is the following:

0/1 BIOS write-back fixed-base fixed-length set-by-firmware active 
fix-active
1/1 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
2/1 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
3/1 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
4/1 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
5/1 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
6/1 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
7/1 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
8/4000 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
84000/4000 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
88000/4000 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
8c000/4000 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
9/4000 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
94000/4000 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
98000/4000 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
9c000/4000 BIOS write-back fixed-base fixed-length set-by-firmware 
active fix-active
a/4000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
a4000/4000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
a8000/4000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
ac000/4000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
b/4000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
b4000/4000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
b8000/4000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
bc000/4000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
c/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c1000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c2000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c3000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c4000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c5000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c6000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c7000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c8000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
c9000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
ca000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
cb000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
cc000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
cd000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
ce000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
cf000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d1000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d2000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d3000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d4000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d5000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d6000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d7000/1000 BIOS write-protect fixed-base fixed-length set-by-firmware 
active fix-active
d8000/1000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
d9000/1000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
da000/1000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
db000/1000 BIOS uncacheable fixed-base fixed-length set-by-firmware 
active fix-active
dc000/1000 BIOS write-protect fixed-base fixed-length set-by-f

Re: hp laptop with nvidia - slow X11

2015-06-17 Thread Riccardo Mottola

Hi Alexandre,

Alexandre Ratchov wrote:

Acceleration is not needed on "modern" machines to get fast 2D
display. The CPU speed and memory bandwidth are largely sufficient
to make desktop very responsive and watch full-screen movies.

Probably what you observe is that the video memory is setup in a
very restricted mode, making it extreamly slow.

For instance on my system, I measured 70MB/s with BIOS settings
(i.e. memory was slower than a hard disk, ridiculous), and 7500MB/s
when properly initialized. This is for intel chipset, but I
remember similar stories about nvidia chips.
well, yes, I expect any 64bit machine to get above the 4GB/s barrier, 
but 70MB/s are values I used to see with 25Mhz 68K CPUs

If you manage to get the address of the video frame buffer, you
could try to use the memconfig(8) utility to see if write-combining
is enabled for the frame buffer, and possibly enable it. This might
make things less worse. I'm not sure if setting mtrrs with
memconfig is still enough nowadays, maybe someone would have a
better insight.

shouldn't the driver take care of something like that?

"if you manage to get the address"... how do I do that? Perhaps in the X 
log?


I see this:
[   359.722] (II) NV(0): Creating default Display subsection in Screen 
section

"Default Screen Section" for depth/fbbpp 24/32
[   359.722] (==) NV(0): Depth 24, (--) framebuffer bpp 32
[   359.722] (==) NV(0): RGB weight 888
[   359.722] (==) NV(0): Default visual is TrueColor
[   359.722] (**) NV(0): Option "AccelMethod" "EXA"
[   359.722] (==) NV(0): Using hardware cursor
[   359.722] (==) NV(0): Using gamma correction (1.0, 1.0, 1.0)
[   359.722] (II) NV(0): MMIO registers mapped at 0x6f917826000
[   359.722] (--) NV(0): Total video RAM: 128.0 MB
[   359.722] (--) NV(0):   BAR1 size: 256.0 MB
[   359.722] (--) NV(0):   Mapped memory: 127.0 MB
[   359.723] (II) NV(0): Linear framebuffer mapped at 0x6f9760e1000

 Could the framebuffer be the start of the memory I need?

I thought something like:
$ sudo memconfig set -b 0x6f9760e1000 -l 0x7f0 write-combine


(127MB*1024*1024 = 3121152 = 0x7F0 as length)

memconfig: can't set range: Invalid argument

The man page says it needs a power of 2, it already is, but I tried 
128MB, thus 0x800, as a length, but it I still get an invalid range.


where am I erring? memconfig usage or base address?

Riccardo



Re: hp laptop with nvidia - slow X11

2015-06-17 Thread Riccardo Mottola

Hi Mike,

Mike Small wrote:


Just to be sure nv doesn't support exa with this card did you try
being explicit about it? I have an NVIDIA_NVS_3100M and thought
for the longest time I was in the boat of needing nouveau or changes
to nv but the following xorg.conf got me past the slowness (in 5.6):

Section "Device"
 Identifier "NVIDIA_NVS_3100M"
 Driver "nv"
 Option "AccelMethod" "EXA"
 Option "MigrationHeuristic" "greedy"
EndSection



it works! it is a bit faster now... still quite slow but it starts to be 
in the "usable" range... it feels like my ThinkPad 600 pentium 166Mhz 
with NeoMagic :)

But at least I can write this mail.

I see this in the Xorg log now, not very reassuring:

[   359.878] (--) Depth 24 pixmap format is 32 bpp
[   359.878] (--) NV(0): 123.04 MB available for offscreen pixmaps
[   359.899] (**) NV(0): Option "MigrationHeuristic" "greedy"
[   359.899] (II) EXA(0): Offscreen pixmap area of 133109760 bytes
[   359.899] (II) EXA(0): Driver registered support for the following 
operations:

[   359.899] (II) Solid
[   359.899] (II) Copy
[   359.899] (II) UploadToScreen
[   359.899] (==) NV(0): Backing store enabled
[   359.899] (==) NV(0): Silken mouse disabled
[   359.899] (II) NV(0): RandR 1.2 enabled, ignore the following RandR 
disabled message.

[   359.900] (==) NV(0): DPMS enabled
[   363.463] (--) RandR disabled
[   363.477] (II) AIGLX: Screen 0 is not DRI2 capable
[   363.477] (EE) AIGLX: reverting to software rendering
[   363.488] (II) AIGLX: Loaded and initialized swrast
[   363.488] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[   363.489] (II) NV(0): Setting screen physical size to 338 x 211
[   363.489] (WW) NV(0): Failed to reserve EXA memory for the screen or 
EXA returned an area with a nonzero offset.  Don't be surprised if your 
screen is corrupt.



Especially the last WW which is memory related.

Riccardo



hp laptop with nvidia - slow X11

2015-06-15 Thread Riccardo Mottola
Hi,

for the same laptop for which I just posted a full dmesg about the
battery problem, which reports this video card:

vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 8400M GS" rev 0xa1

I get a super-slow X11. Dragging an xterm may take half a second, up to
the point where X11 looses track of the mouse move events. Scrolling
XTerm is unusably slwo too.

Using a larger editor like Emacs or Firefox... even worse. It looks
totally unacelercated.

Should the 8400 work? IN the Xorg log I see this:
[  5902.005] (II) VESA: driver for VESA chipsets: vesa
[  5902.005] (--) NV: Found NVIDIA GeForce 8400M GS at 01@00:00:0
[  5902.005] (WW) Falling back to old probe method for vesa
[  5902.006] (II) Loading sub module "int10"
[  5902.006] (II) LoadModule: "int10"
[  5902.007] (II) Loading /usr/X11R6/lib/modules/libint10.so
[  5902.017] (II) Module int10: vendor="X.Org Foundation"
[  5902.017]compiled for 1.16.4, module version = 1.0.0
[  5902.017]ABI class: X.Org Video Driver, version 18.0
[  5902.017] (II) NV(0): Initializing int10
[  5902.017] (II) NV(0): Primary V_BIOS segment is: 0xc000
[  5902.018] (--) NV(0): Console is VGA mode 0x3
[  5902.018] (II) NV(0): Creating default Display subsection in Screen
section
"Default Screen Section" for depth/fbbpp 24/32
[  5902.018] (==) NV(0): Depth 24, (--) framebuffer bpp 32

so the "nv" driver loaded.. but then further below:
[  5902.185] (**) NV(0):  Driver mode "1280x800": 71.0 MHz (scaled from
0.0 MHz), 49.3 kHz, 59.9 Hz
[  5902.185] (II) NV(0): Modeline "1280x800"x59.9   71.00  1280 1328
1360 1440  800 803 809 823 -hsync -vsync (49.3 kHz eP)
[  5902.185] (==) NV(0): DPI set to (96, 96)
[  5902.185] (II) Loading sub module "fb"
[  5902.185] (II) LoadModule: "fb"
[  5902.185] (II) Loading /usr/X11R6/lib/modules/libfb.so
[  5902.200] (II) Module fb: vendor="X.Org Foundation"
[  5902.200]compiled for 1.16.4, module version = 1.0.0
[  5902.200]ABI class: X.Org ANSI C Emulation, version 0.4
[  5902.200] (II) Loading sub module "xaa"
[  5902.200] (II) LoadModule: "xaa"
[  5902.208] (WW) Warning, couldn't open module xaa
[  5902.208] (II) UnloadModule: "xaa"
[  5902.208] (II) Unloading xaa
[  5902.208] (EE) NV: Failed to load module "xaa" (module does not exist, 0)
[  5902.208] (II) Loading sub module "ramdac"
[  5902.208] (II) LoadModule: "ramdac"
[  5902.208] (II) Module "ramdac" already built-in
[  5902.208] (II) UnloadModule: "vesa"
[  5902.208] (II) Unloading vesa
[  5902.208] (--) Depth 24 pixmap format is 32 bpp
[  5902.224] (--) NV(0): 120.69 MB available for offscreen pixmaps
[  5902.228] (==) NV(0): Backing store enabled
[  5902.228] (==) NV(0): Silken mouse disabled
[  5902.230] (II) NV(0): RandR 1.2 enabled, ignore the following RandR
disabled message.
[  5902.237] (==) NV(0): DPMS enabled
[  5905.804] (--) RandR disabled
[  5905.856] (II) AIGLX: Screen 0 is not DRI2 capable
[  5905.856] (EE) AIGLX: reverting to software rendering
[  5906.010] (II) AIGLX: Loaded and initialized swrast
[  5906.010] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  5906.011] (II) NV(0): Setting screen physical size to 338 x 211

I suppose the "reverting to software rendering" is the final error and
clue to the problem: no kind of acceleration at all.

Riccardo



hp laptop: acpi - power adapter problem

2015-06-15 Thread Riccardo Mottola
Hi,

on my HP laptop (dmesg below) I notice that both with acpi and with apm,
it is always reported that the power adapter is connected, even if it is
not. The power level of the battery seems reasonable.

With power cord attached:
hw.sensors.acpitz0.temp0=56.00 degC (zone temperature)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpibat0.volt0=14.80 VDC (voltage)
hw.sensors.acpibat0.volt1=12.48 VDC (current voltage)
hw.sensors.acpibat0.current0=unknown (rate), UNKNOWN
hw.sensors.acpibat0.amphour0=4.10 Ah (last full capacity)
hw.sensors.acpibat0.amphour1=0.21 Ah (warning capacity)
hw.sensors.acpibat0.amphour2=0.12 Ah (low capacity)
hw.sensors.acpibat0.amphour3=4.10 Ah (remaining capacity), OK
hw.sensors.acpibat0.amphour4=6.00 Ah (design capacity)
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpibtn2.indicator0=On (lid open)

Without:
hw.sensors.acpitz0.temp0=56.00 degC (zone temperature)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpibat0.volt0=14.80 VDC (voltage)
hw.sensors.acpibat0.volt1=11.84 VDC (current voltage)
hw.sensors.acpibat0.current0=unknown (rate), UNKNOWN
hw.sensors.acpibat0.amphour0=4.10 Ah (last full capacity)
hw.sensors.acpibat0.amphour1=0.21 Ah (warning capacity)
hw.sensors.acpibat0.amphour2=0.12 Ah (low capacity)
hw.sensors.acpibat0.amphour3=4.00 Ah (remaining capacity), OK
hw.sensors.acpibat0.amphour4=6.00 Ah (design capacity)
hw.sensors.acpibat0.raw0=1 (battery discharging), OK
hw.sensors.acpibtn2.indicator0=On (lid open)


acpiac0 seems wrong to me.

Riccardo

OpenBSD 5.7 (GENERIC.MP) #881: Sun Mar  8 11:04:17 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2129461248 (2030MB)
avail mem = 2068914176 (1973MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xdc010 (19 entries)
bios0: vendor Hewlett-Packard version "F.58" date 06/16/2008
bios0: Hewlett-Packard HP Pavilion dv6500 Notebook PC
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET MCFG TMOR APIC BOOT SLIC SSDT SSDT SSDT SSDT
acpi0: wakeup devices PWRB(S4) PXSX(S3) PXSX(S4) PS2K(S3) PS2M(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz, 2394.68 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,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz, 2194.75 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,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
cpu1: 4MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 4 (RP02)
acpiprt4 at acpi0: bus 8 (RP06)
acpiprt5 at acpi0: bus 9 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0acpitz0: THR1: failed to read _CRT
acpitz0: THR1: failed to read _CRT
: no critical temperature defined
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "Primary" serial   type LION oem
"Hewlett-Packard"
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: LCD_
acpivideo1 at acpi0: GFX0
cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2201, 2200, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GM965 Host" rev 0x0c
ppb0 at pci0 dev 1 function 0 "Intel GM965 PCIE" rev 0x0c: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 8400M GS" rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 2 int 16
uhci1 at pci0 dev 26 function 1 "Intel 82801H USB" rev 0x03: apic 2 int 21
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 2 int 18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: msi
azalia0: codecs: Realtek ALC268, Motorola/0x3055, using Realtek ALC268
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03: msi
pci2 at ppb1 bus 2
wpi0 at pci2 dev 0 function 0 "Intel PRO/Wire

Re: git crashes on clone

2015-05-29 Thread Riccardo Mottola

Hi,

Bryan Horstmann-Allen wrote:

How do you manage PKG_PATH? just export it in .profile and be more careful
>when updating?

PKG_PATH="ftp://ftp.openbsd.org/pub/OpenBSD/`uname -r`/packages/`uname -m`/"


right, fine, I remember it was suggested in the FAQ too. I just adapted 
it to use my nearest mirror.


Thanks,

Riccardo



Re: git crashes on clone

2015-05-29 Thread Riccardo Mottola

Hi,

Theo Buehler wrote:

Hi,

On Fri, May 29, 2015 at 01:04:58PM +0200, Riccardo Mottola wrote:

I'm on OpenBSD, 3.7, x86

I'm a bit confused: That would be 5.7, I suppose.
(You wrote 3.7 twice in your mail, so
I'm not sure).


sorry, that was a typing lapsus, i am on 5.7: 5.7 GENERIC.MP#767 i386

As you noticed below, I had the 5.6 packages installed.



git-1.9.3   GIT - Tree History Storage Tool

If indeed you are on 5.7, you should probably update your packages using
# pkg_add -ui
after verifying that $PKG_PATH points to the correct repository:
$ echo $PKG_PATH
ftp://ftp.ch.openbsd.org/pub/OpenBSD/5.7/packages/i386/
$^^^

git-1.9.3 was the supported version on 5.6, on 5.7 it is
git-2.3.0:


Thank you for catching this. I had the PKG_PATH in my .profile and it 
was left at 5.6, as I was at it, I also choose a nearer mirror.
Thus I failed to upgrade packages properly when I upgraded to 5.7. I did 
perform the update, but pointed to the wrong version.


How do you manage PKG_PATH? just export it in .profile and be more 
careful when updating?


It is updating now, I hope everything is fine then! Else I will report 
to ports@, which is more appropriate.


Riccardo



git crashes on clone

2015-05-29 Thread Riccardo Mottola

Hi,

I'm on OpenBSD, 3.7, x86
git-1.9.3   GIT - Tree History Storage Tool

git installed from prebuilt packages, everything (should be) at lastest 
3.7 release


If I try to clone a repository from github, e.g.:

git clone https://github.com/Voluntarynet/Bitmarkets.git

The operation terminates almost immediately, no error, but I get a core 
file:

 git-remote-https.core

Trying a post-mortem is quite useless:
Program terminated with signal 11, Segmentation fault.
#0  0x072739d0 in ?? ()
(gdb) bt
#0  0x072739d0 in ?? ()
#1  0x0c2407d0 in ?? ()
#2  0x in ?? ()


Anyone else has git problems or is something in my setup? Can you try 
the above clone?


Riccardo



Re: Phone suggestion.

2015-05-24 Thread Riccardo Mottola

Hi,

Gareth Nelson wrote:

Why on earth would you say "blackberry for security"?

Get an android device with an unlocked bootloader, encrypt the storage


I don't trust Google, but not that I trust other companies more. I know 
they selll your data to the government without resistance. Choose the 
phone for usability, price, aesthetics... personal company choice.


At the moment I have an iPhone, just because I really I don't like 
Android, I am not implying it is more "secure". It is a very nice phone 
to use, always works. But secure? don't let me think about it.


I think the phone as something not secure at all.

Also, what do you worry about, the internal storage? I have just some 
pictures and messages there. The rest are just apps that access services.
If you access your mail or your facebook account, that's where the data 
lives.


I just read that iMessage does end-to-end encryption, so theoretically 
Apple shouldn't spy your messages. But mail? icloud vs. gmail? And then 
maybe you enable (or forget to disable, with the new versions) cloud 
sync of your pictures with apple or even Flickr. And then you can stop 
worrying about your "phone".


If you don't want to use anything, browsers, mail, messages, then just 
get a "dumb" phone.


If you phone through GSM/3G... those lines have always been tapped and 
conversations spied.


Riccardo



radeon relocation errors

2015-05-24 Thread Riccardo Mottola

Hi,

while checking the dmesg for the em0 chipset, I noticed these errors in 
dmesg:


error: [drm:pid26127:radeon_cs_ioctl] *ERROR* Failed to parse relocation 
-12!
error: [drm:pid26127:radeon_cs_ioctl] *ERROR* Failed to parse relocation 
-12!


This T60 has an ATI radeon card:
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon Mobility X1400" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 1 int 16

Previously with 5.6 this T60 could crash within minutes when running X 
with a couple of open applications, especially emacs / SeaMonkey sessions.

Very happy that 5.7 proves stable!

I don't notice anything bad happening in X due to the errors above, what 
are they about?


Riccardo





OpenBSD 5.7 (GENERIC.MP) #767: Sun Mar  8 11:04:48 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2500 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF

real mem  = 3219472384 (3070MB)
avail mem = 3154489344 (3008MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 04/01/10, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS rev. 
2.4 @ 0xe0010 (68 entries)

bios0: vendor LENOVO version "79ETE6WW (2.26 )" date 04/01/2010
bios0: LENOVO 2007WRU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) 
HDEF(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2500 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF

ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB7
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "92P1137" serial   121 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 
0xdc000/0x4000! 0xe/0x1!

cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2000, 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82945GM PCIE" rev 0x03: apic 1 int 16
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 "ATI Radeon Mobility X1400" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 1 int 16
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog 
Devices AD1981HD

audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 20
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel 82573L" rev 0x00: msi, address 
00:15:58:2e:43:6c

ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 1 int 21
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: 
msi, MoW2, address 00:13:02:9a:52:1b

ppb3 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 1 int 22
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 1 int 23
pci5 at ppb4 bus 12
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 16
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 17
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 19
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci6 at ppb5 bus 21
cbb0 at pci6 dev 0 function 0 "TI PCI1510 CardBus" re

Re: em0 interface hangs in 5.7

2015-05-24 Thread Riccardo Mottola

Hi,

Bryan Linton wrote:

This was already patched in -current
http://marc.info/?l=openbsd-cvs&m=143146204227681&w=2

It was mentioned that this only affects certain em(4) chips.  Namely
the 82573, ICH8, and 82542.  If you have one of these chips, you*will*  
experience this issue if you use the machine long enough.


I could go for days, sometimes a week or more without seeing it, but
it would eventually hit this bug (particularly when under high CPU
loads).

Your dmesg should tell you what kind of chip you have.

My T60:
em0 at pci2 dev 0 function 0 "Intel 82573L" rev 0x00: msi...

My X61t:
em0 at pci0 dev 25 function 0 "Intel ICH8 IGP M AMT" rev 0x03: msi...


My T60 has:

em0 at pci2 dev 0 function 0 "Intel 82573L" rev 0x00: msi ...

so it appears to be the same as yours, interesting that I did not hit it 
yet. Since it is a laptop I do reboot it almost every day, maybe I will 
live with it else I'll follow your advice of the kernel patch.


I keep this machine explicitly to "release", then I have another laptop 
where I run snapshots.


Thank you for the information.

Riccardo



Re: em0 interface hangs in 5.7

2015-05-23 Thread Riccardo Mottola

Hi Christian,

Christian Schulte wrote:

after upgrading my T60 from 5.6-stable to 5.7-stable, I am experiencing the
same issue described above. Should this be filed using sendbug ? I am
currently reverting to the athn0 interface which is working fine. The em0
interface hangs after some minutes or even seconds and isn't usable as of 5.7.


I too have a T60, I upgraded to 5.7 and I just used em0 and it works fine.
I had a ssh connection open to a server farm for 16 hours without 
problem, in the meanwhile I did browse the web, checked email several 
times, everything fine and the ssh connection is still up.


Riccardo



Re: Unable to do putty/SSH into fresh openBSD 5.6-install

2015-04-19 Thread Riccardo Mottola

Hi,

Jon S wrote:

Updated PuTTY from 0,63 to 0,64, but no improvement.


in my case i was a key exchange not being  enabled by default anymore, 
however a putty update (don't have the version at hand, but it was 
latest on the official website) fixed it. Else you can play with kex in 
your sshd_config.


Riccardo



Re: ssh help with X11Forwarding

2015-04-13 Thread Riccardo Mottola

Hi,

Hrishikesh Murukkathampoondi wrote:

I have restarted sshd (pkill -HUP sshd)  and when I start ssh from the client 
using ssh -X I get DISPLAY is not set when trying to launch an xterm.

setenv DISPLAY localhost:10 or export DISPLAY=localhost:10

that sometimes helps.

Riccardo



Re: problem with key exchange

2015-04-03 Thread Riccardo Mottola

Hi,

Stuart Henderson wrote:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/www/faq/current.html?rev=1.521&content-type=text/html#20140603

ssh permits a wider range of ciphers/kex/MACs than sshd does by default.


I was under the false impression that ssh could somehow query the server 
for the capabilities! Being that humbug, I added the necessary Kex, 
restarted sshd and it works fine now.


Thanks,
Riccardo



problem with key exchange

2015-04-03 Thread Riccardo Mottola

Hi,

I want to connect to my OpenBSD box from my iPhone. When I connect to it 
with zaTelnet I get>


key exchange...
"Server must support diffie-hellman-group1-sha1"

I run query on localhost this way:
$ ssh -Q kex localhost
diffie-hellman-group1-sha1
diffie-hellman-group14-sha1
diffie-hellman-group-exchange-sha1
diffie-hellman-group-exchange-sha256
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
curve25519-sha...@libssh.org

So I am confused. Is query reporting bogus results or maybe I do need to 
enable something explicitely in sshd_config?

Or is instead zaTelnet dumb?

Riccardo



Re: post mortem analysis

2015-04-02 Thread Riccardo Mottola

Hi,

Todd C. Miller wrote:

Since you don't have a console you might want to add the following
to /etc/sysctl.conf if you don't already have them:

ddb.panic=0 # 0=Do not drop into ddb on a kernel panic
ddb.log=1   # 1=Log ddb output in kernel message buffer

With that you may be able to see the panic message in dmesg if there
is one.

good suggestion. I did not set that after I reinstalled the box with 5.6

Luckily OpenBSD is a polite OS and we have a sysctl.conf ready in 
"examples". the ddb.log is missing there though.


Riccardo



post mortem analysis

2015-04-02 Thread Riccardo Mottola

Hi,

I have my old SparcStation running headless, during compilation it 
hangs. I don't have a serial console connected, nor video. I see that it 
stops responding to ssh and the power led which usually pulsates remains 
either in on or off fixed.


Besides from trying to reproduce the bug with a console, is there 
anything that can help a post mortem analysis?


I checked messages and I see the "dmesg" from one boot then directly the 
other boot, no messages in between.

Where else could I check?

Riccardo



Re: Secure PDF viewer

2015-04-02 Thread Riccardo Mottola

Hi,

Eric Furman wrote:

I sometimes have to deal with PDF files (ugh) and all
I need is the ability to view and print them, nothing
fancy. With security in mind I would like to get opinions
on the best one to use.
Thanks.

I use GSPdf, which just calls ghostscript, you could ghostscript itself. 
I think it is safer than xpdf/poppler. But that maybe a false 
conviction, I have no hard data.


Riccardo



problems building boost on sparc

2015-03-28 Thread Riccardo Mottola

Hi,

continuing, time permitting, to build subversion on SPARC. Ruby and 
Python build and installed!

I now have a problem with boost:
<...>

configure: creating ./config.status
config.status: executing default commands

Adjustments to boost configuration have been written to
user.hpp.  Copy this to boost/config/user.hpp to use "as is",
or define BOOST_SITE_CONFIG to point to its location.

TREAT THIS FILE WITH CARE.
Autoconf generated options are not infallible!

Building Boost.Build engine with toolset gcc...
Failed to build Boost.Build build engine
Consult 'bootstrap.log' for more details

This is the log content:

$ cat ./pobj/boost-1.53.0/boost_1_53_0/bootstrap.log
###
### Using 'gcc' toolset.
###
rm -rf bootstrap
mkdir bootstrap
gcc -o bootstrap/jam0 command.c compile.c constants.c debug.c function.c 
glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c 
make.c make1.c object.c option.c output.c parse.c pathunix.c regexp.c 
rules.c scan.c search.c subst.c timestamp.c variable.c modules.c 
strings.c filesys.c builtins.c pwd.c class.c native.c md5.c w32_getreg.c 
modules/set.c modules/path.c modules/regex.c modules/property-set.c 
modules/sequence.c modules/order.c execunix.c fileunix.c

/tmp//ccNOetJC.o(.text+0x4e38): In function `builtin_pad':
: warning: strcpy() is almost always misused, please use strlcpy()
/tmp//cc25yHy8.o(.text+0x32c): In function `outf_int':
: warning: sprintf() is often misused, please use snprintf()
./bootstrap/jam0 -f build.jam --toolset=gcc --toolset-root= clean
Bus error (core dumped)

I then look for the core file:
$ find . -name \*.core
./boost-1.53.0/boost_1_53_0/tools/build/v2/engine/jam0.core

If I open the core file in gdb, it doesn't say much:

Program terminated with signal 10, Bus error.
#0  0x00042dd0 in ?? ()
(gdb) bt
#0  0x00042dd0 in ?? ()
#1  0x00042dc4 in ?? ()
Previous frame identical to this frame (corrupt stack?)


Anybody else did build boost on sparc? Suggestions?

Riccardo



Re: Sunfire v120 question

2015-03-21 Thread Riccardo Mottola

Hi,

Brian McCafferty wrote:

Just a serial cable, then you can use tip(1).  The connections and other
info are in the V120 user guide which you can download from Oracle.  Get
a usb-serial adapter if you don't have a serial port on the machine
you're trying to connect to it.
well not just a "serial" cable, but you need to have a RJ45 at one end. 
It is a plain ol' RS232 but with an unusual connector. You need an 
adapter for these, you can do one yourself if you have the tweezers to 
crimp the LAN cables.


Riccardo



Re: problem building ruby on SPARC

2015-03-18 Thread Riccardo Mottola

Hi Jeremy,

Jeremy Evans wrote:

This indicates your ports tree is out of sync with the packages on your
machine.  If you don't want to fix that, you can set the
PKG_CREATE_NO_CHECKS=Yes environment variable to work around this problem.
that was it. The box is slow and between the several build attempts 
there were updates.


I updated tcl and tk and now ruby installed. Ruby tk built and installed.

Now back in business building the rest of what is needed for subversion, 
which would be boost. Crossing fingers.


Riccardo



problem building ruby on SPARC

2015-03-17 Thread Riccardo Mottola

Hi,

after a long pause, I was able to start work again with building 
subversion and its dependencies on SPARC.


I build bash in debug mode (python build was crashing).
Python built with success, whether the debug-version doesn't crash or 
the new port does not need bash anymore I don't know.


Ruby gets pulled in as a dependency to. Compilation succeeds, however 
during package building I get this error:


sed 's/INSTALL_ARGS/-c -o root -g bin/' < 
/usr/ports/lang/ruby/2.1/../files/rbconfig_fix.rb >> 
/usr/ports/pobj/ruby-2.1.5-no_ri_docs/fake-sparc-no_ri_docs/usr/local/lib/ruby/2.1/sparc-openbsd/rbconfig.rb

===>  Building package for ruby21-tk-2.1.5
Create /usr/ports/packages/sparc/all/ruby21-tk-2.1.5.tgz
Error: Libraries in packing-lists in the ports tree
   and libraries from installed packages don't match
--- /tmp/dep_cache.038S9OVYN/portstree-ruby21-tk-2.1.5  Tue Mar 17 
00:47:26 2015+++ /tmp/dep_cache.038S9OVYN/inst-ruby21-tk-2.1.5 Tue Mar 
17 00:47:32 2015@@ -4,5 +4,5 @@

 -W m.9.0
 -W pthread.18.0
 -W ruby21.1.0
--W tcl85.1.6
--W tk85.0.13
+-W tcl85.1.5
+-W tk85.0.12
*** Error 1 in /usr/ports/lang/ruby/2.1 
(/usr/ports/infrastructure/mk/bsd.port.mk:3225 'wantlib-args')
*** Error 1 in /usr/ports/lang/ruby/2.1 
(/usr/ports/infrastructure/mk/bsd.port.mk:1944 
'/usr/ports/packages/sparc/all/ruby21-tk-2.1.5.tgz')



What is the problem and how can it be fixed?

Thanks

Riccardo



Re: HP900/803/D220 working just as needed.

2015-03-10 Thread Riccardo Mottola

Hi,

Francois Pussault wrote:

[ using 409176 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-2014 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.6 (GENERIC) #181: Fri Aug  8 04:18:33 MDT 2014
 dera...@hppa.openbsd.org:/usr/src/sys/arch/hppa/compile/GENERIC
HP 9000/803/D220 (UltraLight L2 132) PA-RISC 1.1e
real mem = 402653184 (384MB)
rsvd mem = 524288 (512KB)
avail mem = 386641920 (368MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root [flex fff8]
pdc0 at mainbus0
power0 at mainbus0 offset 14
cpu0 at mainbus0 offset ffbe000 irq 31: PCXL2 L1-A 132MHz, FPU VR rev 1
cpu0: 64K(32b/l) Icache, 64K(32b/l) wr-back Dcache, 96 coherent TLB


This is very good news! How does it work? How did you install? CD?
I used to run Linux on HPPA, before the disks died, but I had a lot of 
trouble with software being buggy on HPPA. No Stack made a lot of stuff 
crazy (ffcall, ffi, interpreters, brwosers) in any case a very fine 
memory bug finding machine :) And very safe for servers, no 
stack-protection needed! I mourn HPPA.


I have a slower but trusty 715! I was pondering NetBSD, but apparently 
only netbooting for installation is allowed and I got entangled in the 
setup.


Riccardo



  1   2   3   >