From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 07 Jul 2025 07:58:38 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uYesA-00Evfx-1R for lore@lore.pengutronix.de; Mon, 07 Jul 2025 07:58:38 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uYes9-0007vG-OM for lore@pengutronix.de; Mon, 07 Jul 2025 07:58:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=g2YR9B7KaUmnyyr95eiQ7cd6R846ZJ/UGnf5NvJK8As=; b=Jqp/kfhDqr7po1Rz8/n1QawG86 b+mnMpwZuz0Fmss8Vm765A/IT0PrAOpgjkIUPzC6elDc5GwdkSyw/M6DXzDRtf7bfBWp5NEpeMobi zzw6EZoA+37qT032KZDcnfF8ZgNYOHennXYVMX4pzF7uePgNag1yHYSC8tX478I2V/Y88aSbJsA+x rec3QDXygpwMn8dI+gUvATp3QEeA6DG0VPg84bmQrgt26rrzAwT/Id+z+F4JUM7X0/UojtFN/ImjX uKOZc53JN/2TeEwDXz2gslttT/PzHfhFd1p3SwfNgBxdvB3awMug79kMUtDDpNULZD8vRLicRStqC 7NvTaQUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uYerd-00000001UpX-2KGW; Mon, 07 Jul 2025 05:58:05 +0000 Received: from smtp1-g21.free.fr ([2a01:e0c:1:1599::10]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uYepQ-00000001UNe-1eQl for barebox@lists.infradead.org; Mon, 07 Jul 2025 05:55:50 +0000 Received: from [IPV6:2a01:e0a:efa:53b0:468a:5bff:fe9a:3c4d] (unknown [IPv6:2a01:e0a:efa:53b0:468a:5bff:fe9a:3c4d]) by smtp1-g21.free.fr (Postfix) with ESMTP id 0DFD3B00563; Mon, 7 Jul 2025 07:55:39 +0200 (CEST) Message-ID: <92aa3504-2c94-49e0-9270-2e430ed89933@trabucayre.com> Date: Mon, 7 Jul 2025 07:55:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Michael Graichen , barebox@lists.infradead.org, Johannes Roith , Ahmad Fatoum References: <1dd8b780-1150-421a-932c-081aa31ae775@trabucayre.com> Content-Language: en-US From: Gwenhael Goavec-Merou In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250706_225548_575214_B0E7DA0F X-CRM114-Status: GOOD ( 26.62 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-5.1 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: Re: MMC prepare for zynq X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) Hi, After some tweaks: - barebox is able to display prompt - MMC is correctly configured - Linux is correctly configured/enables to boot with console feedback. I have sent a patch serie to fix these issues. Thanks to all Gwenhael Le 05/07/2025 à 5:21 PM, Michael Graichen a écrit : > Am 5. Juli 2025 09:01:38 MESZ schrieb Gwenhael Goavec-Merou : >> Hi, >> Thanks for informations: after deleting everything but the last two lines, barebox starts has expected. >> Now I have and error with SDCard but maybe related to lines removes or something similar. >> > > Hey, > > please show me the error messages once you put #define DEBUG at the top of mci-core.c > > I'm also using a patches Version of drivers/mci/mci-core.c > > First thing is that the amplitude of SD-Cards clock signal decreases with higher speed on Zynq-7000. I had to reduce SD-Cards speed to 25MHz within lowlevel.c. Next thing is mci-core.c does some speed and line testing that then causes error messages for my eMMC on the other line. So I skip this tests. > > Since the board i'm working on doesn't change anymore, that's fine to me. But probably will not be good for other boards using mci-core.c > > A feature to define fixed line nummers and speed mode from devicetree would be nice here?! > > Have and nice weekend, > Michael > > > >> Thanks! >> >> Gwenhael >> >> Le 04/07/2025 à 7:38 PM, Johannes Roith a écrit : >>> Hi Gwenhael, hi Ahmad >>> >>> Am Fri, Jul 04, 2025 at 04:56:01PM +0200 schrieb Ahmad Fatoum: >>>> Hi Gwenhael, >>>> >>>> On 7/3/25 09:18, Gwenhael Goavec-Merou wrote: >>>>> Dear all, >>>>> >>>>> I'm trying to uses my zedboard with barebox but can't be able to boot this. >>>>> >>>>> According to mails found in this mailing list I have done this sequence: >>>>> >>>>> export ARCH=arm >>>>> export CROSS_COMPILE=$SOMEWHERE/arm-buildroot-linux-gnueabihf- >>>>> >>>>> make zynq_defconfig >>>>> make -j$(nproc) >>>> >>>> That looks correct IMO. >>>> >>>>> And copied in the first SDCard FAT partition: >>>>> - images/barebox-avnet-zedboard.img as BOOT.bin >>>>> - barebox.bin >>>> >>>> Which binary is barebox.bin? >>> >>> The first one is the correct one. Just copy the images/barebox-avnet-zedboard.img >>> with the name BOOT.bin to an SD-Card whose first partition is FAT32. >>>> >>>>> But I have nothing displayed through serial port. >>>> >>>> Two things come to mind: >>>> >>>> - The Image is 184K. Does the Zynq enforce a maximum limit on the BOOT.BIN? >>> >>> Yes, there is a limitation for the size of the First Stage Bootloader >>> (FSBL) as Xilinx calls it, which is the available SRAM size in the ZYNQ >>> 7000 (192 kBytes). Currently Barebox PBL and Barebox Proper are combined >>> to one image (images/barebox-avnet-zedboard.img) but you will get an >>> error in the build process, if your image exceeds this size. >>>> >>>> - Does DEBUG_LL produce any output? For details on how to configure >>>> DEBUG_LL, see the troubleshooting guide I just Cc'd you on. >>>> >>>>> Are there somewhere details on how to prepare SD Card for a zynq board? >>>> >>>> I haven't done work with the Zynq 7000 so far, but Lucas and Johannes >>>> did. I Cc'd them as they may be able to give some tips for troubleshooting. >>> >>> I would also take a look at this message on the mailing list: >>> >>> https://lore.barebox.org/barebox/DB7PR02MB43323CD77E0507E560475BCAABF00@DB7PR02MB4332.eurprd02.prod.outlook.com/ >>> >>> Here, the content of the file >>> arch/arm/boards/avnet-zedboard/zedboard.zynqcfg caused a boot error for >>> barebox. With my Digilent Cora Z7 board, I also had to modify the file >>> by deleting everything but the last line, to get barebox booting. Have >>> you already tried this? >>> >>>> >>>> Cheers, >>>> Ahmad >>>> >>>>> >>>>> Thanks >>>>> >>>>> Gwenhael >>>>> >>>>> >>>> >>>> -- >>>> Pengutronix e.K. | | >>>> Steuerwalder Str. 21 | http://www.pengutronix.de/ | >>>> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | >>>> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | >>>> >>> >>> Best regards, >>> Johannes >> >> >