ATI Mobility Radeon 7500: radeon: Invalid PCI ID.
Hi misc@, I just got an old Thinkpad T40 with an ATI Mobility Radeon 7500 (32MB) and installed OpenBSD 7.3-release on it. Unfortunately GPU acceleration doesn't work, neofetch tells me that my GPU is llvmpipe. When I run `glxinfo > /dev/null` I get the following output: radeon: Invalid PCI ID. libGL error: glx: failed to create dri2 screen libGL error: failed to load driver: radeonsi I tracked down the error to line 198 of /usr/xenocara/lib/mesa/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c The oldest GPU family in the switch stmt is r300, while my GPU is r100. This leads me to believe that hardware acceleration for my GPU is not supported. At least it's PCI ID is listed in /usr/xenocara/driver/xf86-video-ati/src/ati_pciids_gen.h:81 # pcidump -v> Domain /dev/pci0: 0:0:0: Intel 82855PM Host 0x: Vendor ID: 8086, Product ID: 3340 0x0004: Command: 0106, Status: 2090 0x0008: Class: 06 Bridge, Subclass: 00 Host, Interface: 00, Revision: 03 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00, Cache Line Size: 00 0x0010: BAR mem prefetchable 32bit addr: 0xd000/0x1000 0x0014: BAR empty () 0x0018: BAR empty () 0x001c: BAR empty () 0x0020: BAR empty () 0x0024: BAR empty () 0x0028: Cardbus CIS: 0x002c: Subsystem Vendor ID: 1014 Product ID: 0529 0x0030: Expansion ROM Base Address: 0x0038: 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00 0x00e4: Capability 0x09: Vendor Specific 0x00a0: Capability 0x02: AGP 0:1:0: Intel 82855PM AGP 0x: Vendor ID: 8086, Product ID: 3341 0x0004: Command: 0107, Status: 00a0 0x0008: Class: 06 Bridge, Subclass: 04 PCI, Interface: 00, Revision: 03 0x000c: BIST: 00, Header Type: 01, Latency Timer: 60, Cache Line Size: 00 0x0010: BAR empty () 0x0014: BAR empty () 0x0018: Primary Bus: 0, Secondary Bus: 1, Subordinate Bus: 1, Secondary Latency Timer: 40 0x001c: I/O Base: 30, I/O Limit: 30, Secondary Status: 22a0 0x0020: Memory Base: c010, Memory Limit: c010 0x0024: Prefetch Memory Base: e000, Prefetch Memory Limit: e7f0 0x0028: Prefetch Memory Base Upper 32 Bits: 0x002c: Prefetch Memory Limit Upper 32 Bits: 0x0030: I/O Base Upper 16 Bits: , I/O Limit Upper 16 Bits: 0x0038: Expansion ROM Base Address: 0x003c: Interrupt Pin: 00, Line: 00, Bridge Control: 000c 0:29:0: Intel 82801DB USB 0x: Vendor ID: 8086, Product ID: 24c2 0x0004: Command: 0005, Status: 0280 0x0008: Class: 0c Serial Bus, Subclass: 03 USB, Interface: 00, Revision: 01 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00, Cache Line Size: 00 0x0010: BAR empty () 0x0014: BAR empty () 0x0018: BAR empty () 0x001c: BAR empty () 0x0020: BAR io addr: 0x1800/0x0020 0x0024: BAR empty () 0x0028: Cardbus CIS: 0x002c: Subsystem Vendor ID: 1014 Product ID: 052d 0x0030: Expansion ROM Base Address: 0x0038: 0x003c: Interrupt Pin: 01 Line: 0b Min Gnt: 00 Max Lat: 00 0:29:1: Intel 82801DB USB 0x: Vendor ID: 8086, Product ID: 24c4 0x0004: Command: 0005, Status: 0280 0x0008: Class: 0c Serial Bus, Subclass: 03 USB, Interface: 00, Revision: 01 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00, Cache Line Size: 00 0x0010: BAR empty () 0x0014: BAR empty () 0x0018: BAR empty () 0x001c: BAR empty () 0x0020: BAR io addr: 0x1820/0x0020 0x0024: BAR empty () 0x0028: Cardbus CIS: 0x002c: Subsystem Vendor ID: 1014 Product ID: 052d 0x0030: Expansion ROM Base Address: 0x0038: 0x003c: Interrupt Pin: 02 Line: 0b Min Gnt: 00 Max Lat: 00 0:29:2: Intel 82801DB USB 0x: Vendor ID: 8086, Product ID: 24c7 0x0004: Command: 0005, Status: 0280 0x0008: Class: 0c Serial Bus, Subclass: 03 USB, Interface: 00, Revision: 01 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00, Cache Line Size: 00 0x0010: BAR empty () 0x0014: BAR empty () 0x0018: BAR empty () 0x001c: BAR empty () 0x0020: BAR io addr: 0x1840/0x0020 0x0024: BAR empty () 0x0028: Cardbus CIS: 0x002c: Subsystem Vendor ID: 1014 Product ID: 052d 0x0030: Expansion ROM Base Address:
Re: Feedback on redesigned OpenBSD.org
Hi Michael, great work, especially with the light theme, but the dark theme is too dark for my taste and IMO the puffy should link to the front page. As Kevin said, the front page looks odd, for me too. Maybe the layout of it should stay as is, or be completely changed. I think that the styling of "OpenBSD" at the top sub-pages (like faq) should stay the same, since its persistent across OpenBSD's projects, like OpenSSH. Otherwise I think you did a fine job, especially with the line length. Sincerely, Benjamin Stürz On 2023-08-09T19:01Z mich...@mlpdesign.com yeeted this message at the world: Hi everyone WHAT: = I greatly respect OpenBSD; while I don't have OS tech level expertise to contribute - I do have some design skills and wanted to contribute to the community and project. So I created a new CSS (stylesheet) for OpenBSD.org It can be viewed at: https://www.openbsd.design/cvs/www/index.html WHY: I wanted to attempt to accomplish the following: - Responsive. Currently, the site is not responsive and difficult to read on a mobile device. Like /index.html, /lyrics.html and /support.html - Simplify the color palette. There's many different colors competing for attention (and causes distraction) on the website for vary choices of headline, table, background, etc colors. - Make code samples or inline KBD easier to distinguish. - Size images correctly for better reading of content. - Bring an updated freshness to the overall site, while not losing its original great character. CHANGE: === Note: with the exception of adding a ViewPort to /index.html, *no* HTML pages were changed. Only the OpenBSD.css file & inclusion of 3 web fonts. The changes to the website include: - a new OpenBSD.css stylesheet - include of a tag on /index.html (in order to make /index.html have a responsive layout) - Added 3 web fonts that are OFL1.1 licensed & attributed in CSS Lato normal and bold for body text Domine for headings - Adding puffy to the footer of all pages except for /index.html (I thought this was a nice playful way to bring some character to the overall website.) - Restyled Dark Mode colors as well (not just Light Mode) - Hid the server rack photo on /index.html While I appreciate the image, I thought it might be too distracting. - Any links to cvsweb, I styled as monospace font. DESIGN PRINCIPLES: == I searched through the mailing list and found 2 previous attempts of individuals showing a new design concept for openbsd.org. The principles I stood by is: - HTML should not be changed, the structure and content of the site is already great. The only change should be to the CSS file. Note: as previously mentioned, I did need to update /index.html to add a missing ViewPort so the page would be responsive. - The design change should apply the ENTIRE website hosted on www.openbsd.org, which this does. - Kept the same recognizable layout. I saw examples in the past where individuals made substantial structural changes for no apparent reason. - The design update should focus making content the main feature, since OpenBSD is known for having such great documentation. NEXT STEPS: === I've never posted to an OpenBSD mailing list, so please be kind. 1. I'd welcome feedback. Note, I've updated both Light Mode and Dark Mode. https://www.openbsd.design/cvs/www/index.html 2. I purchased the domain https://OpenBSD.design and would like to transfer this to the proper party to own/maintain. Please email me direct so I can do so. 3. I need to make a diff, but for some reason - I'm running into issues doing so and I think it's related to the introduction of the 3 new font files. Any suggestions beyond what's documented at https://www.openbsd.org/faq/faq5.html#Diff I hope this design update is welcomed with open minds. Looking forward to reading feedback. -mlp
indent(1) has issues formatting lsblk(8) correctly
Hi misc@, while trying to use indent(1) on my lsblk.c, I get the following two errors:> Error@150: Stmt nesting error. Error@702: Missing braces at end of file. It also doesn't handle unicode and breaks horribly at some points. I have attached both the origin and the indented version as Thunderbird doesn't seem to wanna deal with so much text. For now, I'm just gonna do it myself according to style(9). Thanks, Benjamin Stürz /* * Copyright (c) 2023 Benjamin StГјrz * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #define _XOPEN_SOURCE 700 #define _BSD_SOURCE 1 #define DKTYPENAMES #define WSDEBUG 0 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include static int diskcount(void) { const int mib [2] = {CTL_HW, HW_DISKCOUNT}; int diskcount; size_t len = sizeof diskcount; if (sysctl(mib, 2, &diskcount, &len, NULL, 0) == -1) err(1, "sysctl(hw.diskcount)"); return diskcount; } static char* disknames(void) { const int num = diskcount(); const int mib [2] = {CTL_HW, HW_DISKNAMES}; size_t len = 32 * num; char *buffer = malloc(len); if (sysctl(mib, 2, buffer, &len, NULL, 0) == -1) err(1, "sysctl(hw.disknames)"); return buffer; } static char* stripdisk(char *n) { const char sufx[] = " disk"; const size_t ln = strnlen(n, 16); const size_t ls = sizeof sufx - 1; if (memcmp(n + ln - ls, sufx, ls) == 0) { n[ln - ls] = '\0'; } return n; } static void print_size(uint64_t sz) { const struct unit { char sym; uint64_t factor; } units [] = { { 'P', 1ull << 50 }, { 'T', 1ull << 40 }, { 'G', 1ull << 30 }, { 'M', 1ull << 20 }, { 'K', 1ull << 10 }, { '0', 0 }, }; char sym = 'B'; uint64_t factor = 1; for (const struct unit * u = &units[0]; u->factor; ++u) { if (sz >= (u->factor * 9 / 10)) { sym = u->sym; factor = u->factor; break; } } const unsigned scaled10 = sz * 10 / factor; const unsigned scaled = sz / factor; if (scaled10 >= 1000) { printf("%u", scaled); } else if (scaled10 >= 100) { printf(" %u", scaled); } else { printf("%u.%u", scaled, scaled10 % 10); } putchar(sym); putchar(' '); } enum { FIELD_NAME = 0x01, FIELD_DUID = 0x02, FIELD_SIZE = 0x04, FIELD_USED = 0x08, FIELD_FREE = 0x10, FIELD_TYPE = 0x20, FIELD_COMMENT = 0x40, FIELD_DEFAULT = FIELD_NAME | FIELD_SIZE | FIELD_TYPE | FIELD_COMMENT, }; enum { OPT_NOHEADER = 0x01, OPT_NOUNICODE = 0x02, OPT_NOBIO = 0x04, }; struct my_diskinfo; struct my_partinfo { char letter; uint64_t size; uint64_t fssize; uint64_t free; const char *fstype; const char *mount; const struct my_diskinfo *sub; //If this is part of a RAID const char *raidstatus; //Only available if (sub != NULL) }; struct my_diskinfo { char type [16]; char label[16]; char name [8]; uint64_t size; uint64_t used; u_char duid [8]; uint8_t num_parts; struct my_partinfo parts[MAXPARTITIONS]; const char *raidstatus; //If this is a RAID device }; struct padding { int name; /* duid = 8 */ /* size = 4 */ /* used = 4 */ /* free = 4 */ int type; int comment; }; static void print_header(int fields, const struct padding * p) { if (fields & FIELD_NAME) printf("%-*s ", p->name, "NAME"); if (fields & FIELD_DUID) printf("%-18s ", "DUID"); if (fields & FIELD_SIZE) printf("%-4s ", "SIZE"); if (fields & FIELD_USED) printf("%-4s ", "USED"); if (fields & FIELD_FREE) printf("%-4s ", "FREE"); if (fields & FIELD_TYPE) printf("%-*s ", p->type, "TYPE"); if (fields & FIELD_COMMENT) printf("%-*s ", p->comment, "COMMENT&quo
struct kinfo_proc: p_schedflags and PSCHED_*
Hi, I'm writing a little toy /proc fuse-fs for OpenBSD. The field p_schedflags defined in struct kinfo_proc in file /usr/include/sys/sysctl.h refers to PSCHED_*, but I can't find any references to these macros with: $ grep -rn PSCHED_ /usr/include /usr/src/sys Nor can I find any references to p_schedflags: $ grep -rn p_schedflags /usr/src This leads me to believe that this field is unused and should also be marked accordingly, to avoid future confusion. If not, please let me know how I interpret use this field. Thanks, Benjamin Stürz
Re: OpenBSD 7.3 found a process with PID 0
Am 26.09.23 um 18:12 schrieb Alessandro Baggi: Il 26/09/23 17:30, Claudio Jeker ha scritto: On Tue, Sep 26, 2023 at 05:13:46PM +0200, Andreas Kähäri wrote: On Tue, Sep 26, 2023 at 04:59:22PM +0200, Alessandro Baggi wrote: Hi list, running this python3 script: #!/usr/bin/env python3 import psutil pids = psutil.pids() for i in pids: p = psutil.Process(i) with p.oneshot(): print(str(i) + " " + p.name()) The result start with: 0 swapper 1 init 536 smtpd 868 ksh ... This process does not appear in ps, top and htop. $ ps -p 0 PID TT STAT TIME COMMAND 0 ?? DK 0:02.19 (swapper) For top, you need to press S to show system processes. I don't use htop, but I assume it has a similar capability to show system processes. How could be that there is a process with PID 0 before init? Probably I'm missing something about OpenBSD core. Can someone point me in the right direction? See uvm_init(9): The swapper process swaps in runnable processes that are currently swapped out, if there is room. ... and this is a lie. The swapper process does nothing. Ok, but why it is running? My guess without looking at the code is that it's an "idle" process, it runs if there is nothing else to run and maybe does something like: loop: hlt ; wait for interrupt jmp loop It would make sense, but please correct me if I'm wrong.
httpd: request rewrite & directory auto index
Hi misc@, I may have found a bug with the combination of `request rewrite` and `directory auto index` when using httpd(8). Preparation: mkdir -p /var/www/htdocs/pub/user echo "Hello World" > /var/www/htdocs/pub/user/test /etc/httpd.conf: server "example.com" { listen on * port 80 root "/htdocs/website" location match "/~(.*)" { request rewrite "/%1" root "/htdocs/pub" directory auto index } } `curl http://127.0.0.1/~user/test` works perfectly fine, but `curl http://127.0.0.1/~user/` fails with Internal Server Error. If I comment out the `request rewrite` and move user to ~user, it works again. -- Benjamin Stürz
Re: Appimage
On 19.12.23 16:50, Kevin Chadwick wrote: I'm not sure if this is a pipe dream but atleast I imagine the filesystem API and /proc avoidance is likely possible. "https://github.com/AppImage/AppImageKit/issues/98"; A few months ago I wrote a proof of concept /proc implementation for OpenBSD using FUSE: https://got.stuerz.xyz/?action=summary&path=procfs-fuse.git It might help you in getting AppImages to work on OpenBSD, but /proc is probably the least of your problems.
Re: Power usage in Dell XPS 17
On 30.01.24 15:40, Jag Talon wrote: Unfortunately nothing about disabling a GPU in BIOS. I see everything else like Thunderbolt, fingerprint reader, microphone, etc. but no GPU. I'll keep looking and I'll check online as well perhaps I missed it! I had the same issue with my TUXEDO Polaris 17 (AMD) w/ an RTX 2060M. It was also not possible to disable the GPU in the BIOS, so the battery life was miserable (45 min). That's why I later bought myself a used Thinkpad T450 and then a T480, which both played very nice with OpenBSD.
Re: porting OpenBSD to Ox64
Hi, I'm also interested. I might be able to provide testing. On 21.03.24 08:50, Peter J. Philipp wrote: Hi, If anyone is interested in helping or just plain interested, here is my prep work documented. I've been on it sparingly since beginning of March. I don't know how much time I want to invest in this but we'll see... https://github.com/pbug44/openbsd-src/tree/Ox64 The Ox64 is a 8 dollar SoC utilizing a RISCV64 CPU (among other cores). I intend to use this for a Freifunk-like project which I call GardenNet. https://sky.delphinusdns.org/eap-tls-idea.txt (following link in german use chromium to translate or something): https://wiki.freifunk-franken.de/w/Benutzer:PeterPhilipp#Ein_Garten_Netz_Knoten Best Regards, -pjp
Re: No coloring with colorls
On 25.03.24 23:40, Karel Lucas wrote: Hi all, After installing colorls and making some adjustments to the system, I still have no colored output from colorls. Below I have indicated the settings that have been made or are present by default. I would like to know what is wrong and what needs to be improved. Default environment: TERM=vt220 Added environment: CLICOLOR=yes CLICOLOR_FORCE=yes LSCOLORS=exfxcxdxbxegedabagacad Try CLICOLOR=1 (and TERM=xterm-256color, if it doesn't help).
Re: OpenBSD with GRUB2
On 03.05.23 10:52, Luca Di Gregorio wrote: I'm trying to install OpenBSD on a VPS with Debian/GRUB2. I get bsd.rd, in GRUB2 I launch the installer with: set root=(hd0,X) kopenbsd /bsd.rd boot The installation is ok, but GRUB2 still remains. So, when I reboot, GRUB2 menu appears, and OpenBSD can be started only with: set root=(hd0,X) kopenbsd /bsd boot I would like to automatically start OpenBSD at reboot. Is it possible to overwrite GRUB2 in the installation process? Or, is it possible to add a GRUB2 entry in OpenBSD? Hi Luca, it should be possible, if you choose "Whole disk MBR (w)" or "Whole disk GPT (g)" before partitioning. Be aware that this will also erase your Debian install too. Best regards, Benjamin Stürz
syspatch + custom kernel
Hi misc@, out of curiosity I recently compiled a custom kernel and now syspatch(8) fails with: syspatch: Unsupported release: 7.3-stable Taking a short look at /usr/sbin/syspatch reveals the following lines: set -A _KERNV -- $(sysctl -n kern.version | sed 's/^OpenBSD \([1-9][0-9]*\.[0-9]\)\([^ ]*\).*/\1 \2/;q') ((${#_KERNV[*]} > 1)) && err "Unsupported release: ${_KERNV[0]}${_KERNV[1]}" This tells me that using syspatch(8) is not supported on -stable. But I actually only run a -stable kernel. The userspace is still -release + syspatch. Do I have to compile the entire userspace too, if I want to use a custom kernel? Or is there some other way of using a custom kernel AND using syspatch for userspace? PS: I update my /usr/src with: $ cvs -qd $CVSROOT up -Pd -rOPENBSD_7_3 PS 2: I compile with COPTIMIZE=-O3 -march=native -mtune=native and no crashes so far. I might try -Ofast in the future. Best regards, Benjamin Stürz
Re: syspatch + custom kernel
On 16.05.23 08:31, Stuart Henderson wrote: On 2023-05-16, Benjamin Stürz wrote: PS 2: I compile with COPTIMIZE=-O3 -march=native -mtune=native and no crashes so far. btw: don't even think of reporting bugs unless you've verified it with a standard build (i.e. clean the build dir and rebuild using standard optimiser flags) Yeah I know, but I like doing stupid stuff until everything breaks :> And no issues so far...
netstat: vfprintf %s NULL in " %2d %-5.16s"
Hi misc@, while scrolling through my /var/log/messages I found this entry: netstat: vfprintf %s NULL in " %2d %-5.16s" I tracked down the issue to line 278 of /usr/src/usr.bin/netstat/show.c: printf(" %2d %-5.16s", rtm->rtm_priority, if_indextoname(rtm->rtm_index, ifbuf)) It appears to me that if_indextoname(3) returns NULL for some reason, and that this isn't being checked. Is this intentional? Or did I find a minor bug? Best regards, Benjamin Stürz
Wrong SHA256 sums for latest snapshot
Hi misc@, I have issues installing the latest snapshot from cdn.openbsd.org. $ sysupgrade -sn Fetching from https://cdn.openbsd.org/pub/OpenBSD/snapshots/amd64/ [Downloading SHA256.sig...] Signature Verified Verifying old sets. [Downloading sets...] Verifying sets. (SHA256) base73.tgz: FAILED (SHA256) bsd: FAILED (SHA256) bsd.mp: FAILED (SHA256) bsd.rd: FAILED (SHA256) comp73.tgz: FAILED (SHA256) game73.tgz: FAILED (SHA256) man73.tgz: FAILED (SHA256) xbase73.tgz: FAILED (SHA256) xfont73.tgz: FAILED (SHA256) xserv73.tgz: FAILED (SHA256) xshare73.tgz: FAILED $ cat /home/_sysupgrade/SHA256 [Omitted unused sums] SHA256 (INSTALL.amd64) = 2122f979265b296264e9db8f8dfe45d743e99ac545eca7fed6197c6feaa2 SHA256 (base73.tgz) = 1b548595d8f38d2d44f0cb1047e3d88c0bb7ef7c5ba03fdb38605be3228cdc23 SHA256 (bsd) = 260fc06d96ccb6863d1d560e2ea325661bcad97e9c68ee63f91a71ad99c1ce70 SHA256 (bsd.mp) = 8bfabfa56f9ac7284fbbc91f627ec70688afc1fb04687fcda0a600383d76f004 SHA256 (bsd.rd) = c3956bbdc7f00ace12f4d76802dbec842b22807a23246e09a170fe0372b1fe1e SHA256 (comp73.tgz) = fa0120f19fcf9e69467e8a0f3dbc9bd5087bee2cb3e5970ca3814bfd6c529004 SHA256 (game73.tgz) = faa4f878cc2881cc6ae861dd00ea7b1278f6c51c2c9760c36a24e803ef15d99b SHA256 (man73.tgz) = 4ef980ee22ad243c5ffb5dc61cffb6326abd61d33a2779e006b12460d67f20ca SHA256 (xbase73.tgz) = 1203bfa503b8d6bca475857e87cd375cb765fef15f84767faca4ead1d02f7c37 SHA256 (xfont73.tgz) = 08fda06cf5b2057d39d8bab807b4c66a0e70b49b84acc3534e4ba97924f88855 SHA256 (xserv73.tgz) = a6ae7ae16c4038cf3831acf6126491848f48ebdeb38b022a0ec78ec74d7aaf61 SHA256 (xshare73.tgz) = 8f59dddf19adec56b612d2c655638ce793d6979de4223a34d8b1bd5a94fb1903 $ sha256 /home/_sysupgrade/*.tgz SHA256 (base73.tgz) = 2cf3b11cc889575e6c9000edd355235d0c8e39935745058f4789a4d09bcf3a6b SHA256 (comp73.tgz) = 27616b664a505aae957013ce61a1d08ab32d07961d6dc22cbed4114df65c22a7 SHA256 (game73.tgz) = 464696e61eb54efab86aaa9499a24afe421e78b50e96e3744b853613ca65 SHA256 (man73.tgz) = dad1980b7a3f1dc520425d0471963d49f122329fd8f974f3fe169bb274c7cad3 SHA256 (xbase73.tgz) = a4ceaa9a8f783c54927519e2fac65711840595b8f5f98e5a46be0f6ff101b5f9 SHA256 (xfont73.tgz) = daf91ef0e41bc3ff5ba5b64f2b6ba046d68d3545c25290fb6cdac91e120539c6 SHA256 (xserv73.tgz) = 6e5856f6c602902458a64bbfa9dca3deeb86af5486203daff63581cc3eb642ac SHA256 (xshare73.tgz) = 78b668863779a8ebc1189401ef354bb1511a9bf81f3b13c8dd63bc72114f31b5 Best regards, Benjamin Stürz
Re: Dual boot with 2 openbsd
On 7/16/24 10:57 PM, 04-psyche.tot...@icloud.com wrote: Hi all! I want to setup a dual boot system, with 2 OpenBSD system, and I wanted to run it past you guys, to see if the idea makes sense (and make sure I implement it correctly). It is for a system that I will not be able to access physically easily. So I bought 2 drives. My idea is: - Install OpenBSD on the 2 drives + drive1 : partition a to k for the OS + drive 2: partition a to k for the OS and partition m for data - In UEFI, set up boot priority drive1, then drive2 - In the OS of drive1, mount only partition m of drive2 - As long as drive1 does not fail, I enjoy the OS on drive1 and I still make use of drive2 - If drive1 fails, the UEFI will automatically boot on drive2, and I can still enjoy the usage of the system, without having needed to access it physically. Does this idea make sense? If yes, any tip on how to do it? In particular, when I install OpenBSD on drive2, is it better to run the openBSD installer by having booted on drive2, or can I just run it from OpenBSD_drive1 and select drive 2 as destination for the new OS? Thanks! Jake Why don't you just use RAID 1?
Re: firefox crashes on an M1 macbook
On 4/12/23 11:11 AM, Jan Stary wrote: This is current/arm64 on an Apple M1 MacBook Air (dmesg below). While everything mostly works, Firefox keeps crashing. Reproducibly, it always crashes on calendar.google.com; _sometimes_ it crashes when playing a video. On simple sites, it works withotu problems. How can I debug this? Is it related to the lack of video acceleration on these machines? Thanks, Jan I had an M1 Mac Mini a while ago and ironically apple.com would crash. Does that happen to you too?
Re: OpenBSD Guide Installing XFCE
On 8/30/24 11:56 AM, openbsd_fr...@mail2tor.com wrote: Please ship OpenBSD with XFCE4 pre-built instead of with CWM or both. Please use `pkg_add xfce4` or go back to Ubuntu
Re: Do you think this computer would run OpenBSD?
On 9/8/24 1:05 AM, Steve Litt wrote: Hi all, Do you think this computer would run OpenBSD? https://refurbished.minisforum.com/products/minisforum-mt4ub1-refurbished SteveT Steve Litt http://444domains.com I'd say probably yes, because it's x86 and it doesn't appear to have any exotic hardware. In the end, there is only one way to find out.
Re: static
https:/google.com/search?q=Does+it+improve+code+performance+declaring+function+variables+static+%3F On 10/6/24 9:59 PM, Gustavo Rios wrote: Does it improve code performance declaring function variables static ?
Re: Cannot boot neither use boot -c in computer with Ryzen 9
On 8/29/23 10:06 PM, Stuart Henderson wrote: On 2023-08-29, vtamara wrote: Thaks for your answer So .. if you have SATA disks or optical drives (that are not part of the boot disk), you could try disconnecting those from the motherboard. Since you were able to install without problems, I think you may be in this siutation (e.g. if you have NVME(4) storage). All the disks in this computer as sd. sata, sas and nvme drives are all sd. Hi, I have the exact same issue on both 7.5 and 7.6-current. My machine has 2 NVMe drives and a SATA drive. After disabling SATA in the BIOS the machine booted with this dmesg: dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD real mem = 34007449600 (32432MB) avail mem = 32972140544 (31444MB) random: good seed from bootblocks OpenBSD 7.5 (RAMDISK_CD) #76: Wed Mar 20 15:53:54 MDT 2024 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD real mem = 34007449600 (32432MB) avail mem = 32972140544 (31444MB) random: good seed from bootblocks mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.5 @ 0xe6f40 (73 entries) bios0: vendor American Megatrends Inc. version "1616" date 05/16/2023 bios0: ASUS PRIME B650-PLUS acpi0 at bios0: ACPI 6.4 acpi0: tables DSDT FACP SSDT SSDT SSDT FIDT MCFG HPET WDRT FPDT WPBT TPM2 SSDT CRAT CDIT SSDT SSDT SSDT SSDT WSMT APIC IVRS SSDT SSDT SSDT SSDT acpihpet0 at acpi0: 14318180 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Ryzen 9 7900 12-Core Processor, 3700.00 MHz, 19-61-02, patch 0a601203 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,HWPSTATE,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,AVX512CD,SHA,AVX512BW,AVX512VL,AVX512VBMI,UMIP,PKU,L1DF,IBPB,IBRS,STIBP,STIBP_ALL,IBRS_PREF,IBRS_SM,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 8-way L2 cache, 32MB 64b/line 16-way L3 cache cpu0: apic clock running at 25MHz cpu0: mwait min=64, max=64, C-substates=1.1, IBE cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured ioapic0 at mainbus0: apid 32 pa 0xfec0, version 21, 24 pins, can't remap ioapic1 at mainbus0: apid 33 pa 0xfec01000, version 21, 32 pins, can't remap acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (GPP3) acpiprt2 at acpi0: bus -1 (GPP4) acpiprt3 at acpi0: bus -1 (GPP5) acpiprt4 at acpi0: bus -1 (GPP6) acpiprt5 at acpi0: bus -1 (GPP9) acpiprt6 at acpi0: bus -1 (GPPA) acpiprt7 at acpi0: bus -1 (GPPB) acpiprt8 at acpi0: bus -1 (GPPC) acpiprt9 at acpi0: bus -1 (GPPD) acpiprt10 at acpi0: bus -1 (GPPE) acpiprt11 at acpi0: bus -1 (GPPF) acpiprt12 at acpi0: bus -1 (GPPG) acpiprt13 at acpi0: bus -1 (GPPH) acpiprt14 at acpi0: bus 15 (GP17) acpiprt15 at acpi0: bus -1 (GP18) acpiprt16 at acpi0: bus 16 (GP19) acpiprt17 at acpi0: bus 1 (GPP0) acpiprt18 at acpi0: bus 4 (GPP1) acpiprt19 at acpi0: bus -1 (GPP2) acpiprt20 at acpi0: bus 14 (GPP8) acpiprt21 at acpi0: bus 5 (GPP7) acpiprt22 at acpi0: bus 6 (UP00) acpiprt23 at acpi0: bus 7 (DP00) acpiprt24 at acpi0: bus 8 (DP40) acpiprt25 at acpi0: bus 9 (DP48) acpiprt26 at acpi0: bus 10 (DP50) acpiprt27 at acpi0: bus 11 (DP58) acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x acpicmos0 at acpi0 com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo "PNP0C0C" at acpi0 not configured amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins "AMDI0052" at acpi0 not configured dwiic0 at acpi0 I2CA addr 0xfedc2000/0x1000 irq 10 iic0 at dwiic0 "MSFT0101" at acpi0 not configured "ACPI0010" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not configured "ACPI0007" at acpi0 not con
httpd: `fastcgi param` is broken
Hi, Is it intended behavior, that `fastcgi param` doesn't overwrite variables? I have the following httpd config: server "example" { listen on * port 80 location "/test/" { root "/cgi-bin/env.cgi" fastcgi param SERVER_NAME "env" fastcgi } } env.cgi is just this C program, statically linked: #include int main (void) { extern char **environ; printf ("Content-Type: text/plain\r\n\r\n"); for (char **e = environ; *e != NULL; ++e) { puts (*e); } return 0; } When I open in a web browser, I get this: SERVER_SOFTWARE=OpenBSD httpd SERVER_PROTOCOL=HTTP/1.1 SERVER_NAME=example # this doesn't get overwritten SERVER_PORT=80 SERVER_ADDR=127.0.0.1 REQUEST_URI=/test/ REQUEST_METHOD=GET REMOTE_PORT=40767 REMOTE_ADDR=127.0.0.1 SERVER_NAME=env # note these duplicates SERVER_NAME=env HTTP_USER_AGENT=Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0 HTTP_UPGRADE_INSECURE_REQUESTS=1 HTTP_SEC_GPC=1 HTTP_SEC_FETCH_SITE=cross-site HTTP_SEC_FETCH_MODE=navigate HTTP_SEC_FETCH_DEST=document HTTP_PRIORITY=u=0, i HTTP_HOST=example HTTP_DNT=1 HTTP_CONNECTION=keep-alive HTTP_ACCEPT_LANGUAGE=en-US,en;q=0.5 HTTP_ACCEPT_ENCODING=gzip, deflate, br, zstd HTTP_ACCEPT=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 GATEWAY_INTERFACE=CGI/1.1 DOCUMENT_URI=/test/ DOCUMENT_ROOT=/cgi-bin/env.cgi QUERY_STRING= SCRIPT_FILENAME=/cgi-bin/env.cgi SCRIPT_NAME= PATH_INFO=/test/ The actual use-case involves Gotwebd, which removed removed the ability to specify per-server `listen on socket`.