Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BB5D6E00D5E; Mon, 4 Jul 2016 12:25:41 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.196 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B12B3E00D4D for ; Mon, 4 Jul 2016 12:25:32 -0700 (PDT) Received: by mail-qk0-f196.google.com with SMTP id j2so33999741qkf.1 for ; Mon, 04 Jul 2016 12:25:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:organization; bh=UAC6cQeK5DfeUpyR5P13VnbNAcpRz9jsPhbb0ob57b8=; b=E6U5+bWZZfMwvxWANmhspCj2kvuZa+YjYdUxj0FWiVi13uPlhBY8KcqqFhxfpCKC8K 5p7xMSp+ULo3dLOSpsKmZOROrBdczoMdPSlkfBTw9+fawmBdufqSWdMVWB7EgenLob/9 X8QeipeukS3Mw9uWZ1TUDf3qMro0XDTzbtQ2+CoJAV+ydq3g1lnDZN6hT4FQgzdO0JMD RM/7Ax5Z8yRKgW2MbPAhlddAVXk5p5aSLwdeKH1+XC39p6wUBy7jg4eKP3djVAzRIaBB xecn3CL8PtaTrUCrZmtLXmQN5z74yKlgnrNRbamBUY3nMvVm0O110voxgQQQrjihK8ed tqjA== X-Gm-Message-State: ALyK8tI2QFiRP4yIhgts+Yqne++dB7Q4WxolTxNqqGhY50VxzFbgSDYLWXqx+lQMIwT6ow== X-Received: by 10.55.6.148 with SMTP id 142mr17425457qkg.206.1467660331455; Mon, 04 Jul 2016 12:25:31 -0700 (PDT) Received: from localhost ([179.105.243.72]) by smtp.gmail.com with ESMTPSA id h32sm713783qth.39.2016.07.04.12.25.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 12:25:30 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Mon, 04 Jul 2016 16:25:13 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Mon, 4 Jul 2016 16:23:12 -0300 Message-Id: <20160704192312.31372-7-otavio@ossystems.com.br> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160704192312.31372-1-otavio@ossystems.com.br> References: <20160704192312.31372-1-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [meta-fsl-arm PATCH 7/7] imx7dsabresd: Fix the boot of a NXP kernel X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 19:25:41 -0000 Booting a NXP kernel with mainline U-boot leads to the following kernel crash: ,---- | caam: probe of 30900000.caam failed with error -11 | Unable to handle kernel NULL pointer dereference at virtual address 00000004 | pgd = 80004000 | [00000004] *pgd=00000000 | Internal error: Oops: 805 [#1] PREEMPT SMP ARM `---- This happens because NXP kernel expects MX7 to boot in secure mode, so introduce mx7dsabresd_secure_defconfig that selects CONFIG_MX7_SEC and allows booting a NXP provided kernel successfully. Signed-off-by: Otavio Salvador --- conf/machine/imx7dsabresd.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/machine/imx7dsabresd.conf b/conf/machine/imx7dsabresd.conf index 1d05d26..b71bd4a 100644 --- a/conf/machine/imx7dsabresd.conf +++ b/conf/machine/imx7dsabresd.conf @@ -18,7 +18,7 @@ KERNEL_DEVICETREE = "imx7d-sdb.dtb imx7d-sdb-epdc.dtb imx7d-sdb-gpmi-weim.dtb \ imx7d-sdb-reva-touch.dtb imx7d-sdb-reva-wm8960.dtb" UBOOT_CONFIG ??= "sd" -UBOOT_CONFIG[sd] = "mx7dsabresd_config,sdcard" +UBOOT_CONFIG[sd] = "mx7dsabresd_secure_config,sdcard" UBOOT_CONFIG[qspi1] = "mx7dsabresd_qspi1_config" UBOOT_CONFIG[nand] = "mx7dsabresd_nand_config,ubifs" UBOOT_CONFIG[epdc] = "mx7dsabresd_epdc_config" -- 2.9.0