From patchwork Fri Oct 20 12:16:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 116486 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1620373qgn; Fri, 20 Oct 2017 05:16:22 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RfWI36jtj8FsLQ7iVH2VH1qWAVlY+ysAfJWSS58PhdSmCZslo0EXSYFqnyzauPcl2hG6oN X-Received: by 10.80.212.8 with SMTP id t8mr225050edh.89.1508501782192; Fri, 20 Oct 2017 05:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508501782; cv=none; d=google.com; s=arc-20160816; b=coGqP6cW6bnN/aZxlvr3QWsVHnarWXL6DTCEwaMwqDuoPv6CTd24Gl1jltVGoMoyEP VZxCKxL1sgOYNt+OVc2XfEnCoWVKC/QrAvDKwMASxIIfTdAkGh9pdqD5VbUoqOudS8cN NXPftYTfHn0XtQrdbQe42cMOZOKIcfYC4xTHxzK4rPJF/bHwVNzsVrWvGPJeIoXcY92S 11pjkBgt7xtG0WwgN96bTk8NtnVrJZ15OODKW+pNPd/3/97643X8YMHhBq17vk+HypOp vCyd2mdf+EPFgShsdj5j3ZZfKlhbcyEyu5eAtsqQAoabcsDWoKDMqw74qb7UvcAvpKlq iyKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :arc-authentication-results; bh=Cn1+pJUH+7TRzPufe1Mq5NFpO6FEppJ+2gisxuhQaZM=; b=EKFHvh4R0kRi177aX6+qPCCVbNxgWlnCGpWHzMAw+jebqPTM+TDwuMZhEKZkw1wIPw OcvRJiEeQrNA28ZL8kkbh3b/W/5YmgWA1TpLuEe6fJLvJMMcv7X82VlCVy5WWM1TLbPr BG1zQe/3Q/RjrD0Vmhwn3rv7jdZ4QAT3B2/M9C3kSa2DZ1m557wDjMUz0of/33K6nHSV bRCnIU9svXe6ymMcj25EZuuyN7vCN6WveVU1VWhPFGkJD8GGXG/PGml9LYzgTwRquakw HTIEq56C2FhTG11uNtNDmOXV4O37Lzg+++XGT9/pGwU9eHp4+ji06Gddj1/mhDe0Fld0 ipAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id r7si753977edc.232.2017.10.20.05.16.21; Fri, 20 Oct 2017 05:16:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 9CC65C21FAB; Fri, 20 Oct 2017 12:16:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4CFA5C21F96; Fri, 20 Oct 2017 12:16:18 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 69DD1C21F96; Fri, 20 Oct 2017 12:16:17 +0000 (UTC) Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by lists.denx.de (Postfix) with ESMTP id 18356C21F93 for ; Fri, 20 Oct 2017 12:16:17 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 7497720438; Fri, 20 Oct 2017 14:16:15 +0200 (CEST) Received: from localhost (unknown [185.94.189.190]) by mail.free-electrons.com (Postfix) with ESMTPSA id 0B5A62038C; Fri, 20 Oct 2017 14:16:14 +0200 (CEST) From: Maxime Ripard To: Tom Rini Date: Fri, 20 Oct 2017 14:16:12 +0200 Message-Id: <20171020121614.9863-1-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.14.2 Cc: Andre Przywara , agraf@suse.de, u-boot@lists.denx.de, Maxime Ripard , Jagan Teki Subject: [U-Boot] [PATCH v3 0/2] sunxi: Fix boot of Cubietruk and al. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Hi Most featureful boards, such as the Cubietruck, have been broken since the release 2017.09 (the two variants of the Olinuxino-Lime2 and the cubietruck at least, possibly more since then). This is due to a size increase of the binary that will trip us across the size we've been using in our default configuration since forever, and widely distributed through the u-boot-sunxi-with-spl.bin file. We would have several ways to work around it. The first one would be to just increase the offset of the environment. However, since it would break all the environments of our users and possibly the custom partition scheme that they would have created, it doesn't really seem like a smart move. The second one would be to move the environment to a filesystem file, which would also break all the existing users. This can be envisionned as a long term fix though. Another one would be to start trimming down a bit our enabled options in order to reduce the size and to gain some extra space for users customisations. However, this will always result in pointless and endless discussions, so let's move away from that. The final one that has been implemented would be to just build U-Boot using thumb2 to push back the issue until hopefully I'm no longer maintainer or the switch to the env filesystem would have been done. I've also added a patch to make sure that the compilation breaks and that we can notice. Maxime Changes from v2: - Reorder the patches - Changed the wording of U-boot to U-Boot - Changed the hardcoded value for CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR Maxime Ripard (2): sunxi: Enable THUMB build for the U-Boot binary sunxi: binman: Add U-Boot binary size check arch/arm/Kconfig | 1 + arch/arm/dts/sunxi-u-boot.dtsi | 12 ++++++++++++ 2 files changed, 13 insertions(+)