From patchwork Tue Apr 19 18:26:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 66138 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp2013670qge; Tue, 19 Apr 2016 11:26:50 -0700 (PDT) X-Received: by 10.194.87.103 with SMTP id w7mr4567903wjz.13.1461090410292; Tue, 19 Apr 2016 11:26:50 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id m194si5551108wmg.82.2016.04.19.11.26.49; Tue, 19 Apr 2016 11:26:50 -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 835B8A7651; Tue, 19 Apr 2016 20:26:49 +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 EYvaHXvZu74c; Tue, 19 Apr 2016 20:26:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 06A6AA75D5; Tue, 19 Apr 2016 20:26:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DB7E6A75D5 for ; Tue, 19 Apr 2016 20:26:45 +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 x7GxBBY_0Tef for ; Tue, 19 Apr 2016 20:26:45 +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-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by theia.denx.de (Postfix) with ESMTPS id 95B76A7498 for ; Tue, 19 Apr 2016 20:26:41 +0200 (CEST) Received: by mail-lf0-f50.google.com with SMTP id e190so26205032lfe.0 for ; Tue, 19 Apr 2016 11:26:41 -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=sKE4twZhzgFaAnjh3HojB1tOVYqfWtztb8NXMRfQpmQ=; b=D5W+YRVaPZnudbo8x6kw7zMLKfH8rk609+dw2VQX+5k6zc3UI5xXkcCAXvHT3mh4UW IS0GGKYzTL7f210SS48eW2pKbwWFEaafgU4kug+c3AHj62ZCRF5ZfAY4TRk9QQnOc1k5 45Lil7UkfuWHja6Y8PLUdv3X9QIyZ6N21sIys= 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=sKE4twZhzgFaAnjh3HojB1tOVYqfWtztb8NXMRfQpmQ=; b=FP6blchSkNxyb2RE1bU/8iNigCP21Vh3+ova+KjpaBr+b6YdUqlgFIF5xYNP/uODWp Hi+OBY+3LF1qftjc83uhcalQ2wOyt9Lz7kkhgYWdPwJDFF1xY6M79h3lJYl3gIneFuVq gW4G0jh/QOKxxgA8uCAqSSCG6CSRX9tij6RSu9R++cpmLntJXg2EUSiFx/t6a42NnItf tuszopvQAjZY4okIADIORJ3z/rHsIU6n5+aCz6Sm/RG+LAUseQfASd51+b7VG62f8ywW k7C5u45Zpq8qNllW+Gcwa35rNIhcCi/k/IjUlb5uic/9HQKuOjkFMfnCFDM8/zaPH5FK 9PEA== X-Gm-Message-State: AOPr4FXrr9pfiKNN9IIimW9t54c+DzBxXpKxoMxlQAQLaEDNIMMSJBImnqg7BFzBh6PUlv1y X-Received: by 10.112.141.197 with SMTP id rq5mr1840159lbb.5.1461090400693; Tue, 19 Apr 2016 11:26:40 -0700 (PDT) Received: from localhost ([195.238.92.132]) by smtp.gmail.com with ESMTPSA id u10sm307171lbu.13.2016.04.19.11.26.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Apr 2016 11:26:39 -0700 (PDT) From: Sam Protsenko To: u-boot@lists.denx.de Date: Tue, 19 Apr 2016 21:26:38 +0300 Message-Id: <1461090398-7918-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] 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 [1] http://omapzoom.org/?p=repo/u-boot.git;a=commit;h=742b82d0c0aa0ed8096c2225a00e9f350212efa9 Signed-off-by: Sam Protsenko --- include/configs/ti_armv7_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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..faab484 100644 --- a/include/configs/ti_armv7_common.h +++ b/include/configs/ti_armv7_common.h @@ -229,7 +229,7 @@ #endif /* RAW SD card / eMMC locations. */ -#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 0x300 /* address 0x60000 */ +#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 512 /* bootloader partition */ #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 0x200 /* 256 KB */ /* FAT sd card locations. */