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 D5944C54EE9 for ; Tue, 20 Sep 2022 09:03:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF4CC84C5F; Tue, 20 Sep 2022 11:03:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.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=foss.st.com header.i=@foss.st.com header.b="VKwJPySf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E086384C5E; Tue, 20 Sep 2022 11:03:54 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CE7D984C63 for ; Tue, 20 Sep 2022 11:03:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=5262ab0752=patrice.chotard@foss.st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28K6Ou8w030169; Tue, 20 Sep 2022 11:03:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=Kav2iqKsRR0UeBiuKop/foNTc0o6kI/g27EW8C0cVW4=; b=VKwJPySfW6aHKjanTTSkDQ8TVKjTNchNBIkW9XjjHx7aH28S80PIHjMuqOyrBkp1NhZ5 lwH6awyBbi4cI14FPy7hPu2LpUSJS+hxgbg45+k7DUSW3D6pCXfQP/FB0q+gK38RBfnR A4oEFJI8Ud70AI2pkfcNL0vfhuREizcP7MxFC85Jh7XtAcwbOv4oDz5uH9+QKr1jGyzC Xf0OQLeSMcVL0Bbcniz4XnWIcvFgVZrWOX1JQMZKyHuF6gCVF2WMN79qCB7S2YLTBPFr U7B+7LpL2Ts3ME7tdM8ih3UV20fAXGJrvnSpPxtqJeeMwGXyjYKic2EgVh8sfdJMXjpG Ug== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3jn6a0sjsr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 11:03:46 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id AD0A010002A; Tue, 20 Sep 2022 11:03:44 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4C6CA21A8F7; Tue, 20 Sep 2022 11:03:44 +0200 (CEST) Received: from [10.201.21.72] (10.75.127.49) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 11:03:43 +0200 Message-ID: <36646228-ca4d-bc32-2c3e-bdaedeb1cc6c@foss.st.com> Date: Tue, 20 Sep 2022 11:03:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: u-boot 2022-07 on STM32F746G-DISCO Content-Language: en-US To: Waldemar Brodkorb , Simon Glass CC: U-Boot Mailing List , Chia-Wei Wang References: From: Patrice CHOTARD In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-20_02,2022-09-16_01,2022-06-22_01 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 Waldemar On 9/20/22 01:12, Waldemar Brodkorb wrote: > 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. I remember i encountered an issue with patch in the past and by updating my toolchain everything goes fine. Which toolchain version do you use ? On my side i am using this one : https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.1.0/x86_64-gcc-11.1.0-nolibc-arm-linux-gnueabi.tar.xz Patrice > > 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