From patchwork Tue Apr 19 18:51:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 66139 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2025345qge; Tue, 19 Apr 2016 11:51:53 -0700 (PDT) X-Received: by 10.194.171.66 with SMTP id as2mr4644569wjc.110.1461091913510; Tue, 19 Apr 2016 11:51:53 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id y9si1642555wje.220.2016.04.19.11.51.53; Tue, 19 Apr 2016 11:51:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EB6DCA764B; Tue, 19 Apr 2016 20:51:51 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yqAeKe2jpuMi; Tue, 19 Apr 2016 20:51:51 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3C57AA7550; Tue, 19 Apr 2016 20:51:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 99574A7550 for ; Tue, 19 Apr 2016 20:51:48 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ozSB-axgWKNP for ; Tue, 19 Apr 2016 20:51:48 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by theia.denx.de (Postfix) with ESMTPS id 5B13CA7498 for ; Tue, 19 Apr 2016 20:51:44 +0200 (CEST) Received: by mail-lf0-f52.google.com with SMTP id c126so26575288lfb.2 for ; Tue, 19 Apr 2016 11:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=XgUMI9c1EgjBeOUs7bFyZDm1MRvvtkrSmBrRheLR4FE=; b=jZl3BAfPYwsErfvAq5uFXqgjaEaBxtuO8v2u1b150KvEhtAwCJK0MsdTHkpnjobN8x EkzUEPamXcSYBaWwSK4iSyWtdiJNpRdRcCBoAKeCTyYCkXP3Fb4xyEx+2ULkx8aQ5dzH qTpTVXzDCa9vdAvi31f/7Wq3OVmqx+lefKeP4= 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; bh=XgUMI9c1EgjBeOUs7bFyZDm1MRvvtkrSmBrRheLR4FE=; b=eE9OWkirwe7/YsfPGafN1fCfTHgfrl1eGW56aFCAU67plLngf8/SzE/dp0DwyLe7G9 Yp8wimHYCyT9Cvisd+rTeD4opvaVe0IA7r/qdCZOmba1BynefAWVBPLesgtXA+oWmwDb t9n3Yn/ht89gEd4DW/wUYeDCKB61J+7Qypbu+1dw/FS7B2C5S6wud0XmYz1YKQmcrucR X4ZLcBpqpgXe5Z9rKDPM8Tc7Aj7VIyRqsLGYpNKUUi8vDdEyr8Od/PwdvrM9LJGArslP ikMf6Kw3TQSslDiwcdEyGxBo+2PyLVzJKljvffcQqIdNYOqAkOQQgiVW+0dg1hkzJ6BT xCbA== X-Gm-Message-State: AOPr4FVZ/O5/9ZF8KTVKz779RUGifS9C7T27lVkwMnojHx0ZeApJqE/WUG6BNvsoNoK4tCq3 X-Received: by 10.25.21.28 with SMTP id l28mr1590579lfi.165.1461091903823; Tue, 19 Apr 2016 11:51:43 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id u10sm323552lbu.13.2016.04.19.11.51.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Apr 2016 11:51:42 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Tue, 19 Apr 2016 21:51:42 +0300 Message-Id: <1461091902-25023-1-git-send-email-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.8.0.rc3 Cc: Praneeth Bajjuri , Tom Rini Subject: [U-Boot] [PATCH v2] ti_armv7_common.h: Fix U-Boot location on eMMC X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" According to common eMMC partition table for Android boot (see PARTS_DEFAULT definition in include/configs/dra7xx_evm.h), "bootloader" partition (where u-boot.img is stored) starts at 256 KiB. Which is equal to 512 sectors (as 1 MMC sector size is 512 bytes). This patch fixes CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR constant so that it points to correct address of "bootloader" partition and SPL is able to read, parse and run u-boot.img correctly. This change was originally done as part of patch [1] in omapzoom u-boot. Without this patch, SPL fails to parse U-Boot header with next error: mkimage signature not found - ih_magic = 4814325a While at it, also fix U-Boot partition size, which is 384 KiB (as stated in include/configs/dra7xx_evm.h). [1] http://omapzoom.org/?p=repo/u-boot.git;a=commit;h=742b82d0c0aa0ed8096c2225a00e9f350212efa9 Signed-off-by: Sam Protsenko --- Changes for v2: - Adjust also partition size to be 385 KiB include/configs/ti_armv7_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.8.0.rc3 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h index 787d04a..a1b24f6 100644 --- a/include/configs/ti_armv7_common.h +++ b/include/configs/ti_armv7_common.h @@ -229,8 +229,8 @@ #endif /* RAW SD card / eMMC locations. */ -#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ -#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 512 /* address 0x40000 */ +#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x300 /* 384 KB */ /* FAT sd card locations. */ #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1