Re: [uml-devel] [PATCH 1/8] um: Create defconfigs for i386 and x86_64

2013-09-26 Thread Richard Weinberger
Am 26.09.2013 12:20, schrieb Ramkumar Ramachandra: > Richard Weinberger wrote: >> This patch is based on: https://lkml.org/lkml/2013/7/4/396 >> >> Cc: Ramkumar Ramachandra >> Signed-off-by: Richard Weinberger >> --- >> arch/um/configs/i386_defconfig | 954 >> ++

Re: [uml-devel] [PATCH 1/8] um: Create defconfigs for i386 and x86_64

2013-09-26 Thread Richard Weinberger
Am 26.09.2013 13:57, schrieb Ramkumar Ramachandra: > Richard Weinberger wrote: >>> $ file linux >>> linux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), >>> dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not >>> stripped >>> $ ./linux ubd0=busybox-rootfs >>> [...] >>> Ker

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Ramkumar Ramachandra
Richard Weinberger wrote: > So, what exactly is broken in upstream? > make defconfig works as it always did. Auto-detection of SUBARCH, which can be done with a simple call to uname -m (the 90% case). The second patch I submitted prevented spawning xterms unnecessarily, which we discussed was a go

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Richard Weinberger
Am 26.09.2013 13:43, schrieb Ramkumar Ramachandra: > Richard Weinberger wrote: >>> Auto-detection of SUBARCH, which can be done with a simple call to >>> uname -m (the 90% case). The second patch I submitted prevented >>> spawning xterms unnecessarily, which we discussed was a good move. >> >> Cove

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Richard Weinberger
Am 26.09.2013 12:40, schrieb Ramkumar Ramachandra: > Richard Weinberger wrote: > Forget all that. What matters is that upstream is still broken, and > users are suffering. Despite a reasonable fix being submitted in July. So, what exactly is broken in upstream? make defconfig works as it always di

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Ramkumar Ramachandra
Richard Weinberger wrote: > I told you already that "make defconfig ARCH=um SUBARCH=x86" will spuriously > create a x86_64 config on x86_64. > This breaks existing setups. I'll fix this and resubmit soon. Thanks. -- Octo

Re: [uml-devel] [PATCH 1/8] um: Create defconfigs for i386 and x86_64

2013-09-26 Thread Ramkumar Ramachandra
Richard Weinberger wrote: >> $ file linux >> linux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), >> dynamically linked (uses shared libs), for GNU/Linux 2.6.32, not >> stripped >> $ ./linux ubd0=busybox-rootfs >> [...] >> Kernel panic - not syncing: No init found. Try passing init= o

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Ramkumar Ramachandra
Richard Weinberger wrote: >> Auto-detection of SUBARCH, which can be done with a simple call to >> uname -m (the 90% case). The second patch I submitted prevented >> spawning xterms unnecessarily, which we discussed was a good move. > > Covering only 90% of all cases is not enough. > We must not br

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Ramkumar Ramachandra
Ramkumar Ramachandra wrote: > Richard Weinberger wrote: >> I told you already that "make defconfig ARCH=um SUBARCH=x86" will spuriously >> create a x86_64 config on x86_64. >> This breaks existing setups. > > I'll fix this and resubmit soon. Wait a minute. You're now arguing about whether the gene

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Richard Weinberger
Correct. Users expect Form SUBARCH=x86 a 32bit kernel. Geert Uytterhoeven schrieb: >On Thu, Sep 26, 2013 at 3:13 PM, Ramkumar Ramachandra > wrote: >> Ramkumar Ramachandra wrote: >>> Richard Weinberger wrote: I told you already that "make defconfig ARCH=um SUBARCH=x86" will >spuriously >>>

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Geert Uytterhoeven
On Thu, Sep 26, 2013 at 3:13 PM, Ramkumar Ramachandra wrote: > Ramkumar Ramachandra wrote: >> Richard Weinberger wrote: >>> I told you already that "make defconfig ARCH=um SUBARCH=x86" will spuriously >>> create a x86_64 config on x86_64. >>> This breaks existing setups. >> >> I'll fix this and re

Re: [uml-devel] [PATCH 1/8] um: Create defconfigs for i386 and x86_64

2013-09-26 Thread Ramkumar Ramachandra
Richard Weinberger wrote: > This patch is based on: https://lkml.org/lkml/2013/7/4/396 > > Cc: Ramkumar Ramachandra > Signed-off-by: Richard Weinberger > --- > arch/um/configs/i386_defconfig | 954 > +++ > arch/um/configs/x86_64_defconfig | 943

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Richard Weinberger
Am 26.09.2013 12:53, schrieb Ramkumar Ramachandra: > Richard Weinberger wrote: >> So, what exactly is broken in upstream? >> make defconfig works as it always did. > > Auto-detection of SUBARCH, which can be done with a simple call to > uname -m (the 90% case). The second patch I submitted prevent

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Ramkumar Ramachandra
Geert Uytterhoeven wrote: > Sorry for chiming in, but... what about cross compiling? > SUBARCH=x86 should give you a 32-bit ia32 kernel, right? User-Mode Linux only supports two host architectures (called $SUBARCH) at the moment: i386 and x86_64. If you leave out the $SUBARCH on either an i386 or

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Ramkumar Ramachandra
Richard Weinberger wrote: > This patch is based on: https://lkml.org/lkml/2013/7/4/396 This is the original patch I sent across in July. > diff --git a/arch/um/Makefile b/arch/um/Makefile > index 133f7de..5bc7892 100644 > --- a/arch/um/Makefile > +++ b/arch/um/Makefile > @@ -8,6 +8,8 @@ > > ARCH

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Richard Weinberger
Am 26.09.2013 15:26, schrieb Geert Uytterhoeven: > On Thu, Sep 26, 2013 at 3:13 PM, Ramkumar Ramachandra > wrote: >> Ramkumar Ramachandra wrote: >>> Richard Weinberger wrote: I told you already that "make defconfig ARCH=um SUBARCH=x86" will spuriously create a x86_64 config on x86_

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Richard Weinberger
Am 26.09.2013 16:36, schrieb Ramkumar Ramachandra: > Richard Weinberger wrote: >>> Sorry for chiming in, but... what about cross compiling? >>> SUBARCH=x86 should give you a 32-bit ia32 kernel, right? >> >> Correct. >> Users expect from SUBARCH=x86 a i386 32bit UML kernel. > > This is an insane ex

Re: [uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-09-26 Thread Ramkumar Ramachandra
Richard Weinberger wrote: >> Sorry for chiming in, but... what about cross compiling? >> SUBARCH=x86 should give you a 32-bit ia32 kernel, right? > > Correct. > Users expect from SUBARCH=x86 a i386 32bit UML kernel. This is an insane expectation. This is kernel convention (it has nothing to do wit

[uml-devel] [PATCH 0/2] More plesant User-Mode Linux build

2013-09-26 Thread Ramkumar Ramachandra
Hi, The first patch does the meat of the work of getting rid of the bloated i386-specific defconfig and replacing it with two tiny ones, and updating the Makefile/ Kconfig. SUBARCH is now auto-detected correctly, and can be overridden on the command-line. I've tested both the x86_64 kernel with an

[uml-devel] [PATCH 2/2] um/vdso: add .gitignore for a couple of targets

2013-09-26 Thread Ramkumar Ramachandra
Cc: Richard Weinberger Signed-off-by: Ramkumar Ramachandra --- arch/x86/um/vdso/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 arch/x86/um/vdso/.gitignore diff --git a/arch/x86/um/vdso/.gitignore b/arch/x86/um/vdso/.gitignore new file mode 100644 index 000..9cac6d0 -

[uml-devel] [PATCH 1/2] arch/um: make it work with defconfig and x86_64

2013-09-26 Thread Ramkumar Ramachandra
arch/um/defconfig only lists one default configuration, and that applies only to the i386 architecture. Replace it with two minimal configuration files generated using `make savedefconfig`: i386_defconfig and x86_64_defconfig The build scripts now require two updates: 1. um's Kconfig (arch/x8

Re: [uml-devel] [PATCH 1/2] arch/um: make it work with defconfig and x86_64

2013-09-26 Thread Richard Weinberger
Am 27.09.2013 06:14, schrieb Ramkumar Ramachandra: > arch/um/defconfig only lists one default configuration, and that applies > only to the i386 architecture. Replace it with two minimal > configuration files generated using `make savedefconfig`: > > i386_defconfig and x86_64_defconfig > > The

Re: [uml-devel] [PATCH 2/2] um/vdso: add .gitignore for a couple of targets

2013-09-26 Thread Richard Weinberger
Am 27.09.2013 06:14, schrieb Ramkumar Ramachandra: > Cc: Richard Weinberger > Signed-off-by: Ramkumar Ramachandra > --- > arch/x86/um/vdso/.gitignore | 2 ++ > 1 file changed, 2 insertions(+) > create mode 100644 arch/x86/um/vdso/.gitignore > > diff --git a/arch/x86/um/vdso/.gitignore b/arch/x