|MiNi0n|
August 8th, 2002, 12:41
So you want to hash out all those devices in your GENERIC kernel to make a smaller, quicker kernel but you just hate hashing through that damn file and commenting out devices one by one?
Everyone does! Your solution is dmassage:
This tool parses the dmesg of your OpenBSD system, and can do three things
with that information:
- to make the kernel boot faster
- to reduce kernel size
- to show all devices in a tree-like hierarchy (example)
Grab it here:
http://www.sentia.org/projects/dmassage/
NOTE: This tool does not deal with any kernel options, devices only, so you still gotta do those by hand but then... that's the safer bet anyway.
Kewl, so how do I use it??? Easy:
1) Download the file and untar it. I prefer to move the dmassage script right into /usr/src/sys/arch/i386/conf
2) Once you've done that you can simpy run:
./dmassage -s GENERIC | more
This command assumes it is to use the default dmesg found at /var/run/dmesg.boot If you want to use another simply specify it with the -d /path/to/dmesg
3) After issuing the dmassage have a look at the output and make sure it looks sane, it should, since it simply parses your dmesg, determines what devices your box is using then comments out unused devieces.
4) If you're happy with the look of it, just run the command again and pipe it into a new config:
./dmassage -s GENERIC > SMALLKERNEL
5) Rebuild your kernel using the new, compact SMALLKERNEL!
You can also use dmassage to use config to alter your currently booted kernel. For more RTFM:
http://www.sentia.org/projects/dmassage/manpage.shtml
Salutations,
Everyone does! Your solution is dmassage:
This tool parses the dmesg of your OpenBSD system, and can do three things
with that information:
- to make the kernel boot faster
- to reduce kernel size
- to show all devices in a tree-like hierarchy (example)
Grab it here:
http://www.sentia.org/projects/dmassage/
NOTE: This tool does not deal with any kernel options, devices only, so you still gotta do those by hand but then... that's the safer bet anyway.
Kewl, so how do I use it??? Easy:
1) Download the file and untar it. I prefer to move the dmassage script right into /usr/src/sys/arch/i386/conf
2) Once you've done that you can simpy run:
./dmassage -s GENERIC | more
This command assumes it is to use the default dmesg found at /var/run/dmesg.boot If you want to use another simply specify it with the -d /path/to/dmesg
3) After issuing the dmassage have a look at the output and make sure it looks sane, it should, since it simply parses your dmesg, determines what devices your box is using then comments out unused devieces.
4) If you're happy with the look of it, just run the command again and pipe it into a new config:
./dmassage -s GENERIC > SMALLKERNEL
5) Rebuild your kernel using the new, compact SMALLKERNEL!
You can also use dmassage to use config to alter your currently booted kernel. For more RTFM:
http://www.sentia.org/projects/dmassage/manpage.shtml
Salutations,