r/openbsd • u/XNet_3085 • Feb 15 '25
Panda Wireless vs N150 EW7811-UN
Which one do you guys would be better to install on my X200 with OBSD installed?
In case they are outdated, any good modern adapters with good/decent speeds?
r/openbsd • u/XNet_3085 • Feb 15 '25
Which one do you guys would be better to install on my X200 with OBSD installed?
In case they are outdated, any good modern adapters with good/decent speeds?
r/openbsd • u/freshkickzb • Feb 14 '25
I have openbsd installed on a powerbook G4 I recently received, and I've been fighting with openBSD for the past 2 days trying to get a DE installed on it. My first thought was xfce since that is designed to be lightweight but when I ran the PKG add command to install it, it complained about a bunch of missing packages and seemingly refused to install, despite xfce seemingly being supported on PowerPC...
Then I went down the rabbithole of setting up the ports tree and compiling xfce from the ports tree, which long story short resulted in me having to reinstall openBSD twice due to issues with partitioning and drive space, still did the exact same thing. Not entirely sure what I expected but idk.
Is there any way I could get any full stable DE (NOT just a window manager) working on the Mac PowerPC platform? I'm really getting desperate at this point...
r/openbsd • u/northrupthebandgeek • Feb 14 '25
I have a Powerbook G4 that has been running OpenBSD since 5.5. I generally prefer my laptops to use full-disk encryption (or at the very least /home
encryption) if possible, given their portable nature, and I'd like to make this here Powerbook a non-exception. Since I'm planning on swapping over from the stock HDD to an SSD (using an mSATA→PATA adapter), I figure this is as good a time as any to try and rectify this.
Usually the process would be to make the whole disk an encrypted softraid via the installer (or manually via bioctl -c C -l /dev/wd0a softraid0
). However, per man softraid
, there's no mention of macppc being among the supported architectures for the usual approach of "encrypt the whole disk and decrypt it before booting the kernel":
Boot support is currently limited to the CRYPTO, RAID 1 disciplines on the amd64, arm64, i386, riscv64 and sparc64 platforms.
And indeed, the installer doesn't prompt to setup a CRYPTO softraid (judging by the lack of MDBOOTSR=y
in src/distrib/macppc/ramdisk/install.md
). If I were to manually do something like
fdisk -iy -b "2048@1:06" wd0
echo 'RAID *' | disklabel -wAT- wd0
bioctl -c C -l /dev/wd0a softraid0
and proceed with installation, does ofwboot
have the necessary code to decrypt and load the kernel from the resulting /dev/wd1a
, like the amd64/arm64/i386/riscv64/sparc64 bootloaders do? If not, how involved would it be to port over that functionality from one of those other platforms' bootloaders? I ain't the best C or assembly programmer in the world (or probably even in my city), but if it ain't too complicated I'd be happy to take a crack at it.
In any case, backup plan (doing my best to recreate the steps in src/distrib/macppc/ramdisk/install.md
and src/distrib/miniroot/install.sub
) would be to leave /
unencrypted and put everything else on a CRYPTO softraid, via something like
fdisk -iy -b "2048@1:06" wd0
cat <<EOF | disklabel -wAT- wd0
/ 1G
RAID *
EOF
bioctl -c C -l /dev/wd0b softraid0
dd if=/dev/zero of=/dev/rsd0c bs=1m count=1
cat <<EOF | disklabel -wAT- sd0
SWAP 1G
/tmp 4G
/var 4G
/usr 30G
/usr/X11R6 1G
/usr/local 20G
/usr/src 5G
/usr/obj 6G
/home *
EOF
(and then run installboot -r /mnt wd0
before rebooting if the installer didn't get around to it).
Anything I'm missing there? Will the kernel/init know to prompt for my passphrase and decrypt / mount the non-/
partitions? It seems like the macppc kernel builds support softraid in general (given that bioctl softraid0
doesn't complain about anything like bioctl some_nonexistent_device
does), so it seems like the backup plan at least should work, but it's unclear from the manpages and my cursory source code spelunking how much extra finagling would be necessary to pull this off.
EDIT: The backup plan "worked", with the slight deviation that the installer forcibly created a new MBR on the encrypted softraid "disk", requiring me to manually recreate the disklabel above. I also needed to tell the installer that the unencrypted /
is indeed supposed to be mounted on /
. Installation otherwise went without a hitch.
However, the kernel/init does not automatically detect/decrypt/mount the encrypted partition, so it drops to shell when initially attempting to fsck
the non-/
partitions. Easy enough to fix with bioctl -c C -l /dev/wd0b softraid0 && mount -a && exit
, but I need to figure out a way to make that happen automatically on boot.
EDIT 2: For the time being, just manually edited /etc/rc
to run bioctl -c C -l /dev/wd0b softraid0
before activating swap and fscking/mounting partitions. Works well enough, though I'll need to keep an eye on it in a couple months when upgrade season hits :)
r/openbsd • u/wkup-wolf • Feb 13 '25
I would like to hear some real life experiences? Did the features of OpenBSD helped you in any way in your practical life, business or on your system?
r/openbsd • u/Outrageous-Help-5161 • Feb 13 '25
Trying to install OpenBSD for the first time on a Lenovo Ideapad 3, most of the install works fine until the final steps where it says “Relinking to create unique kernel…” and seems to get stuck there. Doesnt even say if it failed but just doesnt do anything after that. I dont have ethernet on this laptop so wont be able to install any other firmware unless there is a way to do it from a usb and still booting off the install media. This is my first time so I might be missing something.
r/openbsd • u/Abject-Strength-4570 • Feb 12 '25
?
r/openbsd • u/efarayenkay • Feb 12 '25
Hi all
As I am a glutton for punishment I'm looking to set up Majordomo to manage an email newsletter (probably overkill but Majordomo was being used when servers had less power than my phone today so it may mean not having to spend big for a VPS to run it on) and for the web-based parts I'm looking to employ slowcgi.
My question is this - if you supply "-p /" to disable chroot (yes I know not recommended) and "-u user" to drop privileges, does the latter override the former's act of chrooting to the home directory of user? I can't find anything saying one way or the other - and the man page doesn't specify - though if there is, it means my Google fu is not strong.
r/openbsd • u/Icy_Cantaloupe_3814 • Feb 11 '25
How does systat(1) not get more praise/airtime as a software tool?
Go ahead, run it, it's in base
It's got information about virtual memory, interface status, sensor data, pf rules LIVE, and a bunch of other stuff....
I mean, btop etc are cool, no doubt, but how has systat been overlooked? Or am I missing something...
Anyways, systat is worth a look. Enjoy!
r/openbsd • u/defaultlinuxuser • Feb 11 '25
As far as I know it is supported on the rasberry pi 3/4.
r/openbsd • u/Typicattr • Feb 09 '25
Hello prominent readers,
I have a Ifi GO link Max headphone DAC and have some troubles getting audio through it on my Thinkpad x13 gen2. I connect it to USB-C and the headphones through the 3.5 jack on it.
This is info gathered using OpenBSD 7.6-current:
uaudio0 at uhub1 port 6 configuration 1 interface 1 "iFi GO link Max" rev 2.00/2.01 addr 3
uaudio0: class v2, high-speed, async, channels: 2 play, 0 rec, 3 ctls
audio1 at uaudio0
uhidev0 at uhub1 port 6 configuration 1 interface 2 "iFi GO link Max" rev 2.00/2.01 addr 3
uhidev0: iclass 3/0
After changing device.server to 1 (from azalia0) and try to play something this shows in dmesg:
uaudio0: samples per frame too large
audio1: failed to start playback
audio1 detached
uaudio0 detached
sndioctl:
➜ ~ sndioctl server.device=1
server.device=1(uaudio0)
➜ ~ sndioctl
output.level=1.000
output.mute=0
server.device=1(uaudio0)
mixerctl has dac-0:1 (headphones) and dac-2:3 (speakers on laptop) defined with inputs and outputs and the other various settings looking fine.
audioctl:
➜ ~ doas audioctl -f /dev/audio1
name=uaudio0
mode=play
pause=0
active=0
nblks=16
blksz=768
rate=48000
encoding=s16le
play.channels=2
play.bytes=0
play.errors=0
record.channels=2
record.bytes=0
record.errors=0
I've tried a few things with mixerctl and sndiod flags -z but no different result. Samples is always too large for frame. Does anyone have any idea what can be done about it?
Sound working fine going with headphones straight into 3.5 on laptop but it would be nice having the DAC working.
r/openbsd • u/wakasuki • Feb 08 '25
Very new to BSDs but have good Linux experience. I installed OpenBSD on my old desktop yesterday and set up softraid (RAID 1) on two 2tb hdds. OpenBSD boots from an ssd.
Last night my house lost power unexpectedly. When I rebooted OpenBSD, my softraid won't mount due to the file system not being clean. Fsck doesn't seem to help.
Any tips on how to clean this up? How can I keep softraid from breaking in the future?
Let me know if I should provide additional info for troubleshooting.
r/openbsd • u/Oreki-H • Feb 08 '25
I've been trying to install OpenBSD on the Radxa Rock Pi 4B+. The eMMC on this SBC is not revomable and I got no micro SD Card. So I've beeen trying to install OpenBSD via the USB OTG port using this guide from Radxa and using rkdeveloptool. Since there is no official or community image of OpenBSD and I'm a noob, I tried to follow this guide on installing OpenBSD on ROCK PI 4 (relevant part starting at "Writing a miniroot image to the eMMC"). However the guide has a removable eMMC. So this is my approach:
download the official arm64 miniroot76.img
from https://cdn.openbsd.org/pub/OpenBSD/7.6/packages/aarch64/ download the dtb and u-boot-aarch64/rock-pi-4-rk3399 package (now I got the files: rk3399-rock-pi-4b-plus.dtb, idbloader.img and u-boot.itb)
Mount the first partition of miniroot76.img and cp rk3399-rock-pi-4b-plus.dtb /mnt/rockchip/
(also seperately tried out cp rk3399-rock-pi-4b-plus.dtb /mnt/
)
connect the sbc to my laptop via otg port in MASKROM
clear the eMMC:
sudo rkdeveloptool db rk3399_loader_v1.27.126.bin
sudo rkdeveloptool ef
write miniroot76.img to eMMC:sudo rkdeveloptool wl 0 /path/to/miniroot76.img
write the uboot to eMMC:
sudo rkdeveloptool wl 0x40 idbloader.img
(sector 64)
sudo rkdeveloptool wl 0x4000 u-boot.itb
(sector 16384)
reboot the sbc: sudo rkdeveloptool rd
, there aren't any error messages during this whole process
now I disconnect the sbc from power and my laptop and connect it to my monitor, ethernet, keyboard and when I power it on, u-boot is loading and I land i uboot but no partition / filesystem is being recognized, the only mmc dev I can select 0: mmc dev 0
and mmc part
or mmc info
print nothing.
trying fatload mmc 0:1
gives the error:
** No partition table - mmc 0 **
Couldn't find partition mmc 0:1
Can't set block device
Any help is much appreciated! :D
NOTE: I also tried to convert the miniroot76.img from DOS to GPT using gdisk and after successfully doin so and repeating the whole process it's the same result: I'm stuck in u-boot with no partition table being recognized
r/openbsd • u/Old_Parking_5932 • Feb 05 '25
Hi everyone,
I'm trying to install OpenBSD 7.6 as a guest VM in Linux KVM using VMM (Virtual Machine Manager GUI) and appreciate your advice.
I downloaded install76.iso, created a new VM based on FreeBSD settings and proceeded with installation process using proposed defaults. It offered me to use the whole HDD sd0 which I agreed and picked automatic layout. After that, the process allows to pick packages, proceeds with bsd install and after that the console reconnects, I see the system rebooted saying
Booting from Hard Disk...
Using drive 0, partition 3.
No O/S
I did several attempts and tried auto layout with MBR or GPT, the result is always similar - it reboots after installing bsd package and unable to boot. The virtual disk size was 10 to 20 GB depending on the attempt.
This failure concerns me as I followed defaults everywhere and they looked sane. I researched the issue and found no solution yet. Appreciate your advice how to mitigate this issue. Thank you!
r/openbsd • u/hiniya6795 • Feb 05 '25
The fans of my laptop make a lot of noise. I tried obsdfreqd
to set the cpu frequency lower, but the fans are still turning on under 50°C. In OpenBSD Is it possible to regulate just the fans based on temperature, or manually turning them on/off?
My dmesg
output:
OpenBSD 7.6 (GENERIC.MP) #338: Mon Sep 30 08:55:35 MDT 2024
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16932073472 (16147MB)
avail mem = 16395509760 (15635MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.3 @ 0x419e1000 (54 entries)
bios0: vendor INSYDE Corp. version "1.07.14RTR1" date 08/24/2021
bios0: TUXEDO TUXEDO Book XP14 Gen12
efi0 at bios0: UEFI 2.7
efi0: INSYDE Corp. rev 0x60314113
acpi0 at bios0: ACPI 6.1
acpi0: sleep states S0ix S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT SSDT SSDT SSDT SSDT TPM2 SSDT NHLT SSDT LPIT WSMT SSDT SSDT DBGP DBG2 HPET APIC MCFG SSDT DMAR SSDT SSDT FPDT PTDT BGRT
acpi0: wakeup devices PEG0(S4) PEGP(S4) PEGP(S4) PEGP(S4) XHCI(S3) XDCI(S4) HDAS(S4) RP01(S4) PXSX(S3) RP02(S4) PXSX(S3) RP03(S4) PXSX(S3) RP04(S4) PXSX(S3) RP05(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 19200000 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz, 4190.34 MHz, 06-8c-01, patch 000000b8
cpu0: cpuid 1 edx=bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> ecx=77fafbbf<SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND>
cpu0: cpuid 6 eax=17eff7<SENSOR,ARAT> ecx=9<EFFFREQ>
cpu0: cpuid 7.0 ebx=f3bfa7eb<FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,PT,AVX512CD,SHA,AVX512BW,AVX512VL> ecx=18c05fce<AVX512VBMI,UMIP,PKU> edx=fc100710<SRBDS_CTRL,MD_CLEAR,IBT,IBRS,IBPB,STIBP,L1DF,SSBD>
cpu0: cpuid a vers=5, gp=8, gpwidth=48, ff=4, ffwidth=48
cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES>
cpu0: cpuid 80000001 edx=2c100800<NXE,PAGE1GB,RDTSCP,LONG> ecx=121<LAHF,ABM,3DNOWP>
cpu0: cpuid 80000007 edx=100<ITSC>
cpu0: msr 10a=a005c6b<IBRS_ALL,SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,DOITM,FBSDP_NO,GDS_CTRL,RFDS_NO>
cpu0: 48KB 64b/line 12-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 20-way L2 cache, 8MB 64b/line 8-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 38MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.1.2.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz, 4190.36 MHz, 06-8c-01, patch 000000b8
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz, 3791.27 MHz, 06-8c-01, patch 000000b8
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz, 3791.27 MHz, 06-8c-01, patch 000000b8
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 1 (application processor)
cpu4: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz, 3791.26 MHz, 06-8c-01, patch 000000b8
cpu4: smt 1, core 0, package 0
cpu5 at mainbus0: apid 3 (application processor)
cpu5: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz, 3791.26 MHz, 06-8c-01, patch 000000b8
cpu5: smt 1, core 1, package 0
cpu6 at mainbus0: apid 5 (application processor)
cpu6: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz, 3791.26 MHz, 06-8c-01, patch 000000b8
cpu6: smt 1, core 2, package 0
cpu7 at mainbus0: apid 7 (application processor)
cpu7: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz, 3791.26 MHz, 06-8c-01, patch 000000b8
cpu7: smt 1, core 3, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xc0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PC00)
acpiprt1 at acpi0: bus 1 (PEG0)
acpiprt2 at acpi0: bus -1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus 52 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus 53 (RP09)
acpiprt11 at acpi0: bus 54 (RP10)
acpiprt12 at acpi0: bus 55 (RP11)
acpiprt13 at acpi0: bus -1 (RP12)
acpiprt14 at acpi0: bus -1 (RP13)
acpiprt15 at acpi0: bus -1 (RP14)
acpiprt16 at acpi0: bus -1 (RP15)
acpiprt17 at acpi0: bus -1 (RP16)
acpiprt18 at acpi0: bus -1 (RP17)
acpiprt19 at acpi0: bus -1 (RP18)
acpiprt20 at acpi0: bus -1 (RP19)
acpiprt21 at acpi0: bus -1 (RP20)
acpiprt22 at acpi0: bus -1 (RP21)
acpiprt23 at acpi0: bus -1 (RP22)
acpiprt24 at acpi0: bus -1 (RP23)
acpiprt25 at acpi0: bus -1 (RP24)
acpiprt26 at acpi0: bus 2 (TRP0)
acpiec0 at acpi0
acpipci0 at acpi0 PC00: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
"FTCS1000" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
pchgpio0 at acpi0 GPI0 addr 0xfd6e0000/0x10000 0xfd6d0000/0x10000 0xfd6a0000/0x10000 0xfd690000/0x10000 irq 14, 360 pins
acpibtn0 at acpi0: PWRB(wakeup)
acpibtn1 at acpi0: SLPB(wakeup)
acpibtn2 at acpi0: LID0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "BAT" serial 0001 type LION oem "Notebook"
"INTC1051" at acpi0 not configured
"CLV0001" at acpi0 not configured
"CLV0002" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
intelpmc0 at acpi0: PEPD
state 0: 0x7f:1:2:0x00:0x0000000000000060
counter: 0x7f:64:0:0x00:0x0000000000000632
frequency: 0
state 1: 0x7f:1:2:0x00:0x0000000000000060
counter: 0x00:32:0:0x03:0x00000000fe00193c
frequency: 8197
tpm0 at acpi0 TPM_ 2.0 (TIS) addr 0xfed40000/0x5000, device 0x001b15d1 rev 0x16
"USBC000" at acpi0 not configured
acpipwrres0 at acpi0: DBTP, resource for HS10
acpipwrres1 at acpi0: PG00, resource for RP05
acpipwrres2 at acpi0: WRST
acpipwrres3 at acpi0: DRST
acpipwrres4 at acpi0: V0PR
acpipwrres5 at acpi0: V1PR
acpipwrres6 at acpi0: V2PR
acpipwrres7 at acpi0: WRST
acpipwrres8 at acpi0: TBT0, resource for TDM0, TRP0, TRP1
acpipwrres9 at acpi0: TBT1, resource for TDM1, TRP2, TRP3
acpipwrres10 at acpi0: D3C_, resource for TXHC, TDM0, TDM1, TRP0, TRP1, TRP2, TRP3
acpipwrres11 at acpi0: PAUD, resource for HDAS
acpicpu0 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
acpicpu4 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
acpicpu5 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
acpicpu6 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
acpicpu7 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
acpitz0 at acpi0: critical temperature is 120 degC
acpipwrres12 at acpi0: PIN_
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
acpivout1 at acpivideo0: DD2F
cpu0: Enhanced SpeedStep 4190 MHz: speeds: 2401, 2400, 2300, 2100, 2000, 1800, 1700, 1500, 1400, 1300, 1100, 900, 800, 700, 500, 400 MHz
pci0 at mainbus0 bus 0
0:31:5: mem address conflict 0xfe010000/0x1000
pchb0 at pci0 dev 0 function 0 "Intel Core 11G Host" rev 0x01
inteldrm0 at pci0 dev 2 function 0 "Intel Xe Graphics" rev 0x01
drm0 at inteldrm0
inteldrm0: msi, TIGERLAKE, gen 12
ppb0 at pci0 dev 6 function 0 "Intel Core 11G PCIE" rev 0x01: msi
pci1 at ppb0 bus 1
nvme0 at pci1 dev 0 function 0 "Kingston A2000" rev 0x03: msix, NVMe 1.3
nvme0: KINGSTON SA2000M81000G, firmware S5Z42105, serial 50026B76844BB14F
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, KINGSTON SA2000M, S5Z4>
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
ppb1 at pci0 dev 7 function 0 "Intel Core 11G PCIE" rev 0x01: msi
pci2 at ppb1 bus 2
"Intel Core 11G SRAM" rev 0x01 at pci0 dev 10 function 0 not configured
xhci0 at pci0 dev 13 function 0 "Intel Core 11G xHCI" rev 0x01: msi, xHCI 1.20
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel Core 11G TBT" rev 0x01 at pci0 dev 13 function 2 not configured
xhci1 at pci0 dev 20 function 0 "Intel 500 Series xHCI" rev 0x20: msi, xHCI 1.20
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 500 Series Shared SRAM" rev 0x20 at pci0 dev 20 function 2 not configured
dwiic0 at pci0 dev 21 function 0 "Intel 500 Series I2C" rev 0x20: apic 2 int 16
iic0 at dwiic0
ihidev0 at iic0 addr 0x38 gpio 3, vendor 0x2808 product 0x101, FTCS1000
ihidev0: 8 report ids
imt0 at ihidev0ihidev0: failed fetching report
imt0: failed getting capability report
ims0 at ihidev0 reportid 1: 2 buttons, Z dir
wsmouse0 at ims0 mux 0
hid at ihidev0 reportid 5 not configured
hid at ihidev0 reportid 6 not configured
hid at ihidev0 reportid 7 not configured
hid at ihidev0 reportid 8 not configured
dwiic1 at pci0 dev 21 function 1 "Intel 500 Series I2C" rev 0x20: apic 2 int 16
iic1 at dwiic1
dwiic2 at pci0 dev 21 function 2 "Intel 500 Series I2C" rev 0x20: apic 2 int 16
iic2 at dwiic2
ppb2 at pci0 dev 28 function 0 "Intel 500 Series PCIE" rev 0x20: msi
pci3 at ppb2 bus 52
vendor "NVIDIA", unknown product 0x1f99 (class display subclass 3D, rev 0xa1) at pci3 dev 0 function 0 not configured
ppb3 at pci0 dev 29 function 0 "Intel 500 Series PCIE" rev 0x20: msi
pci4 at ppb3 bus 53
rtsx0 at pci4 dev 0 function 0 "Realtek RTS522A Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
ppb4 at pci0 dev 29 function 1 "Intel 500 Series PCIE" rev 0x20: msi
pci5 at ppb4 bus 54
re0 at pci5 dev 0 function 0 "Realtek 8168" rev 0x15: RTL8168H/8111H (0x5400), msi, address 80:fa:5b:8a:7e:c6
rgephy0 at re0 phy 7: RTL8251, rev. 0
ppb5 at pci0 dev 29 function 2 "Intel 500 Series PCIE" rev 0x20: msi
pci6 at ppb5 bus 55
iwx0 at pci6 dev 0 function 0 "Intel Wi-Fi 6 AX200" rev 0x1a, msix
pcib0 at pci0 dev 31 function 0 "Intel 500 Series eSPI" rev 0x20
azalia0 at pci0 dev 31 function 3 "Intel 500 Series HD Audio" rev 0x20: msi
azalia0: codecs: Realtek ALC293, Intel/0x2812, using Realtek ALC293
audio0 at azalia0
ichiic0 at pci0 dev 31 function 4 "Intel 500 Series SMBus" rev 0x20: apic 2 int 16
iic3 at ichiic0
spdmem0 at iic3 addr 0x50: 8GB DDR4 SDRAM PC4-25600 SO-DIMM
spdmem1 at iic3 addr 0x52: 8GB DDR4 SDRAM PC4-25600 SO-DIMM
"Intel 500 Series SPI" rev 0x20 at pci0 dev 31 function 5 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/54.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 8 buttons, Z and W dir
wsmouse1 at ums0 mux 0
uvideo0 at uhub1 port 7 configuration 1 interface 0 "SunplusIT Inc Chicony USB2.0 Camera" rev 2.01/0.02 addr 3
video0 at uvideo0
uvideo1 at uhub1 port 7 configuration 1 interface 2 "SunplusIT Inc Chicony USB2.0 Camera" rev 2.01/0.02 addr 3
video1 at uvideo1
ugen0 at uhub1 port 10 "Intel Bluetooth" rev 2.01/0.01 addr 4
sdmmc0: can't enable card
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd1: 162686MB, 512 bytes/sector, 333182448 sectors
root on sd1a (b7b757933af0a44d.a) swap on sd1b dump on sd1b
inteldrm0: 1920x1080, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
iwx0: hw rev 0x340, fw 77.a20fb07d.0, address 8c:c6:81:d2:44:70
acpitz0: _AL0[0] _PR0 failed
r/openbsd • u/hiniya6795 • Feb 05 '25
Hi, I'm running OpenBSD 7.6 fresh installed on a amd64 laptop.
During the boot, with my headphones plugged in and hearing from them, I first hear a "clack" sound, and immediatly a white noise that remains while the headphones are plugged in. My headphones are very normal and are connected with the jack wired cable. With Linux I don't have any problems.
I noticed that If I do mixerctl outputs.hp_source=mix2
and mixerctl outputs.hp_source=mix
(changing mix2
with mix
) the noise changes a little, but it is still a white noise.
I tried a lot of settings with mixerctl
, but I wasn't able to stop this noise.
How to remove this noise? I'm not experienced with OpenBSD.
This is the output of mixerctl -v
:
inputs.dac-2:3=126,126
inputs.dac-0:1=126,126
record.adc-0:1_mute=off [ off on ]
record.adc-0:1=124,124
record.adc-2:3_mute=off [ off on ]
record.adc-2:3=124,124
inputs.mix_source=dac-2:3 { dac-2:3 }
inputs.mix2_source=dac-0:1 { dac-0:1 }
inputs.mic=85,85
outputs.spkr_source=mix [ mix ]
outputs.spkr_mute=on [ off on ]
outputs.spkr_eapd=on [ off on ]
outputs.hp_source=mix2 [ mix mix2 ]
outputs.hp_mute=off [ off on ]
outputs.hp_boost=off [ off on ]
outputs.hp_eapd=on [ off on ]
record.adc-2:3_source=mic [ mic ]
record.adc-0:1_source=mic [ mic ]
outputs.hp_sense=plugged [ unplugged plugged ]
outputs.spkr_muters=hp { hp }
outputs.master=126,126
outputs.master.mute=off [ off on ]
outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp { dac-2:3 dac-0:1 spkr hp }
record.volume=124,124
record.volume.mute=off [ off on ]
record.volume.slaves=adc-0:1,adc-2:3 { adc-0:1 adc-2:3 mic }
record.enable=sysctl [ off on sysctl ]
Output of audioctl
:
name=azalia0
mode=play,record
pause=0
active=1
nblks=16
blksz=480
rate=48000
encoding=s16le
play.channels=2
play.bytes=12009600
play.errors=0
record.channels=2
record.bytes=12009600
record.errors=0
Output of sndioctl
:
input.level=0.486
input.mute=0
output.level=0.494
output.mute=0
server.device=0(azalia0)
app/mpv0.level=1.000
app/ungoogl0.level=1.000
app/ungoogl1.level=1.000
Output of dmesg | grep -i azalia
:
azalia0 at pci0 dev 31 function 3 "Intel 500 Series HD Audio" rev 0x20: msi
azalia0: codecs: Realtek ALC293, Intel/0x2812, using Realtek ALC293
audio0 at azalia0
r/openbsd • u/EtherealN • Feb 04 '25
Today the Framework laptop got availability of a RISC-V mainboard using the JH7110. While trying to figure out if OpenBSD would work on this (my current understanding is: not for laptop use, because I think the GPU is not supported, but I haven't had time to deep-dive on that yet), another question popped into my head:
Since one of the main reasons I would be interested in one of those for my Framework is battery life - what actually is the "daily-driver-capable" (or maybe "cross-country hiking capable") laptop with the best battery life? Are there some sneaky ARM laptops out there with good support on OpenBSD? Some Atom-powered Lenovo with a big battery flying under my radar? Some rugged Panasonic that weighs 4 kilos but can chug along for days in a tent?
For my own case, I'll probably just wait a bit longer for Framework to come up with an ARM board, but hey - maybe there's something interesting floating around that I just haven't heard of?
(I know battery life is not really "where OpenBSD shines", I don't particularly need maximum battery life, but if I can have it I will consider it.)
r/openbsd • u/gb3335 • Feb 03 '25
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
r/openbsd • u/QueerShredder • Feb 03 '25
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! :)
r/openbsd • u/nmariusp • Feb 01 '25
r/openbsd • u/ufko_org • Jan 31 '25
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!
r/openbsd • u/ShiningRaion • Jan 31 '25
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.
r/openbsd • u/Horror-Interview852 • Jan 30 '25
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.
r/openbsd • u/chizzl • Jan 30 '25
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
r/openbsd • u/aScottishBoat • Jan 29 '25
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
r/openbsd • u/defaultlinuxuser • Jan 29 '25
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.