Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
misc:acpi_patch [2025/04/26 01:13] – rqm | misc:acpi_patch [2025/04/29 00:10] (current) – rqm | ||
---|---|---|---|
Line 6: | Line 6: | ||
Booting the stock installer or kernel will cause the boot procedure to hang quite early on, usually after identifying the hard disks: | Booting the stock installer or kernel will cause the boot procedure to hang quite early on, usually after identifying the hard disks: | ||
- | INSERT PHOTO | + | {{ : |
As @brynet@bsd.network pointed out, it is caused by "some kind of regression that triggers a weird ACPI firmware bug on this machine." | As @brynet@bsd.network pointed out, it is caused by "some kind of regression that triggers a weird ACPI firmware bug on this machine." | ||
Line 48: | Line 48: | ||
* If going the " | * If going the " | ||
- | === The Slow Boot Way === | + | === I. The Slow Boot Way === |
Waiting out the slow boot times is probably a little bit easier, and it doesn' | Waiting out the slow boot times is probably a little bit easier, and it doesn' | ||
Line 89: | Line 89: | ||
== 4. Compiling == | == 4. Compiling == | ||
+ | Follow the '' | ||
+ | As root, first, change directories to the appropriate directory in ''/ | ||
+ | < | ||
+ | $ doas -s | ||
+ | # cd / | ||
+ | </ | ||
+ | |||
+ | Then proceed as the manual suggests, with root privileges - otherwise "make install" | ||
+ | < | ||
+ | # make obj | ||
+ | # make config | ||
+ | # make && make install | ||
+ | </ | ||
+ | |||
+ | After you reboot, the new kernel should be the one in use. It will be easy to tell whether the patch worked, because if your system boots " | ||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
+ | FIXME FIXME FIXME | ||
+ | PLEASE DISREGARD BELOW FOR THE TIME BEING, IT IS A WIP AND KNOWN TO BE INCORRECT. | ||
+ | FIXME FIXME FIXME | ||
+ | ---- | ||
+ | |||
+ | === II. The Custom Installer Way === | ||
+ | |||
+ | Creating a custom installer requires you to have another amd64 machine running OpenBSD. You will be able to build the kernel at the version your OpenBSD machine is already on. You need to make sure you are fetching the appropriate version of the sources, like above. | ||
+ | |||
+ | The procedure, in short, involves building the custom GENERIC.MP image as well as a custom RAMDISK, but WITHOUT running '' | ||
+ | |||
+ | == 0. Preliminaries == | ||
+ | |||
+ | You will also need a copy of '' | ||
+ | |||
+ | If you are on '' | ||
+ | < | ||
+ | $ sysctl kern.version | ||
+ | kern.version=OpenBSD 7.7-current (GENERIC.MP) #0: Wed Apr 23 20:21:10 BST 2025 | ||
+ | [..snip..] | ||
+ | </ | ||
+ | |||
+ | Note the date; in the above example, it's **"Apr 23 2025" | ||
+ | |||
+ | A good place to get previous snapshots is on '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | ==== Upgrading your system after patching ==== | ||
+ | Should a new release come out, unless there' | ||
+ | |||
+ | On your working, normally booting system, you need to patch in place like with "The Slow Boot Way" above. | ||
+ | |||
+ | First, you need to **follow the " | ||
+ | |||
+ | When updating it will skip " | ||
+ | < | ||
+ | # cd / | ||
+ | # cvs update -C acpi.c | ||
+ | </ | ||
+ | |||
+ | This will then move your own version of '' | ||
+ | < | ||
+ | # diff acpi.c .# | ||
+ | </ | ||
+ | |||
+ | If the only two lines that differ are the ones you commented out with the above patch, just '' | ||
+ | |||
+ | === Download the upgrade === | ||
+ | Fetch the release you are upgrading to, but without rebooting and installing automatically. | ||
+ | |||
+ | On '' | ||
+ | < | ||
+ | # sysupgrade -ns | ||
+ | </ | ||
+ | |||
+ | On '' | ||
+ | < | ||
+ | # sysupgrade -n | ||
+ | </ | ||
+ | |||
+ | Sysupgrade will download the new files for the download, you will find then under ''/ | ||
+ | |||
+ | === Make and install the Ramdisk === | ||
+ | To build '' | ||
+ | < | ||
+ | $ doas -s | ||
+ | # cd / | ||
+ | # make obj | ||
+ | # make config | ||
+ | # make | ||
+ | [...eventually...] | ||
+ | ctfstrip -S -o bsd bsd.gdb | ||
+ | # install -bp / | ||
+ | </ | ||
+ | |||
+ | This will give you a " | ||
+ | |||
+ | === Make and install the patched kernel again === | ||
+ | |||
+ | Before rebooting, you need to re-compile '' | ||
+ | |||
+ | < | ||
+ | $ doas -s | ||
+ | # cd / | ||
+ | # make obj | ||
+ | # make config | ||
+ | # make | ||
+ | [...eventually...] | ||
+ | ctfstrip -S -o bsd bsd.gdb | ||
+ | # install -bp / | ||
+ | </ | ||
+ | |||
+ | Reboot... Done! |