/r/openbsd
General OpenBSD community subreddit. For gaming-related discussion, visit /r/openbsd_gaming.
If you have genuine questions or concerns, you're always welcome. Tone matters.
Dicussion about OpenBSD: the free multi-platform 4.4BSD-based UNIX-like operating system focusing on portability, standardization, correctness, proactive security, and integrated cryptography.
If you have genuine questions or concerns, you're always welcome. Tone matters.
OpenBSD related links:
/r/openbsd
Installed OpenBSD 7.6 on my Thinkpad T14 (Gen 3 AMD) and got pleasantly surprised that everything was supported.
According to the pcidump utility, my Thinkpad has the following hardware:
Zen 3, 19h AMD CPU, no issues with that
Realtek 8168 (Ethernet), worked perfectly out of the box
Qualcomm QCNFA765 (WiFi), the qwx driver supports this device, but for some reason the default install doesn't come with it's firmware, so the driver refuses to start, this can be fixed by installing proprietary firmware with the fw_update utility, with the proprietary firmware downloaded WiFi works perfectly fine.
AMD Rembrandt GPU, same issue as before, for some reason proprietary firmware wasn't installed, so drm support was missing in the default install, this got fixed after running the fw_update utility.
Hibernation seems to work perfectly fine, no issues with power management either, the laptop's battery doesn't discharge fast when running OpenBSD
Hello everyone. I'm a long-time Linux user who has been running Asahi since the ALARM days, and I love tinkering. I got curious and was able to successfully install OpenBSD 7.6 using the Asahi install script to set up an EFI partition to boot in to the install USB for OpenBSD. Currently running Plasma 6 (albeit without graphical acceleration, hoping this lands on a soonish timeline!).
According to what I've read, WiFi should have been supported out of the box, since the OpenBSD installer is meant to grab the firmware from the EFI partition that Asahi bundles. However ifconfig does not seem to recognize the Broadcom WiFi chip.
$ dmesg | grep bwfm
Returns nothing.
$ ifconfig
lo0: flags=2008049<UP,LOOPBACK,RUNNING,MULTICAST,LRO> mtu 32768
index 3 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
bge0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
lladdr 14:98:77:54:ec:a4
index 1 priority 0 llprio 3
media: Ethernet autoselect (none)
status: no carrier
enc0: flags=0<>
index 2 priority 0 llprio 3
groups: enc
status: active
urtwn0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
lladdr 74:da:38:61:f4:3d
index 4 priority 4 llprio 3
groups: wlan egress
media: IEEE802.11 autoselect (OFDM54 mode 11g)
status: active
ieee80211: nwid "My_Network" chan 10 bssid 7c:10:c9:b6:da:18 -80dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
inet 192.168.50.3 netmask 0xffffff00 broadcast 192.168.50.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
index 5 priority 0 llprio 3
groups: pflog
I've attempted manually copying the firmware files in the EFI partition as described here from /boot/VENDORFW/FIRMWARE.TAR, untarring the archive and copying the contents of FIRMWARE/brcm to /etc/firmware/apple-bwfm and rebooting, which did not work. I ran fw_update multiple times, including specifying the path that the firmware was saved, but it seems like it's looking for a SHA.sig that's not present. I'm not sure if the utility is only designed for firmware provided by OpenBSD or if there is something I'm missing. I've also attempted installing the bwfm firmware directly from OpenBSD, but the driver is not included in that package.
$ doas fw_update -p /etc/firmware/apple-bwfm bwfm
fw_update: failed.
fw_update: /etc/firmware/apple-bwfm/SHA256.sig: No such file or directory
It seems like I have the firmware available, but I'm not quite sure how to get it recognized by the OS, and resources regarding OpenBSD on these machines are fairly limited, so I've come here as a last resort hoping someone might be able to see through any folly I've committed. I've configured an Edimax dongle in the meantime and have WiFi access through that, but it would be nice to get the integrated hardware working. Please let me know if any more information is required, and thanks in advance for any help anyone is able to offer! :)
I'm working with a web application that uses CGI with slowcgi, and I was wondering if anyone could share some resources or links related to tuning relayd, httpd, and system settings for optimal performance in such an environment. Any tips or guides would be really appreciated!
I'm in the process of trying to get this working but I'm having trouble installing UEFI or u-boot to the actual MMC. I have u-boot installed on an SD card image someone gave me and I specifically attempted to use that image to boot openbsd installer. It didn't work.
Does anybody who has used this specific board have an exact procedure and necessary image files to help me? Many of the links out there are dead and I have not been successful building a firmware image myself, the system basically rejects it.
As a normal user, I use the setting set backup="/tmp/%.vibak"
in .exrc
, but how can I achieve this also when using doas nvi
? It seems that for root, '%' expansion doesn't work.
Can someone help me with that?
Hey everyone,
I wasn't sure whether to ask this question here or on r/freebsd. I currently have a FreeBSD system running OpenIKEd. I'm attempting to connect a Windows client to it. I think I'm close, I just can't find the final piece to put it together.
Here is my current iked.conf file:
ikev2 "R1.office.acme.com" passive esp \
from 0.0.0.0/0 to 0.0.0.0/0 \
local "192.168.122.82" peer any \
srcid "R1.office.acme.com" \
config address "10.0.5.0/24" \
config name-server "9.9.9.9" \
tag "ROADW"
I've used ikectl to create and install certificates with the following common names:
vpnca.office.acme.com - This is the certificate authority for the PKI
R1.office.acme.com - This is the server running OpenIKED.
RemoteWorker1.office.acme.com - This is the Windows 10 machine I am attempting to connect.
Both the vpnca and RemoteWorker1 certs have been installed into the "Trusted Root Certificate Authorities" and "Personal" certificate stores in Windows through ikectl's export function.
I've run iked -dvv
and manually combed through the generated logs, but from my perspective it looks like Windows is just dropping the connection. The log shows that the two systems get to the IKE_AUTH phase, but that's it.
Has anyone set up iked with Windows clients before? I get the strong feeling that I'm missing something small, but I can't figure out what.
When I run df -h
I see the following:
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 986M 985M -48.1M 106% /
...
I am not sure if there are files in `/' that shouldn't be there... should I look to expand this filesystem beyond 985M? Or...
Here is the listing of that dir:
-rw-r--r-- 1 root wheel 578B May 7 2020 .cshrc
-rw-r--r-- 1 root wheel 364B Apr 6 2024 .profile
drwxr-xr-x 16 root wheel 512B Sep 26 19:46 usr
drwxr-xr-x 2 root wheel 512B Sep 30 08:33 altroot
drwxr-xr-x 5 root wheel 512B Sep 30 08:33 mnt
drwxr-xr-x 5 root wheel 512B Sep 30 08:33 home
drwx------ 4 root wheel 512B Sep 30 08:33 root
lrwxrwx--- 1 root wheel 11B Sep 30 08:33 sys -> usr/src/sys
drwxr-xr-x 2 root wheel 1.0K Sep 30 08:33 bin
drwxr-xr-x 2 root wheel 1.5K Sep 30 08:33 sbin
-rwx------ 1 root wheel 27.4M Oct 10 17:50 bsd.sp
-rw------- 1 root wheel 4.5M Oct 10 17:50 bsd.rd
drwxr-xr-x 26 root wheel 512B Dec 10 02:23 var
-rwx------ 1 root wheel 27.5M Jan 9 15:37 bsd.booted
drwxr-xr-x 6 root wheel 19.5K Jan 10 15:16 dev
-rwx------ 1 root wheel 27.5M Jan 10 15:16 bsd
drwxr-xr-x 13 root wheel 512B Jan 10 15:16 ..
drwxr-xr-x 13 root wheel 512B Jan 10 15:16 .
drwxr-xr-x 40 root wheel 2.0K Jan 29 01:30 etc
drwxrwxrwt 9 root wheel 512B Jan 29 20:37 tmp
I am running: OpenBSD foo 7.6 GENERIC.MP#338 amd64
Hello all,
Does anyone have a shareable ~/.indent.pro file that they can share that matches style(9) closely? I've been hacking onto some OpenBSD code and I'd like to help keep the C code as easily matched to the developers.
Cheers
My wifi card is a Atheros QCA9377. So I can't get wifi working on openbsd, running *ifconfig -a* shows re0 for network and that's it. I decided to take a look at the manual on openbsd handbook and it said to run fw_update -i if some firmware is missing. I did exactly that and it said that the "-i" option is unknown. In /etc/firmware it did look like some wireless interface were present like 'atu, ral, rtwn. urtwn'. Running *dmesg | grep atu* didn't return nothing and same goes for all of the other interfaces. Running *ifconfig atu0* and with all the other "avaible" interface so ral0, rtwn0 and urtwn0 it said everytime that there is no such interface. I also tried running *ifconfig atu0 up* and it said that atu0 is not configured and same goes for the other interface mentioned. I feel like I tried everything at this point, do I need a usb wifi card maybe ? Thanks in advance.
I'm trying to configure wifi on OBSD 7.6 and with with ifconfig
I get these interfaces "lo0, re0, enc0 pflog0" which aren't wifi interfaces. How do I check the name for the wifi card so I can later find the correct interface for it ?
Greetings.
I am now as close to exactly following the handbook as makes no difference. I am now at the point of going through what I'm doing step-by-step so other can spot what I'm doing wrong, assuming that it -can- be installed on my machine without major modifications.
I am using a Dell Latitude e7450.
First inconsistency in the documentation: it says to use: install76.fs but this does not exist at the provided link: https://cdn.openbsd.org/pub/OpenBSD/7.4/amd64/
So I instead download the .img file, seeing as I am using a usb key for the install. ..I assume this is correct?
FTR, my other, "primary" reference is: Andrath of the Abyss
I am attempting the install with UEFI, seeing as that is what Andrath apparently uses, and FreeBSD and GhostBSD both require it.
.."Change the default console to com0? [yes]" -I do not get asked this question..
.."Use (W)hole disk MBR, whole disk (G)PT, (O)penBSD area or (E)dit? [OpenBSD] W"
-I select G here, since this is a UEFI installation. I have tried the default, and it also doesn't work..
..the next thing on my list of things to try, beyond consulting more youtube videos and continuing my googling is purchasing a fresh usb-key so I can do the whole thing even cleaner..
[First round of edits, given responses:]
.efi
file?" -no. what are you talking about? this might be the problem.[Second edits:]
Apparently, "the handbook" I have been following: https://www.openbsdhandbook.com/installation/ doesn't actually contain the correct instructions after all. Instead, I am supposed to follow the instructions in the faq. That's fine, I think I originally started following those, then something weird happened, and I switched. Now that I know which to follow, it should go better :-)
Solved!! Thanks DarthRazor!!
Hi there, (just for info, my pc is under windows 11, no dual boot, I'm trying to install open bsd 7.6, and the usb key quoted are 64go keys)
Recently I installed arch directly on a usb key, not as a LiveOS but as an OS normally installed just on a usb key.
I started to want to do the same with open bsd (without going through variants of open bsd, although specialized in liveos but not official). After several hours of struggling with open bsd as I had some difficulty installing it without access to the Internet during setup, I finally managed to boot on it.
The problem is that after this experience, I never managed to boot it again, even after reinstalling or updating it. I confess I haven't found any information on anyone who has tried to install it as I'm doing now, and I'm very familiar with bsd so I may not have understood all the subtleties (to tell the truth, it's my first contact with it).
Does anyone have any idea how to fix the problem ? Maybe an issue with a specific boot manager ?
Guys, I want to know more about OpenBSD but I wanted to know if the tp link t2u nano adapter with rtl8811au chipset (I saw it through lsusb on Linux), Thank you
There are not a lot of tutorials explaining how to install firefox on openbsd but even if there are they're all outdated. In most of them it says to run 'pkg_add firefox' or 'pkg_add mozilla-firefox' but none of them work. I know I need to run the 'export' command to set the correct PKG_PATH variable but again the tutorials I looked into were outdated and the mirrors to PKG_PATH were for outdated versions like 4.9. How do I install firefox on OpenBSD 7.6 ? Thanks in advance.
I've had little success getting Linux to run as a VM using vmd. Does anyone have a distro that works out of the box?
I've been using OpenBSD on a tiny riscv board (mangopi mq pro) since it got supported in 7.5. it's running a xmpp server and a static website, everything ipv6 only. Configuring everything was pretty easy and once i finished the initial setup i haven´t had any real problems. The only downside is that the builtin wifi doesn't work. There is a lack of images/information of this board running OpenBSD so i wanted to share my experience.
I thank everyone who contributed and continue to contribute to the development of the riscv64 port and OpenBSD development as a whole.
edit: added screenshot
[SOLVED: See comments]
I have not modified my configs in several months and I haven't updated yet. I am also unable to connect to my domain: https://mcdubh.org/ except via ssh.
I tried to cast acme-client mcdubh.org
but it is saying connection denied.
Can anyone point me in the right direction to solve this? I'm a bit confused about how a few months, with zero changes, could create this issue. It was working fine about 3 or 4 days ago.
Extra stuff:
casting curl -k https://mcdubh.org
returns: curl: (52) Empty reply from server
casting curl -k http://mcdubh.org
returns curl: (7) Failed to connect to mcdubh.org port 80 after 2013 ms: Could not connect to server
mcdubh# acme-client -v mcdubh.org
acme-client: /etc/ssl/mcdubh.org.crt: certificate renewable: -3 days left
acme-client: https://acme-v02.api.letsencrypt.org/directory: directories
acme-client: acme-v02.api.letsencrypt.org: DNS: 172.65.32.248
acme-client: dochngreq: https://acme-v02.api.letsencrypt.org/acme/authz/1593539417/466015038415
acme-client: challenge, token: 0IuaW9pgkCTqAyyAhFU30iC-jK7SvVdU4L3Iq7UD-wE, uri: https://acme-v02.api.letsencrypt.org/acme/chall/1593539417/466015038415/yFyqgg, status: 0
acme-client: /var/www/acme/0IuaW9pgkCTqAyyAhFU30iC-jK7SvVdU4L3Iq7UD-wE: created
acme-client: dochngreq: https://acme-v02.api.letsencrypt.org/acme/authz/1593539417/466015038425
acme-client: challenge, token: bsGiOQGjdRaK_mhOFKXf-cofUcRf2bb06b_B5g4hnt8, uri: https://acme-v02.api.letsencrypt.org/acme/chall/1593539417/466015038425/aG0JEQ, status: 0
acme-client: /var/www/acme/bsGiOQGjdRaK_mhOFKXf-cofUcRf2bb06b_B5g4hnt8: created
acme-client: dochngreq: https://acme-v02.api.letsencrypt.org/acme/authz/1593539417/466015038435
acme-client: challenge, token: WvEMQF5ZHm_W3P9My1bcpUb2vPTeYmALM3SGhe8o4Ao, uri: https://acme-v02.api.letsencrypt.org/acme/chall/1593539417/466015038435/EnlIKQ, status: 0
acme-client: /var/www/acme/WvEMQF5ZHm_W3P9My1bcpUb2vPTeYmALM3SGhe8o4Ao: created
acme-client: https://acme-v02.api.letsencrypt.org/acme/chall/1593539417/466015038415/yFyqgg: challenge
acme-client: https://acme-v02.api.letsencrypt.org/acme/chall/1593539417/466015038425/aG0JEQ: challenge
acme-client: https://acme-v02.api.letsencrypt.org/acme/chall/1593539417/466015038435/EnlIKQ: challenge
acme-client: order.status -1
acme-client: dochngreq: https://acme-v02.api.letsencrypt.org/acme/authz/1593539417/466015038415
acme-client: 45.32.197.65: Fetching http://blog.mcdubh.org/.well-known/acme-challenge/0IuaW9pgkCTqAyyAhFU30iC-jK7SvVdU4L3Iq7UD-wE: Connection refused
acme-client: dochngreq: https://acme-v02.api.letsencrypt.org/acme/authz/1593539417/466015038425
acme-client: 45.32.197.65: Fetching http://git.mcdubh.org/.well-known/acme-challenge/bsGiOQGjdRaK_mhOFKXf-cofUcRf2bb06b_B5g4hnt8: Connection refused
acme-client: dochngreq: https://acme-v02.api.letsencrypt.org/acme/authz/1593539417/466015038435
acme-client: 45.32.197.65: Fetching http://mcdubh.org/.well-known/acme-challenge/WvEMQF5ZHm_W3P9My1bcpUb2vPTeYmALM3SGhe8o4Ao: Connection refused
acme-client: bad exit: netproc(24909): 1
Here are my configs (pf.conf | httpd.conf | relayd.conf | acme-client.conf) sans comments.
pf.conf:
set skip on lo
PORT_HTTPS = {80, 443, 8443}
WG_PORTS = {80, 1119, 2001, 8081, 9100, 9800, 7575, 7576, 8484, 3306, 43594, 3724, 3443, 7878, 8085, 8086, 6667, 1900, 8200}
pass in on wg0
pass in inet proto udp from any to any port 51820
pass out on egress inet from (wg0:network) nat-to (vio0:0)
block return# block stateless traffic
pass# establish keep-state
block return in on ! lo0 proto tcp to port 6000:6010
block return out log proto {tcp udp} user _pbuild
anchor relayd/*
pass in log on egress proto tcp from any to any port
httpd.conf:
EXT_IP=45.32.197.65
LOCAL_IP=127.0.0.1
PORT=8443
server mcdubh.org {
listen on port 80
location /.well-known/acme-challenge/* {
root /acme
request strip 2
}
location * {
block return 301 https://
}
}
server mcdubh.org {
listen on tls port
tls {
certificate /etc/ssl/mcdubh.org.fullchain.pem
key /etc/ssl/private/mcdubh.org.key
}
location * {
root /htdocs/mcdubh.org
}
}
server blog.mcdubh.org {
listen on tls port
tls {
certificate /etc/ssl/mcdubh.org.fullchain.pem
key /etc/ssl/private/mcdubh.org.key
}
location * {
root /htdocs/blog.mcdubh.org
}
}
server git.mcdubh.org {
listen on tls port
tls {
certificate /etc/ssl/mcdubh.org.fullchain.pem
key /etc/ssl/private/mcdubh.org.key
}
location /cgit.* {
root /cgit
no fastcgi
}
root /cgi-bin/cgit.cgi
fastcgi socket /run/slowcgi.sock
}
types {
include /usr/share/misc/mime.types
}
acme-client.conf:
authority letsencrypt {
api url https://acme-v02.api.letsencrypt.org/directory
account key /etc/acme/letsencrypt-privkey.pem
}
authority letsencrypt-staging {
api url https://acme-staging-v02.api.letsencrypt.org/directory
account key /etc/acme/letsencrypt-staging-privkey.pem
}
authority buypass {
api url https://api.buypass.com/acme/directory
account key /etc/acme/buypass-privkey.pem
contact mailto:me@example.com
}
authority buypass-test {
api url https://api.test4.buypass.no/acme/directory
account key /etc/acme/buypass-test-privkey.pem
contact mailto:me@example.com
}
domain mcdubh.org {
alternative names { git.mcdubh.org blog.mcdubh.org }
domain key /etc/ssl/private/mcdubh.org.key
domain certificate /etc/ssl/mcdubh.org.crt
domain full chain certificate /etc/ssl/mcdubh.org.fullchain.pem
sign with letsencrypt
}
relayd.conf:
LOCAL_IP="127.0.0.1"
EXT_IP="45.32.197.65"
RELAYD_PORT="443"
HTTPD_PORT="8443"
log state changes
log connection
prefork 10
table <www> { $LOCAL_IP }
http protocol https {
tls keypair "mcdubh.org"
tls ca file "/etc/ssl/cert.pem"
tls session tickets
... # TONS of stuff here, removing to make it easiest to traverse.
pass request quick header "Host" value "mcdubh.org" forward to <www>
}
relay https {
listen on $EXT_IP port $RELAYD_PORT tls
protocol https
forward with tls to <www> port $HTTPD_PORT
}
Hello!
I'm running openbsd inside a qemu VM on linux.
So when i run pkg_add python
it gets to about 78% before ending with a partial install.
I have ran pkg_delete -a
many times and still doesn't install.
Any help is much appreciated!
Here is the error:
openbsd# pkg_add python
quirks-7.50 signed on 2025-01-25T15:47:38Z
python-3.11.10p1:xz-5.6.2: ok
python-3.11.10p1:sqlite3-3.44.2: ok
python-3.11.10p1:libffi-3.4.6: ok
python-3.11.10p1:libb2-0.98.1v0: ok
python-3.11.10p1:bzip2-1.0.8p0: ok
Ustar [https://cdn.openbsd.org/pub/OpenBSD/7.6/packages-stable/amd64/python-3.11.10p1.tgz][lib/python3.11/importlib/__pycache___/machinery.cpython-311.pycl: Error while reading header
pkg_add: Installation of python-3.11.10p1 failed, partial installation recorded as partial-python-3.11.10p1
openbsd#
Hey everyone, I am back. I really am trying to solve these issues myself, I promise. I liked how easily openbsd installed on my Powermac G4 so I gave it a shot on my powerbook as well!
This time, graphics worked great. This issue has to do with the wifi card (BCM4306) causing a kernel panic.
After first boot, I noticed ‘bwi0’ was not being initialized. I ran fw_update and wrote a hostname.bwi0 file for it.
Upon reboot, when the netstart.sh program was run, there was a kernel panic. I disabled the device using boot -c and it worked again. Upon removing the hostname.if file that caused the issue, I rebooted again, this time with the device enabled again, and it booted fine. I then tried to use ifconfig to start the card and it again paniced.
So far I have tried:
I know this has worked on this same device for others, so what is it that I am doing wrong?
p.s. I read somewhere else that the wifi card may be set to low power mode by OSX and might not work that way, but would that cause kernel panic? I currently do not have osx on this machine.
Back in 2003-2004 I used to have a server running OBSD. If memory serves it was around 3.5 and it worked great back then but I abandoned it but never forgot about it. I've recently gotten a NAS and thought I'd install OpenBSD as a VM for fun, and I must say it's gotten even simpler over the years and I love it more than before.
Installation was so quick and pain-free. Disklabeling brought back some memories and I had to re-do the VM due to my partitioning and not being able to shuffle the partitions around, but other than that I'm impressed. pkg_add is just great. No more file sets on disk. Binary patching is fast and smooth. Same for the firmware. Same for config files. I love the daily/weekly/monthly and their .local counterpart setup. Adding maintenance tasks and getting reports is a breeze.
Compiling source code written for GNU is still a bit of a hassle sometimes - my troubleshooting skills when it comes to C code don't allow me to write patches. So far this only happened with latest version of libtorrent and rtorrent though. No biggie.
Overall - smooth and quick and no bloat. That also goes for the man pages. Short but all the info is just there.
I haven't found a practical use for my OBSD VM yet (time will show me I'm sure) but I'm glad to have it back on my network.
I'm not sure how to track this down.
ssh
into the OpenBSD box from my FreeBSD xterm
$ echo $TERM
xterm
fire up tmux
with no configuration (annotating tmux
shells with a prefix for clarity)
$ tmux
(tmux)$ echo $TERM
screen
confirm that backspace works when in the shell (edit: apparently the shell accepts both, so this isn't as helpful as I'd hoped)
(tmux)$ echo asdf
(hitting backspace deletes the "f")
start a program that reads from stdin (such as cat(1)
or mail(1)
or ed(1)
)
(tmux)$ cat
type something and use backspace to delete:
(tmux) $ cat
asdf^H^H
where I would expect backspace to delete the f
and then the d
. If I type control+backspace or control+question-mark, it sends the expected 0x7f (DEL) and deletes the text as I would expect backspace to do.
If I backspace locally via the console, it works as expected (tmux
or not)
if I backspace locally via an xterm
in X, it works as expected (tmux
or not)
if I do either of those local options (console or xterm
) and ssh localhost
, backspace works as expected (tmux
or not)
if I ssh
in from my FreeBSD xterm
and don't start tmux
, backspace works
if I ssh
in from my FreeBSD xterm
and start tmux
, but don't launch programs that read from stdin, backspace works
It only seems to be the backspace within a program-reading-from-stdin within a tmux
session via my FreeBSD xterm
.
What should I be checking/setting to make backspace work in stdin within tmux?
I am trying to a mmap demo but I keep getting crash
vm$ cat mmap.s
; required section
.section ".note.openbsd.ident", "a"
.long 8
.long 4
.long 1
.ascii "OpenBSD\0"
.long 0
.section .text ; make exported symbols visible
.global _start ; export _start
_start:
mov x8, 49 ; mmap
mov x0, 0 ; null
mov x1, 8192 ; size
mov x2, 0x3 ; mode
mov x3, 0x1002 ; flags
mov x4, -1 ; fd
mov x5, 0 ; offset
svc 0 ; syscall
mov x18, x0 ; move result to x18
bcs exit_fail ; exit with the value of x18 if CF set
b exit_normal ; exit normally if CF not set
exit_fail:
mov x8, 1 ; exit
mov x0, x18 ; exit code
svc 0 ; syscall
exit_normal:
mov x8, 1 ; exit
mov x0, 0 ; exit code
svc 0 ; syscall
vm$ clang -nostdlib -g -o mmap mmap.s && ./mmap
mmap[54947]: pinsyscalls addr 1dc1c902cc code 49, pinoff 0xffffffff (pin 330 21f4cb0000-21f4cbc74c c74c) (libcpin 0 0-0 0) error 78
Abort trap (core dumped)
vm$
Debugger says ENOSYS (not implemented) but I couldn't what is wrong since all syscalls, modes and flags are valid.
Starting program: /home/vm-user/mmap
mmap[96448]: pinsyscalls addr 88f7d02cc code 49, pinoff 0xffffffff (pin 330 d19de0000-d19dec74c c74c) (libcpin 0 0-0 0) error 78
Program received signal SIGABRT, Aborted.
_start () at mmap.s:23
Hey everyone, I have been pouring over manpages and old forums to no avail for hours. Here’s the issue:
I have a powermac 3,3 that I installed openBSD on last night. I cannot get the Rage Fury card to properly initialize. X11 shows “softpipe” as my gpu.
Dmesg shows that it is loaded in at startup (and machdep allow aperture is set to 2)
What I have tried: -defining my device and screen in xorg.conf in multiple different ways… sans giving it every piece of info that exists for the card. -rebooting -fw_update (although I don’t think that really helps here) -starting x from both cli and xenodm -both sp and mp kernels
I can’t seem to think of much else that would work. I mean, it SEES the device and has the r128 driver, but still chooses to go software rendering route. Is there a guide out there on how to get this working?
Thanks.
EDIT: I’ve got my answer. See the comments below.
Has anyone tried pop3d? There isn't much info on it on the web. I am looking for something simpler than courier or dovecot. Also I recall hearing at a vmm talk that there is some interest in adding an imap server to base, has that gone anywhere?
https://git.sr.ht/~jturner/pop3d
https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/mail/pop3d
Edit: I've never actually tried courier
My Windows 11 machine was forcibly upgraded today to 24H2 - this introduced changes in Hyper-V that broke virtual networking in an OpenBSD-current virtual machine that I use for a few daily development tasks, preventing me from being able to SSH into the VM from the host or anywhere else on the network. Was previously working fine with no issues at all.
Wasted about an hour troubleshooting the issue, ping from VM to host (from virtual console) and host to VM was fine. To restore networking, I had to remove the existing virtual network adapter and add a new "Legacy Network Adapter" to the VM in Hyper-V Manager, which then appeared in OpenBSD as de0 in ifconfig, instead of hvn0.
YMMV.
I want it so when I plug my headphones in the sound stops coming through my speakers and when i unplug them it comes through my speakers. im on OpenBSD 7.6 and my sound card is a Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03).
the output of mixerctl is
inputs.dac-0:1=126,126 inputs.dac-2:3=126,126 inputs.beep=85 record.adc-2:3_source=mic2 record.adc-2:3=126,126 record.adc-0:1_source=mic record.adc-0:1=126,126 outputs.hp_source=dac-0:1 outputs.hp_boost=off inputs.mic=126,126 outputs.mic_dir=input-vr80 outputs.spkr_source=dac-2:3 outputs.spkr_eapd=on inputs.mic2=126,126 outputs.hp_sense=plugged outputs.mic_sense=unplugged outputs.master=126,126 outputs.master.mute=off outputs.master.slaves=dac-0:1,dac-2:3 record.volume=126,126 record.volume.mute=off record.volume.slaves=adc-2:3,adc-0:1 record.enable=sysctl
the output of sndioctl is
input.level=0.494 input.mute=0 output.level=0.494 output.mute=0 server.device=0(azalia0)
I'd like to get some graphs showing me network usage per device in NAT, is that even possible with pf on OpenBSD 7.6?
hi, hope everyone is well.
been trying to get my computer to connect to a hidden school network. before i can even get connected though i try to test things out with:
rcctl enable wpa_supplicant
rcctl start wpa_supplicant
output is: wpa_supplicant(failed).
i tried to look up what this error could correlate to but to no avail. when i just try to run wpa_supplicant as well, the terminal just halts on the initialization process. thanks in advance to any replies!
Got an ancient dual core Thinkpad W510 with the non-switchable iGPU/Nvidia Quadro FX 880M. Not worried about having 3D accel or not. Just want to be able to use my old GPU which should be supported by the nv(4) driver. How would I go about installing this as opposed to using llvm? I believe my card is supported, but please correct me if I'm wrong. Just need to use it for 2D drawing. Downloaded the X.org driver's .tar.gz but failed to install correctly using fw_update. Any and all help would be appreciated! Thank you!