Porting Cora Z7 Board to barebox
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Apr 29 02:49:40 PDT 2025
Hi,
On 4/29/25 10:34, Sascha Hauer wrote:
> In case of the Zedboard you could take start_avnet_zedboard.pbl. This
> contains all necessary components including device tree and barebox
> proper.
>
> However, this binary is linked to 0x0 and the FSBL will likely load it
> there. I don't know where the FSBL itself is located.
The pbl files tend to be a bit bigger, because they are meant only
as input to objcopy. You can add to images/Makefile.zynq, e.g.
image-$(CONFIG_MACH_ZEDBOARD) += start_avnet_zedboard.elf
And it will generate a much more compact ELF file that should
be interchangeable (I had tested this on ZynqMP).
>> Is there a way to hard code the UART to use for the barebox
>> console for barebox proper?
>
> Why do you want to hardcode it? Setting the console via device tree is
> just fine.
>
> For debugging your early code I recommend CONFIG_DEBUG_LL. For zynq the
> UART is hardcoded to ZYNQ_UART1_BASE_ADDR in include/mach/zynq/debug_ll.h.
> You can change it in this file.
>
> With CONFIG_DEBUG_LL enabled you can put putc_ll() in your code.
CONFIG_DEBUG_PBL is also often useful.
>> The Zynq on the Cora Z7 only embeds a single core Cortex A9 while the SoC on the
>> Zedboard embeds a dual core Cortex A9. Does this affect the cores initialization
>> in arch/arm/mach_zynq?
>
> I don't think so. I haven't used Zynq myself though.
Cheers,
Ahmad
>
> Regards,
> Sascha
>
--
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 |
More information about the barebox
mailing list