From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 765E4C11F68 for ; Fri, 2 Jul 2021 14:51:00 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BCD9E6140C for ; Fri, 2 Jul 2021 14:50:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BCD9E6140C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8075B809D2; Fri, 2 Jul 2021 16:50:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZdYmrX7s"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 26D0681D48; Fri, 2 Jul 2021 16:50:56 +0200 (CEST) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8FA96803F6 for ; Fri, 2 Jul 2021 16:50:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-lf1-x12f.google.com with SMTP id n14so18542418lfu.8 for ; Fri, 02 Jul 2021 07:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=921Fd4nNX6vUVnzKVAww6Jn9czp5B0ocLjNFSjo6/Lg=; b=ZdYmrX7sEaAHWZ7CgZJ8fiMyRR+mobQaSgqzRID1lF3rxHlTRFL1Ho/tQ38ehL+EZj JsUvyMjJZisyglqgXASEXvg9UhINr1DTkVtxAkGjqH7n3d8aXaAijFO7/6Y1yo13cHmi uHUz2Rt5jq3nD7OaAsMg78Gwjgs+9lKsnZs3yoliLniVjLIEeAj/gg+tqUK47IBFk6q8 n9KihQBI/yDEyfwotlRuzhD+mbd3m2QJAMrKOhgZS4ZSipBC85iMlfA6971Ihte0vzHU 86AS3JJufwom7PB9o/ytQMtKUuSle3WpEl0KZ5u+9YsLdyFJjCBqi42vZYs6xh79yvM4 +Jxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=921Fd4nNX6vUVnzKVAww6Jn9czp5B0ocLjNFSjo6/Lg=; b=h58aIOWdL6rpJiDP0TdoaqPEWKOA+VD4s0DkpV7+i6s6YCiHIPaU8f3CI6qnbFm9ln 2Xd+9ppCjaIxGTDpbz/rgAjT+rq/5TBnlU2KT5DroJtehnBVwJ1E8R1QvigDI9XzwC8m 2ly9zkLSyKH92dFvQi/+X77dIQo5ID7SXbpAozVbw5/sN5ep/O3F13Vndehxl6qeK01/ zHBxMWE7H5zs9EDAidbRID1FTjIp6COtezn9sYnr7PuT0iGyUzKl5DbAQkOnqRMdCeMo tcOpvgloTQe5tZTjGxAeQM0Bi6ZYnpbwXfOU+3vFb7MKJbUvPdSBJ8dui5YosoalePCN vGiA== X-Gm-Message-State: AOAM533WQuTYLyxn/4ZaXKt0pSdlz9vg6A7r6VejNOnCW0/gd9qQEqxC Cs4Q9AqWYsdAKIoFDtj5H099QaGqrItDFfwepkE= X-Google-Smtp-Source: ABdhPJypRk0Zo27XOSiG3v94PgN3bGXSbPcVj4+Y9K3TbB+OTriOaZsFof+YKVernQ+2B1ha43NDCfUxS4VfIE97nA4= X-Received: by 2002:a05:6512:3765:: with SMTP id z5mr4143113lft.583.1625237452900; Fri, 02 Jul 2021 07:50:52 -0700 (PDT) MIME-Version: 1.0 References: <42254730-c8fb-8b1e-0b6e-dd5dd9da57a4@kontron.de> <99d1790f-101a-a09e-503a-4f90775f9d3e@kontron.de> <9d7f8b3a-6e54-9b3b-c820-06678b2c225c@kontron.de> In-Reply-To: From: Fabio Estevam Date: Fri, 2 Jul 2021 11:50:41 -0300 Message-ID: Subject: Re: iMX8MM USB support? To: Tim Harvey Cc: Schrempf Frieder , u-boot , Peng Fan Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Tim, On Thu, Jul 1, 2021 at 10:36 PM Fabio Estevam wrote: > But I still get: > > U-Boot SPL 2021.07-rc5-00002-g5f269bf8bd14-dirty (Jul 01 2021 - 22:28:29 -0300) > WDT: Not starting > SPL: Unsupported Boot Device! > SPL: failed to boot from all boot devices > ### ERROR ### Please RESET the board ### > > Please let me know if you get any progress with SDP. The USB_BOOT option was missing in imx8mm_evk spl: --- a/board/freescale/imx8mm_evk/spl.c +++ b/board/freescale/imx8mm_evk/spl.c @@ -33,6 +33,8 @@ DECLARE_GLOBAL_DATA_PTR; int spl_board_boot_device(enum boot_device boot_dev_spl) { switch (boot_dev_spl) { + case USB_BOOT: + return BOOT_DEVICE_BOARD; case SD2_BOOT: case MMC2_BOOT: return BOOT_DEVICE_MMC1; After that I can load flash.bin and u-boot.itb via uuu like this (thanks to Heiko's suggestion!) sudo uuu flash.bin sudo uuu SDPV: write -f u-boot.itb -addr 0x42000000 sudo uuu SDPV: jump -addr 0x42000000 I will submit the support for imx8mm-evk SDP soon. Will also add these commands into the readme. Thanks