From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vi1eur05olkn2090.outbound.protection.outlook.com ([40.92.90.90] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGOqR-0000uG-L0 for barebox@lists.infradead.org; Mon, 23 Mar 2020 15:18:29 +0000 From: Michael Graichen Date: Mon, 23 Mar 2020 15:18:22 +0000 Message-ID: References: , <845b2228ae93d93e331556bb983f19cf67a025b8.camel@pengutronix.de> In-Reply-To: <845b2228ae93d93e331556bb983f19cf67a025b8.camel@pengutronix.de> Content-Language: de-DE MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: AW: Barebox for Zedboard To: Lucas Stach , "barebox@lists.infradead.org" ________________________________________ Von: Lucas Stach Gesendet: Donnerstag, 19. M=E4rz 2020 11:53 An: Michael Graichen; barebox@lists.infradead.org Betreff: Re: Barebox for Zedboard Hi Michael, Am Donnerstag, den 19.03.2020, 10:38 +0000 schrieb Michael Graichen: > Hey, > > i have just started working on a Zedboard (http://zedboard.org/product/ze= dboard) with an Xilinx Zynq XC7Z020 SOC. > I have seen that Barebox has an defconfig for the zynq > so i tried > > export ARCH=3Darm > export CROSS_COMPILE=3Darm-cortexa9-linux-gnueabihf- > export PATH=3D/opt/OSELAS.Toolchain/arm-cortexa9-linux-gnueabihf/bin:$PATH > make zynq_defconfig > make -j`nproc` > > which compiles me the image > > barebox-flash-image -> images/barebox-avnet-zedboard.img > > when using u-boot i had to generate a BOOT.bin file with Xilinx's ./bootg= en tool > > dev$ bootgen -image bootimage.bif -o i BOOT.bin > > and .bif file was > > dev$ cat bootimage.bif > //arch =3D zynq; split =3D false; format =3D BIN > the_ROM_image: > { > [bootloader]FSBL.elf > design_1_wrapper.bit > u-boot.elf > } > > > that i copied onto an SD-Card and powed up the board. > > But since i want to use Barebox how do i produce the BOOT.bin file? The barebox-avnet-zedboard.img already is the BOOT.bin image, just copy it to the SD card with this name and you are done. > and how is the programming of the FPGA Logic done? Barebox currently doesn't support loading the FPGA bitstream. We are still lacking a driver for the DevC PCAP interface. Zynq support in Barebox is only a spare time (and thus toy) project at this time. It works okay for booting Linux on the PS part of the system, but almost fully lacks support for the PL part. That said I wouldn't mind helping with getting the missing bits added by reviewing/testing patches. :) Regards, Lucas Hey Lucas, = "That said I wouldn't mind helping with getting the missing bits added by reviewing/testing patches. :)" Did you made any attempts to do this? As far as I can see there are basicly two ways. = The "Xilinx-Way" by packing everything in Boot.bin. https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841976/Prepare+boot= +image and the "Linux-Way" https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841645/Solution+Zyn= q+PL+Programming+With+FPGA+Manager using the FPGA manager = https://elixir.bootlin.com/linux/latest/source/drivers/fpga/zynq-fpga.c Best regards Michael = _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox