Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EBC75C6FA82 for ; Mon, 19 Sep 2022 23:13:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 59CFE84A0D; Tue, 20 Sep 2022 01:13:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openadk.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=openadk.org header.i=@openadk.org header.b="Xoww/7Hh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E820084934; Tue, 20 Sep 2022 01:13:03 +0200 (CEST) Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1D1B884934 for ; Tue, 20 Sep 2022 01:12:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openadk.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=wbx@openadk.org Received: by helium.openadk.org (Postfix, from userid 1000) id 84CB23520669; Tue, 20 Sep 2022 01:12:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openadk.org; s=2022; t=1663629178; bh=c5t6CKpEQuWRXpkDJ7nLSwy4rpt9UOKo0+tS+FOr8fM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xoww/7Hh4A8zloh/NWKtI01mBWq57ljm/v0tRjYggyRIVvUJVfymL43vj2CPG4jZi PExrvmJjHJiFzjRHHhMeFoIy4wogspe2M3R11kYU4gH+IOJuWCJwkBNsAa3JyoBJhZ ijb9BF9ZovB0D4FGlYjxZLQFrbCgNhsl9CsIvUin/dhH6aIbb6d/kGBX1MlM93Eg3Z JYktVojo3vHnnG1t3K18HtnBMcJgnR/6t5rzAcNc1A2M7yEitmA5aSMgT7Zc0sA3sH a1IN4OarEgyYAXmHBU07BkbdEanXCpJ54zeErnHiAi+5wEuxnvBncugL8VmWSgWkMG ADFQZ/fjZ4cMQ== Date: Tue, 20 Sep 2022 01:12:58 +0200 From: Waldemar Brodkorb To: Simon Glass Cc: Waldemar Brodkorb , U-Boot Mailing List , Chia-Wei Wang Subject: Re: u-boot 2022-07 on STM32F746G-DISCO Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux 5.10.0-18-amd64 x86_64 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean Hi Simon, Simon Glass wrote, > Hi Waldemar, > > On Mon, 19 Sept 2022 at 13:48, Waldemar Brodkorb wrote: > > > > Hi again, > > > > Waldemar Brodkorb wrote, > > > > > Hi, > > > > > > I am trying to run u-boot on a STM32F746G-DISCO device. > > > I am configuring u-boot with stm32f746-disco_spl_defconfig. > > > > > > But nothing happens on the LCD nor on the serial console. > > > I use screen /dev/ttyACM0 115200 under Linux to connect. > > > > It seems my USB port on my laptop was buggy, after reboot I get > > following output via serial console: > > > > U-Boot SPL 2022.07 (Sep 19 2022 - 13:20:08 +0200) > > Trying to boot from XIP > > > > > > U-Boot 2022.07 (Sep 19 2022 - 13:20:08 +0200) > > > > Model: STMicroelectronics STM32F746-DISCO board > > DRAM: 8 MiB > > Hard fault > > pc : 080087d6 lr : c05aa775 xPSR : a1000000 > > r12 : 00000010 r3 : 080087c1 r2 : 0805344d > > r1 : 08008001 r0 : c05aa000 > > Resetting CPU ... > > > > resetting ... > > > > I get a Hard fault. I then tried an older version of u-boot using > > the information from https://github.com/fdu/STM32F746G-disco_Buildroot > > as a hint. With U-Boot 2018.11 I get a working binary (I had to > > disable Falcon mode): > > > > U-Boot SPL 2018.11 (Sep 19 2022 - 13:41:50 +0200) > > Trying to boot from XIP > > > > > > U-Boot 2018.11 (Sep 19 2022 - 13:41:50 +0200) > > > > Model: STMicroelectronics STM32F746-DISCO board > > DRAM: 8 MiB > > Flash: 1 MiB > > MMC: sdio@40012c00: 0 > > In: serial > > Out: serial > > Err: serial > > usr button is at LOW LEVEL > > Net: > > Warning: ethernet@40028000 (eth0) using random MAC address - > > fe:f8:94:5f:5e:26 > > eth0: ethernet@40028000 > > Hit SPACE in 3 seconds to stop autoboot. > > Wrong Image Format for bootm command > > ERROR: can't get kernel image! > > U-Boot > > > > > Seems like a regression to me. > > Yes, can you use git bisect to find it? cd82f199852d88218e1f17f5ec07cdd9112a89c4 is the first bad commit. When I revert this commit on master I get: U-Boot SPL 2022.10-rc5-00001-gdbcc7add19-dirty (Sep 20 2022 - 00:59:21 +0200) Trying to boot from XIP U-Boot 2022.10-rc5-00001-gdbcc7add19-dirty (Sep 20 2022 - 00:59:21 +0200) Model: STMicroelectronics STM32F746-DISCO board DRAM: 8 MiB stm32fx_rcc_clock rcc@40023800: set_rate not implemented for clock index 4 stm32fx_rcc_clock rcc@40023800: set_rate not implemented for clock index 4 stm32fx_rcc_clock rcc@40023800: set_rate not implemented for clock index 4 Core: 38 devices, 22 uclasses, devicetree: separate Flash: 1 MiB MMC: sdio1@40012c00: 0 Loading Environment from nowhere... OK In: serial Out: serial Err: serial usr button is at LOW LEVEL Net: Warning: ethernet@40028000 (eth0) using random MAC address - 7e:cf:cf:fc:30:4a eth0: ethernet@40028000 Hit SPACE in 3 seconds to stop autoboot. MMC: no card present looks good without the problematic commit. best regards Waldemar