From patchwork Wed Apr 17 10:02:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell King - ARM Linux X-Patchwork-Id: 2452851 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 055A8DF23A for ; Wed, 17 Apr 2013 10:03:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758037Ab3DQKDP (ORCPT ); Wed, 17 Apr 2013 06:03:15 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:60282 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758011Ab3DQKDO (ORCPT ); Wed, 17 Apr 2013 06:03:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=arm.linux.org.uk; s=caramon; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=/9/5rWyhmaA8spPj2IVZ+uYLqNS2zxTf3MMCEVQz7QA=; b=JvSY0T55Nhb5yJ34FDDR/9rQyFLF6yda7QQuk3gy8w1plFRCO74ZLvleIlo0GzkUshLzznxM+N+zvGRD66BQxkiOPErFm/rbbvABS0ft2JZk6RMndwogUbDkITnWFHZonms+mYhO/F7I7TR+qY2HvZl6VGCeIF7tVCHEhPWqwqk=; Received: from n2100.arm.linux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:55086) by caramon.arm.linux.org.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1USPCP-0003dH-9k; Wed, 17 Apr 2013 11:02:45 +0100 Received: from linux by n2100.arm.linux.org.uk with local (Exim 4.76) (envelope-from ) id 1USPCO-0005kO-4j; Wed, 17 Apr 2013 11:02:44 +0100 Date: Wed, 17 Apr 2013 11:02:43 +0100 From: Russell King - ARM Linux To: Chen Gang Cc: Will Deacon , "dhowells@redhat.com" , "plagnioj@jcrosoft.com" , "kgene.kim@samsung.com" , "linux-samsung-soc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [Suggestion] ARM:S5pv210: compiling issue for s5pv210 by using randconfig Message-ID: <20130417100243.GV14496@n2100.arm.linux.org.uk> References: <514FB202.3040807@asianux.com> <515BFA8D.2000204@asianux.com> <20130403101018.GE11040@mudshark.cambridge.arm.com> <515C047A.9010906@asianux.com> <516E6A8E.3000001@asianux.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <516E6A8E.3000001@asianux.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org On Wed, Apr 17, 2013 at 05:25:34PM +0800, Chen Gang wrote: > CONFIG_CPU_ARM7TDMI=y > CONFIG_CPU_ARM9TDMI=y > CONFIG_CPU_V7=y > CONFIG_CPU_32v4T=y > CONFIG_CPU_32v6K=y > CONFIG_CPU_32v7=y This is an invalid configuration. A single kernel can not support ARMv7 and ARMv4T simultaneously. The problem is caused by MMU=n, which exposes the CPU_ARM7TDMI and CPU_ARM9TDMI options, which in turn select 32v4T. This is in turn caused by the incomplete integration of uclinux. I think the only thing which can be done is to remove the ARM9TDMI support code, which doesn't seem to be used by anything, and adjust ARM7TDMI so that it isn't visible, but is selected by ARCH_AT91X40 (which seems to be its only user.) Here's the slightly smaller version of that: --- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-at91/Kconfig.non_dt b/arch/arm/mach-at91/Kconfig.non_dt index 6c24985..dc972e1 100644 --- a/arch/arm/mach-at91/Kconfig.non_dt +++ b/arch/arm/mach-at91/Kconfig.non_dt @@ -47,6 +47,7 @@ config ARCH_AT91X40 select ARCH_USES_GETTIMEOFFSET select MULTI_IRQ_HANDLER select SPARSE_IRQ + select CPU_ARM7TDMI endchoice diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index cb812a1..deb6c6a 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -6,7 +6,7 @@ comment "Processor Type" # ARM7TDMI config CPU_ARM7TDMI - bool "Support ARM7TDMI processor" + bool depends on !MMU select CPU_32v4T select CPU_ABRT_LV4T @@ -56,7 +56,7 @@ config CPU_ARM740T # ARM9TDMI config CPU_ARM9TDMI - bool "Support ARM9TDMI processor" + bool depends on !MMU select CPU_32v4T select CPU_ABRT_NOMMU