From: Rob Landley <rob@landley.net>
To: Robert Schwebel <r.schwebel@pengutronix.de>
Cc: LKML <linux-kernel@vger.kernel.org>, jdike@karaya.com
Subject: Re: UML doesn't compile in 2.6.21
Date: Fri, 18 May 2007 03:25:57 -0400 [thread overview]
Message-ID: <200705180325.57693.rob@landley.net> (raw)
In-Reply-To: <20070517210538.GO12319@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 2176 bytes --]
On Thursday 17 May 2007 5:05 pm, Robert Schwebel wrote:
> Rob,
>
> On Wed, May 16, 2007 at 09:11:18PM -0400, Rob Landley wrote:
> > 2.6.21.1 built for me:
> >
> > tar xvjf linux-2.6.21.1.tar.bz2 &&
> > cd linux-2.6.21.1 &&
> > cat > mini.conf << EOF
> > CONFIG_MODE_SKAS=y
> > CONFIG_BINFMT_ELF=y
> > CONFIG_HOSTFS=y
> > CONFIG_SYSCTL=y
> > CONFIG_STDERR_CONSOLE=y
> > CONFIG_UNIX98_PTYS=y
> > CONFIG_BLK_DEV_LOOP=y
> > CONFIG_LBD=y
> > CONFIG_EXT2_FS=y
> > CONFIG_PROC_FS=y
> > EOF
> > make ARCH=um allnoconfig KCONFIG_ALLCONFIG=mini.conf &&
> > make ARCH=um &&
> > ./linux rootfstype=hostfs rw init=/bin/sh
> >
> > Does this not work for you?
>
> Yes, this compiles - with this warning, btw:
>
> WARNING: vmlinux - Section mismatch: reference to .init.text:lpj_setup
from .got after '_GLOBAL_OFFSET_TABLE_' (at offset 0x814de34)
> WARNING: vmlinux - Section mismatch: reference
to .init.text:set_reset_devices from .bss between 'stdout@@GLIBC_2.0' (at
offset 0x814de40) and 'stderr@@GLIBC_2.0'
>
> So it must be something with my configuration. I've tried to build a
> minimized configuration, see below.
You can either make a minimized configuration by hand, or you can use my
shrinker script (which is slow, but can be left running in a background
window). I've attached the script.
For ARCH=um, you'd cd to your linux source directory that has the .config you
want, and run it like:
ARCH=um ./miniconfig.sh mini.conf
And it should produce a file "mini.conf" when it's done. The progress
indicator shows two numbers (111/222) which are the number of lines it's
confirmed it needs to keep, and the total number of lines remaining in the
file. The one of the left counts up, the one on the right counts down, when
they match, it's done.
Doing a better version of this in C as a patch to the kconfig infrastructure
has been a todo item of mine for over two years. :(
> You can trigger the bug here by
> changing "Enable loadable module support.
UML supports modules? Huh. (Yeah, I suppose it does. I've never used it.)
So the bug is "module support doesn't compile in UML 2.6.21" then. Might want
to change the title and resubmit. :)
Rob
[-- Attachment #2: miniconfig.sh --]
[-- Type: application/x-shellscript, Size: 1425 bytes --]
next prev parent reply other threads:[~2007-05-18 7:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-16 22:49 UML doesn't compile in 2.6.21 Robert Schwebel
2007-05-17 1:11 ` Rob Landley
2007-05-17 21:05 ` Robert Schwebel
2007-05-17 21:12 ` Robert Schwebel
2007-05-18 7:25 ` Rob Landley [this message]
2007-05-21 21:03 ` Jeff Dike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200705180325.57693.rob@landley.net \
--to=rob@landley.net \
--cc=jdike@karaya.com \
--cc=linux-kernel@vger.kernel.org \
--cc=r.schwebel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox