Messages in this thread | | | From | (bill davidsen) | Subject | Re: [PATCH 2.5] Extract configuration from kernel | Date | 3 Dec 2002 13:41:43 GMT |
| |
In article <E18Ixu4-0007zZ-00@lyra.fc.hp.com>, Khalid Aziz <khalid@fc.hp.com> wrote: | I am including a patch for 2.5.50 that allows a user to embed kernel | configuration in the kernel and retrieve it later either from a running | kernel or from the kernel image file. This is an enhancement to Randy's | patch that was discussed on LKML before and is part of -ac series | kernels. | | This patch provides three choices for embedding kernel configuration: | | 1. Include configuration in running kernel image. This adds to the | footprint of the running kernel but allows configuration to be retrieved | using "cat /proc/ikconfig/config". | | 2. Include configuration in kernel image file but not in the running | kernel. This adds to the kernel image file size but not the footprint of | running kernel. Configuration can be extracted from kernel image file | using scripts/extract-ikconfig. This script is in principle the same as | what Randy had written originally. I have made it little more robust and | structured it to accomodate more than just x86 architecture. | | 3. Not include kernel configuration in the running kernel or kernel | image file.
I would suggest that making (2) available as a module would be useful, assuming that at some point 2.5 will have working module capability again. With a bit of tweaking you could make the kernel loader pull it in if a process accessed the file, I guess. -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |