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 DD273C6FA8E for ; Tue, 20 Sep 2022 08:47:15 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E20B884922; Tue, 20 Sep 2022 10:47:13 +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="ESUqjMnd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 34C4384C44; Tue, 20 Sep 2022 10:47:12 +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 570A080840 for ; Tue, 20 Sep 2022 10:47:09 +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 28K7HiOd032460; Tue, 20 Sep 2022 10:47:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=content-type : message-id : date : mime-version : subject : to : cc : references : from : in-reply-to; s=selector1; bh=srz0Lb3MFvuIW5jcfKaHJHT4rh3kKZoxFpmTMXwfBR0=; b=ESUqjMndN5SjHQHefVHNN2YjE3XkkURzimESl18U2ibx/90ll3M5WSBNuy8i3tr7oPr1 XONBkBqUCdALZFYt2IewFmhVzpA8CVSc2PnbghyYw4uhGO4YCO2MXkwWRGwi+GbTKFbN jdgwRccogfaKQgdA6O9BzV4CSzprHbpFnkxC6DjqKqnpwSwf0S737egEVSuwheuyrpfq 5L4WQlI5nxTbUSQ35uzZp5EhpNpbq3QuOwgmJNbBJ0hYLNHxPPPd0UgywYx2T3t/yg+U zqFpDG8vLqSDf7AzC0v2Y1FT80nEfVf8zZ4CACGpx1ojoAK1i4E/u8jn+2mRRwLz/RTx Gw== 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 3jn6a0sf71-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 10:47:09 +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 08C5A10002A; Tue, 20 Sep 2022 10:47:07 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id F06182194C5; Tue, 20 Sep 2022 10:47:07 +0200 (CEST) Received: from [10.201.21.72] (10.75.127.121) 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 10:47:07 +0200 Content-Type: multipart/mixed; boundary="------------1Nsvs9oRsU6Rbg7bMWqUL6Bl" Message-ID: Date: Tue, 20 Sep 2022 10:47:07 +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 CC: U-Boot Mailing List References: <0b15585a-74c7-8b17-d119-2409cb78f139@foss.st.com> From: Patrice CHOTARD In-Reply-To: X-Originating-IP: [10.75.127.121] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) 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 --------------1Nsvs9oRsU6Rbg7bMWqUL6Bl Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi Waldemar On 9/19/22 23:03, Waldemar Brodkorb wrote: > Hi Patrice, > Patrice CHOTARD wrote, > >> Waldemar, >> >> You can applied the following series on current U-Boot master >> branch (a0759684e015bd7252be3af508c0fcfdbb8ec5dc): >> >> https://patchwork.ozlabs.org/project/uboot/list/?series=318991 >> > > I applied the patches on top of u-boot master and the non-SPL > build still works fine. It seems only 2022.07 is broken, master is fine. > > The SPL build compiles, but I get no output via serial console after > flashing. I changed the openocd command to use 0x8009000 for u-boot. > > /home/wbx/openadk/host_x86_64-linux-gnu/usr/bin/openocd \ > -f interface/stlink.cfg -f board/stm32f7discovery.cfg \ > -c "init" \ > -c "reset init" \ > -c "flash probe 0" \ > -c "flash info 0" \ > -c "flash write_image erase spl/u-boot-spl.bin 0x08000000" \ > -c "flash write_image erase u-boot-dtb.bin 0x08009000" \ > -c "reset run" \ > -c "shutdown" > > Is this change correct or do I misread your patches? Due to the flash layout (the 4 first sectors size is 32KB) using "flash write_image erase" command, as you did, can't be used anymore due to the SPL size increase. SPL size is over 32KB (0x8000), so SPL binary occupies the first and a part of the second 32KB sectors. When you execute "flash write_image erase u-boot-dtb.bin 0x08009000", this command erase the second 32KB sector (where a part of SPL has been previously copied) before copying the u-boot-dtb.bin binary. So i advice you to use the method described in doc/board/st/stm32_MCU.rst Copy directly the generated binary u-boot-with-spl.bin into the mass-storage exposed by the board. Example, under Ubuntu you should see the following directory /media/$USER/DIS_F746NG > > BTW: Do you have a working Linux configuration file you can share > with me? Which Linux version do you use on the device? Yes, i have tested the kernel v6.0-rc4 on STM32F746-disco board recently. Before you have to apply the attached patch. Patrice > > best regards > Waldemar --------------1Nsvs9oRsU6Rbg7bMWqUL6Bl Content-Type: text/x-patch; charset="UTF-8"; name="patch1.patch" Content-Disposition: attachment; filename="patch1.patch" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2FyY2gvYXJtL2NvbmZpZ3Mvc3RtMzJfZGVmY29uZmlnIGIvYXJjaC9h cm0vY29uZmlncy9zdG0zMl9kZWZjb25maWcKaW5kZXggMWY1NDQ2Y2RhOGI2Li5lMWY4NmJk MWVlZDQgMTAwNjQ0Ci0tLSBhL2FyY2gvYXJtL2NvbmZpZ3Mvc3RtMzJfZGVmY29uZmlnCisr KyBiL2FyY2gvYXJtL2NvbmZpZ3Mvc3RtMzJfZGVmY29uZmlnCkBAIC0xNywxMiArMTcsMTAg QEAgQ09ORklHX0VNQkVEREVEPXkKIENPTkZJR19BUkNIX1NUTTMyPXkKIENPTkZJR19DUFVf VjdNX05VTV9JUlE9MjQwCiBDT05GSUdfU0VUX01FTV9QQVJBTT15Ci1DT05GSUdfRFJBTV9C QVNFPTB4OTAwMDAwMDAKLUNPTkZJR19GTEFTSF9NRU1fQkFTRT0weDA4MDAwMDAwCitDT05G SUdfRFJBTV9CQVNFPTB4QzAwMDAwMDAKK0NPTkZJR19EUkFNX1NJWkU9MHgwMTAwMDAwMAog Q09ORklHX0ZMQVNIX1NJWkU9MHgwMDIwMDAwMAogIyBDT05GSUdfQVRBR1MgaXMgbm90IHNl dAotQ09ORklHX1hJUF9LRVJORUw9eQotQ09ORklHX1hJUF9QSFlTX0FERFI9MHgwODAwODAw MAogQ09ORklHX0JJTkZNVF9GTEFUPXkKICMgQ09ORklHX0NPUkVEVU1QIGlzIG5vdCBzZXQK ICMgQ09ORklHX1ZNX0VWRU5UX0NPVU5URVJTIGlzIG5vdCBzZXQK --------------1Nsvs9oRsU6Rbg7bMWqUL6Bl--