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




*

*