Re: Is there access to dm...@openbsd.org? / arm64 laptops

2024-04-28 Thread Peter J. Philipp
I found a dmesg!  Thank you!

https://marc.info/?l=openbsd-bugs=171430467412856=2

No other needed!

-pjp



Re: Usb tethering

2024-04-28 Thread fr5dh
Tethering worked with openbsd 7.4 bios/mbr.
Doesn't work anymore since installing 7.5 uefi/gpt.
I have to reinstall with a legacy bios boot just to see.




 Original message 
> From: Zé Loff 
> To: Pascal 
> Subject: Re: Usb tethering
> Date: 27/04/2024 10:56:37 Europe/Paris
> Cc: misc@openbsd.org
> 
> On Sat, Apr 27, 2024 at 07:48:29AM +0400, Pascal wrote:
> > Internet on phone is ok with -70dBm 4G
> 
> Even if it is connected to a cellular network, that doesn't mean that
> it is configured for packet switching, your contract with your operator
> might not allow for mobile data services, etc.  That's why its important
> to know if the phone _itself_ can access the internet.  Another way to
> be sure would be to tether a machine running some other OS, and see if
> things change, but that may not be necessary.
> 
> > No results when ping to google.com
> 
> Does google.com get resolved to an IP address? The first line of ping's
> output should be something like
> 
> PING google.com (142.250.200.78) [...]
> 
> If it doesn't get resolved, you'll get something like
> 
> ping: no address associated with name
> 
> 
> If your OpenBSD box is unable to resolve hostnames, even after getting
> urdis0 properly configured via DHCP, then I strongly suspect the problem
> is that your phone isn't configured for internet access.
> 
> > No pf here
> > 
> > 26 avr. 2024 19:25:32 Zé Loff :
> > 
> > > On Fri, Apr 26, 2024 at 06:53:33PM +0400, Pascal wrote:
> > >> https://qsl.net/fr5dh/route.jpg
> > >> https://qsl.net/fr5dh/ifconfig.jpg
> > >> 
> > >> Sorry for the format...
> > >> 
> > >> 26 avr. 2024 15:37:36 Zé Loff :
> > >> 
> > >>> On Fri, Apr 26, 2024 at 03:19:58PM +0400, Pascal wrote:
> >  GM/GA
> >  
> >  Would like connect to internet with usb tethering on openbsd 7.4  
> and Phone SM-A426B.
> >  
> >  After: # ifconfig urndis0 up autoconf
> >  I can't : fw_update & syspatch
> >  Failed timeout
> >  
> >  Any idea please?
> >  
> >  -- 
> >  Pascal
> >  
> >  
> > >>> 
> > >>> What's the output of "ifconfig urndis0" and "route -n show"?
> > >>> 
> > >>> -- 
> > >>>  
> > >> 
> > >> -- 
> > >> Pascal
> > >> 
> > >> 
> > > 
> > > So you get an IP from your phone, and it is your default gateway.
> > > Everything seems normal, there.  Does your phone have internet 
access
> > > itself?
> > > 
> > > And on the OpenBSD box:
> > > - Can you resolve hostnames?
> > > - Can you access other websites?
> > > - Are you running pf to do some sort of filtering?
> > > 
> > > -- 
> > >  
> > 
> > -- 
> > Pascal
> > 
> > 
> 
> -- 
>  
>





Re: Getting "Boot error" after replacing a disk in softraid

2024-04-27 Thread obsdml
a bit late, but fwiw - 
I have 7.5 on an optiplex 990 on SSD, no issues.  Not quite a 980, but I 
honestly doubt that this matters given my experience on these boxes.  (I also 
have 7.5 on a 960, and have had it on a 955 and 945.  There’s nothing special 
about the Dells that I have and booting MBR with SSD.)   AHCI vs IDE shouldnt 
matter for booting (but IDE is slower), but if you had the ports in RAID mode 
it might.   

# dmesg|egrep 'OpenBSD|Opti|INTEL'
OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
bios0: Dell Inc. OptiPlex 990
sd0 at scsibus1 targ 0 lun 0:  naa.55cd2e404b451004


> On Apr 23, 2024, at 2:08 PM, Martin  wrote:
> 
> Turns out this machine, for some reason, simply cannot boot of SSDs with 
> neither OpenBSD or FreeBSD on the box. Only spinning drives work.
> 
> It's an old Dell Inc. OptiPlex 980.
> 
> I suspect there is some issue with the BIOS of the machine and the BSD 
> bootloaders as Linux with GRUB works on SSDs.
> 



Re: OpenSMTP lmtp without unix users

2024-04-27 Thread Nicolas Goy
On Sat Apr 27, 2024 at 5:31 PM CEST, Nicolas Goy wrote:
>
> How can I make it work with a single vmail unix user? Without losing the
> catchall?

Ok, I finally figured it out with the answer I got.

I tried to use the rcpt-to flag in deliver in the smtpd.conf, but I always ended
with non existing users.

The thing is, in vusers, there must be alias to emails AND at the end, an alias
to the virtual user, like:

a...@example.com a...@example.com
@ m...@example.com
m...@example.com vmail
a...@example.com vmail

Then, rcpt-to must be added in the smtpd.conf, like so

  action deliver lmtp "/var/dovecot/lmtp" rcpt-to virtual 

Then dovecot will get emails with the full email address as username, but that
can easily be mapped to the correct folder with

  mail_home=/srv/mail/%Ln  # (%Ln insteand of %Lu)

Of course, the vusers table above will need to have different local part for all
users, but that's ok in my case.

-- 
Nicolas Goy
Developer and electronic engineer
Goyman SA

https://kuon.ch
https://goyman.com



Re: OpenSMTP lmtp without unix users

2024-04-27 Thread Kirill A . Korinsky
Greetings,

On Sat, 27 Apr 2024 17:31:24 +0200,
"Nicolas Goy"  wrote:
> 
> How can I make it work with a single vmail unix user? Without losing the
> catchall?
> 

I do have a bit more complicated setup.

smtpd.conf:

   table local-emails   file:/etc/mail/local-emails
   table aliasesfile:/etc/mail/aliases
   table domainsfile:/etc/mail/domains
   table credentialspasswd:/etc/mail/credentials

   ...

   listen on egress inet4 port smtp tls pki mx.catap.net \
  filter { admdscrub, "auth", dnsbl }

   action deliver_lmtp lmtp "/var/dovecot/lmtp" rcpt-to virtual 
   match from any for domain  \
 ! rcpt-to  action deliver_lmtp


so tables:

1. local-emails is a list of email which can be reached only inside mail
server. For example I like to have nice email for printer, but I don't like
when it start to recieve spam :)

2. credentials is shared with dovecot and has format:

  :::extra_fields

thus, usually I use short version:

  :::

where password is hash which I get via smtpctl encryp.

3. domains is just a list of supported domains. I don't really need it here,
but keep it because it is re-used inside DKIM signature generator.

4. alisases, it is usual alliases plus each user from credentials should
have record like:

  u...@email.com: vmail

to redirect his email to dovecot. No record here means user may send email
(auth on mail server) but never get anything back. And mail server says that
user do not exists which can be an issue for some servers.

-- 
wbr, Kirill



OpenSMTP lmtp without unix users

2024-04-27 Thread Nicolas Goy
Hello,

I have my OpenSMTP server configured as follow:

pki mx-pki cert   "xxx"
pki mx-pki key"xxx"

filter   "rdns" phase connect match   !rdns disconnect "550 DNS error"
filter "fcrdns" phase connect match !fcrdns disconnect "550 DNS error"
filter "rspamd" proc-exec "/usr/local/libexec/smtpd/filter-rspamd"
filter "rspamd-dkim" proc-exec "/usr/local/libexec/smtpd/filter-rspamd 
-settings-id dkim"

srs key "xxx"

table credsfile:/etc/mail/creds
table vdomsfile:/etc/mail/vdoms
table vusers   file:/etc/mail/vusers
table aliases  file:/etc/mail/aliases

# Inbound from external
listen on re0 tls pki mx-pki filter { "rdns", "fcrdns", "rspamd" }

# Run rspamd on outgoing for DKIM
listen on re0 port 587 tls pki mx-pki auth-optional  filter "rspamd-dkim"

action expand expand-only alias 
action deliver lmtp "/var/dovecot/lmtp" virtual 
action send relay helo  srs

match from local for local action expand
match from local !for domain  action send
match from any for domain  action deliver
match from auth for any action send
match from src 10.0.0.0/8 for any action send


Now, in vdom, I have a list of domain that I accept email for:

a.com
b.com
...

And in vusers, I have something like this:

exter...@a.com someth...@gmail.com
foo...@a.com foobar
@ kuon

Now this works, emails received for exter...@a.com are relayed back to 
someth...@gmail.com
and foo...@a.com is delivered to the foobar user and the rest to my user kuon.

The problem is that this requires the local users kuon and foobar.

How can I make it work with a single vmail unix user? Without losing the
catchall?

Thanks

-- 
Nicolas Goy
Developer and electronic engineer
Goyman SA

https://kuon.ch
https://goyman.com



boot openbsd from emmc on RockPro64

2024-04-27 Thread Cristian Danila
Dear Misc,

I would really appreciate if someone can give
me a hint on how can make emmc card bootable
on a RockPro64 board.
This is what I did:
1) prepared micro sd card:
dd if=install75.img of=/dev/sdg bs=1024M
dd if=idbloader.img of=/dev/sdg bs=512 seek=64
dd if=u-boot.itb of=/dev/sdg bs=512 seek=16384

copy "rk3399-rockpro64-v2.dtb" to boot partition at
following location: /dtb/rockchip/rk3399-rockpro64-v2.dtb

2) I did installed openbsd on emmc card

But after installed it, before reboot, I understood that I need to write
the 3 files: idbloader.img, u-boot.itb and rk3399-rockpro64-v2.dtb
into emmc card.
So before reboot, use console and write the files.
Could you please help me in telling how I do that?
I think(still struggling with it) that somehow I have to copy the same sectors
from sdcard and write it to emmc + copy the dtb file.

Thank you.



Re: Is there access to dm...@openbsd.org? / arm64 laptops

2024-04-27 Thread Stuart Henderson
On 2024-04-27, Peter J. Philipp  wrote:
> I'm looking for a dmesg of an arm64 laptop, the time I think has come to
> mothball the apple macbook pro from early 2015 (my old laptop called spica),
> I could put a new battery in it but the 80 EUR is not worth it anymore.  I'm
> also gearing up for job interviews overseas in the summer where I need a 
> nice laptop.
>
> Anyone have dmesgs of "Lenovo Thinkpad X13s Gen 1" or the Apple M1/M2?

Here's an M2 pro dmesg. The onboard wireless network device isn't
working yet so you need USB network (and because it's USB-C only,
wifi dongles are a bit of a pain as you need an adapter). Video not
accelerated but X runs ok. Webcam, microphone not supported. Not
sure if the keyboard backlight is supported, at least I didn't
figure out how to get it lit up in OpenBSD yet.

The Apple M2 cpu has PAC and BTI (control-flow protection), enabled by
default in OpenBSD - support maybe missing from some ports still which
can result in crashes (it's usually easy enough to disable per-port
by recompiling, and it's often not too hard to actually fix the ports
either). https://newsroom.arm.com/blog/pac-bti

Web browsers were a bit flaky last time I tried but I don't remember
the details (and not sure whether that was an issue with my USB network
adapter or the browser though).

Can't remember whether I tried sleep or not.

IIUC more of the hardware is working in X13s, but the Apples are damn
quick at compiling.. (And I think I recall people with X13s mentioning
that if the battery runs out you need to charge it for a while first
before it will power back up - a "feature" familiar to me from the
old Zaurus ;)


OpenBSD 7.5 (GENERIC.MP) #120: Mon Mar  4 13:53:14 MST 2024
dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
real mem  = 16313647104 (15557MB)
avail mem = 15674085376 (14947MB)
random: good seed from bootblocks
mainbus0 at root: Apple MacBook Pro (14-inch, M2 Pro, 2023)
efi0 at mainbus0: UEFI 2.10
efi0: Das U-Boot rev 0x20230700
cpu0 at mainbus0 mpidr 0: Apple Blizzard Pro r1p0
cpu0: 128KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 8-way L1 D-cache
cpu0: 4096KB 128b/line 16-way L2 cache
cpu0: 
TLBIOS+IRANGE,TS+AXFLAG,FHM,DP,SHA3,RDM,Atomic,CRC32,SHA2+SHA512,SHA1,AES+PMULL,SPECRES,SB,FRINTTS,GPI,LRCPC+LDAPUR,FCMA,JSCVT,API+PAC,DPB,SpecSEI,PAN+ATS1E1,LO,HPDS,VH,CSV3,CSV2,DIT,BT,SBSS+MSR
cpu1 at mainbus0 mpidr 1: Apple Blizzard Pro r1p0
cpu1: 128KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 8-way L1 D-cache
cpu1: 4096KB 128b/line 16-way L2 cache
cpu2 at mainbus0 mpidr 2: Apple Blizzard Pro r1p0
cpu2: 128KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 8-way L1 D-cache
cpu2: 4096KB 128b/line 16-way L2 cache
cpu3 at mainbus0 mpidr 3: Apple Blizzard Pro r1p0
cpu3: 128KB 64b/line 4-way L1 PIPT I-cache, 64KB 64b/line 8-way L1 D-cache
cpu3: 4096KB 128b/line 16-way L2 cache
cpu4 at mainbus0 mpidr 10100: Apple Avalanche Pro r1p0
cpu4: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu4: 16384KB 128b/line 16-way L2 cache
cpu5 at mainbus0 mpidr 10101: Apple Avalanche Pro r1p0
cpu5: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu5: 16384KB 128b/line 16-way L2 cache
cpu6 at mainbus0 mpidr 10102: Apple Avalanche Pro r1p0
cpu6: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu6: 16384KB 128b/line 16-way L2 cache
cpu7 at mainbus0 mpidr 10103: Apple Avalanche Pro r1p0
cpu7: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu7: 16384KB 128b/line 16-way L2 cache
cpu8 at mainbus0 mpidr 10200: Apple Avalanche Pro r1p0
cpu8: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu8: 16384KB 128b/line 16-way L2 cache
cpu9 at mainbus0 mpidr 10201: Apple Avalanche Pro r1p0
cpu9: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu9: 16384KB 128b/line 16-way L2 cache
cpu10 at mainbus0 mpidr 10202: Apple Avalanche Pro r1p0
cpu10: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu10: 16384KB 128b/line 16-way L2 cache
cpu11 at mainbus0 mpidr 10203: Apple Avalanche Pro r1p0
cpu11: 192KB 64b/line 6-way L1 PIPT I-cache, 128KB 64b/line 8-way L1 D-cache
cpu11: 16384KB 128b/line 16-way L2 cache
"asc-firmware" at mainbus0 not configured
"asc-firmware" at mainbus0 not configured
"framebuffer" at mainbus0 not configured
"asc-firmware" at mainbus0 not configured
"asc-firmware" at mainbus0 not configured
"region157" at mainbus0 not configured
"region95" at mainbus0 not configured
"region94" at mainbus0 not configured
"region57" at mainbus0 not configured
"dcp_data" at mainbus0 not configured
"asc-firmware" at mainbus0 not configured
"uat-handoff" at mainbus0 not configured
"uat-pagetables" at mainbus0 not configured
"uat-ttbs" at mainbus0 not configured
"isp-heap" at mainbus0 not configured
apm0 at mainbus0
"opp-table-0" at mainbus0 not configured
"opp-table-1" at mainbus0 not configured
"opp-table-gpu" at mainbus0 not configured

HDMI from Lenovo X1 Extreme Laptop

2024-04-27 Thread Adam Retter
Hi there,

I have a Lenovo X1 Extreme Laptop (Gen4), the hardware probe looks
like this: https://bsd-hardware.info/?probe=d19db2828c , and the
Lenovo specs: 
https://psref.lenovo.com/Detail/ThinkPad_X1_Extreme_Gen_4?M=20Y5001DMX

It has two graphics cards:
1. Embedded - Intel UHD (Tiger Lake)
2. Discrete - Nvidia GeForce RTX 3050 Ti Mobile 4GB

I am trying to connect an external screen via the HDMI port, but with
no luck so far. The output of xrandr shows:

eDP-1 connected primary 3840x2400+0+0 (normal left inverted right x
axis y axis) 344mm 215mm
...
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)

I have connected my Dell screen via a HDMI cable, but I am unable to
get a picture, and the output from xrandr remains the same. I tried
running also:

xrandr --output HDMI-1 --auto --output eDP-1 --auto

That made no difference either... I guess because it shows HDMI-1 as
disconnected?

I realise that Nvidia cards are not supported in OpenBSD, and I have
read that some laptops only have the HDMI port connected to the
Discrete graphics card (Nvidia), whilst some have it connected to both
graphics cards.

How can I determine under OpenBSD if the HDMI port is connected to one
or both graphics cards please?

Additionally, if it turns out it is only connected to the Nvidia card.
What are my other options for powering an external display? I am often
travelling so need a small cable based (i.e. not a Dock) solution. The
laptop claims to export DisplayPort 1.4 over Thunderbolt 4 as well.
Would  such an adapter from Thunderbolt 4 to HDMI be supported by
OpenBSD - 
https://www.sonnettech.com/product/thunderbolt-dual-hdmi-adapter/overview.html
?

Thanks Adam.


-- 
Adam Retter

skype: adam.retter
tweet: adamretter
http://www.adamretter.org.uk



Re: Is there access to dm...@openbsd.org? / arm64 laptops

2024-04-27 Thread Peter J. Philipp
On Sat, Apr 27, 2024 at 12:29:43PM +0330, Jadi Mirmirani wrote:
> Try:
> https://dmesgd.nycbug.org/index.cgi?do=index=OpenBSD
> Its an awesome list of people submitting their `dmesg`s whils using OpenBSD. 
> Have not checked if the ones you mentioned are there or not. But its 
> frequently updated.
> 
> Yours,
> Jadi

Hi,

Yes I like that webpage too, and I did check it.  There is an Intel based
x13s running OpenBSD but nothing of the snapdragon kind.  Thanks!

-pjp



Re: Is there access to dm...@openbsd.org? / arm64 laptops

2024-04-27 Thread Jadi Mirmirani
Try:
https://dmesgd.nycbug.org/index.cgi?do=index=OpenBSD
Its an awesome list of people submitting their `dmesg`s whils using OpenBSD. 
Have not checked if the ones you mentioned are there or not. But its frequently 
updated.

Yours,
Jadi

> On Apr 27, 2024, at 11:55, Peter J. Philipp  wrote:
> 
> Hi,
> 
> I'm looking for a dmesg of an arm64 laptop, the time I think has come to
> mothball the apple macbook pro from early 2015 (my old laptop called spica),
> I could put a new battery in it but the 80 EUR is not worth it anymore.  I'm
> also gearing up for job interviews overseas in the summer where I need a 
> nice laptop.
> 
> Anyone have dmesgs of "Lenovo Thinkpad X13s Gen 1" or the Apple M1/M2?
> 
> I'd also like to know if you've used these and would like to discourage their
> purchase.
> 
> I'm looking at the snapdragon 16 GB lenovo, the price is not quite right but
> I think I can scrounge up the money begging someone in my family to help me
> finance it.
> 
> Best Regards,
> -pjp
> 



Re: Usb tethering

2024-04-27 Thread Zé Loff
On Sat, Apr 27, 2024 at 07:48:29AM +0400, Pascal wrote:
> Internet on phone is ok with -70dBm 4G

Even if it is connected to a cellular network, that doesn't mean that
it is configured for packet switching, your contract with your operator
might not allow for mobile data services, etc.  That's why its important
to know if the phone _itself_ can access the internet.  Another way to
be sure would be to tether a machine running some other OS, and see if
things change, but that may not be necessary.

> No results when ping to google.com

Does google.com get resolved to an IP address? The first line of ping's
output should be something like

PING google.com (142.250.200.78) [...]

If it doesn't get resolved, you'll get something like

ping: no address associated with name


If your OpenBSD box is unable to resolve hostnames, even after getting
urdis0 properly configured via DHCP, then I strongly suspect the problem
is that your phone isn't configured for internet access.

> No pf here
> 
> 26 avr. 2024 19:25:32 Zé Loff :
> 
> > On Fri, Apr 26, 2024 at 06:53:33PM +0400, Pascal wrote:
> >> https://qsl.net/fr5dh/route.jpg
> >> https://qsl.net/fr5dh/ifconfig.jpg
> >> 
> >> Sorry for the format...
> >> 
> >> 26 avr. 2024 15:37:36 Zé Loff :
> >> 
> >>> On Fri, Apr 26, 2024 at 03:19:58PM +0400, Pascal wrote:
>  GM/GA
>  
>  Would like connect to internet with usb tethering on openbsd 7.4  and 
>  Phone SM-A426B.
>  
>  After: # ifconfig urndis0 up autoconf
>  I can't : fw_update & syspatch
>  Failed timeout
>  
>  Any idea please?
>  
>  -- 
>  Pascal
>  
>  
> >>> 
> >>> What's the output of "ifconfig urndis0" and "route -n show"?
> >>> 
> >>> -- 
> >>>  
> >> 
> >> -- 
> >> Pascal
> >> 
> >> 
> > 
> > So you get an IP from your phone, and it is your default gateway.
> > Everything seems normal, there.  Does your phone have internet access
> > itself?
> > 
> > And on the OpenBSD box:
> > - Can you resolve hostnames?
> > - Can you access other websites?
> > - Are you running pf to do some sort of filtering?
> > 
> > -- 
> >  
> 
> -- 
> Pascal
> 
> 

-- 
 



Is there access to dm...@openbsd.org? / arm64 laptops

2024-04-27 Thread Peter J. Philipp
Hi,

I'm looking for a dmesg of an arm64 laptop, the time I think has come to
mothball the apple macbook pro from early 2015 (my old laptop called spica),
I could put a new battery in it but the 80 EUR is not worth it anymore.  I'm
also gearing up for job interviews overseas in the summer where I need a 
nice laptop.

Anyone have dmesgs of "Lenovo Thinkpad X13s Gen 1" or the Apple M1/M2?

I'd also like to know if you've used these and would like to discourage their
purchase.

I'm looking at the snapdragon 16 GB lenovo, the price is not quite right but
I think I can scrounge up the money begging someone in my family to help me
finance it.

Best Regards,
-pjp



Re: Usb tethering

2024-04-26 Thread Pascal
Internet on phone is ok with -70dBm 4G

No results when ping to google.com
No pf here

26 avr. 2024 19:25:32 Zé Loff :

> On Fri, Apr 26, 2024 at 06:53:33PM +0400, Pascal wrote:
>> https://qsl.net/fr5dh/route.jpg
>> https://qsl.net/fr5dh/ifconfig.jpg
>> 
>> Sorry for the format...
>> 
>> 26 avr. 2024 15:37:36 Zé Loff :
>> 
>>> On Fri, Apr 26, 2024 at 03:19:58PM +0400, Pascal wrote:
 GM/GA
 
 Would like connect to internet with usb tethering on openbsd 7.4  and 
 Phone SM-A426B.
 
 After: # ifconfig urndis0 up autoconf
 I can't : fw_update & syspatch
 Failed timeout
 
 Any idea please?
 
 -- 
 Pascal
 
 
>>> 
>>> What's the output of "ifconfig urndis0" and "route -n show"?
>>> 
>>> -- 
>>>  
>> 
>> -- 
>> Pascal
>> 
>> 
> 
> So you get an IP from your phone, and it is your default gateway.
> Everything seems normal, there.  Does your phone have internet access
> itself?
> 
> And on the OpenBSD box:
> - Can you resolve hostnames?
> - Can you access other websites?
> - Are you running pf to do some sort of filtering?
> 
> -- 
>  

-- 
Pascal




Re: python dev

2024-04-26 Thread Bodie




On 26.4.2024 20:36, Gustavo Rios wrote:

Hi folks!

May some here tell me if openbsd supports python dev package in the 
ports

collection ?


Reading this 
https://stackoverflow.com/questions/35866369/how-to-manually-install-python-dev-from-source
and after that checking 
https://cvsweb.openbsd.org/ports/lang/python/Makefile.inc?rev=1.162=text/x-cvsweb-markup


I can see that --enable-shared is enabled for the port so binary package 
contain (ok, should contain :-))

the stuff as is in python dev




Thanks a lot.




Re: python dev

2024-04-26 Thread Bodie




On 26.4.2024 20:43, Stuart Henderson wrote:

On 2024-04-26, Gustavo Rios  wrote:

--78bcdd0617042ecf
Content-Type: text/plain; charset="UTF-8"

Hi folks!

May some here tell me if openbsd supports python dev package in the 
ports

collection ?


What is "python dev"?


Linuxism for sure 
https://stackoverflow.com/questions/31002091/what-is-python-dev-package-used-for




Re: RELAY_MAXHOSTS for relayd

2024-04-26 Thread Kapetanakis Giannis

On 26/04/2024 20:48, Tobias Fiebig wrote:

Moin,

I am currently playing around with some relayd things, and noticed that
relayd has a #define for RELAY_MAXHOSTS 32 (defined in 2007); Currently
planning to give 64 a shot.

Does somebody recall why this value was chosen? (Kind of trying to not
shoot myself in the foot there, if it is preventable. ;-))

With best regards,
Tobias


I'm near that limit and interested to see what you come up with.

G



Re: python dev

2024-04-26 Thread Stuart Henderson
On 2024-04-26, Gustavo Rios  wrote:
> --78bcdd0617042ecf
> Content-Type: text/plain; charset="UTF-8"
>
> Hi folks!
>
> May some here tell me if openbsd supports python dev package in the ports
> collection ?

What is "python dev"?


-- 
Please keep replies on the mailing list.



python dev

2024-04-26 Thread Gustavo Rios
Hi folks!

May some here tell me if openbsd supports python dev package in the ports
collection ?

Thanks a lot.

-- 
The lion and the tiger may be more powerful, but the wolves do not perform
in the circus


RELAY_MAXHOSTS for relayd

2024-04-26 Thread Tobias Fiebig
Moin,

I am currently playing around with some relayd things, and noticed that
relayd has a #define for RELAY_MAXHOSTS 32 (defined in 2007); Currently
planning to give 64 a shot.

Does somebody recall why this value was chosen? (Kind of trying to not
shoot myself in the foot there, if it is preventable. ;-))

With best regards,
Tobias



Re: Usb tethering

2024-04-26 Thread Zé Loff
On Fri, Apr 26, 2024 at 06:53:33PM +0400, Pascal wrote:
> https://qsl.net/fr5dh/route.jpg
> https://qsl.net/fr5dh/ifconfig.jpg
> 
> Sorry for the format...
> 
> 26 avr. 2024 15:37:36 Zé Loff :
> 
> > On Fri, Apr 26, 2024 at 03:19:58PM +0400, Pascal wrote:
> >> GM/GA
> >> 
> >> Would like connect to internet with usb tethering on openbsd 7.4  and 
> >> Phone SM-A426B.
> >> 
> >> After: # ifconfig urndis0 up autoconf
> >> I can't : fw_update & syspatch
> >> Failed timeout
> >> 
> >> Any idea please?
> >> 
> >> -- 
> >> Pascal
> >> 
> >> 
> > 
> > What's the output of "ifconfig urndis0" and "route -n show"?
> > 
> > -- 
> >  
> 
> -- 
> Pascal
> 
> 

So you get an IP from your phone, and it is your default gateway.
Everything seems normal, there.  Does your phone have internet access
itself?

And on the OpenBSD box:
- Can you resolve hostnames?
- Can you access other websites?
- Are you running pf to do some sort of filtering?

-- 
 



Re: Usb tethering

2024-04-26 Thread Pascal
https://qsl.net/fr5dh/route.jpg
https://qsl.net/fr5dh/ifconfig.jpg

Sorry for the format...

26 avr. 2024 15:37:36 Zé Loff :

> On Fri, Apr 26, 2024 at 03:19:58PM +0400, Pascal wrote:
>> GM/GA
>> 
>> Would like connect to internet with usb tethering on openbsd 7.4  and Phone 
>> SM-A426B.
>> 
>> After: # ifconfig urndis0 up autoconf
>> I can't : fw_update & syspatch
>> Failed timeout
>> 
>> Any idea please?
>> 
>> -- 
>> Pascal
>> 
>> 
> 
> What's the output of "ifconfig urndis0" and "route -n show"?
> 
> -- 
>  

-- 
Pascal




Re: has dump(8) changed or something? recently?

2024-04-26 Thread Claudio Jeker
On Fri, Apr 26, 2024 at 12:44:34PM +0200, Peter J. Philipp wrote:
> Hi!
> 
> I've had some problems with dump(8) lately.  A 800 GB SSD partition on a
> raspberry pi 4b (via USB) that is 50% filled had trouble with dump.  I don't
> know why this could be, but it used to work.
> 
> Here is my backup script that I used to run in my "nodump" chflagged
> /home/pjp/Backup directory.  Notice the old behaviour, which is hashed out.
> For some odd reason the not so large dump's have seemed to make it.
> 
> ->
> #!/bin/sh
> 
> umask 027
> dump -0ua -h 0 -f - / | gzip -c > vega-root-backup.dump.gz
> dump -0ua -h 0 -f - /var | gzip -c > vega-var-backup.dump.gz
> #dump -0ua -h 0 -f - /home | gzip -c > vega-home-backup.dump.gz
> 
> find /home -type f -print > filelist.txt
> find /home -type f -size +80 -print > excludelist.txt
> fgrep -v -f excludelist.txt filelist.txt | cpio -oz -H pax > 
> vega-home.cpio.pax.gz
> 
> echo These files were excluded from packing with cpio format pax:
> cat excludelist.txt
> 
> exit 0
> <
> 
> I actually haven't run this script yet since I did all of these commands
> manually on the command line but they are 100% compatible.
> 
> Best Regards,
> -pjp

There was an issue with sigsuspend unlocking and that got reverted but
snapshots have not caught up to that yet.
Since dump(8) is a heavy user of sigsuspend it tends to deadlock on big
partitions.

-- 
:wq Claudio



Re: Usb tethering

2024-04-26 Thread Zé Loff
On Fri, Apr 26, 2024 at 03:19:58PM +0400, Pascal wrote:
> GM/GA
> 
> Would like connect to internet with usb tethering on openbsd 7.4  and Phone 
> SM-A426B.
> 
> After: # ifconfig urndis0 up autoconf
> I can't : fw_update & syspatch
> Failed timeout
> 
> Any idea please?
> 
> -- 
> Pascal
> 
> 

What's the output of "ifconfig urndis0" and "route -n show"?

-- 
 



Usb tethering

2024-04-26 Thread Pascal
GM/GA

Would like connect to internet with usb tethering on openbsd 7.4  and Phone 
SM-A426B.

After: # ifconfig urndis0 up autoconf
I can't : fw_update & syspatch
Failed timeout

Any idea please?

-- 
Pascal




has dump(8) changed or something? recently?

2024-04-26 Thread Peter J. Philipp
Hi!

I've had some problems with dump(8) lately.  A 800 GB SSD partition on a
raspberry pi 4b (via USB) that is 50% filled had trouble with dump.  I don't
know why this could be, but it used to work.

Here is my backup script that I used to run in my "nodump" chflagged
/home/pjp/Backup directory.  Notice the old behaviour, which is hashed out.
For some odd reason the not so large dump's have seemed to make it.

->
#!/bin/sh

umask 027
dump -0ua -h 0 -f - / | gzip -c > vega-root-backup.dump.gz
dump -0ua -h 0 -f - /var | gzip -c > vega-var-backup.dump.gz
#dump -0ua -h 0 -f - /home | gzip -c > vega-home-backup.dump.gz

find /home -type f -print > filelist.txt
find /home -type f -size +80 -print > excludelist.txt
fgrep -v -f excludelist.txt filelist.txt | cpio -oz -H pax > 
vega-home.cpio.pax.gz

echo These files were excluded from packing with cpio format pax:
cat excludelist.txt

exit 0
<

I actually haven't run this script yet since I did all of these commands
manually on the command line but they are 100% compatible.

Best Regards,
-pjp

-- 
my associated domains:  callpeter.tel|centroid.eu|dtschland.eu|mainrechner.de



Re: USB keyboard quirks may not be properly catered to in bsd.rd kernels

2024-04-26 Thread Harald Dunkel

The keyboard is a Newmen GM610 Gaming Keyboard I shot on amazon.

Regards
Harri



Re: bad first impression [ ...] Fwd: [HUNSN RJ43: USB keyboard lost at boot time]

2024-04-26 Thread Harald Dunkel

On 2024-04-26 10:31:17, Stuart Henderson wrote:


So another keyboard works with this machine, and this keyboard works
with other machines.



Not exactly. In the meantime I tried the keyboard on another host (some
ancient O-series Zotac box) with the same result: At the boot prompt
the keyboard still works, but once the kernel is booted the keyboard
is dead and has to be connected to another USB port.

The Zotac host is 10 years old, the RJ43 was released just a few months
ago. Both are Intel hosts with Intel chipsets, though. If necessary I can
provide dmesg output of this host as well, as soon as I have access to
the hardware again.


Regards
Harri



Re: bad first impression [ ...] Fwd: [HUNSN RJ43: USB keyboard lost at boot time]

2024-04-26 Thread Claudio Jeker
On Fri, Apr 26, 2024 at 08:31:17AM -, Stuart Henderson wrote:
> On 2024-04-25, Wolfgang Pfeiffer  wrote:
> > - Forwarded message from Harald Dunkel  -
> > This morning I've got a HUNSN RJ43 network appliance with N100 and
> > 4 2.5Gbit network interfaces. Problem: The keyboard is lost at boot
> > time. It still worked at the boot> prompt, but in OpenBSD's installer
> > menu or at the login prompt it is ignored. I have to pull it out and
> > plug it into another socket to make OpenBSD 7.5 recognize it, but
> > even this workaround fails sometimes.
> ...
> > Another 15+ years old USB keyboard works out of the box, so maybe the
> > keyboard is to blame here. It worked fine on other hosts running
> > OpenBSD 7.4 or 7.5, though.
> >
> > BIOS had been reset to the defaults. dmesg output is attached, of
> > course. Every helpful idea is highly appreciated. I would be glad
> > to help to track down this problem.
> 
> So another keyboard works with this machine, and this keyboard works
> with other machines.
> 
> I suspect some quirk with the keyboard that interacts with a quirk in
> the BIOS.
> 
> If there are options to change things to do with keyboard device
> emulation / USB legacy support / 8042 emulation / port 60/64 emulation
> then it might be worth toggling to see if they help. Or look for
> different BIOS/UEFI versions for the machine. This class of hardware is
> not exactly known for high quality firmware.
> 

Also the keyboard is a bit strange since the actual keyboard is attaching
after a lot of other uhids. So it is well possible that stuff gets a bit
confused:

uhidev0 at uhub0 port 6 configuration 1 interface 0 "SINO WEALTH Newmen
Bluetooth Keyboard" rev 1.10/30.04 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub0 port 6 configuration 1 interface 1 "SINO WEALTH Newmen
Bluetooth Keyboard" rev 1.10/30.04 addr 3
uhidev1: iclass 3/0, 13 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
ucc0 at uhidev1 reportid 2: 573 usages, 20 keys, array
wskbd1 at ucc0 mux 1
wskbd1: connecting to wsdisplay0
uhid1 at uhidev1 reportid 5: input=0, output=0, feature=5
ukbd1 at uhidev1 reportid 6: 120 variable keys, 0 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
 
There is wskbd0 which is a ukbd with 8 keys then there is wskbd1 which is
ucc0 (control keyboard) and finally wskbd2 at ukbd1 at uhidev1 reportid 6
is the actual keys.

So I'm not that surprised that this causes problems.
-- 
:wq Claudio



Re: Getting "Boot error" after replacing a disk in softraid [SOLVED]

2024-04-26 Thread Stuart Henderson
On 2024-04-25, Chris Petrik  wrote:
> Remember softraid isn't the same as hw raid and I will always chose hw over 
> soft this includes zfs.

There are advantages and disadvantages for both. e.g. a software
setup with multiple disk controllers can, if there's support for data
error detection[1], protect against (or at least detect) errors on the
hardware->cpu path which might not be noticable on a single hw raid
controller. And in the event of controller/motherboard failure it might
not be possible to attach drives to another machine (unless a suitable
spare is at hand) with hw raid, whereas with sw they could often just be
moved.



[1] yes I know OpenBSD softraid(4) doesn't do it, but some others do



Re: bad first impression of OpenBSD at install time

2024-04-26 Thread Harald Dunkel

On 2024-04-25 17:51:59, Claudio Jeker wrote:


Without providing at least a dmesg of that system there is no way we can
help you.  It is not even clear what kind of system or arch it is?



See my post from 2024-04-20.

Regards
Harri



Re: what became of "apmd -C"?

2024-04-26 Thread Harald Dunkel

On 2024-04-24 09:30:29, Stuart Henderson wrote:


To get similar to previous behaviour, you can either install obsdfreqd
from packages (userland monitoring, similar to old old apmd -C), or
some people run with a kernel patch like this:

Index: kern/sched_bsd.c
===
RCS file: /cvs/src/sys/kern/sched_bsd.c,v
diff -u -p -r1.91 sched_bsd.c
--- kern/sched_bsd.c30 Mar 2024 13:33:20 -  1.91
+++ kern/sched_bsd.c24 Apr 2024 07:18:01 -
@@ -603,7 +603,7 @@ setperf_auto(void *v)
if (cpu_setperf == NULL)
return;
  
-	if (hw_power) {

+   if (0 && hw_power) {
speedup = 1;
goto faster;
}



Its too bad that saving power by default (without battery mode)
cannot be configured via sysctl anymore. I have installed obsfreqd,
of course.


Thank you for the reply
Harri



Re: bad first impression [ ...] Fwd: [HUNSN RJ43: USB keyboard lost at boot time]

2024-04-26 Thread Stuart Henderson
On 2024-04-25, Wolfgang Pfeiffer  wrote:
> - Forwarded message from Harald Dunkel  -
> This morning I've got a HUNSN RJ43 network appliance with N100 and
> 4 2.5Gbit network interfaces. Problem: The keyboard is lost at boot
> time. It still worked at the boot> prompt, but in OpenBSD's installer
> menu or at the login prompt it is ignored. I have to pull it out and
> plug it into another socket to make OpenBSD 7.5 recognize it, but
> even this workaround fails sometimes.
...
> Another 15+ years old USB keyboard works out of the box, so maybe the
> keyboard is to blame here. It worked fine on other hosts running
> OpenBSD 7.4 or 7.5, though.
>
> BIOS had been reset to the defaults. dmesg output is attached, of
> course. Every helpful idea is highly appreciated. I would be glad
> to help to track down this problem.

So another keyboard works with this machine, and this keyboard works
with other machines.

I suspect some quirk with the keyboard that interacts with a quirk in
the BIOS.

If there are options to change things to do with keyboard device
emulation / USB legacy support / 8042 emulation / port 60/64 emulation
then it might be worth toggling to see if they help. Or look for
different BIOS/UEFI versions for the machine. This class of hardware is
not exactly known for high quality firmware.




USB keyboard quirks may not be properly catered to in bsd.rd kernels (was: Re: bad first impression of OpenBSD at install time)

2024-04-26 Thread Peter N. M. Hansteen
On Fri, Apr 26, 2024 at 06:52:38AM +0200, Lourens wrote:
> I too experienced this issue during installation.
> I simply plugged in an old Logitech keyboard to complete the installation
> and after rebooting the previously 'problematic' keyboard was detected and
> fully usable.

Summing up, this sounds like the kernel configuration that was shoehorned into
amd64 installer images (and possibly other platforms?) lacks some of the code 
that caters to the quirks that show up in certain (newer) USB keyboards.

What is not clear to me is how common those keyboards are, as in is there
significant risk that new users would encounter this in the wild, with a
probability large enough that it would be useful to add a note about this to
say https://www.openbsd.org/faq/faq4.html#bsd.rd somewhere?

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: bad first impression of OpenBSD at install time

2024-04-26 Thread Lourens

On 25/04/2024 17:46, Harald Dunkel wrote:

Hi folks,

I posted this before, without any response from the community:

At the boot> prompt of the installer image my USB keyboard still works,
but at the install prompt the keyboard is ignored. I cannot press "i"
to actually install OpenBSD.

Fortunately I am with BSD since Ultrix and SunOS 4.0.3. I've seen
worse. But if this would have been my first impression of OpenBSD I
had given it the boot and used Linux instead.


Regards
Harri


Hi,

I too experienced this issue during installation.
I simply plugged in an old Logitech keyboard to complete the installation
and after rebooting the previously 'problematic' keyboard was detected 
and fully usable.


My dmesg.txt was emailed as requested withe the issue mentioned in the 
Subject and is also available at :

https://www.dropbox.com/scl/fo/q1dcoy2jofsjfbvrodf6b/AKvNhHpQLn60yKuu-G0Ajcw?rlkey=6pj6h8wxqtjso7ljdr5ucddzg=qzn47qxq=0

Briefly:
Micro-Star International Co., Ltd. MS-7B22
Keyboard branded as havit HV-KB366L
Listed in dmesg as :
uhidev0 at uhub0 port 1 configuration 1 interface 0 "BY Tech Usb Gaming 
Keyboard" rev 2.00/0.01 addr 2

uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes

I have only been an openBSD user since 6.9 and have not prior to 7.5 
seen this error.


Thank you to all involved in this awesome project.

Lourens




*

*



Re: Fwd: bad first impression of OpenBSD at install time

2024-04-25 Thread Страхиња Радић
Дана 24/04/26 11:44AM, Alexis написа:
> One thing not mentioned there is top-posting, which is common outside tech
> communities, but often frowned upon within tech communities. 'Top-posting'
> involves adding one's reply _before_ the message one is replying to, rather
> than _after_.

Some links on the subject:

https://git-send-email.io/top-posting.html
https://www.caliburn.nl/topposting.html


@thread:
I find the following article well worth reading when asking for help about 
anything related to computers:

How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html

I feel that this part in particular is relevant for this thread:

If You Can't Get An Answer
http://www.catb.org/~esr/faqs/smart-questions.html#idm659


I posted a few questions on @misc and @bugs myself; one of them is still 
unanswered as of now. However, I understand that even though I supplied the 
necessary information, not everyone might know the answer, or the answer just 
might be that the unsupported piece of hardware in question does not have a 
driver written for it yet. This is something that someone with "years of 
experience" in using Unix-like OSes should already consider.

During my time contributing to Artix Linux and helping with issues on their 
forum, there were a couple of threads with similar kind of "blackmail" as here: 
"If this doesn't work, I'll hop to another distro".

I always felt this is a superficial and immature threat. For example, the 
reasons why I chose OpenBSD after years of using various flavors of (GNU/)Linux 
far outweigh this one problem I have on one of my machines. So, if you feel 
that strongly about your issue to abandon OpenBSD over it, **just do that.**  
Realistically nobody can stop you from doing it, just as nobody can stop you 
from having 10 different VMs with various OSes anyway.



Re: Fwd: bad first impression of OpenBSD at install time

2024-04-25 Thread Alexis



Katherine Mcmillan  writes:


Hi Harald,

I am compiling a qualitative list of experiences of those who 
have requested help from various user groups who/which have been 
rejected or ignored, to try to find similarities between the 
approaches used by the poster; a grounded theory 
methodology. Would it be okay if I included yours?


Thank you for considering, Katie 


Hi Katherine,

As someone who's been participating in multiple online tech fora 
for well over two decades, i'd like to make some comments, based 
on my own experiences.


Some common problematic approaches taken by posters include:

* Not demonstrating any awareness of group rules or culture.

In the case of OpenBSD, the 'netiquette' for the mailing lists is 
laid out at https://www.openbsd.org/mail.html; each point is 
explained with a rationale.


One thing not mentioned there is top-posting, which is common 
outside tech communities, but often frowned upon within tech 
communities. 'Top-posting' involves adding one's reply _before_ 
the message one is replying to, rather than _after_.


There are a few reasons this is discouraged in tech contexts; one 
is that top-posting not only removes potentially important 
context, but often results in important questions not being 
answered. Many of those seeking help don't answer questions that 
they've been asked - questions that have been asked in order to 
diagnose what the problem might be. Top-posting seems to 
exacerbate this phenomenon, and it can be exhausting to try to 
help someone, only to find it's like pulling teeth.


* Treating volunteer communities as though they consist of paid 
 staff.


OpenBSD is primarily a volunteer effort - the 
developers/maintainers, the documenters, the people trying to help 
out on the mailing lists. Yet people regularly interact with the 
OpenBSD community (and other volunteer-based tech communities) as 
though we're a business offering a product seeking 'market share' 
- and in a number of cases, act as though they're entitled to the 
sort of support one would might associate with a _paid_ support 
contract. But OpenBSD is developed/maintained _for the 
developers/maintainers themselves_, even if it's nonetheless made 
available for others who might also find it useful.


* Assuming that "lack of response" must mean "being ignored" 
 (often in a way that implies that the user feels entitled to 
 others' volunteer time).


There's a general phenomenon called "Warnock's dilemma":

"Warnock's dilemma, named for its originator Bryan Warnock, is the 
problem of interpreting a lack of response to a posting in a 
virtual community. The term originally referred to mailing list 
discussions, but has been applied to Usenet posts, blogs, web 
forums, and online content in general. The dilemma arises because 
a lack of response does not necessarily imply that no one is 
interested in the topic, but could also mean for example that 
readers find the content to be exceptionally good (leaving nothing 
for commenters to add.)"

-- https://en.wikipedia.org/wiki/Warnock's_dilemma

In the specific case of people asking for help, people will 
usually not answer with "Hmm, I don't know", just for the sake of 
answering - that would flood the group with useless 
messages. Additionally, however, there are common behaviours that 
can result in volunteers not feeling inclined to put in the effort 
to help someone, which are described on the "I downvoted because 
..." site:


 https://idownvotedbecau.se/

Hope that helps - please feel free to contact me off-list with any 
followup questions.



Alexis.



Re: Getting "Boot error" after replacing a disk in softraid [SOLVED]

2024-04-25 Thread Martin
> Hello,
> 
> Remember softraid isn't the same as hw raid and I will always chose hw over 
> soft this includes zfs.
> 
> Chris

I am sorry, but what relevance does your personal preferences have
to anything regarding this issue?

FWIW, I have seen more than one example of some really crappy hardware
raid controllers that I wouldn't hesitate a split second to replace with
ZFS.



bad first impression [ ...] Fwd: [HUNSN RJ43: USB keyboard lost at boot time]

2024-04-25 Thread Wolfgang Pfeiffer



Attached Harald Dunkels original message from a few days ago, taken
from my offline @misc folder. It seems this is the message he
mentioned in this current thread - strangely enough I couldn't find it
anywhere in the marc.info archive.

HTH
Wolfgang


- Forwarded message from Harald Dunkel  -

Date: Sat, 20 Apr 2024 18:01:04 +0200
From: Harald Dunkel 
Subject: HUNSN RJ43: USB keyboard lost at boot time
To: misc@openbsd.org
User-Agent: Betterbird (Linux)

Hi folks,

This morning I've got a HUNSN RJ43 network appliance with N100 and
4 2.5Gbit network interfaces. Problem: The keyboard is lost at boot
time. It still worked at the boot> prompt, but in OpenBSD's installer
menu or at the login prompt it is ignored. I have to pull it out and
plug it into another socket to make OpenBSD 7.5 recognize it, but
even this workaround fails sometimes.

*If* it works, then usbdevs shows (before and after):

pablo# usbdevs -vv
Controller /dev/usb0:
addr 01: 8086: Intel, xHCI root hub
 super speed, self powered, config 1, rev 1.00
 driver: uhub0
 port 01: .02a0 power Rx.detect
 port 02: .02a0 power Rx.detect
 port 03: .0503 connect enabled recovery
 port 04: .02a0 power Rx.detect
 port 05: 0011.02a0 power Rx.detect
 port 06: .02a0 power Rx.detect
 port 07: .02a0 power Rx.detect
 port 08: .02a0 power Rx.detect
 port 09: .02a0 power Rx.detect
 port 10: .02a0 power Rx.detect
 port 11: .02a0 power Rx.detect
 port 12: .02a0 power Rx.detect
 port 13: .02a0 power Rx.detect
 port 14: .02a0 power Rx.detect
 port 15: .02a0 power Rx.detect
 port 16: .02a0 power Rx.detect
addr 02: 05e3:0748 Generic, USB Storage
 high speed, power 500 mA, config 1, rev 12.09, iSerial 1209
 driver: umass0

# plug it in

pablo# usbdevs -vv
Controller /dev/usb0:
addr 01: 8086: Intel, xHCI root hub
 super speed, self powered, config 1, rev 1.00
 driver: uhub0
 port 01: .02a0 power Rx.detect
 port 02: .02a0 power Rx.detect
 port 03: .0503 connect enabled recovery
 port 04: .02a0 power Rx.detect
 port 05: 0011.02a0 power Rx.detect
 port 06: .0103 connect enabled recovery
 port 07: .02a0 power Rx.detect
 port 08: .02a0 power Rx.detect
 port 09: .02a0 power Rx.detect
 port 10: .02a0 power Rx.detect
 port 11: .02a0 power Rx.detect
 port 12: .02a0 power Rx.detect
 port 13: .02a0 power Rx.detect
 port 14: .02a0 power Rx.detect
 port 15: .02a0 power Rx.detect
 port 16: .02a0 power Rx.detect
addr 02: 05e3:0748 Generic, USB Storage
 high speed, power 500 mA, config 1, rev 12.09, iSerial 1209
 driver: umass0
addr 03: 12c9:6001 SINO WEALTH, Newmen Bluetooth Keyboard
 full speed, power 500 mA, config 1, rev 30.04
 driver: uhidev0
 driver: uhidev1


(I know it says Bluetooth, but its connected via cable. No
BT dongle involved.)

dmesg shows on detecting the keyboard:

uhidev0 at uhub0 port 6 configuration 1 interface 0 "SINO WEALTH Newmen Bluetooth 
Keyboard" rev 1.10/30.04 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub0 port 6 configuration 1 interface 1 "SINO WEALTH Newmen Bluetooth 
Keyboard" rev 1.10/30.04 addr 3
uhidev1: iclass 3/0, 13 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
ucc0 at uhidev1 reportid 2: 573 usages, 20 keys, array
wskbd1 at ucc0 mux 1
wskbd1: connecting to wsdisplay0
uhid1 at uhidev1 reportid 5: input=0, output=0, feature=5
ukbd1 at uhidev1 reportid 6: 120 variable keys, 0 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhid2 at uhidev1 reportid 9: input=0, output=0, feature=255
uhid3 at uhidev1 reportid 10: input=0, output=0, feature=41
uhid4 at uhidev1 reportid 11: input=0, output=0, feature=255
uhid5 at uhidev1 reportid 12: input=0, output=0, feature=255
ums0 at uhidev1 reportid 13: 5 buttons, Z and W dir
wsmouse0 at ums0 mux 0


Another 15+ years old USB keyboard works out of the box, so maybe the
keyboard is to blame here. It worked fine on other hosts running
OpenBSD 7.4 or 7.5, though.

BIOS had been reset to the defaults. dmesg output is attached, of
course. Every helpful idea is highly appreciated. I would be glad
to help to track down this problem.


Harri

OpenBSD 7.5 (RAMDISK_CD) #76: Wed Mar 20 15:53:54 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 34069209088 (32490MB)
avail mem = 33032028160 (31501MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.5 @ 0x73ba9000 (117 entries)
bios0: vendor American Megatrends International, 

bad impression [etc ..] Fwd: [HUNSN RJ43: USB keyboard lost at boot time]

2024-04-25 Thread Wolfgang Pfeiffer



Attached Harald Dunkels original message from a few days ago, taken
from my offline @misc folder. It seems this is the message Harald
mentioned in this current thread - strangely enough I couldn't find it
anywhere in the marc.info archive.

HTH
Wolfgang

- Forwarded message from Harald Dunkel  -

Date: Sat, 20 Apr 2024 18:01:04 +0200
From: Harald Dunkel 
Subject: HUNSN RJ43: USB keyboard lost at boot time
To: misc@openbsd.org
User-Agent: Betterbird (Linux)

Hi folks,

This morning I've got a HUNSN RJ43 network appliance with N100 and
4 2.5Gbit network interfaces. Problem: The keyboard is lost at boot
time. It still worked at the boot> prompt, but in OpenBSD's installer
menu or at the login prompt it is ignored. I have to pull it out and
plug it into another socket to make OpenBSD 7.5 recognize it, but
even this workaround fails sometimes.

*If* it works, then usbdevs shows (before and after):

pablo# usbdevs -vv
Controller /dev/usb0:
addr 01: 8086: Intel, xHCI root hub
 super speed, self powered, config 1, rev 1.00
 driver: uhub0
 port 01: .02a0 power Rx.detect
 port 02: .02a0 power Rx.detect
 port 03: .0503 connect enabled recovery
 port 04: .02a0 power Rx.detect
 port 05: 0011.02a0 power Rx.detect
 port 06: .02a0 power Rx.detect
 port 07: .02a0 power Rx.detect
 port 08: .02a0 power Rx.detect
 port 09: .02a0 power Rx.detect
 port 10: .02a0 power Rx.detect
 port 11: .02a0 power Rx.detect
 port 12: .02a0 power Rx.detect
 port 13: .02a0 power Rx.detect
 port 14: .02a0 power Rx.detect
 port 15: .02a0 power Rx.detect
 port 16: .02a0 power Rx.detect
addr 02: 05e3:0748 Generic, USB Storage
 high speed, power 500 mA, config 1, rev 12.09, iSerial 1209
 driver: umass0

# plug it in

pablo# usbdevs -vv
Controller /dev/usb0:
addr 01: 8086: Intel, xHCI root hub
 super speed, self powered, config 1, rev 1.00
 driver: uhub0
 port 01: .02a0 power Rx.detect
 port 02: .02a0 power Rx.detect
 port 03: .0503 connect enabled recovery
 port 04: .02a0 power Rx.detect
 port 05: 0011.02a0 power Rx.detect
 port 06: .0103 connect enabled recovery
 port 07: .02a0 power Rx.detect
 port 08: .02a0 power Rx.detect
 port 09: .02a0 power Rx.detect
 port 10: .02a0 power Rx.detect
 port 11: .02a0 power Rx.detect
 port 12: .02a0 power Rx.detect
 port 13: .02a0 power Rx.detect
 port 14: .02a0 power Rx.detect
 port 15: .02a0 power Rx.detect
 port 16: .02a0 power Rx.detect
addr 02: 05e3:0748 Generic, USB Storage
 high speed, power 500 mA, config 1, rev 12.09, iSerial 1209
 driver: umass0
addr 03: 12c9:6001 SINO WEALTH, Newmen Bluetooth Keyboard
 full speed, power 500 mA, config 1, rev 30.04
 driver: uhidev0
 driver: uhidev1


(I know it says Bluetooth, but its connected via cable. No
BT dongle involved.)

dmesg shows on detecting the keyboard:

uhidev0 at uhub0 port 6 configuration 1 interface 0 "SINO WEALTH Newmen Bluetooth 
Keyboard" rev 1.10/30.04 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub0 port 6 configuration 1 interface 1 "SINO WEALTH Newmen Bluetooth 
Keyboard" rev 1.10/30.04 addr 3
uhidev1: iclass 3/0, 13 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
ucc0 at uhidev1 reportid 2: 573 usages, 20 keys, array
wskbd1 at ucc0 mux 1
wskbd1: connecting to wsdisplay0
uhid1 at uhidev1 reportid 5: input=0, output=0, feature=5
ukbd1 at uhidev1 reportid 6: 120 variable keys, 0 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhid2 at uhidev1 reportid 9: input=0, output=0, feature=255
uhid3 at uhidev1 reportid 10: input=0, output=0, feature=41
uhid4 at uhidev1 reportid 11: input=0, output=0, feature=255
uhid5 at uhidev1 reportid 12: input=0, output=0, feature=255
ums0 at uhidev1 reportid 13: 5 buttons, Z and W dir
wsmouse0 at ums0 mux 0


Another 15+ years old USB keyboard works out of the box, so maybe the
keyboard is to blame here. It worked fine on other hosts running
OpenBSD 7.4 or 7.5, though.

BIOS had been reset to the defaults. dmesg output is attached, of
course. Every helpful idea is highly appreciated. I would be glad
to help to track down this problem.


Harri

OpenBSD 7.5 (RAMDISK_CD) #76: Wed Mar 20 15:53:54 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 34069209088 (32490MB)
avail mem = 33032028160 (31501MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.5 @ 0x73ba9000 (117 entries)
bios0: vendor American Megatrends International, 

Re: bad first impression of OpenBSD at install time

2024-04-25 Thread Chris Petrik
Hello,

Please don't bash the OS based on unsupported HW or not I knowing what HW is or 
not supported before I stalling it that's the users fault. Blame the companies 
that fail to provide documentation to make oss drivers etc.. as you use any BSD 
you will learned that looking through the current drivers is crucial. I use 
openbsd for pretty much everything however I tend to buy hw that is found using 
the approps command and not just any HW.

P.S

I'm a 90% disabled vet so sorry for typos :(

Chris 

Sent from Proton Mail Android


 Original Message 
On 4/25/24 1:28 PM, Peter N. M. Hansteen  wrote:

>  On Thu, Apr 25, 2024 at 05:46:04PM +0200, Harald Dunkel wrote:
>  >
>  > I posted this before, without any response from the community:
>  >
>  > At the boot> prompt of the installer image my USB keyboard still works,
>  > but at the install prompt the keyboard is ignored. I cannot press "i"
>  > to actually install OpenBSD.
>  
>  I remember vaguely something that matches the description, and I think
>  the feedback then too was that more information about the hardware involved
>  would be needed in order to help. Preferably full sendbug output, but
>  a dmesg (preferably from OpenBSD but even from some other unixlike like
>  Linux will do).
>  
>  --
>  Peter N. M. Hansteen, member of the first RFC 1149 implementation team
>  https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
>  "Remember to set the evil bit on all malicious network traffic"
>  delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
>  
>



Re: Getting "Boot error" after replacing a disk in softraid [SOLVED]

2024-04-25 Thread Chris Petrik
Hello,

Remember softraid isn't the same as hw raid and I will always chose hw over 
soft this includes zfs.

Chris 

Sent from Proton Mail Android


 Original Message 
On 4/25/24 3:14 PM, Martin  wrote:

>  > On Thu, Apr 25, 2024 at 09:12:47AM +0200, Stefan Sperling wrote:
>  >
>  > > I checked, the softraid manual page already has an example installboot
>  > > invocation in EXAMPLES, which should be clear enough.
>  >
>  >
>  > Regardless, I've tweaked the wording a bit. Hopefully more clear now.
>  
>  Indeed :) Thank you very much!
>  
>



Re: NAT on CARP interface

2024-04-25 Thread obsdml



> On Apr 25, 2024, at 10:36 AM, Radek  wrote:
> 
> Thank you for all your hints.
> 
>> match out on egress from $lan_if:network to any nat-to (egress:0)
> This rule doesn't work.

change $lan_if to $int_if, change (egress:0) to $ext_carpif, and it will work 
as the rule you say works.


fwiw, the $lan_if came from your configs existing “match”

https://www.openbsd.org/faq/pf/filter.html#syntax  - under “interface” you can 
find out about “egress”.  I definitely prefer it to hard coding an interface in 
yet another line of a pf.conf

I was presuming you didnt mind matching to $ext_if’s ip for new sessions 
outbound, hence (egress:0).  Matching to the carp ip works.  (this is basically 
a source nat rule in commercial-network-vendor speak)


> 
>> ext_if=em0
>> int_if=vlan2
>> ext_carpIf=carp0

>> match out on $ext_if inet from $int_if:network to any nat-to $ext_carpIf
> This rule works as expected.



Re: Getting "Boot error" after replacing a disk in softraid [SOLVED]

2024-04-25 Thread Martin
> On Thu, Apr 25, 2024 at 09:12:47AM +0200, Stefan Sperling wrote:
> 
> > I checked, the softraid manual page already has an example installboot
> > invocation in EXAMPLES, which should be clear enough.
> 
> 
> Regardless, I've tweaked the wording a bit. Hopefully more clear now.

Indeed :) Thank you very much!



Re: bad first impression of OpenBSD at install time

2024-04-25 Thread Peter N. M. Hansteen
On Thu, Apr 25, 2024 at 05:46:04PM +0200, Harald Dunkel wrote:
> 
> I posted this before, without any response from the community:
> 
> At the boot> prompt of the installer image my USB keyboard still works,
> but at the install prompt the keyboard is ignored. I cannot press "i"
> to actually install OpenBSD.

I remember vaguely something that matches the description, and I think
the feedback then too was that more information about the hardware involved
would be needed in order to help. Preferably full sendbug output, but
a dmesg (preferably from OpenBSD but even from some other unixlike like
Linux will do).

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: Fwd: bad first impression of OpenBSD at install time

2024-04-25 Thread Mihai Popescu
I do not compile a qualitative list of bullshits, but this got a place
on some imaginary bullshit list for sure.


From: Katherine Mcmillan 
Sent: Thursday, April 25, 2024 12:30:03 PM
To: Harald Dunkel 
Subject: Re: bad first impression of OpenBSD at install time

Hi Harald,

I am compiling a qualitative list of experiences of those who have requeste=
d help from various user groups who/which have been rejected or ignored, to=
 try to find similarities between the approaches used by the poster; a grou=
nded theory methodology. Would it be okay if I included yours?

Thank you for considering,
Katie

From: owner-m...@openbsd.org  on behalf of Harald D=
unkel 
Sent: Thursday, April 25, 2024 11:46:04 AM
To: misc@openbsd.org 
Subject: bad first impression of OpenBSD at install time

Attention : courriel externe | external email

Hi folks,

I posted this before, without any response from the community:

At the boot> prompt of the installer image my USB keyboard still works,
but at the install prompt the keyboard is ignored. I cannot press "i"
to actually install OpenBSD.

Fortunately I am with BSD since Ultrix and SunOS 4.0.3. I've seen
worse. But if this would have been my first impression of OpenBSD I
had given it the boot and used Linux instead.


Regards
Harri



Re: NAT on CARP interface

2024-04-25 Thread Radek
Thank you for all your hints.
 
> match out on egress from $lan_if:network to any nat-to (egress:0)
This rule doesn't work.

> ext_if=em0
> int_if=vlan2
> ext_carpIf=carp0
> match out on $ext_if inet from $int_if:network to any nat-to $ext_carpIf
This rule works as expected.


On Wed, 24 Apr 2024 17:14:49 -0400
Mike  wrote:

> This command should help but you may need to add some "log" to your rules:
> 
> tcpdump -nettti pflog0 will probably tell you.
> 
> I don't have a bsd VM around to test but your int_if and ext_if should
> still refer to the underlying interface, not the carp.
> 
> I'd change:
> 
> ext_if=em0
> int_if=vlan2
> ext_carpIf=carp0
> 
> match out on $ext_if inet from 10.0.2.0/24 to any nat-to $ext_carpIf
> 
> 
> 
> 
> 
> 
> On Wed, Apr 24, 2024, 4:50 PM Radek  wrote:
> 
> > Hi everyone,
> > it's a lab, the goal is a redundant firewalls with CARP and PFSYNC, I'm
> > trying to configure the master box. On the LAN side I have created carp2 on
> > vlan2 interface and it works as expected.
> > On the WAN side I can't figure out how to make NAT work on carp0 interface.
> > Can someone tell me where I have the wrong or missing configuration?
> >
> > OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> >
> > # cat /etc/hostname.em1
> > -inet
> > up
> >
> > # cat /etc/hostname.vlan2
> > -inet
> > vnetid 2 parent em1 description "Interface VLAN-KRZ_LAN" up
> >
> > # cat /etc/hostname.carp2
> > -inet
> > inet 10.0.2.254 255.255.255.0 NONE vhid 2 advbase 1 advskew 0 carpdev
> > vlan2 pass test54321
> >
> >
> > # cat /etc/hostname.em0
> > -inet
> > up
> >
> > # cat /etc/hostname.carp0
> > -inet
> > inet 10.0.15.216 255.255.255.0 NONE description "WAN_KRZ" vhid 1 advbase 1
> > advskew 0 carpdev em0 pass test678
> >
> >
> > # cat /etc/pf.conf
> > ext_if = "carp0"
> > lan_if = "carp2"
> > pfsync_if = "em3"
> > internal_if = "vlan1010"
> > set skip on { lo0 vlan em3}
> > # pfsync and carp
> > pass quick on { $pfsync_if } proto pfsync #keep state (no-sync)
> > pass on { $internal_if } proto carp keep state (no-sync)
> > # nat
> > match out on $ext_if from $lan_if:network to any nat-to $ext_if
> > pass out
> >
> > # pfctl -s rules
> > pass quick on em3 proto pfsync all
> > pass on vlan1010 proto carp all keep state (no-sync)
> > match out on carp0 inet from 10.0.2.0/24 to any nat-to 10.0.15.216
> > pass out all flags S/SA
> >
> > # route -n show
> > Routing tables
> >
> > Internet:
> > DestinationGatewayFlags   Refs  Use   Mtu  Prio
> > Iface
> > 224/4  127.0.0.1  URS0   72 32768 8 lo0
> > 10.0.2/24  10.0.2.254 UCn10 -19
> > carp2
> > 10.0.2.201 18:03:73:b4:fa:c1  UHLc   011815 -18
> > carp2
> > 10.0.2.254 00:00:5e:00:01:02  UHLl   0   36 - 1
> > carp2
> > 10.0.2.255 10.0.2.254 UHb04 - 1
> > carp2
> > [snip]
> >
> > Radek
> >
> >


Radek



Re: bad first impression of OpenBSD at install time

2024-04-25 Thread Bodie




On 25.4.2024 17:46, Harald Dunkel wrote:

Hi folks,

I posted this before, without any response from the community:


And where did you post it exactly as there is nothing from you
this year in archives except of this new message on misc@ ;-)



At the boot> prompt of the installer image my USB keyboard still works,
but at the install prompt the keyboard is ignored. I cannot press "i"
to actually install OpenBSD.


Installer image, ISO, what platform, release or current of OpenBSD,



Fortunately I am with BSD since Ultrix and SunOS 4.0.3. I've seen
worse. But if this would have been my first impression of OpenBSD I
had given it the boot and used Linux instead.



Then you should know in general status of drivers and/or documentation
in this arena and why they are so happy to keep it closed aka
making it harder for projects like OpenBSD to support them



Regards
Harri




[no subject]

2024-04-25 Thread Arthur Pichou

subscribe openbsd-misc



Fwd: bad first impression of OpenBSD at install time

2024-04-25 Thread Katherine Mcmillan


From: Katherine Mcmillan 
Sent: Thursday, April 25, 2024 12:30:03 PM
To: Harald Dunkel 
Subject: Re: bad first impression of OpenBSD at install time

Hi Harald,

I am compiling a qualitative list of experiences of those who have requested 
help from various user groups who/which have been rejected or ignored, to try 
to find similarities between the approaches used by the poster; a grounded 
theory methodology. Would it be okay if I included yours?

Thank you for considering,
Katie

From: owner-m...@openbsd.org  on behalf of Harald 
Dunkel 
Sent: Thursday, April 25, 2024 11:46:04 AM
To: misc@openbsd.org 
Subject: bad first impression of OpenBSD at install time

Attention : courriel externe | external email

Hi folks,

I posted this before, without any response from the community:

At the boot> prompt of the installer image my USB keyboard still works,
but at the install prompt the keyboard is ignored. I cannot press "i"
to actually install OpenBSD.

Fortunately I am with BSD since Ultrix and SunOS 4.0.3. I've seen
worse. But if this would have been my first impression of OpenBSD I
had given it the boot and used Linux instead.


Regards
Harri



Re: bad first impression of OpenBSD at install time

2024-04-25 Thread Claudio Jeker
On Thu, Apr 25, 2024 at 05:46:04PM +0200, Harald Dunkel wrote:
> Hi folks,
> 
> I posted this before, without any response from the community:
> 
> At the boot> prompt of the installer image my USB keyboard still works,
> but at the install prompt the keyboard is ignored. I cannot press "i"
> to actually install OpenBSD.
> 
> Fortunately I am with BSD since Ultrix and SunOS 4.0.3. I've seen
> worse. But if this would have been my first impression of OpenBSD I
> had given it the boot and used Linux instead.
> 

Without providing at least a dmesg of that system there is no way we can
help you.  It is not even clear what kind of system or arch it is?

-- 
:wq Claudio



bad first impression of OpenBSD at install time

2024-04-25 Thread Harald Dunkel

Hi folks,

I posted this before, without any response from the community:

At the boot> prompt of the installer image my USB keyboard still works,
but at the install prompt the keyboard is ignored. I cannot press "i"
to actually install OpenBSD.

Fortunately I am with BSD since Ultrix and SunOS 4.0.3. I've seen
worse. But if this would have been my first impression of OpenBSD I
had given it the boot and used Linux instead.


Regards
Harri



Re: Getting "Boot error" after replacing a disk in softraid [SOLVED]

2024-04-25 Thread Stefan Sperling
On Thu, Apr 25, 2024 at 09:12:47AM +0200, Stefan Sperling wrote:
> I checked, the softraid manual page already has an example installboot
> invocation in EXAMPLES, which should be clear enough.

Regardless, I've tweaked the wording a bit. Hopefully more clear now.



Re: Getting "Boot error" after replacing a disk in softraid [SOLVED]

2024-04-25 Thread Stefan Sperling
On Thu, Apr 25, 2024 at 03:27:29AM +, Martin wrote:
> I eventually found out what was going on.
> 
> The FreeBSD boot problem was not related at all.
> 
> Long story short and for future reference, installboot needs
> to be run on the softraid volume, NOT on the physical disk. And this
> has to be repeated after a softraid volume rebuild in order for the new
> disk to be bootable too.
> 
> This cannot be done from the boot media, but one can boot from media
> and then mount the softraid with the working disk and then chroot into
> that and run 'installboot sd2' (or whatever device name the softraid
> volume has).
> 
> This was not obvious to me. Perhaps because with GRUB one has to install
> the bootloader and boot code on each single disk in a mdadm volume and
> not on the volume itself.

Ah, indeed. Thanks for reporting back with the solution. This should
be obvious but it's understandable that new users might miss it.

I checked, the softraid manual page already has an example installboot
invocation in EXAMPLES, which should be clear enough.



Re: maximum file system size

2024-04-25 Thread Otto Moerbeek
On Thu, Apr 25, 2024 at 07:26:41AM +0200, Peter J. Philipp wrote:

> On Thu, Apr 25, 2024 at 12:45:29AM -0300, Gustavo Rios wrote:
> > Hi folks!
> > 
> > What is the maximum file size in OpenBSD ?
> > 
> > Thanks a lot.
> > 
> > -- 
> > The lion and the tiger may be more powerful, but the wolves do not perform
> > in the circus
> 
> There is this comment in /usr/include/ufs/ffs/fs.h:
> 
> /* Maximum file size the kernel allows.
>  * Even though ffs can handle files up to 16TB, we do limit the max file
>  * to 2^31 pages to prevent overflow of a 32-bit unsigned int.  The buffer
>  * cache has its own checks but a little added paranoia never hurts.
>  */
> #define FS_KERNMAXFILESIZE(pgsiz, fs)   ((u_int64_t)0x8000 * \
> MIN((pgsiz), (fs)->fs_bsize) - 1)
> 
> 
> Now page sizes differ within OpenBSD, so then it depends between 8 TB (4096
> bytes page size) and higher perhaps?
> 
> Best Regards,
> -pjp
> 
> -- 
> my associated domains:  callpeter.tel|centroid.eu|dtschland.eu|mainrechner.de
> 

dumpfs /dev/rsd0a | grep maxfilesize 

tells you the answer for a specific filesystem. A mentiomned in the
code commment, it depends on the blocksize used by the filesystem and
the page size of the platform.

-Otto



Re: maximum file system size

2024-04-24 Thread Peter J. Philipp
On Thu, Apr 25, 2024 at 12:45:29AM -0300, Gustavo Rios wrote:
> Hi folks!
> 
> What is the maximum file size in OpenBSD ?
> 
> Thanks a lot.
> 
> -- 
> The lion and the tiger may be more powerful, but the wolves do not perform
> in the circus

There is this comment in /usr/include/ufs/ffs/fs.h:

/* Maximum file size the kernel allows.
 * Even though ffs can handle files up to 16TB, we do limit the max file
 * to 2^31 pages to prevent overflow of a 32-bit unsigned int.  The buffer
 * cache has its own checks but a little added paranoia never hurts.
 */
#define FS_KERNMAXFILESIZE(pgsiz, fs)   ((u_int64_t)0x8000 * \
MIN((pgsiz), (fs)->fs_bsize) - 1)


Now page sizes differ within OpenBSD, so then it depends between 8 TB (4096
bytes page size) and higher perhaps?

Best Regards,
-pjp

-- 
my associated domains:  callpeter.tel|centroid.eu|dtschland.eu|mainrechner.de



maximum file system size

2024-04-24 Thread Gustavo Rios
Hi folks!

What is the maximum file size in OpenBSD ?

Thanks a lot.

-- 
The lion and the tiger may be more powerful, but the wolves do not perform
in the circus


Re: Getting "Boot error" after replacing a disk in softraid [SOLVED]

2024-04-24 Thread Martin
I eventually found out what was going on.

The FreeBSD boot problem was not related at all.

Long story short and for future reference, installboot needs
to be run on the softraid volume, NOT on the physical disk. And this
has to be repeated after a softraid volume rebuild in order for the new
disk to be bootable too.

This cannot be done from the boot media, but one can boot from media
and then mount the softraid with the working disk and then chroot into
that and run 'installboot sd2' (or whatever device name the softraid
volume has).

This was not obvious to me. Perhaps because with GRUB one has to install
the bootloader and boot code on each single disk in a mdadm volume and
not on the volume itself.



Nanopi R5S replacement

2024-04-24 Thread jonesdr
I havea Nanopi R5S which failed today..  The device ran Zeek to monitor a span 
port, so, two ethernet interfaces are sufficient.This is on my home network 
so the box was never particularly taxed.  I am tempted to get the newer R6S.  
it looks like the R6S will not boot from the NVME (same as the R5S).  Not a 
deal breaker but an annoyance.. I would welcome suggestions for an inexpensive 
replacement.


Re: cloudflare.cdn.openbsd.org has been down for days

2024-04-24 Thread tux2bsd
On Wednesday, April 24th, 2024 at 11:58 PM, Paul Pace  
wrote:

> Hello!
> 
> Apologies if this was announced some place as planned and I missed it,
> but I just wanted to let everyone know that cloudflare.cdn.openbsd.org
> has been down for a few days now.

Hi Paul,

Switch to: cdn.openbsd.org  (which is served by Fastly)

A few days ago I posted in tech@ to raise the Cloudflare issue that you've also 
noticed.  Whoever operates the Cloudflare mirror needs to pull finger.

tux2bsd



Re: NAT on CARP interface

2024-04-24 Thread obsdml
try using egress and not carp0 on your match out rule.  you’re not technically 
sending out on the carp interface, only receiving.


make your match rule like this:

match out on egress from $lan_if:network to any nat-to (egress:0)



> On Apr 24, 2024, at 11:05 AM, Radek  wrote:
> 
> Hi everyone,
> it's a lab, the goal is a redundant firewalls with CARP and PFSYNC, I'm 
> trying to configure the master box. On the LAN side I have created carp2 on 
> vlan2 interface and it works as expected.
> On the WAN side I can't figure out how to make NAT work on carp0 interface.
> Can someone tell me where I have the wrong or missing configuration?
> 
> OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
>dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
> # cat /etc/hostname.em1
> -inet
> up
> 
> # cat /etc/hostname.vlan2
> -inet
> vnetid 2 parent em1 description "Interface VLAN-KRZ_LAN" up
> 
> # cat /etc/hostname.carp2
> -inet
> inet 10.0.2.254 255.255.255.0 NONE vhid 2 advbase 1 advskew 0 carpdev vlan2 
> pass test54321
> 
> 
> # cat /etc/hostname.em0
> -inet
> up
> 
> # cat /etc/hostname.carp0
> -inet
> inet 10.0.15.216 255.255.255.0 NONE description "WAN_KRZ" vhid 1 advbase 1 
> advskew 0 carpdev em0 pass test678
> 
> 
> # cat /etc/pf.conf
> ext_if = "carp0"
> lan_if = "carp2"
> pfsync_if = "em3"
> internal_if = "vlan1010"
> set skip on { lo0 vlan em3}
> # pfsync and carp
> pass quick on { $pfsync_if } proto pfsync #keep state (no-sync)
> pass on { $internal_if } proto carp keep state (no-sync)
> # nat
> match out on $ext_if from $lan_if:network to any nat-to $ext_if
> pass out
> 
> # pfctl -s rules
> pass quick on em3 proto pfsync all
> pass on vlan1010 proto carp all keep state (no-sync)
> match out on carp0 inet from 10.0.2.0/24 to any nat-to 10.0.15.216
> pass out all flags S/SA
> 
> # route -n show
> Routing tables
> 
> Internet:
> DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
> 224/4  127.0.0.1  URS0   72 32768 8 lo0
> 10.0.2/24  10.0.2.254 UCn10 -19 carp2
> 10.0.2.201 18:03:73:b4:fa:c1  UHLc   011815 -18 carp2
> 10.0.2.254 00:00:5e:00:01:02  UHLl   0   36 - 1 carp2
> 10.0.2.255 10.0.2.254 UHb04 - 1 carp2
> [snip]
> 
> Radek



Re: Getting "Boot error" after replacing a disk in softraid

2024-04-24 Thread Mihai Popescu
> That seems... unusual. Do you have an (old) IDE compatibility option turned 
> on in
> the BIOS? I would have expected it to attach via AHCI:
> sd0 at scsibus1 targ 2 lun 0: 

Re: NAT on CARP interface

2024-04-24 Thread Mike
This command should help but you may need to add some "log" to your rules:

tcpdump -nettti pflog0 will probably tell you.

I don't have a bsd VM around to test but your int_if and ext_if should
still refer to the underlying interface, not the carp.

I'd change:

ext_if=em0
int_if=vlan2
ext_carpIf=carp0

match out on $ext_if inet from 10.0.2.0/24 to any nat-to $ext_carpIf






On Wed, Apr 24, 2024, 4:50 PM Radek  wrote:

> Hi everyone,
> it's a lab, the goal is a redundant firewalls with CARP and PFSYNC, I'm
> trying to configure the master box. On the LAN side I have created carp2 on
> vlan2 interface and it works as expected.
> On the WAN side I can't figure out how to make NAT work on carp0 interface.
> Can someone tell me where I have the wrong or missing configuration?
>
> OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
>
> # cat /etc/hostname.em1
> -inet
> up
>
> # cat /etc/hostname.vlan2
> -inet
> vnetid 2 parent em1 description "Interface VLAN-KRZ_LAN" up
>
> # cat /etc/hostname.carp2
> -inet
> inet 10.0.2.254 255.255.255.0 NONE vhid 2 advbase 1 advskew 0 carpdev
> vlan2 pass test54321
>
>
> # cat /etc/hostname.em0
> -inet
> up
>
> # cat /etc/hostname.carp0
> -inet
> inet 10.0.15.216 255.255.255.0 NONE description "WAN_KRZ" vhid 1 advbase 1
> advskew 0 carpdev em0 pass test678
>
>
> # cat /etc/pf.conf
> ext_if = "carp0"
> lan_if = "carp2"
> pfsync_if = "em3"
> internal_if = "vlan1010"
> set skip on { lo0 vlan em3}
> # pfsync and carp
> pass quick on { $pfsync_if } proto pfsync #keep state (no-sync)
> pass on { $internal_if } proto carp keep state (no-sync)
> # nat
> match out on $ext_if from $lan_if:network to any nat-to $ext_if
> pass out
>
> # pfctl -s rules
> pass quick on em3 proto pfsync all
> pass on vlan1010 proto carp all keep state (no-sync)
> match out on carp0 inet from 10.0.2.0/24 to any nat-to 10.0.15.216
> pass out all flags S/SA
>
> # route -n show
> Routing tables
>
> Internet:
> DestinationGatewayFlags   Refs  Use   Mtu  Prio
> Iface
> 224/4  127.0.0.1  URS0   72 32768 8 lo0
> 10.0.2/24  10.0.2.254 UCn10 -19
> carp2
> 10.0.2.201 18:03:73:b4:fa:c1  UHLc   011815 -18
> carp2
> 10.0.2.254 00:00:5e:00:01:02  UHLl   0   36 - 1
> carp2
> 10.0.2.255 10.0.2.254 UHb04 - 1
> carp2
> [snip]
>
> Radek
>
>


NAT on CARP interface

2024-04-24 Thread Radek
Hi everyone,
it's a lab, the goal is a redundant firewalls with CARP and PFSYNC, I'm trying 
to configure the master box. On the LAN side I have created carp2 on vlan2 
interface and it works as expected.
On the WAN side I can't figure out how to make NAT work on carp0 interface.
Can someone tell me where I have the wrong or missing configuration?

OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

# cat /etc/hostname.em1
-inet
up

# cat /etc/hostname.vlan2
-inet
vnetid 2 parent em1 description "Interface VLAN-KRZ_LAN" up

# cat /etc/hostname.carp2
-inet
inet 10.0.2.254 255.255.255.0 NONE vhid 2 advbase 1 advskew 0 carpdev vlan2 
pass test54321


# cat /etc/hostname.em0
-inet
up

# cat /etc/hostname.carp0
-inet
inet 10.0.15.216 255.255.255.0 NONE description "WAN_KRZ" vhid 1 advbase 1 
advskew 0 carpdev em0 pass test678


# cat /etc/pf.conf
ext_if = "carp0"
lan_if = "carp2"
pfsync_if = "em3"
internal_if = "vlan1010"
set skip on { lo0 vlan em3}
# pfsync and carp
pass quick on { $pfsync_if } proto pfsync #keep state (no-sync)
pass on { $internal_if } proto carp keep state (no-sync)
# nat
match out on $ext_if from $lan_if:network to any nat-to $ext_if
pass out

# pfctl -s rules
pass quick on em3 proto pfsync all
pass on vlan1010 proto carp all keep state (no-sync)
match out on carp0 inet from 10.0.2.0/24 to any nat-to 10.0.15.216
pass out all flags S/SA

# route -n show
Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
224/4  127.0.0.1  URS0   72 32768 8 lo0
10.0.2/24  10.0.2.254 UCn10 -19 carp2
10.0.2.201 18:03:73:b4:fa:c1  UHLc   011815 -18 carp2
10.0.2.254 00:00:5e:00:01:02  UHLl   0   36 - 1 carp2
10.0.2.255 10.0.2.254 UHb04 - 1 carp2
[snip]

Radek



Re: Getting "Boot error" after replacing a disk in softraid

2024-04-24 Thread Joseph Olatt
On Tue, Apr 23, 2024 at 08:26:40PM -0500, Brian Conway wrote:
> >   wd0 at pciide0 channel 0 drive 0: 
> 
> That seems... unusual. Do you have an (old) IDE compatibility option turned 
> on in the BIOS? I would have expected it to attach via AHCI:
> 
> sd0 at scsibus1 targ 2 lun 0:  
> naa.5002538e304456ac
> 
> Brian Conway


I don't see any special settings in the BIOS. Two of the pertinent 
screenshots from the BIOS settings are at:

  https://www.eskimo.com/~joji/optiplex745/

Not sure why the wd(4) driver was chosen over the sd(4) driver.



cloudflare.cdn.openbsd.org has been down for days

2024-04-24 Thread Paul Pace

Hello!

Apologies if this was announced some place as planned and I missed it, 
but I just wanted to let everyone know that cloudflare.cdn.openbsd.org 
has been down for a few days now.


pkg_add -nu
https://cloudflare.cdn.openbsd.org/pub/OpenBSD/7.4/packages-stable/amd64/: 
TLS handshake failure: handshake failed: error:14004410:SSL 
routines:CONNECT_CR_SRVR_HELLO:sslv3 alert handshake failure
https://cloudflare.cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/: TLS 
handshake failure: handshake failed: error:14004410:SSL 
routines:CONNECT_CR_SRVR_HELLO:sslv3 alert handshake failure

https://cloudflare.cdn.openbsd.org/pub/OpenBSD/7.4/packages/amd64/: empty
Couldn't find updates for...

Thank you,


Paul



Re: [PATCH] [cwm] config option to run all apps maximized

2024-04-24 Thread Dirk-Wilhelm Peters

On Wed, 24 Apr 2024, Slava Voronzoff wrote:


вт, 23 апр. 2024 г. в 11:00, Dirk-Wilhelm Peters :

Nice addition. There is one bug: If an application requests an initial
size, it will open in that size. At the same time, it will be tagged
"maximized". Therefore, it has to be maximized twice: First time to
unmaximize it. Second time to finally maximize it. I've noticed this
with schismtracker.


Hi, can you explain more of your steps? Tested it right now and cant reproduce.
I installed schismtracker and launch it and got it fullscreen out of box,
also tried some x apps with "-geometry" - worked too.

Any ignores in configs or Xresources? Autogroups?


None that I am aware of. Just tried this again with a minimal .cwmrc:

maximizeall yes

and an .xinitrc with just "cwm". I have also removed the configuration
directory $HOME/.schism before running schismtracker. It still comes up
in its "natural" size. This is on OpenBSD 7.5 with xenocara sources from
7.5. By the way, milkytracker (another SDL application) also comes up in
its "historic" size.

It might be a configuration issue on my end, but I cannot think of
anything right now.


Re: [PATCH] [cwm] config option to run all apps maximized

2024-04-24 Thread Slava Voronzoff
вт, 23 апр. 2024 г. в 11:00, Dirk-Wilhelm Peters :
> Nice addition. There is one bug: If an application requests an initial
> size, it will open in that size. At the same time, it will be tagged
> "maximized". Therefore, it has to be maximized twice: First time to
> unmaximize it. Second time to finally maximize it. I've noticed this
> with schismtracker.

Hi, can you explain more of your steps? Tested it right now and cant reproduce.
I installed schismtracker and launch it and got it fullscreen out of box,
also tried some x apps with "-geometry" - worked too.

Any ignores in configs or Xresources? Autogroups?



Re: sndioctl not switching device in 7.5 and current

2024-04-24 Thread Alexandre Ratchov
On Tue, Apr 23, 2024 at 04:32:12PM -0300, Thanos Tsouanas wrote:
> 
> So, the good news is that it seems to be a hardware problem:
> I installed 7.4 on a usb stick just to test it and it did
> work, but when I booted back to the same 7.5 that it didn't,
> it was recognized properly this time, to my surprise:
> 
> uaudio0 at uhub3 port 3 configuration 1 interface 3 "JDS Labs Inc JDS
> Labs DAC" rev 1.10/0.01 addr 7
> uaudio0: class v1, full-speed, sync, channels: 2 play, 0 rec, 3 ctls
> audio1 at uaudio0
> 
> ...and worked perfectly well.
> 
> Plugging it in and out I notice that: *most* of the times it's
> recognized as 0 play channels, sometimes as 2 play channels,
> and sometimes not even seen by the kernel at all.
> 
> I guess it's safe to assume that it's a hardware problem?
> 

I don't know, does it fail the same way on openbsd 7.4? (or other
operating systems?)

> After this, let me know if it still makes sense to run the
> program you sent and share the output.  (I suppose the diff
> you sent was to change uaudio back to 7.4's version?)
> 

No, the diff attemps to fix a bug that makes certain devices with
multiple interfaces to (always) fail.



Re: what became of "apmd -C"?

2024-04-24 Thread Stuart Henderson
On 2024-04-24, Harald Dunkel  wrote:
> Hi folks,
>
> https://www.openbsd.org/faq/upgrade57.html doesn't mention it, so
> I wonder what became of "apmd -C"? The man page for OpenBSD 5.7
> silently dropped this option, but even apmd of 7.5 still accepts
> it.
>
> ?

apmd used to have code that checked cpu load and adjusted hw.setperf.
This moved to the kernel under hw.perfpolicy=auto which used to do
about the same thing, but was changed to use high all the time on
a machine where line power is connected.

To get similar to previous behaviour, you can either install obsdfreqd
from packages (userland monitoring, similar to old old apmd -C), or
some people run with a kernel patch like this:

Index: kern/sched_bsd.c
===
RCS file: /cvs/src/sys/kern/sched_bsd.c,v
diff -u -p -r1.91 sched_bsd.c
--- kern/sched_bsd.c30 Mar 2024 13:33:20 -  1.91
+++ kern/sched_bsd.c24 Apr 2024 07:18:01 -
@@ -603,7 +603,7 @@ setperf_auto(void *v)
if (cpu_setperf == NULL)
return;
 
-   if (hw_power) {
+   if (0 && hw_power) {
speedup = 1;
goto faster;
}



what became of "apmd -C"?

2024-04-24 Thread Harald Dunkel

Hi folks,

https://www.openbsd.org/faq/upgrade57.html doesn't mention it, so
I wonder what became of "apmd -C"? The man page for OpenBSD 5.7
silently dropped this option, but even apmd of 7.5 still accepts
it.

?

Regards
Harri



Re: Getting "Boot error" after replacing a disk in softraid

2024-04-24 Thread Stuart Henderson
On 2024-04-24, Brian Conway  wrote:
>>   wd0 at pciide0 channel 0 drive 0: 
>
> That seems... unusual. Do you have an (old) IDE compatibility option turned 
> on in the BIOS? I would have expected it to attach via AHCI:

Optiplex 980 is from ~2010, similar age to the HP N54L microserver etc.
Disks connecting by wd(4) and BIOS bugs relating to certain types of
storage device were pretty common back then.




Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread Martin
> RAID replicates the data in the RAIDed area, yes?
>
> Do you have some reason to believe that the boot information (MBR, etc) is 
> _inside_ the RAID area, because I do not believe that. Really feels like 
> installboot needs to be run on this drive to, uh, install the proper boot 
> info.
>
> Philip Guenther

installboot has been run.

Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread Brian Conway
>   wd0 at pciide0 channel 0 drive 0: 

That seems... unusual. Do you have an (old) IDE compatibility option turned on 
in the BIOS? I would have expected it to attach via AHCI:

sd0 at scsibus1 targ 2 lun 0:  naa.5002538e304456ac

Brian Conway



Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread Philip Guenther
RAID replicates the data in the RAIDed area, yes?

Do you have some reason to believe that the boot information (MBR, etc) is
_inside_ the RAID area, because I do not believe that.  Really feels like
installboot needs to be run on this drive to, uh, install the proper boot
info.


Philip Guenther


On Tue, Apr 23, 2024 at 8:19 AM  wrote:

> Also, if I boot from a USB stick, with only the new SSD attached, the
> softraid is registered as degraded (as the other old disk is missing), so
> it has been populated, and the partition is also marked with an asterisk
> for boot, but I still cannot boot from that drive.
>
>


Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread Martin
> FWIW, my current desktop which is a Dell OptiPlex 745 is booting off an SSD.
> 
> joji@surya$ dmesg | grep -iE "optiplex|Samsung"
> bios0: Dell Inc. OptiPlex 745
> wd0 at pciide0 channel 0 drive 0: 
> 
> 
> joji@surya$ uname -a
> OpenBSD surya 7.5 GENERIC.MP#82 amd64
> 
> Don't know if your OptiPlex 980 is newer than mine.

I find it strange that this isn't working, but I have tried just going for a 
standard OpenBSD install and also tested a standard FreeBSD install on two 
different SSDs - ignoring my original softraid setup, but no matter what I do, 
it just will not boot with either BSDs on either of those disks on this machine.

I have tried placing each disk in each different SATA plug, also just to 
eliminate an issue with a specific SATA port, but it's the same result, no 
matter what port is set to boot from.

I wiped the disks, installed Devuan Linux with GRUB on the same pair of disks, 
just to test, and it boots fine from either disk.

So, for the moment I have given up running OpenBSD on SSDs on this box.



Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread Joseph Olatt
On Tue, Apr 23, 2024 at 09:08:26PM +, Martin wrote:
> Turns out this machine, for some reason, simply cannot boot of SSDs with 
> neither OpenBSD or FreeBSD on the box. Only spinning drives work.
> 
> It's an old Dell Inc. OptiPlex 980.
> 
> I suspect there is some issue with the BIOS of the machine and the BSD 
> bootloaders as Linux with GRUB works on SSDs.

FWIW, my current desktop which is a Dell OptiPlex 745 is booting off an SSD.

  joji@surya$ dmesg | grep -iE "optiplex|Samsung"
  bios0: Dell Inc. OptiPlex 745
  wd0 at pciide0 channel 0 drive 0: 

  joji@surya$ uname -a
  OpenBSD surya 7.5 GENERIC.MP#82 amd64

Don't know if your OptiPlex 980 is newer than mine.



Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread Martin
Turns out this machine, for some reason, simply cannot boot of SSDs with 
neither OpenBSD or FreeBSD on the box. Only spinning drives work.

It's an old Dell Inc. OptiPlex 980.

I suspect there is some issue with the BIOS of the machine and the BSD 
bootloaders as Linux with GRUB works on SSDs.



Re: sndioctl not switching device in 7.5 and current

2024-04-23 Thread Thanos Tsouanas
On Tue, Apr 23, 2024 at 4:23 AM Alexandre Ratchov  wrote:
> > > On Mon, Apr 22, 2024 at 01:14:43PM -0300, Thanos Tsouanas wrote:
> > > > [...]
> > > > uaudio0: class v1, full-speed, sync, channels: 0 play, 0 rec, 3 ctls
> > >
> > > 0 channels seems wrong.  So, you confirm that this device used to work?
> >
> > Yes: it has been my main audio interface for OpenBSD ever
> > since 2018 that I bought it; it has worked perfectly on all
> > releases up to now.
> >
> > Just to rule out the possibility of a coincidence of
> > hardware failure at the moment of my sysupgrade, I plugged
> > it on a mac mini and it works.  To be honest I am not 100%
> > sure I can rule out *some* hardware issue, because its
> > volume on the mac mini is about 60% of what it used to be
> > (until yesterday!) on OpenBSD (in both cases set to 100%,
> > rest of my audio setup identical).
> >
> > Until yesterday, it has always been plugged on my OpenBSD
> > computer and working perfectly (and loudly).
> >
> > I will install a 7.4 system on a usb stick just to verify
> > that the issue is indeed related with the 7.4->7.5 upgrade.
>
> Could you try the diff below? possibly set the UAUDIO_DEBUG
> option in your kernel config to better see what's going on.
>
> BTW, there's a single change in the uaudio driver between
> openbsd 7.4 and 7.5, so a quick workaround would be to
> revert it.
>
> In any case, could you run the program attached to this mail
> and send me its output?  It would allow me to test parts of
> the uaudio driver on your device.
>
> First, run 'usbdevs' to figure out the bus and address
> numbers of the device, then run 'uacdump  ' and
> send me its output.
>
> Thanks
>
> Index: uaudio.c
> ===
> RCS file: /cvs/src/sys/dev/usb/uaudio.c,v
> diff -u -p -u -p -r1.174 uaudio.c
> --- uaudio.c10 Dec 2023 06:32:14 -  1.174
> +++ uaudio.c23 Apr 2024 07:01:59 -
> @@ -2702,6 +2702,22 @@ uaudio_fixup_params(struct uaudio_softc
> }
>  }
>
> +int
> +uaudio_iface_index(struct uaudio_softc *sc, int ifnum)
> +{
> +   int i, nifaces;
> +
> +   nifaces = sc->udev->cdesc->bNumInterfaces;
> +
> +   for (i = 0; i < nifaces; i++) {
> +   if (sc->udev->ifaces[i].idesc->bInterfaceNumber == ifnum)
> +   return i;
> +   }
> +
> +   printf("%s: %d: invalid interface number\n", __func__, ifnum);
> +   return -1;
> +}
> +
>  /*
>   * Parse all descriptors and build configuration of the device.
>   */
> @@ -2711,6 +2727,7 @@ uaudio_process_conf(struct uaudio_softc
> struct uaudio_blob dp;
> struct uaudio_alt *a;
> unsigned int type, ifnum, altnum, nep, class, subclass;
> +   int i;
>
> while (p->rptr != p->wptr) {
> if (!uaudio_getdesc(p, ))
> @@ -2736,7 +2753,8 @@ uaudio_process_conf(struct uaudio_softc
>
> switch (subclass) {
> case UISUBCLASS_AUDIOCONTROL:
> -   if (usbd_iface_claimed(sc->udev, ifnum)) {
> +   i = uaudio_iface_index(sc, ifnum);
> +   if (i != -1 && usbd_iface_claimed(sc->udev, i)) {
> DPRINTF("%s: %d: AC already claimed\n", 
> __func__, ifnum);
> break;
> }
> @@ -2748,7 +2766,8 @@ uaudio_process_conf(struct uaudio_softc
> return 0;
> break;
> case UISUBCLASS_AUDIOSTREAM:
> -   if (usbd_iface_claimed(sc->udev, ifnum)) {
> +   i = uaudio_iface_index(sc, ifnum);
> +   if (i != -1 && usbd_iface_claimed(sc->udev, i)) {
> DPRINTF("%s: %d: AS already claimed\n", 
> __func__, ifnum);
> break;
> }
> @@ -2768,10 +2787,19 @@ done:
>  * Claim all interfaces we use. This prevents other uaudio(4)
>  * devices from trying to use them.
>  */
> -   for (a = sc->alts; a != NULL; a = a->next)
> -   usbd_claim_iface(sc->udev, a->ifnum);
> +   for (a = sc->alts; a != NULL; a = a->next) {
> +   i = uaudio_iface_index(sc, a->ifnum);
> +   if (i != -1) {
> +   DPRINTF("%s: claim: %d at %d\n", __func__, a->ifnum, 
> i);
> +   usbd_claim_iface(sc->udev, i);
> +   }
> +   }
>
> -   usbd_claim_iface(sc->udev, sc->ctl_ifnum);
> +   i = uaudio_iface_index(sc, sc->ctl_ifnum);
> +   if (i != -1) {
> +   DPRINTF("%s: claim: ac %d at %d\n", __func__, sc->ctl_ifnum, 
> i);
> +   usbd_claim_iface(sc->udev, i);
> +   }
>
> return 1;
>  }

So, the good news is that it seems to be a hardware problem:
I installed 7.4 on a usb stick just to test it and it did
work, but when I booted back to the same 7.5 that it didn't,

Re: errors rebuilding binaries after sysupgrade to 7.5 - apologies for noise

2024-04-23 Thread Steve Fairhead
My last response to Otto seems to have had a lot of noise appended. I
replied via gmail, which seems to have added all sorts of things, as my own
SPF/DMARC rules seem too strict, and seem to stop the mailing list
relaying. Will review.

Humbly,

Steve


Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread iio7
Also, if I boot from a USB stick, with only the new SSD attached, the softraid 
is registered as degraded (as the other old disk is missing), so it has been 
populated, and the partition is also marked with an asterisk for boot, but I 
still cannot boot from that drive.



Re: errors rebuilding binaries after sysupgrade to 7.5

2024-04-23 Thread Steve Fairhead
On 23/04/2024 06:30, Otto Moerbeek wrote:
> What you normally do in these cases of build errors:
>
> - Make sure that you do not have sticky tags in your tree (use -A with
cvs up)
> - Double check that the cvs update did not produce a report line on
> any file
> - Clean your object dir: rm -rf/usr/obj/*
>
> Then try again.

Nuking /usr/obj/* did the trick. Thanks!

I think I'll tweak my process to use a fresh tree checkout after a
sysupgrade (as suggested by Marc Peters - thanks!).

Steve

On Mon, 22 Apr 2024 at 22:09, Steve Fairhead  wrote:

> Hi folks,
>
> (Apologies if this is a dupe. Looks to me like this didn't originally get
> far.)
>
> Pretty sure this is pilot error, so please be gentle.
>
> I sysupgraded 3 machines (all different) to 7.5; no problems. I then
> updated installed packages; again no problem.
>
> Then I updated the source trees:
>
> cd /usr/src
> cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
> cd /usr/ports
> cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
>
> I then (following https://man.openbsd.org/release) rebuilt the kernel:
>
> cd /sys/arch/amd64/compile/GENERIC.MP
> make obj
> make config
> make && make install
> reboot
>
> Still no problem. Then I started to rebuild the binaries:
>
> cd /usr/src
> make obj && make build
>
> ... but eventually ran into shedloads of errors until it bailed. The first
> few errors are:
>
> c++ -O2 -pipe  -fno-ret-protector -mno-retpoline -ffunction-sections
> -fdata-sections -std=c++17 -fvisibility-inlines-hidden -fno-exceptions
> -fno-rtti -fno-semantic-interposition -Wall -Wc++98-compat-extra-semi
> -Wcast-qual  -Wcovered-switch-default -Wctad-maybe-unsupported
> -Wdelete-non-virtual-dtor -Werror=date-time
> -Werror=unguarded-availability-new -Wextra  -Wimplicit-fallthrough
> -Wmisleading-indentation  -Wmissing-field-initializers -Wno-long-long
> -Wno-noexcept-type  -Wno-unused-parameter -Wnon-virtual-dtor
> -Wstring-conversion  -Wsuggest-override -Wwrite-strings -fno-pie  -MD -MP
>  -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include/clang/AST
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/llvm/include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/obj
> -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include -DNDEBUG
> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS  -D__STDC_FORMAT_MACROS -c
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp
> -o ByteCodeExprGen.o
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:119:18:
> error: no member named 'emitCast' in
> 'clang::interp::ByteCodeExprGen'
> return this->emitCast(*FromT, *ToT, CE);
>  ^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
> note: in instantiation of member function
> 'clang::interp::ByteCodeExprGen::VisitCastExpr'
> requested here
> template class ByteCodeExprGen;
>^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:204:26:
> error: no member named 'emitRem' in
> 'clang::interp::ByteCodeExprGen'
> return Discard(this->emitRem(*T, BO));
>  ^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
> note: in instantiation of member function
> 'clang::interp::ByteCodeExprGen::VisitBinaryOperator'
> requested here
> template class ByteCodeExprGen;
>^
>
> What did I do wrong?
>
> Thanks,
>
> Steve
>
>
>
> 
> Virus-free.www.avg.com
> 
> <#m_-5374596809996890135_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>


Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread iio7
> I suspect this error comes from your BIOS/UEFI rather than the OpenBSD
> boot loader. Did you check how boot drives are configured in firmware?

I already tested that by moving the new disk to another box and boot it from 
that, unfortunately I get the same error.



Re: [PATCH] [cwm] config option to run all apps maximized

2024-04-23 Thread Dirk-Wilhelm Peters

On Mon, 22 Apr 2024, Slava Voronzoff wrote:


Hello, list!

I wrote little patch that add option "maximizeall" to cwmrc (default
is no) so new windows created maximized.


Nice addition. There is one bug: If an application requests an initial
size, it will open in that size. At the same time, it will be tagged
"maximized". Therefore, it has to be maximized twice: First time to
unmaximize it. Second time to finally maximize it. I've noticed this
with schismtracker.

Dirk



Re: Getting "Boot error" after replacing a disk in softraid

2024-04-23 Thread Stefan Sperling
On Tue, Apr 23, 2024 at 12:51:41AM +, i...@protonmail.com wrote:
> I have a softraid mirror setup with two old spinning disks. I have detached 
> one of the disks from the mirror and attached a new SSD. I then wanted to 
> rebuild the mirror, using one old spinning drive and the new SSD, and then 
> afterwards, remove the old spinning drive and replace with yet another SSD, 
> ending up with a mirror of two new SSDs.
> 
> After I attached the new SSD to the box, I did:
> 
>   fdisk -iy sd1 (the new disk)
> 
> Then I cloned the layout of the old drive onto the new:
> 
>   disklabel sd0 > layout
>   disklabel -R sd1 layout
> 
> Then I used installboot:
> 
>   installboot sd1
> 
> And started rebuilding the mirror:
> 
>   bioctl -R /dev/sda1 sd2 (sd2 being the RAID device)
> 
> This worked fine and the mirror is up.
> 
> However, when I now dettach the old drive and boot from only the new SSD, I 
> get "Boot error".
> 
> What am I missing?

I suspect this error comes from your BIOS/UEFI rather than the OpenBSD
boot loader. Did you check how boot drives are configured in firmware?



Re: errors rebuilding binaries after sysupgrade to 7.5

2024-04-22 Thread Otto Moerbeek
On Mon, Apr 22, 2024 at 10:09:51PM +0100, Steve Fairhead wrote:

> Hi folks,
> 
> (Apologies if this is a dupe. Looks to me like this didn't originally get
> far.)
> 
> Pretty sure this is pilot error, so please be gentle.
> 
> I sysupgraded 3 machines (all different) to 7.5; no problems. I then
> updated installed packages; again no problem.
> 
> Then I updated the source trees:
> 
> cd /usr/src
> cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
> cd /usr/ports
> cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
> 
> I then (following https://man.openbsd.org/release) rebuilt the kernel:
> 
> cd /sys/arch/amd64/compile/GENERIC.MP
> make obj
> make config
> make && make install
> reboot
> 
> Still no problem. Then I started to rebuild the binaries:
> 
> cd /usr/src
> make obj && make build
> 
> ... but eventually ran into shedloads of errors until it bailed. The first
> few errors are:
> 
> c++ -O2 -pipe  -fno-ret-protector -mno-retpoline -ffunction-sections
> -fdata-sections -std=c++17 -fvisibility-inlines-hidden -fno-exceptions
> -fno-rtti -fno-semantic-interposition -Wall -Wc++98-compat-extra-semi
> -Wcast-qual  -Wcovered-switch-default -Wctad-maybe-unsupported
> -Wdelete-non-virtual-dtor -Werror=date-time
> -Werror=unguarded-availability-new -Wextra  -Wimplicit-fallthrough
> -Wmisleading-indentation  -Wmissing-field-initializers -Wno-long-long
> -Wno-noexcept-type  -Wno-unused-parameter -Wnon-virtual-dtor
> -Wstring-conversion  -Wsuggest-override -Wwrite-strings -fno-pie  -MD -MP
>  -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include/clang/AST
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/llvm/include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/../include
> -I/usr/src/gnu/usr.bin/clang/libclangAST/obj
> -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include -DNDEBUG
> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS  -D__STDC_FORMAT_MACROS -c
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp
> -o ByteCodeExprGen.o
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:119:18:
> error: no member named 'emitCast' in
> 'clang::interp::ByteCodeExprGen'
> return this->emitCast(*FromT, *ToT, CE);
>  ^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
> note: in instantiation of member function
> 'clang::interp::ByteCodeExprGen::VisitCastExpr'
> requested here
> template class ByteCodeExprGen;
>^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:204:26:
> error: no member named 'emitRem' in
> 'clang::interp::ByteCodeExprGen'
> return Discard(this->emitRem(*T, BO));
>  ^
> /usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
> note: in instantiation of member function
> 'clang::interp::ByteCodeExprGen::VisitBinaryOperator'
> requested here
> template class ByteCodeExprGen;
>^
> 
> What did I do wrong?

What you normally do in these cases of build errors:

- Make sure that you do not have sticky tags in your tree (use -A with cvs up)
- Double check that the cvs update did not produce a report line on
any file
- Clean your object dir: rm -rf /usr/obj/*

Then try again.

-Otto
> 
> Thanks,
> 
> Steve
> 
> 
> 
> Virus-free.www.avg.com
> 
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>



Getting "Boot error" after replacing a disk in softraid

2024-04-22 Thread iio7
I have a softraid mirror setup with two old spinning disks. I have detached one 
of the disks from the mirror and attached a new SSD. I then wanted to rebuild 
the mirror, using one old spinning drive and the new SSD, and then afterwards, 
remove the old spinning drive and replace with yet another SSD, ending up with 
a mirror of two new SSDs.

After I attached the new SSD to the box, I did:

  fdisk -iy sd1 (the new disk)

Then I cloned the layout of the old drive onto the new:

  disklabel sd0 > layout
  disklabel -R sd1 layout

Then I used installboot:

  installboot sd1

And started rebuilding the mirror:

  bioctl -R /dev/sda1 sd2 (sd2 being the RAID device)

This worked fine and the mirror is up.

However, when I now dettach the old drive and boot from only the new SSD, I get 
"Boot error".

What am I missing?



cdce issues with upgrade from OpenBSD 7.4 to 7.5

2024-04-22 Thread Joseph Olatt


Hello.

I am seeing a possible issue with the cdce driver since I upgraded from
7.4 to 7.5. I was using a u-blox modem connected via a PCIe-USB board
that worked under OpenBSD 7.4. See following link for pertinent info:

  https://www.eskimo.com/~joji/cdce/obsd74 

Once I upgraded to 7.5, the board is being detected. However, network
access (ping, dns resolution, etc. is hanging). I ran tcpdump on the
cdce0 interface and I see, for example, queries going out to a DNS
server and responses coming back. However, "host " and "ping
" hangs. See for more info:

  https://www.eskimo.com/~joji/cdce/obsd75


I'm reaching out to see if there are others using the cdce interface
that are seeing issues with the cdce interface after upgrade.

Thank you.
joseph



Re: errors rebuilding binaries after sysupgrade to 7.5

2024-04-22 Thread Jose Maldonado




El 22/4/24 a las 17:09, Steve Fairhead escribió:

Hi folks,

(Apologies if this is a dupe. Looks to me like this didn't originally get
far.)

Pretty sure this is pilot error, so please be gentle.

I sysupgraded 3 machines (all different) to 7.5; no problems. I then
updated installed packages; again no problem.

Then I updated the source trees:

cd /usr/src
cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
cd /usr/ports
cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd

I then (following https://man.openbsd.org/release) rebuilt the kernel:

cd /sys/arch/amd64/compile/GENERIC.MP
make obj
make config
make && make install
reboot

Still no problem. Then I started to rebuild the binaries:

cd /usr/src
make obj && make build

... but eventually ran into shedloads of errors until it bailed. The first
few errors are:

c++ -O2 -pipe  -fno-ret-protector -mno-retpoline -ffunction-sections
-fdata-sections -std=c++17 -fvisibility-inlines-hidden -fno-exceptions
-fno-rtti -fno-semantic-interposition -Wall -Wc++98-compat-extra-semi
-Wcast-qual  -Wcovered-switch-default -Wctad-maybe-unsupported
-Wdelete-non-virtual-dtor -Werror=date-time
-Werror=unguarded-availability-new -Wextra  -Wimplicit-fallthrough
-Wmisleading-indentation  -Wmissing-field-initializers -Wno-long-long
-Wno-noexcept-type  -Wno-unused-parameter -Wnon-virtual-dtor
-Wstring-conversion  -Wsuggest-override -Wwrite-strings -fno-pie  -MD -MP
  -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include/clang/AST
-I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/include
-I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/llvm/include
-I/usr/src/gnu/usr.bin/clang/libclangAST/../include
-I/usr/src/gnu/usr.bin/clang/libclangAST/obj
-I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include -DNDEBUG
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS  -D__STDC_FORMAT_MACROS -c
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp
-o ByteCodeExprGen.o
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:119:18:
error: no member named 'emitCast' in
'clang::interp::ByteCodeExprGen'
 return this->emitCast(*FromT, *ToT, CE);
  ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
note: in instantiation of member function
'clang::interp::ByteCodeExprGen::VisitCastExpr'
requested here
template class ByteCodeExprGen;
^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:204:26:
error: no member named 'emitRem' in
'clang::interp::ByteCodeExprGen'
 return Discard(this->emitRem(*T, BO));
  ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
note: in instantiation of member function
'clang::interp::ByteCodeExprGen::VisitBinaryOperator'
requested here
template class ByteCodeExprGen;
^

What did I do wrong?

Thanks,

Steve



Virus-free.www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>



Do you sysupgrade to 7.5 (all OK here), and then you want to build the 
kernel and the base using the src for 7.5?


For what purpose do you do that?


--
*
Dios en su cielo, todo bien en la Tierra



errors rebuilding binaries after sysupgrade to 7.5

2024-04-22 Thread Steve Fairhead
Hi folks,

(Apologies if this is a dupe. Looks to me like this didn't originally get
far.)

Pretty sure this is pilot error, so please be gentle.

I sysupgraded 3 machines (all different) to 7.5; no problems. I then
updated installed packages; again no problem.

Then I updated the source trees:

cd /usr/src
cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd
cd /usr/ports
cvs -q -d anon...@anoncvs.spacehopper.org:/cvs up -rOPENBSD_7_5 -Pd

I then (following https://man.openbsd.org/release) rebuilt the kernel:

cd /sys/arch/amd64/compile/GENERIC.MP
make obj
make config
make && make install
reboot

Still no problem. Then I started to rebuild the binaries:

cd /usr/src
make obj && make build

... but eventually ran into shedloads of errors until it bailed. The first
few errors are:

c++ -O2 -pipe  -fno-ret-protector -mno-retpoline -ffunction-sections
-fdata-sections -std=c++17 -fvisibility-inlines-hidden -fno-exceptions
-fno-rtti -fno-semantic-interposition -Wall -Wc++98-compat-extra-semi
-Wcast-qual  -Wcovered-switch-default -Wctad-maybe-unsupported
-Wdelete-non-virtual-dtor -Werror=date-time
-Werror=unguarded-availability-new -Wextra  -Wimplicit-fallthrough
-Wmisleading-indentation  -Wmissing-field-initializers -Wno-long-long
-Wno-noexcept-type  -Wno-unused-parameter -Wnon-virtual-dtor
-Wstring-conversion  -Wsuggest-override -Wwrite-strings -fno-pie  -MD -MP
 -I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include/clang/AST
-I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/include
-I/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/llvm/include
-I/usr/src/gnu/usr.bin/clang/libclangAST/../include
-I/usr/src/gnu/usr.bin/clang/libclangAST/obj
-I/usr/src/gnu/usr.bin/clang/libclangAST/obj/../include -DNDEBUG
-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS  -D__STDC_FORMAT_MACROS -c
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp
-o ByteCodeExprGen.o
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:119:18:
error: no member named 'emitCast' in
'clang::interp::ByteCodeExprGen'
return this->emitCast(*FromT, *ToT, CE);
     ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
note: in instantiation of member function
'clang::interp::ByteCodeExprGen::VisitCastExpr'
requested here
template class ByteCodeExprGen;
   ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:204:26:
error: no member named 'emitRem' in
'clang::interp::ByteCodeExprGen'
return Discard(this->emitRem(*T, BO));
     ^
/usr/src/gnu/usr.bin/clang/libclangAST/../../../llvm/clang/lib/AST/Interp/ByteCodeExprGen.cpp:1428:16:
note: in instantiation of member function
'clang::interp::ByteCodeExprGen::VisitBinaryOperator'
requested here
template class ByteCodeExprGen;
   ^

What did I do wrong?

Thanks,

Steve



Virus-free.www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Re: [PATCH] [cwm] config option to run all apps maximized

2024-04-22 Thread prx
Great, looks like something to completely replace dwm. Thanks

Le 22 avril 2024 16:04:19 GMT+02:00, Slava Voronzoff 
 a écrit :
>Hello, list!
>
>I wrote little patch that add option "maximizeall" to cwmrc (default
>is no) so new windows created maximized.



Re: mongo shell on openBSD

2024-04-22 Thread Carsten Reith
The mongo shell is installed as /usr/local/bin/mongo.

$ mongo
MongoDB shell version v4.4.29
connecting to: 
mongodb://127.0.0.1:27017/?compressors=disabled=mongodb
Implicit session: session { "id" :
UUID("666a27c9-2944-4b54-9d27-10c999dfdaf6") }
MongoDB server version: 4.4.29
Welcome to the MongoDB shell.
For interactive help, type "help".


You can find which files are installed by a package with pkg_info(1) - or the
pkglocatedb(1) port which allows many more search options.

$ pkg_info -L mongodb
Information for inst:mongodb-4.4.29

Files:
/etc/rc.d/mongod
/usr/local/bin/mongo
/usr/local/bin/mongod
/usr/local/bin/mongos
/usr/local/man/man1/mongo.1
/usr/local/man/man1/mongod.1
/usr/local/man/man1/mongos.1
/usr/local/man/man5/mongodb-parameters.5
/usr/local/share/examples/mongodb/mongodb.conf

On Mon, Apr 22, 2024 at 05:40:22PM GMT, Luca Leone wrote:
> hi Everybody :)
> 
> I successfully installed the mongodb-4.4.2 package on the server which run
> openBSD 7.4. It's the db of a node js app.
> Locally on my Mac, I interact with the local mongo db through the mongo shell.
> I'd like to do the same on the server with the installed mongo db BUT there's
> no "mongo shell" package and I could not find any doc explaining how to 
> install
> the mongo shell on openBSD. Is there a way? Or is there an alternative way to
> interact directly with the db?
> 
> Thanks
> Luca



Re: mongo shell on openBSD

2024-04-22 Thread Stuart Henderson
On 2024-04-22, Luca Leone  wrote:
> --51d7aa8ca551402d8b2dd0ebb50142e8
> Content-Type: text/plain
>
> Thanks again Kirill, top!
>
> Typing `$ mongo` in the terminal confirmed you're right of course: it starts 
> the interactive section with mongo db. Before asking here I typed `$ mongosh` 
> which is the command that works locally, but it does not on the server. I 
> guess it depends on the mongo version, locally I have version 7.0.2, on the 
> server version 4.4.2.
>
> Anyway, I need to improve my reading skills, it was all there in the mongo 
> docs! 

MongoDB Shell is a different thing, it's a node.js based program that
has some different features than the basic "mongo" CLI tool.

We don't have a good way to package software written in node (typically
it wants to fetch filea from the internet during build.)


-- 
Please keep replies on the mailing list.



Re: mongo shell on openBSD

2024-04-22 Thread Luca Leone
Thanks again Kirill, top!

Typing `$ mongo` in the terminal confirmed you're right of course: it starts 
the interactive section with mongo db. Before asking here I typed `$ mongosh` 
which is the command that works locally, but it does not on the server. I guess 
it depends on the mongo version, locally I have version 7.0.2, on the server 
version 4.4.2.

Anyway, I need to improve my reading skills, it was all there in the mongo 
docs! 

Thanks also Odhiambo, very useful information.



On Mon, Apr 22, 2024, at 5:54 PM, Kirill A. Korinsky wrote:
> On Mon, 22 Apr 2024 17:40:22 +0200,
> Luca Leone wrote:
> > 
> > I successfully installed the mongodb-4.4.2 package on the server which run 
> > openBSD 7.4. It's the db of a node js app.
> > Locally on my Mac, I interact with the local mongo db through the mongo 
> > shell. I'd like to do the same on the server with the installed mongo db 
> > BUT there's no "mongo shell" package and I could not find any doc 
> > explaining how to install the mongo shell on openBSD. Is there a way? Or is 
> > there an alternative way to interact directly with the db?
> > 
> 
> Base on doc [1] you're looking for binary with name mongo which is part of
> port mongodb version 44 [2]. So, I assume that if you install mongodb,
> you'll have that you're looking for.
> 
> Footnotes:
> [1]  https://www.mongodb.com/docs/v4.4/mongo/
> 
> [2]  
> https://github.com/openbsd/ports/blob/master/databases/mongodb/44/pkg/PLIST
> 
> -- 
> wbr, Kirill
> 
> 


Re: sndioctl not switching device in 7.5 and current

2024-04-22 Thread Alexandre Ratchov
On Mon, Apr 22, 2024 at 01:14:43PM -0300, Thanos Tsouanas wrote:
> Hello,
> 
> I have just sysupgraded from 7.4 to 7.5 on my thinkpad X1C9
> in which I was using an external audio interface (OL DAC by
> JDS Labs), but I cannot get it to work anymore.
> 
> Using sndioctl to change server.device from 0 to 1 gives the
> impression that it worked (no error shown and its output
> indicates success), but as soon as check sndioctl's output
> it's back to server.device=0:
> 
> # sndioctl server.device=1
> server.device=1
> # sndioctl server.device
> server.device=0
> 
> dmesg shows nothing relevant, and I was not able to find any
> error logged under /var/log files.  (Should I be looking
> somewhere else for sndiod/sndioctl error messages?)
> 
> My audio interface is recognized by the 7.5 kernel:
> 
> uaudio0 at uhub1 port 1 configuration 1 interface 3 "JDS Labs Inc JDS
> Labs DAC" rev 1.10/0.01 addr 7
> uaudio0: class v1, full-speed, sync, channels: 0 play, 0 rec, 3 ctls


0 channels seems wrong.  So, you confirm that this device used to work?



sndioctl not switching device in 7.5 and current

2024-04-22 Thread Thanos Tsouanas
Hello,

I have just sysupgraded from 7.4 to 7.5 on my thinkpad X1C9
in which I was using an external audio interface (OL DAC by
JDS Labs), but I cannot get it to work anymore.

Using sndioctl to change server.device from 0 to 1 gives the
impression that it worked (no error shown and its output
indicates success), but as soon as check sndioctl's output
it's back to server.device=0:

# sndioctl server.device=1
server.device=1
# sndioctl server.device
server.device=0

dmesg shows nothing relevant, and I was not able to find any
error logged under /var/log files.  (Should I be looking
somewhere else for sndiod/sndioctl error messages?)

My audio interface is recognized by the 7.5 kernel:

uaudio0 at uhub1 port 1 configuration 1 interface 3 "JDS Labs Inc JDS
Labs DAC" rev 1.10/0.01 addr 7
uaudio0: class v1, full-speed, sync, channels: 0 play, 0 rec, 3 ctls
audio1 at uaudio0

Same problem under the latest current snapshot.
Also, trying a different USB audio interface everything works
fine (Allen & Heath ZED-14).

Any clues what may cause this or how to fix?

Cheers,

--
Thanos Tsouanas
http://www.tsouanas.org/



Re: mongo shell on openBSD

2024-04-22 Thread Odhiambo Washington
On Mon, Apr 22, 2024 at 6:44 PM Luca Leone  wrote:

> hi Everybody :)
>
> I successfully installed the mongodb-4.4.2 package on the server which run
> openBSD 7.4. It's the db of a node js app.
> Locally on my Mac, I interact with the local mongo db through the mongo
> shell. I'd like to do the same on the server with the installed mongo db
> BUT there's no "mongo shell" package and I could not find any doc
> explaining how to install the mongo shell on openBSD. Is there a way? Or is
> there an alternative way to interact directly with the db?
>
> Thanks
> Luca
>

Maybe you have to compile it manually?

openbsd$ pkg_info -Q mongo
mongo-tools-4.3.2
mongodb-3.6.23p2
mongodb-4.4.29
py3-mongo-4.6.3
openbsd$ pkg_info mongo-tools-4.3.2
Information for
https://cdn.openbsd.org/pub/OpenBSD/snapshots/packages/amd64/mongo-tools-4.3.2.tgz

Comment:
tools for the MongoDB database

Description:
Tools for use with MongoDB:

- bsondump: display BSON files in a human-readable format
- mongoimport: Convert data from JSON, TSV or CSV and insert them
into a collection
- mongoexport: Write an existing collection to CSV or JSON format
- mongodump/mongorestore: Dump MongoDB backups to disk in .BSON format,
or restore them to a live database
- mongostat: Monitor live MongoDB servers, replica sets, or sharded clusters
- mongofiles: Read, write, delete, or update files in GridFS
- mongotop: Monitor read/write activity on a mongo server
- mongoreplay: Capture, observe, and replay traffic for MongoDB

Maintainer: The OpenBSD ports mailing-list 

WWW: https://www.mongodb.com/docs/database-tools/



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]


Re: mongo shell on openBSD

2024-04-22 Thread Kirill A . Korinsky
On Mon, 22 Apr 2024 17:40:22 +0200,
Luca Leone wrote:
> 
> I successfully installed the mongodb-4.4.2 package on the server which run 
> openBSD 7.4. It's the db of a node js app.
> Locally on my Mac, I interact with the local mongo db through the mongo 
> shell. I'd like to do the same on the server with the installed mongo db BUT 
> there's no "mongo shell" package and I could not find any doc explaining how 
> to install the mongo shell on openBSD. Is there a way? Or is there an 
> alternative way to interact directly with the db?
> 

Base on doc [1] you're looking for binary with name mongo which is part of
port mongodb version 44 [2]. So, I assume that if you install mongodb,
you'll have that you're looking for.

Footnotes:
[1]  https://www.mongodb.com/docs/v4.4/mongo/

[2]  https://github.com/openbsd/ports/blob/master/databases/mongodb/44/pkg/PLIST

-- 
wbr, Kirill



mongo shell on openBSD

2024-04-22 Thread Luca Leone
hi Everybody :)

I successfully installed the mongodb-4.4.2 package on the server which run 
openBSD 7.4. It's the db of a node js app.
Locally on my Mac, I interact with the local mongo db through the mongo shell. 
I'd like to do the same on the server with the installed mongo db BUT there's 
no "mongo shell" package and I could not find any doc explaining how to install 
the mongo shell on openBSD. Is there a way? Or is there an alternative way to 
interact directly with the db?

Thanks
Luca

[PATCH] [cwm] config option to run all apps maximized

2024-04-22 Thread Slava Voronzoff
Hello, list!

I wrote little patch that add option "maximizeall" to cwmrc (default
is no) so new windows created maximized.


cwm.maximize_patch
Description: Binary data


  1   2   3   4   5   6   7   8   9   10   >