Alder Lake motherboard (i3-N305) not booting

2024-07-27 Thread Rob Schmersel
Hi,

I recently got a new motherboard with an alder lake CPU (i3-N305),
which uses a JMicron JMB585 SATA multipler connect to one of the
PCI-E lanes. Disk connected to this will get detected (albeit a bit
slower as direct connected SATA disks)

(There is no serial console, waiting for a IP KVM switch. So all typed
by hand and apologies for any typos)

A number of devices  are not configured (just in case that is relevant
and only those that are still visible, there might be more): 

"Intel ADL-N eSPI" rev 0x00 at pci0 dev31 function 0 not configured
"Intel ADL-N HD Audio" rev 0x00 at pci0 dev31 function 3 not configured
"Intel ADL-N SMBus" rev 0x00 at pci0 dev31 function 4 not configured
"Intel ADL-N SPI" rev 0x00 at pci0 dev31 function 5 not configured

The system hangs when trying to determine if softraid is
available (does not matter if disk are connected or not):

softraid0 at root
scsibus4 at softraid0: 256 targets
> hanging forever after this

The disks used are from my older system (also an AMD64 system based on
an intel J3720 CPU) was used before, but no softraid was ever
configured. 

The hanging occurs for both booting from the old disk and booting with a
current snapshot miniroot75.img

The system only supports USB and the connected keyboard does not work
when trying to use 'boot -c' to see if I could disable softraid.

Apart from building my own kernel anyhting I could do?

BR/Rob

PS. does this belong in bugs@ ?



Re: Frustrating feature in Evolution mail

2024-07-17 Thread Rob Schmersel
On Wed, 17 Jul 2024 09:59:01 +0100
Mark Gary  wrote:

> HI All,
> 
> I'm trying to resolve a trivial, but annoying problem with using
> Evolution mail on my OpenBSD setup. The style of date used in the list
> of mail in my inbox is in US format, i.e month first, day second, and
> I want it is UK format, day first, then month.  I know how to fix
> this in FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of
> text files. However on OpenBSD, this hasn't worked in exactly the
> same way.  As an aside, I was getting a similar problem with
> Libreoffice defaulting to USA dictionaries, but that has been fixed
> and is picking up its locale properly from one of the text files I
> amended.
> 
> text files where i have the correct variable is :
> 
> .bashrc
> .bash_profile
> .xinitrc
> .xsession
> .profile
> /etc/login.conf - yes I did run cap_mkdb.
> 
> when I issue the locale command from the terminal, it shows all the
> correct en_GB.UTF-8 variables. So everything looks OK, but i'm
> obviously missing something.  So if there is another text file to
> amend I would apprecate any suggestion.
> 
Don't use evolution, but what about following the advise in the manual:
https://gnome.pages.gitlab.gnome.org/evolution/help/mail-change-time-format.html





Building Rust program with libreSSL on a --current machine

2024-07-10 Thread Rob Schmersel
Hi,

Looking for advice on how one can build rust programs that require
openSSL support on OpenBSD -current

No matter what I try I keep coming back to errors like:

 cargo:libressl_version_number=309f

  --- stderr
  thread 'main' panicked at
  
/home/lobo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.96/build/main.rs:334:5:


  This crate is only compatible with OpenSSL (version 1.0.1 through
  1.1.1, or 3), or LibreSSL 2.5 through 3.8.1, but a different version
  of OpenSSL was found. The build is now aborting due to this version
  mismatch.

Or is it better to ask this on ports@?

BR/Rob



Re: epub reader

2024-06-20 Thread Rob Schmersel
On Thu, 20 Jun 2024 07:17:13 +0200
Rob Schmersel  wrote:

> On Wed, 19 Jun 2024 22:25:42 +0200
> Dan  wrote:
> 
> > 
> > 
> > Thanks for reaching out Antoine, appreciated.
> > 
> > I know it is not enough but this is what I can I pass you:
> > 
> > https://takeyou.to/l/fol1 [a screenshot of Foliate under my XFCE]
> > 
> > Unfortunately Foliate doesn't appear to help a lot. Same result both
> > launching it from GUI and from console.
> > 
> > 
> > If I try with pkg_check:
> > 
> > wiz@/home/pocahontas# pkg_check foliate
> > Packing-list sanity: ok
> > Direct dependencies: ok
> > Reverse dependencies: ok
> > Files from
> > packages|**|100%Warning:
> > couldn't read packing-list from installed package foliate File
> > /var/db/pkg/foliate/+CONTENTS does not exist Can't call method
> > "thorough_check" on an undefined value at
> > /usr/libdata/perl5/OpenBSD/PkgCheck.pm line 836.
> > 
> > 
> > -Dan
> > 
> > 
> > Antoine Jacoutot  wrote:
> > 
> > > Foliate broken how?
> > > 
> > 
> > > > On 19 Jun 2024, at 18:55, Dan  wrote:
> > > > 
> > > > Hello,
> > > > 
> > > > I'm here asking for an epub ebook reader port as Foliate (almost
> > > > under my XFCE) appears broken from a while and Calibre is not
> > > > exactly a light ebook reader.
> > > > 
> > > > Thnks!
> > > > 
> > > > -Dan
> > 
> 
> foliate is working for me under XFCE, but I'm getting the same error
> when running pkg_check

Follow-up: mmm it seems that foliate is quite picky. I found 1 book
that showed the same error and which resulted in a WebKitWebProcess.core
file produced in the books folder. 

Opening the book in Sigil and letting it fix the html solves that issue.
(Incidently, as you mentioned calibre, I see this happening with most 
books that are converted with calibre)



Re: epub reader

2024-06-19 Thread Rob Schmersel
On Wed, 19 Jun 2024 22:25:42 +0200
Dan  wrote:

> 
> 
> Thanks for reaching out Antoine, appreciated.
> 
> I know it is not enough but this is what I can I pass you:
> 
> https://takeyou.to/l/fol1 [a screenshot of Foliate under my XFCE]
> 
> Unfortunately Foliate doesn't appear to help a lot. Same result both
> launching it from GUI and from console.
> 
> 
> If I try with pkg_check:
> 
> wiz@/home/pocahontas# pkg_check foliate
> Packing-list sanity: ok
> Direct dependencies: ok
> Reverse dependencies: ok
> Files from
> packages|**|100%Warning:
> couldn't read packing-list from installed package foliate File
> /var/db/pkg/foliate/+CONTENTS does not exist Can't call method
> "thorough_check" on an undefined value at
> /usr/libdata/perl5/OpenBSD/PkgCheck.pm line 836.
> 
> 
> -Dan
> 
> 
> Antoine Jacoutot  wrote:
> 
> > Foliate broken how?
> > 
> 
> > > On 19 Jun 2024, at 18:55, Dan  wrote:
> > > 
> > > Hello,
> > > 
> > > I'm here asking for an epub ebook reader port as Foliate (almost
> > > under my XFCE) appears broken from a while and Calibre is not
> > > exactly a light ebook reader.
> > > 
> > > Thnks!
> > > 
> > > -Dan
> 

foliate is working for me under XFCE, but I'm getting the same error
when running pkg_check



Re: info about cpu in dmesg

2024-06-15 Thread Rob Schmersel
On Fri, 14 Jun 2024 22:20:55 +0200
Hrvoje Popovski  wrote:

> Hi all,
> 
> I have question about cpu output in dmesg.
> I have Fujitsu RX2530m4 with 8 core Intel(R) Xeon(R) Gold 6134 and in
> dmesg I've noticed that core are 0,4,5,7,18,19,21,22
> 
> without HT
> cpu0: smt 0, core 0, package 0
> cpu1: smt 0, core 4, package 0
> cpu2: smt 0, core 5, package 0
> cpu3: smt 0, core 7, package 0
> cpu4: smt 0, core 18, package 0
> cpu5: smt 0, core 19, package 0
> cpu6: smt 0, core 21, package 0
> cpu7: smt 0, core 22, package 0
> 
> with HT
> cpu0: smt 0, core 0, package 0
> cpu1: smt 0, core 4, package 0
> cpu2: smt 0, core 5, package 0
> cpu3: smt 0, core 7, package 0
> cpu4: smt 0, core 18, package 0
> cpu5: smt 0, core 19, package 0
> cpu6: smt 0, core 21, package 0
> cpu7: smt 0, core 22, package 0
> cpu8: smt 1, core 0, package 0
> cpu9: smt 1, core 4, package 0
> cpu10: smt 1, core 5, package 0
> cpu11: smt 1, core 7, package 0
> cpu12: smt 1, core 18, package 0
> cpu13: smt 1, core 19, package 0
> cpu14: smt 1, core 21, package 0
> cpu15: smt 1, core 22, package 0
> 
> My understanding is that :
> package   - cpu socket
> core  - physical cpu cores
> smt   - core thread
> cpuX  - name of core ?
> 
> I thought that in my case core should be from 0 to 7 ?
> 
<--- snip dmesg --->

The Xeon gold 6000 series can have upto 22 cores. The 6134 just has
some of those cores disabled



Re: unknown USB vendor

2024-05-25 Thread Rob Schmersel
On Fri, 24 May 2024 11:51:49 +0200
Mizsei Zoltán  wrote:

> Probably https://wikidevi.wi-cat.ru/AMPAK_AP6212
> 
> Peter J. Philipp írta 2024. máj.. 24, P-n 11:39 órakor:
> > Hi,
> >
> > I got a "are you a human?" on google so I switched to qwant.com for 
> > searching
> > but the search is not as good.  I'm looking for the USB vendor of
> > this USB
> > vendor id.  0x02d0, and the device id is 0xa9a6.  Afaict this is a 
> > ure(4)
> > device with a builtin usb hub.  But there is no other markings on
> > the outside, related to manufacturer.  It does not get detected by
> > default on an April
> > kernel code.  It does have a micro-USB cable for the raspberry pi
> > zero 2 that
> > I wanted to use this with.
> >
> > Anyone have any details on these vendor and device id's?
> >
> > Best Regards,
> > -pjp
> >
> > -- 
> > ** all info about me:  lynx https://callpeter.tel, dig loc
> > delphinusdns.org **  
> 

From an RPI 4 dmesg:
...
bwfm0 at sdmmc0 function 1
manufacturer 0x02d0, product 0xa9a6 at sdmmc0 
...



Re: Trying to access /dev/ttyUSB0 device from VM

2024-03-17 Thread Rob Schmersel
On Sun, 17 Mar 2024 10:25:17 -0400
Stephen Wiley  wrote:

> Since it's just UART it probably wouldn't be too hard to use openpty
> to to pass it through over the network. I wouldn't be surprised if
> someone else already did this.
> 
> On Sun, Mar 17, 2024 at 02:09:11PM +, Chris Narkiewicz wrote:
> > Hardware passthrough is not supported by vmd.
> > 
> > Best regards,
> > Chris Narkiewicz
> > 
> 

There is socat in ports (https://openports.pl/path/net/socat)



Re: Trying to access /dev/ttyUSB0 device from VM

2024-03-17 Thread Rob Schmersel
On Sun, 17 Mar 2024 19:42:13 +0800
Sadeep Madurange  wrote:

> Hello,
> 
> I set up a Linux VM on OpenBSD hoping to flash ESP32 programs from the
> Linux VM. However when I plug the MCU in, I can't see it in the /dev
> directory.
> 
> Is what I'm trying to do even possible (accessing UART-over-USB
> devices from a VM), and if so, is there anything special I need to
> do, e.g., when I start the VM?
> 

This is not supported at the moment as mentioned in the FAQ:
https://www.openbsd.org/faq/faq16.html



Re: mailman on OpenBSD - linking problem

2024-03-12 Thread Rob Schmersel
On Mon, 11 Mar 2024 21:16:05 +0300
Mark  wrote:

> On Mon, Mar 11, 2024 at 11:16 AM Michael Hekeler 
> wrote:
> 
> > I don't know this mailman script but...
> > Why did you strip first component from the request?
> > Are these cgi's in /usr/local/lib/mailman/cgi-bin/admin or in
> > /var/www/usr/local/lib/mailman/cgi-bin/admin?
> > What is your chroot setting in httpd.conf?
> > And IF you changed httpd chroot how do you start slowcgi(8)?
> > What/where is socket? Where is path?
> >
> >  
> Hi Michael,
> 
> What does "request strip 1" actually do in that case?
> The cgi files are in /usr/local/lib/mailman/cgi-bin/
> chroot setting in httpd.conf: chroot "/"
> Slowcgi starts with: slowcgi_flags="-p /" and it's socket path is:
> /var/www/run/slowcgi.sock
> 
> Slowcgi and httpd works fine. However two things I'd like to know;
> 
> As I asked, what does "request strip 1" do and if I really need that?
> 
> Secondly; how to combine two locations into one? So that;
> "/admin" and "/admin/" would get captured both.

you would have 2 locations like this
location match "/admin" {
request rewrite "/admin/"
}
location "/admin/" {
...
}

you should be able to generalize the 1st match to add a / to every
request not having a / at the end when it is not pointing to a file
(*.html/png/...) with something like this (note I've not tested this,
so use at own risk :) )

location match "([^.]+)[^/]$" {
request rewrite "%1/"
}




Re: Using wayland on OpenBSD

2023-11-25 Thread Rob Schmersel
On Sat, 25 Nov 2023 17:15:21 +0100
quen...@schibler.fr  wrote:

> I would like to develop a wayland app on OpenBSD, and I was wondering
> if it was already possible to use wayland on a snapshot version. The
> only requirement I have is to be able to run firefox, I obviously
> don't expect anything to be stable and I will be happy to help by
> providing feedback/bug report.
> 
> - Quentin Schibler
> 
Have a look here:
https://www.openbsd.org/papers/eurobsdcon2023-matthieu-wayland-openbsd.pdf



Re: How Do I Get The OpenBSD Install Procedure To Stop Trashing My Bootloader?

2023-07-14 Thread Rob Schmersel
On Thu, 13 Jul 2023 13:53:24 -0500 (EDT)
"Jay F. Shachter"  wrote:

> Esteemed Colleagues:
> 
> Every time I install OpenBSD (the latest version, 7.3), it trashes
> GRUB, and renders my computer unbootable.  I am guessing, and please
> correct me if I am wrong, that this is because OpenBSD puts its
> subpartition table in disk storage that has not been given to it.
> 
> The internal hard drive is an MBR-partitioned disk belonging to a
> computer that is configured to do Legacy boot.  Microsoft Windows,
> Linux, and Haiku are already installed.  Microsoft Windows uses all
> three primary partitions for itself, because that is what Windows
> does, and every other operating system has to find a place for itself
> within the extended partition.
> 
> The bootloader is GRUB2, and has been, since I installed the Linux
> system.  The Linux system resides on two logical volumes (root and
> swap) carved out of an LVM volume group that resides on the first
> logical slice of the extended partition (which Linux calls /dev/sda5).
> GRUB2 boots it by means of:
> 
>  insmod lvm
>  set root=(lvm/m5-springdale)
>  linux /boot/vmlinuz root=/dev/m5/springdale
>  initrd /boot/initramfs.img
> 
> Haiku resides on the third logical slice of the extended partition,
> which in Linux is called /dev/sda7, and is booted by means of:
> 
>  set root=(hd0,7)
>  chainloader +1
> 
> OpenBSD was installed -- repeatedly -- in the second logical slice of
> the extended partition, which in Linux is called /dev/sda6 (and I
> intend to install NetBSD in /dev/sda9, I have a very subtle sense of
> humor), and there is already a stanza in my GRUB menu that has been
> made ready for it:
> 
>  set root=(hd0,6)
>  chainloader +1
> 
> although I am also ready to boot it by means of kopenbsd, if
> necessary.
> 
> I never got to execute that stanza in the GRUB menu, however, because
> the OpenBSD installation has always rendered my system unbootable.  It
> just didn't boot, not even into the GRUB menu.  I had to repair my
> system by booting from a recovery CD, mounting /dev/m5/springdale on,
> e.g., /mnt, furnishing /mnt with appropriate proc, sys and dev
> filesystems, doing a chroot to /mnt, and then doing a "grub2-install
> /dev/sda".  Which failed, complaining, inter alia, about a disk with
> multiple partition tables.  But if I did
> 
>   dd if=/dev/zero of=/dev/sda bs=512 skip=1 count=2
> 
> then grub2-install ceased complaining about a disk with multiple
> partition tables, and it succeeded, and I could then reboot into the
> GRUB menu.  But now OpenBSD was unbootable.
> 
> All of this has led me reasonably to theorize that OpenBSD puts its
> subpartition table outside of the area that belongs to it, which is
> the second logical slice of the extended partition, which is where I
> tell it to install itself -- in particular, that it puts its
> subpartition table near the MBR table, which is an area of disk that
> does not belong to it, but, rather, to GRUB, which is, consequently,
> trashed.
> 
> If this is what is happening, then it is totally bogus.
> 
> I have nothing against subpartitioning.  Linux doesn't do it, but many
> respectable operating systems do, like FreeBSD, NetBSD, and Solaris,
> although Solaris, practically speaking, is usually installed so as to
> use ZFS rather than UFS, so the entire concept of subpartitioning is
> obsolete.
> 
> (Parenthetically, when is OpenBSD going to support ZFS, and join the
> category of operating systems in which I can do serious work, i.e.,
> Solaris, Linux, FreeBSD, and NetBSD?  NetBSD didn't use to be in that
> category, because its implementation of ZFS was brain-damaged, but
> now it has a good implementation of ZFS, and now it is a member in
> good standing of the category of operating systems in which I can do
> serious work.  OpenBSD is not, and in that regard it resembles Haiku,
> or SkyOS, or Icaros, and that is regrettable, because OpenBSD has
> other good features that would otherwise make me want to use it for
> serious work.  But I digress.)
> 
> But my FreeBSD systems manage to do subpartitioning without trashing
> GRUB and rendering my computers unbootable.  I assume that is because
> FreeBSD doesn't overwrite disk storage that doesn't belong to it, but
> that, rather, it keeps its subpartition table in the area of disk
> where it has been told to install itself.
> 
> Now, I do not know for certain that OpenBSD overwrites parts of GRUB
> with its subpartition table.  I am only theorizing, based on strong
> circumstantial evidence.  What I do know is that every time I install
> OpenBSD, it renders my computer unbootable.  How do I get it to stop
> doing that?
> 
> Thank you in advance for any and all replies.
> 
> Jay F. Shachter
> 6424 North Whipple Street
> Chicago IL  60645-4111
> (1-773)7613784   landline
> 

Re: OT: Running SOFTRAID on PCEngine APU2 via mPCIe to M.2 convertor board for NVME 2230 or 2242

2023-05-21 Thread Rob Schmersel
On Sun, 21 May 2023 07:28:25 -0400
Daniel Ouellet  wrote:

> Hi,
> 
> Anyone ever was able to find a mPCIe to M.2 convertor board on Amazon 
> that works for using M.2 NVME 2230 or 2242 drives or even M.2 SATA 
> (NGFF) in the APU2 like this:
> 
> https://github.com/TobleMiner/M.2-NVMe-SSD-to-miniPCIe-adapter
> 
> Scroll to the end and see the picture of the drives inside the APU2.
> 
> The mSATA goes in the J12 slot as explained below (URL), but the J13
> and J14 are mPCIe slot, so it should be possible with the proper
> adapter to also have an M.2 drives in this small box.
> 
> https://github.com/pcengines/apu2-documentation/blob/master/docs/APU_mPCIe_capabilities.md
> 
> Then may be I can run softraid on my OpenBSD APU2.
> 
> I would very much appreciated if anyone happen to know the model that 
> they use or know that is working.
> 
> Amazon have a very long list, but the description isn't to useful and 
> describe for use with USB, or wireless card and there is so many 
> different keys type, etc.
> 
> Many thanks for your time.
> 
> Daniel
> 

It is not amazon, but here you can find one on ali express:
https://www.aliexpress.com/item/1005004641053693.html?spm=a2g0o.detail.114.6.3a686a9ashFQUL=pcDetailBottomMoreOtherSeller=1007.40050.281175.0_id=1007.40050.281175.0=1007.40050.281175.0=ece8abbc-347c-47df-9c76-c292adefc4c1&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.40050.281175.0,pvid:ece8abbc-347c-47df-9c76-c292adefc4c1,tpp_buckets:668%232846%238109%231935_npi=3%40dis%21SEK%2166.65%2151.34%21%21%21%21%21%402101c5a716846710151784711e0835%211229942424882%21rec%21SE%211684149259



Re: Change (spoof) MAC address

2023-01-03 Thread Rob Schmersel
On Tue, 03 Jan 2023 07:40:21 +0100
"Bodie"  wrote:

> On Mon Jan 2, 2023 at 8:53 PM CET, Rob Schmersel wrote:
> > On Mon, 2 Jan 2023 13:44:30 +0100
> > Tomaž Kokolj  wrote:
> >  
> > > Hi everyone,
> > > 
> > > I've requested a static IP from my ISP a long time ago and I
> > > figured out that my ISP binds my IP based on a MAC address which
> > > is connected to my WAN port.
> > > 
> > > I was thinking about switching from Debian Linux to OpenBSD on my
> > > router, but I can't figure out how to change my MAC address.
> > > 
> > > I've tried the the following configurations for my
> > > /etc/hostname.em0 (I'm testing this in VirtualBox):
> > > #
> > > inet autoconf lladdr 00:11:22:33:44:55
> > > #
> > > 
> > > #
> > > lladdr 00:11:22:33:44:55
> > > inet autoconf
> > > #
> > > 
> > > #
> > > inet autoconf
> > > lladdr 00:11:22:33:44:55
> > > #
> > > In all of those configurations, my lladdr gets changed to
> > > 00:11:22:33:44:55 but the inet line is missing from ifconfig which
> > > means that my network isn't working.
> > > 
> > > I have found this old (2012) blog post:
> > > https://andrewmemory.wordpress.com/2012/12/06/changing-mac-address-on-openbsd/
> > > 
> > > Which suggested:
> > > "Linux has /etc/network/interfaces, and OpenBSD has
> > > /etc/hostname.if. I just changed my /etc/hostname.vr1 to:
> > > 
> > > dhcp lladdr 00:11:22:33:44:55
> > > 
> > > and I was requesting an IP address using my new MAC address"
> > > 
> > > If I do that my inet line is present and my network/internet is
> > > working, but my lladdr line isn't changed.
> > > 
> > > Any suggestions?
> > > 
> > > Best regards,
> > > Tomaz  
> >
> > My ISPs (one at the house, one at my son's apartment) have the same
> > setup and I'm using this in /etc/hostname.em0  
> > > lladdr 00:11:22:33:44:55
> > > inet autoconf  
> >
> > This will give the correct IP address in both cases.
> >
> > Good luck  
> 
> Which is interesting that it works as man page talks about this
> format:
> 
> IPv4 dynamic addressing via DHCP is requested using "inet autoconf"
> inet autoconf [ifconfig_options]
> 

The ISP has not really set a static ip, but uses dhcp server to set a
fixed IP address based on your MAC address. You can configure such in
dhcpd.conf with something like the following:

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
range 192.168.1.24 192.168.1.200;
# Network
# example host
host  {
fixed-address 192.168.1.250;
hardware ethernet 00:11:22:33:44:55;
}


 



Re: Change (spoof) MAC address

2023-01-02 Thread Rob Schmersel
On Mon, 2 Jan 2023 13:44:30 +0100
Tomaž Kokolj  wrote:

> Hi everyone,
> 
> I've requested a static IP from my ISP a long time ago and I figured
> out that my ISP binds my IP based on a MAC address which is connected
> to my WAN port.
> 
> I was thinking about switching from Debian Linux to OpenBSD on my
> router, but I can't figure out how to change my MAC address.
> 
> I've tried the the following configurations for my /etc/hostname.em0
> (I'm testing this in VirtualBox):
> #
> inet autoconf lladdr 00:11:22:33:44:55
> #
> 
> #
> lladdr 00:11:22:33:44:55
> inet autoconf
> #
> 
> #
> inet autoconf
> lladdr 00:11:22:33:44:55
> #
> In all of those configurations, my lladdr gets changed to
> 00:11:22:33:44:55 but the inet line is missing from ifconfig which
> means that my network isn't working.
> 
> I have found this old (2012) blog post:
> https://andrewmemory.wordpress.com/2012/12/06/changing-mac-address-on-openbsd/
> 
> Which suggested:
> "Linux has /etc/network/interfaces, and OpenBSD has /etc/hostname.if.
> I just changed my /etc/hostname.vr1 to:
> 
> dhcp lladdr 00:11:22:33:44:55
> 
> and I was requesting an IP address using my new MAC address"
> 
> If I do that my inet line is present and my network/internet is
> working, but my lladdr line isn't changed.
> 
> Any suggestions?
> 
> Best regards,
> Tomaz

My ISPs (one at the house, one at my son's apartment) have the same
setup and I'm using this in /etc/hostname.em0
> lladdr 00:11:22:33:44:55
> inet autoconf

This will give the correct IP address in both cases.

Good luck



Re: documentation

2022-05-24 Thread Rob Schmersel
On Tue, 24 May 2022 12:36:50 -0300
Gustavo Rios  wrote:

> Hi folks,
> 
> I would like to download a pdf version of the faq and pf guide for
> openbsd 7.1. May some one here point me where i could fetch the pdf
> documentation from ?
> 
> Thanks a lot.
> 

You might try wkhtmltopdf



Re: What password manager do you recommend?

2022-01-09 Thread Rob Schmersel
On Fri, 7 Jan 2022 14:53:33 -0500
fo...@dnmx.org wrote:

> Hello. I hope this these types of questions are okay for an mailing
> list.. I completely understand if they are not..
> 
> There's password-store, but it does need some shitty dependencies..
> Then there's opm, but since it doesn't seem to be popular
> fuck-knows-who if it's secure(ish)..
> 
> If I were to use password-store, I'd have dmenu pipe in the query,
> then just pipe the password to `xclip -i -selection clipboard` which
> is a decent setup I guess..
> 

I use bitwarden, plays nice with all devices used in my family (bought
the premium service for backup, but you can run that yourself)



Re: bwfm NVRAM file

2020-03-13 Thread Rob Schmersel
On Fri, 13 Mar 2020 16:41:41 +0100
Patrick Wildt  wrote:

> On Fri, Mar 13, 2020 at 12:12:18PM +0100, Rob Schmersel wrote:
> > Hello,
> > 
> > In order to use a SDIO based bwfm device a "NVRAM" configuration
> > file will be needed besides the firmware file. This configuration
> > file is expected to be in the /etc/firmware directory, in the form
> > of brcmfmac{chip}-sdio.txt OR brcmfmac{chip}-sdio.nvram
> > 
> > The need for this configuration file is not described in the man
> > page. However the device will not be usable without one and an
> > error message will be shown in the dmesg:
> >   "failed loadfirmware of file: brcmfmac{chip}-sdio.txt"
> > 
> > Can I suggest to below attached patch. 
> > 
> > I'm a bit unsure on how to indicate where the configuration file
> > comes from: Under Linux it is recommended that you read the NVRAM
> > contents from EFI, which I don't think is possible to do under
> > OpenBSD
> > 
> > Hunting down the configuration file through your favorite search
> > engine can be a frustrating excercise, although you can find them
> > occasionally included in a windows driver or a linux distro.
> > 
> > Question: Are there plans to include the NVRAM files in
> > bwfm_firmware package?  
> 
> It all depends!  The NVRAM file is board-design-specific.  So, let's
> assume OpenBSD and NetBSD would each build their own machine, using
> the same chip and firmware.  The NVRAM file contains a configuration
> for the chip, so that it e.g. can limit TX/antenna gain or whatever.
> This is important for stuff like CE certification.  There are quite a
> few settings, so it's very likely that the one board's chip needs a
> different configuration than the other one's chip.
> 
> So where do we get this file?  If it's an x86-based machine, it's
> likely they stored it as EFI variable.  In OpenBSD, so far only the
> ARM ports support calling into the Runtime Services using efi(4).
> Since we don't have support for efi(4) on x86, OpenBSD cannot read
> the EFI variables.  For that you'll have to boot Linux, or some
> other OS that has that feature.  On some other x86 machines, the
> vendor might provide the file as part of a Windows firmware package.
> 
> Is it different on ARMs?  Well, yes, but not sure if worse or even
> better.  The NVRAM file can usually be found on the vendor's Github.
> 
> linux-firmware.git has started collecting and distributing some of
> the files.  So that will be a helpful source for us.  Otherwise we
> will have to collect them ourselves.
> 
> For ARM there's still one commit left so that we can supply per-
> board NVRAM files more easily.  In essence: We're working on it!
> 
> Patrick
> 

Aah I did not find linux-firmware.git during my search, most likely as
I was looking for bcm43341 nvram. That is not there :)

for reference attahced the file I got through the windows driver for
this specific mini pc from china

BR/Rob


#AP6234_NVRAM_V1.2_20140820_WIN8.1
manfid=0x2d0
prodid=0x0653
vendid=0x14e4
devid=0x4386
boardtype=0x0653
boardrev=0x1203
boardnum=22
macaddr=00:90:4c:c5:12:38
sromrev=3
#boardflags: 
# bit 19 3tswitch:   2.4GHz FEM: SP3T switch share with BT
# bit 16 nopa:   no external pa
#keep original 0x200
boardflags=0x0090201
xtalfreq=37400
nocrc=1
ag0=255
aa2g=1
ccode=CN
pa0itssit=0x20
#PA parameters for 2.4GHz
#pa0b0=6957 default
pa0b0=6727 
pa0b1=-858
pa0b2=-178
tssifloor2g=69
# rssi params for 2.4GHz
rssismf2g=0xf
rssismc2g=0x8
rssisav2g=0x1
cckPwrOffset=3

# rssi params for 5GHz
rssismf5g=0xf
rssismc5g=0x7
#rssisav5g=0x1
rssisav5g=0x3

#PA parameters for lower a-band
#pa1lob0=5659 default
pa1lob0=5859
#pa1lob0=5659
pa1lob1=-693
pa1lob2=-178
tssifloor5gl=77

#PA parameters for midband
pa1b0=5372 
#pa1b0=5172
pa1b1=-671
pa1b2=-212
tssifloor5gm=77

#PA paramasdeters for high band
#pa1hib0=5320 default
pa1hib0=5620
#pa1hib1=-963
pa1hib1=-663
pa1hib2=-179
tssifloor5gh=74

rxpo5g=0
maxp2ga0=72
#  19.5dBm max; 18dBm target
#Per rate power back-offs for g band, in .5 dB steps. Set it once you
have the right numbers. cck2gpo=0x
ofdm2gpo=0x
# R54 16dBm; R48 17dBm; others 18dBm
mcs2gpo0=0x
# M0~ M4 17dBm
mcs2gpo1=0x
# M5M6 15dBm; M7 14.5dBm
#max power for 5G
maxp5ga0=68
# 16dBm target; 17.5dBm Max 
maxp5gla0=68
maxp5gha0=68
#Per rate power back-offs for a band, in .5 dB steps. Set it once you
have the right numbers. ofdm5gpo=0x
# R54 13.5dBm
ofdm5glpo=0x
ofdm5ghpo=0x
mcs5gpo0=0x
# M0~M4 16dBm (1dB higher than ofdm)
mcs5gpo1=0x
# M5M6 13.5dBm; M7 12dBm
mcs5glpo0=0x
mcs5glpo1=0x
mcs5ghpo0=0x
mcs5ghpo1=0x
# Parameters for DAC2x mode and ALPF bypass
# RF SW Truth Table: ctrl0 for BT_TX; ctrl1 or 5G Tx; ctrl2 for 5G Rx;
Ctrl3

Re: bwfm NVRAM file

2020-03-13 Thread Rob Schmersel
On Fri, 13 Mar 2020 13:41:48 +0100
Stefan Sperling  wrote:

> On Fri, Mar 13, 2020 at 12:12:18PM +0100, Rob Schmersel wrote:
> > Question: Are there plans to include the NVRAM files in
> > bwfm_firmware package?  
> 
> Yes, this is being worked on. See these recent commits by Patrick:
> https://marc.info/?l=openbsd-cvs=158357502421524=2
> https://marc.info/?l=openbsd-cvs=158348413626641=2
> https://marc.info/?l=openbsd-cvs=158348535827039=2
> 
> I am not involved but it sounds like this issue could be resolved
> in time for the next release. But please have patience.

perfect :)



bwfm NVRAM file

2020-03-13 Thread Rob Schmersel
Hello,

In order to use a SDIO based bwfm device a "NVRAM" configuration file
will be needed besides the firmware file. This configuration file is
expected to be in the /etc/firmware directory, in the form of
 brcmfmac{chip}-sdio.txt OR brcmfmac{chip}-sdio.nvram

The need for this configuration file is not described in the man page.
However the device will not be usable without one and an error message
will be shown in the dmesg:
  "failed loadfirmware of file: brcmfmac{chip}-sdio.txt"

Can I suggest to below attached patch. 

I'm a bit unsure on how to indicate where the configuration file comes from:
Under Linux it is recommended that you read the NVRAM contents from
EFI, which I don't think is possible to do under OpenBSD

Hunting down the configuration file through your favorite search engine
can be a frustrating excercise, although you can find them
occasionally included in a windows driver or a linux distro.

Question: Are there plans to include the NVRAM files in bwfm_firmware
package?

Index: share/man/man4/bwfm.4
===
RCS file: /cvs/src/share/man/man4/bwfm.4,v
retrieving revision 1.10
diff -u -p -u -r1.10 bwfm.4
--- share/man/man4/bwfm.4   10 Nov 2019 14:10:41 -  1.10
+++ share/man/man4/bwfm.4   11 Mar 2020 15:41:49 -
@@ -77,10 +77,18 @@ driver can be configured at runtime with
 or on boot with
 .Xr hostname.if 5 .
 .Sh FILES
-The driver needs a firmware file which is loaded when the driver
-attaches.
+The 
+.Nm
+driver needs a firmware file which is loaded when the 
+.Nm
+driver attaches.
 A prepackaged version of the firmware can be installed using
 .Xr fw_update 1 .
+.Pp
+sdmmc connected devices need in addition a NVRAM configuration file,
+which is also loaded when the 
+.Nm
+driver attaches.
 .Sh EXAMPLES
 The following example scans for available networks:
 .Pp





Re: dhclient release a lease?

2018-05-14 Thread Rob Schmersel
On Mon, 14 May 2018 19:36:12 -0400
Quartz  wrote:

> > Currently there is no facility in dhclient(8) to issue RELEASE
> > messages. I had no recollection of adding such a thing, and a
> > quick  
> 
> > confirmed there is no DHCPRELEASE related code.  
> 
> Ergh. OK thanks, that's super annoying that it's not there.
> 
> >Which
> > signal(s) are used elsewhere to trigger RELEASE? Goggle is not
> > coughing up an obvious answer. :-)  
> 
> It varies, IIRC on at least on other linux or bsd distro sending HUP 
> took a more literal approach ("hang up and leave") and sent a DHCP 
> release before nuking its lease cache, and I'm pretty sure somewhere 
> else you could send "SIGUSR2" or something.
> 

On Red Hat/Debian  (and derivatives) they use dhclient which has a -r
switch to release the lease. From the man page:

-r Release  the  current  lease and stop the running DHCP client as
previously recorded in the PID file. When shutdown via this method
dhclient-script will be executed with the specific  reason  for
calling the  script set.  The client normally doesn't release the
current lease as this is not required by the DHCP protocol but some
cable ISPs require their clients to notify the server if they wish  to
release an assigned IP address.



Re: Where to buy Lemote FuLoong MIPS boxes?

2011-12-16 Thread Rob Schmersel

On 12/17/2011 05:14 AM, Miod Vallat wrote:

Lemoteo manufacturer of FuLoong and Yeloong, does have an store on
www.taobao.com (http://loogson.taobao.com/), it's the official place to buy
FuLoong/YeeLoong here in China.

And they seem to sell Loongson 3A-based systems, unlike the dutch
reseller. But my nonexistent knowledge of the chinese language does not
help.

I would like to get a 3A-based system in order to extend the
OpenBSD/loongson port to these systems. (I also would like to get a 2G
system, but I am quite confident the existing codebase will run
unmodified on a 2G system, so that's not a priority).

If anyone, fluent in chinese, could tell me if I can indeed order a 3A
system from this site and have it shipped to western Europe, and
wouldn't mind assisting me to place an order, this would be greatly
appreciated.

TIA,
Miod (OpenBSD/loongson portmaster, in case you didn't notice)


They indicate that there are systems available, but you never know until you 
really try :). Anyway you can not get it shipped to Western Europe via the 
shop, they only allow China internal shipping. There are however some services 
available on separate sites that allow you to order in China and get it shipped 
anywhere in the world. A quick search will get you some links (typical: you 
read about it, but since you don't need it you do not bookmark it).

I would offer to be a courier as I'm flying home for Xmas, but I'm 
flying tomorrow morning and it is unfortunately to short to order and 
still get it here on time.


Regards
/Rob



Re: Where to buy Lemote FuLoong MIPS boxes?

2011-12-13 Thread Rob Schmersel

On 12/14/2011 03:44 AM, Nomen Nescio wrote:

The prices at the official European shop in the Netherlands are sky high.
I thought this was supposed to be a 150 dollar PC. Does anybody have a good
cheap source for these or other MIPS boxes? Thanks.


Even here in China it is difficult to find. Just did a search on 
www.taobao.com (chinese eBay) and only 2 vendors showed up:

http://s.taobao.com/search?q=2f6004rt=1323835584378

The fulong is selling for 1800 RMB, which is the same price as 
tekmote.nl is charging.


/Rob



Re: [Newbie] OpenBSD HTTP proxy

2007-10-08 Thread Rob Schmersel

Hi,

I'm using TOR with good success here in China.  Try torpark for 
windows,  this will give your friend a preconfigured package of tor + 
firefox, ready to run (no need to setup a proxy on your site).


REgards
/Rob

Tony Bruguier wrote:

Hi all,

I am an OpenBSD newbie (although I have used Linux before), so please bear
with me. I successfully installed OpenBSD on a machine that has a fixed IP.

I would like to install an HTTP proxy. The goal is to be able to allow a
friend who has to go to China to surf the web freely. Do you have any
suggestion on the package to use? He is using Windows.

In the long term, I would like to implement a full IP tunelling. Any
solutions?

Tony




Re: OT: serial console through S-Video 7-pin locking dub connector?

2007-07-20 Thread Rob Schmersel

vladas wrote:

Hi all,

Is it possible to connect to server's serial console through the
S-Video 7-pin locking dub connector - RS-232C cable [1]
directly without using Video/S-Video to VGA/Component Video
Converterconverter?

I need to connect to OpenBSD (RC-232C side) from windoze
(S-Video side).


[1] The pic is small/hopeless, but:
http://www.sanyo-lcdp.com/option/images/poa-ca-vgas.jpg
One end is RC-232C, other - S-Video (7 pins).


Would be gratefull for any pointers.



Nope,

That looks like an old Mac modem cable (RS-422  RS-232), different 
beast. S-video does not even have the correct signals.


/Rob