I looked in the release notes, but maybe I missed it. Is it not possible to build a kernel from CentOS 4.3 (using 2.6.9-34.0.1) with HIGHMEM support turned off? This is for a machine with 512mb.
When I try to build the kernel, I get _etext undefined symbol on line 100 of pageattr.c in arch/i386/mm.
Linus
On 6/28/06, Linus Hicks lihicks@gpi.com wrote:
I looked in the release notes, but maybe I missed it. Is it not possible to build a kernel from CentOS 4.3 (using 2.6.9-34.0.1) with HIGHMEM support turned off? This is for a machine with 512mb.
When I try to build the kernel, I get _etext undefined symbol on line 100 of pageattr.c in arch/i386/mm.
What kernel are you trying to build, and how are you trying to build it?
I should probably also throw in a 'why are you building your own kernel?' too, but we'll save that for a little later.
Jim Perrin wrote:
On 6/28/06, Linus Hicks lihicks@gpi.com wrote:
I looked in the release notes, but maybe I missed it. Is it not possible to build a kernel from CentOS 4.3 (using 2.6.9-34.0.1) with HIGHMEM support turned off? This is for a machine with 512mb.
When I try to build the kernel, I get _etext undefined symbol on line 100 of pageattr.c in arch/i386/mm.
What kernel are you trying to build, and how are you trying to build it?
I should probably also throw in a 'why are you building your own kernel?' too, but we'll save that for a little later.
Everything is from CentOS including the kernel sources. I downloaded the SRPM and modified the spec file to %define buildsource 1 then did an rpmbuild. Then I installed the kernel-sourcecode rpm that it generated. So then I could run the kernel config from /usr/src/linux-<version> and then build a custom kernel.
Everything is from CentOS including the kernel sources. I downloaded the SRPM and modified the spec file to %define buildsource 1 then did an rpmbuild. Then I installed the kernel-sourcecode rpm that it generated. So then I could run the kernel config from /usr/src/linux-<version> and then build a custom kernel.
I think that's one of the hardest ways possible to do what you want, and it may very well not work.
1 Install kernel src.rpm 2 run rpmbbuild -bp kernel.spec to get kernel source tree. 3 copy $BUILDSOURCEDIR/linux-config-for-your-arch.config to $BUILDDIR/.config 4 run make menuconfig (or xconfig or however else you want to do it. ) save config 5 copy config back to where you got it from, with the original name. 6 run rpmbuild -bs kernel.spec 7. rpmbuild --rebuild resulting kernel-src.rpm with --target=arch (i686, x86_64) 8 install resulting kernel rpms.
rough steps, but that should be pretty much what you need to do.
Jim Perrin wrote:
Everything is from CentOS including the kernel sources. I downloaded the SRPM and modified the spec file to %define buildsource 1 then did an rpmbuild. Then I installed the kernel-sourcecode rpm that it generated. So then I could run the kernel config from /usr/src/linux-<version> and then build a custom kernel.
I think that's one of the hardest ways possible to do what you want, and it may very well not work.
1 Install kernel src.rpm 2 run rpmbbuild -bp kernel.spec to get kernel source tree. 3 copy $BUILDSOURCEDIR/linux-config-for-your-arch.config to $BUILDDIR/.config 4 run make menuconfig (or xconfig or however else you want to do it. ) save config 5 copy config back to where you got it from, with the original name. 6 run rpmbuild -bs kernel.spec 7. rpmbuild --rebuild resulting kernel-src.rpm with --target=arch (i686, x86_64) 8 install resulting kernel rpms.
rough steps, but that should be pretty much what you need to do.
Thanks for the instructions, although I don't know why that's the information you are posting. The procedure I'm using works fine. If I turn on support for HIGHMEM the build works. If HIGHMEM is off, I get the aforementioned error. Do you have information for me on that issue?
Thanks for the instructions, although I don't know why that's the information you are posting. The procedure I'm using works fine. If I turn on support for HIGHMEM the build works. If HIGHMEM is off, I get the aforementioned error. Do you have information for me on that issue?
That's an upstream issue.
Jim Perrin wrote:
Thanks for the instructions, although I don't know why that's the information you are posting. The procedure I'm using works fine. If I turn on support for HIGHMEM the build works. If HIGHMEM is off, I get the aforementioned error. Do you have information for me on that issue?
That's an upstream issue.
If I wanted to report a bug, would I have to report it upstream?
If I wanted to report a bug, would I have to report it upstream?
Yes, but I don't know how much support it would get, as they don't support custom kernels. Unless your bug impacts something else they need to patch, I'm not sure they'd care.
Jim Perrin wrote:
If I wanted to report a bug, would I have to report it upstream?
Yes, but I don't know how much support it would get, as they don't support custom kernels. Unless your bug impacts something else they need to patch, I'm not sure they'd care.
Thanks for your help.
On Jun 28, 2006, at 9:29 AM, Linus Hicks wrote:
I looked in the release notes, but maybe I missed it. Is it not possible to build a kernel from CentOS 4.3 (using 2.6.9-34.0.1) with HIGHMEM support turned off? This is for a machine with 512mb.
When I try to build the kernel, I get _etext undefined symbol on line 100 of pageattr.c in arch/i386/mm.
Linus _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I've seen this myself with RHEL 4.
My speculation is that they are selling an Enterprise level OS, and they don't test builds for too small of computers. In my case, I was trying to build a SMALL OS for boot floppies, and I noticed it was broken. Took awhile to track it down to the right option.
But when some of the computers you have to support with it can have as little as 32MB, and the best computer has 1GB, it doesn't seem like you need HIGHMEM :)
On Wednesday 28 June 2006 10:29 am, Linus Hicks wrote:
I looked in the release notes, but maybe I missed it. Is it not possible to build a kernel from CentOS 4.3 (using 2.6.9-34.0.1) with HIGHMEM support turned off? This is for a machine with 512mb.
Steve Snyder wrote:
On Wednesday 28 June 2006 10:29 am, Linus Hicks wrote:
I looked in the release notes, but maybe I missed it. Is it not possible to build a kernel from CentOS 4.3 (using 2.6.9-34.0.1) with HIGHMEM support turned off? This is for a machine with 512mb.
Cool! Thanks.
Steve Snyder wrote:
On Wednesday 28 June 2006 10:29 am, Linus Hicks wrote:
I looked in the release notes, but maybe I missed it. Is it not possible to build a kernel from CentOS 4.3 (using 2.6.9-34.0.1) with HIGHMEM support turned off? This is for a machine with 512mb.
How nice to read that mixing code and declaration has been anathemized, I've never liked that practice. Some people see it as modular but to me it just looks sloppy,