From patchwork Tue Sep 5 22:50:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artturi Alm X-Patchwork-Id: 810315 X-Patchwork-Delegate: philipp.tomsich@theobroma-systems.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WT3uUTms"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xn24W58Fqz9sRm for ; Wed, 6 Sep 2017 08:50:50 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id B4279C21DB1; Tue, 5 Sep 2017 22:50:46 +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=2.8 required=5.0 tests=FREEMAIL_FROM, FSL_HELO_FAKE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B73FBC21D92; Tue, 5 Sep 2017 22:50:43 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 94E41C21DA6; Tue, 5 Sep 2017 22:50:42 +0000 (UTC) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com [209.85.215.52]) by lists.denx.de (Postfix) with ESMTPS id 34697C21C3F for ; Tue, 5 Sep 2017 22:50:42 +0000 (UTC) Received: by mail-lf0-f52.google.com with SMTP id l196so14009733lfl.1 for ; Tue, 05 Sep 2017 15:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=xKkuSzR4PghmAMGA16EjwDKD3EuYT6lKuKP0JYK8HCs=; b=WT3uUTmsBg5uhBc2/eDSRdFO0SyH+nGfq8i2G5ULAb4r8PHmL7HldPCWmVr/r1l9ss Dn+wt7WbgAcs7LodKzAr3P6j6TfV2eIAyDVyRwZRu43e2s8aYvI2sTF05Ho4ErimJ+8O KgTmk5mgVbmI2HUnONxEweYZV+6t0BLkEqFrDltJlRJadyLwFYcOyr1HYAd9Upr0N4cw 34SGfp4do2gv/ntd/+yq0Ltga0R8KvyPnOtMo8cblPOgNKKFwVHkvsjBSmfcqbrv7V5i VSlXvkArVni0Sa3aSRFq++clRuap9+BRZDu1BTcVf0Vok5Y20YhHD/8T0vCWkJJifV2c yy5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=xKkuSzR4PghmAMGA16EjwDKD3EuYT6lKuKP0JYK8HCs=; b=DVD42XZN4FrIn+X3wjqpZkl6RhnMgLPg8uVCRwwpMUp0SQiVt39eJhXPVovh1TE+sR vPXjwYDb4wjrMYKZq+jjwbKgFwJFF691Wy4IHWpIgg2Itxq6t29Szr4kZ1kpInnrJf0J AOyk1e3bgh5vdefi9OsabyVawKIhRL9pMgK8OmLji0XtWdiVFRymVw2DEG8bBeamNO8s 71wtB5AHhPKgu4tc7YecOku2TX7l5+cUAclQdi5F6Dx6QKM3QDABBvDcFmSFSEo5NGFX A/A5qzt4k/luz5j3ogmg9unXe+2ICZUtKSfV7sbNXAkhb55G4pFUi+XbX8a7G1eAUXQj GqQg== X-Gm-Message-State: AHPjjUiXAiXIFPa9eFTGekWlZgQUjLxOdnu9jz+y1Td8kRFmKWSKtUoS 9CXJ8fkjMScSDD+KBgfmlA== X-Google-Smtp-Source: ADKCNb7fnGxYdVZHJrLAPR/QqxkyHUG04pd80/AjkM0Ll58a4YKvzeqok/k40wFnRmEGv/g9ifvOQA== X-Received: by 10.46.85.74 with SMTP id j71mr191280ljb.94.1504651841139; Tue, 05 Sep 2017 15:50:41 -0700 (PDT) Received: from gmail.com (37-219-117-189.nat.bb.dnainternet.fi. [37.219.117.189]) by smtp.gmail.com with ESMTPSA id 26sm238617ljg.63.2017.09.05.15.50.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Sep 2017 15:50:40 -0700 (PDT) Date: Wed, 6 Sep 2017 01:50:38 +0300 From: Artturi Alm To: u-boot@lists.denx.de Message-ID: <20170905225038.GA89171@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) Subject: [U-Boot] rk3188/rock_defconfig sdmmc failures 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Hi, i'd like to get U-Boot working on rockchip/rk3188(rock_defconfig). current as-is: U-Boot SPL 2017.09-rc4-00009-ga0e80c9 (Sep 05 2017 - 23:47:57) Returning to boot ROM... U-Boot 2017.09-rc4-00009-ga0e80c9 (Sep 05 2017 - 23:47:57 +0300) Model: Radxa Rock DRAM: 2 GiB MMC: MMC Device 0 not found *** Warning - No MMC card found, using default environment In: serial@20064000 Out: serial@20064000 Err: serial@20064000 Model: Radxa Rock Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 No MMC device available No MMC device available No ethernet found. missing environment variable: pxeuuid missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/00 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-rockchip No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default No ethernet found. Config file not found No ethernet found. No ethernet found. => mmc rescan No MMC device available => usb Unknown command 'usb' - try 'help' => So, being optimistic, i added compatible found from arch/arm/dts/rk3xxx.dtsi, included by rk3188: And it built w/no errors, but apparently dwmmc probe does fail w/-22: U-Boot SPL 2017.09-rc4-00010-g1d12cc7 (Sep 06 2017 - 00:47:27) Returning to boot ROM... U-Boot 2017.09-rc4-00010-g1d12cc7 (Sep 06 2017 - 00:47:27 +0300) Model: Radxa Rock DRAM: 2 GiB MMC: dwmmc@10214000 - probe failed: -22 *** Warning - No MMC card found, using default environment In: serial@20064000 Out: serial@20064000 Err: serial@20064000 Model: Radxa Rock Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 no mmc device at slot 0 MMC Device 1 not found no mmc device at slot 1 No ethernet found. missing environment variable: pxeuuid missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/000000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/00000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/00 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-rockchip No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default No ethernet found. Config file not found No ethernet found. No ethernet found. => mmc rescan no mmc device at slot 0 => mmc list => now i've "successfully" enabled usb, but it took like +30tries w/"usb reset" until the host ports succesfully found my usb mass storage, and sometimes it leaves the dwc2 otg controller in a state where "usb tree" will fault while printing out, and reset the board, so i'd rather have sdmmc working for now instead, as it is enabled already in the default config for the board. Anyone w/clues about what's broken/missing? or patches for me to try? -Artturi diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index e7fcf89..a879fcd 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -160,6 +160,7 @@ static int rockchip_dwmmc_bind(struct udevice *dev) static const struct udevice_id rockchip_dwmmc_ids[] = { { .compatible = "rockchip,rk3288-dw-mshc" }, + { .compatible = "rockchip,rk2928-dw-mshc" }, { } };