From patchwork Thu Sep 3 11:14:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: TheWerthFam X-Patchwork-Id: 513994 X-Patchwork-Delegate: wigyori@uid0.hu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E574A1401DA for ; Thu, 3 Sep 2015 21:15:09 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=aiSKCC4V; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2DA8E28C001; Thu, 3 Sep 2015 13:14:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 209E528BC11 for ; Thu, 3 Sep 2015 13:13:58 +0200 (CEST) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-yk0-f174.google.com (mail-yk0-f174.google.com [209.85.160.174]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 3 Sep 2015 13:13:57 +0200 (CEST) Received: by ykei199 with SMTP id i199so39368549yke.0 for ; Thu, 03 Sep 2015 04:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=dJPcHU7ETMWYehfYOEdBe9OG7+/uHgxsQh/MLimVcRM=; b=aiSKCC4V/f0mccvuBVDjI6QFavMjH/srN6JLBLP9e3coRNk+pY9YO/7k7EcGVnAutF bCr2kVtBVOLDd0EJQdHIqklbsuhJSonbOjflxSljMW0ZLbGz8oGmskitRAQ72k/yFREN fvE2l8OD7LyADMnVV+wXlxVe/5AsBL37pTPXWa8PJVCQAeox3rN0hKkzuBpbaw7TCjB2 HlDtMp3lwRXFTGYYhbMTV0JeaYDJo7tMgOygpjxM7mLLSo76CLGzPP0h52o+aZeyWLid S+O3O5NwGC2l50Vzb9fZofqDebTeeMLRxy1uQ+7XaMooost9fkFxSP0mdMqLjP4B4J0c MKCw== MIME-Version: 1.0 X-Received: by 10.170.196.201 with SMTP id n192mr9267319yke.16.1441278895877; Thu, 03 Sep 2015 04:14:55 -0700 (PDT) Received: by 10.37.100.193 with HTTP; Thu, 3 Sep 2015 04:14:55 -0700 (PDT) Date: Thu, 3 Sep 2015 07:14:55 -0400 Message-ID: From: Derek Werthmuller To: openwrt-devel Subject: [OpenWrt-Devel] [DRAFT PATCH] Uboot patch -Sunxi BPI-R1 not building a bootable image X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Over the past week since the kernel version moved to the 4.x series, new built images are not bootable. With the serial console connected it seems that its not completing Uboot properly. This is the only output. U-Boot SPL 2015.07 (Sep 02 2015 - 20:52:15) DRAM: 1024 MiB CPU: 912000000Hz, AXI/AHB/APB: 3/2/2 The following ticket seems to have a patch for it. https://dev.openwrt.org/ticket/20387 I've created a diff patch from this patch to patch the mmc.c in the uboot code, but I don't know where in the patch tree the uboot patches go, so I can't test the patch. Following is the patch. I have not tested this patch. Cheers Derek --- ./a/drivers/mmc/mmc.c 2015-09-02 20:48:01.877739304 -0400 +++ ./b/drivers/mmc/mmc.c 2015-09-02 20:51:33.131214983 -0400 @@ -920,8 +920,10 @@ err = sd_switch(mmc, SD_SWITCH_CHECK, 0, 1, (u8 *)switch_status); - if (err) - return err; + if (err) { + printf("unable to switch SD_HIGHSPEED: %d\n", err); + return 0; + } /* The high-speed function is busy. Try again */ if (!(__be32_to_cpu(switch_status[7]) & SD_HIGHSPEED_BUSY))