[OpenWrt-Devel] [DRAFT PATCH] Uboot patch -Sunxi BPI-R1 not building a bootable image

Derek Werthmuller thewerthfam at gmail.com
Thu Sep 3 07:14:55 EDT 2015

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.

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.

--- ./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))

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150903/f986bd02/attachment.htm>
-------------- next part --------------
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list