Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 526F5E00DEF; Mon, 4 Jul 2016 13:10:59 -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.216.194 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-qt0-f194.google.com (mail-qt0-f194.google.com [209.85.216.194]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 30E29E00DC5 for ; Mon, 4 Jul 2016 13:10:48 -0700 (PDT) Received: by mail-qt0-f194.google.com with SMTP id z36so12194932qtb.3 for ; Mon, 04 Jul 2016 13:10:48 -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=D4l1xnWy5v1CfQwwreSOtMxQv5XWzSZkU3/SEDaAVejnkjCq7hj6she4G1v/OESdfQ 2QvB5+N/Yq32N0pQ3ybWHdvl2PnSzCsAfTwutbetxjJWbQ/8lIcqH8aLLpjQ1SJWePen J7Y9ibOcvDV15aKGgMmVqpkbyKuJwBXchcLUBl2O6SwVpEgIwLW9q5yhsWWl2QvFJ5wz Rpsom7/6lIuezfCShCOELyVMAWJvpRtiEkZfeGox9lvPkWTbIP1rahGbBelv2GAnDDrJ G1mJRKyW6jYBUGxsJAH5X1IGfAc2q1/UvK1ykhF7W/eki0tXx+jr3PRzEKw15PWC01w6 kXgQ== X-Gm-Message-State: ALyK8tJ9XKzb8Z9dlIu85Cy/qTDeWP5FAuhXLVHqaNbaziTXEU6HU2MtxMHQz9YEkpw47g== X-Received: by 10.200.36.13 with SMTP id c13mr21431984qtc.88.1467663048458; Mon, 04 Jul 2016 13:10:48 -0700 (PDT) Received: from localhost ([179.105.243.72]) by smtp.gmail.com with ESMTPSA id r63sm779372qkf.14.2016.07.04.13.10.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 13:10:47 -0700 (PDT) Received: by localhost (sSMTP sendmail emulation); Mon, 04 Jul 2016 17:10:41 -0300 From: Otavio Salvador To: meta-freescale Mailing List Date: Mon, 4 Jul 2016 17:07:19 -0300 Message-Id: <20160704200719.2861-18-otavio@ossystems.com.br> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160704200719.2861-1-otavio@ossystems.com.br> References: <20160704200719.2861-1-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [meta-fsl-arm krogoth PATCH 17/17] 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 20:10:59 -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