Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- If I am not mistaken, you need to generate the Preloader from the EDS tool (bsp-editor) as this will let the software knows which peripheral is enabled (via the handware handoff files). Then, you can create your own uboot (make sure to append the header so that the preloader will load it) instead of the one that the EDS tool generates. --- Quote End --- In first place thank you for your response. :) Yap! Preloader was generated with bsp-editor and then I executed "make" command in a Embedded Shell in spl-bsp folder, and preloader-mkpimage.bin was generated. Until here everything fine! =) Next step in the boot flow is the bootloader, so following this tutorial from Rocketboards I tried to generate an image: https://rocketboards.org/foswiki/view/documentation/yoctodorabuildwithmetaaltera (https://rocketboards.org/foswiki/view/documentation/yoctodorabuildwithmetaaltera) After download meta-altera, poky, meta-linaro... I tried to generate the U-Boot image as described in tutorial. But as showed in previous post, it hasn't worked. Note: If Yocto 2.1 (Krogoth) is used paths changes a litlle, but process is the same. I strongly think that U-Boot needs information about the hardware. For example: Default clock frequency in GitHub file pll_config.h is set to 25 MHz, but in my board is 50MHz, and that happens with all the clocks, peripherals, SDRAM timings, etc. In this picture we can see that when MACHINE is set to "cyclone5", default option is board "cyclone5-socdk" https://www.alteraforum.com/forum/attachment.php?attachmentid=12696 So going to board folder we can see some configurations files, these are directly from altera-opensource GitHub (uboot-socfpga tag v2016.09) https://www.alteraforum.com/forum/attachment.php?attachmentid=12697 These ones are files created by Preloader Generator uboot-socfpga v2013.01.01. And contain information about my hardware (so were generated from handoff files...) : https://www.alteraforum.com/forum/attachment.php?attachmentid=12698 Replace files directly doesn't work, I already tried. So finally the question is: which files should i modify to customize u-boot to my hardware? These are some interesting files that contains information about hardware: <u-boot directory in yocto>/board/altera/cyclone5-socdk/qts · iocsr_config.h · pinmux_config.h · pll_config.h · sdram_config.h <u-boot directory in yocto>/include/configs · socfpga_common.h · socfpga_cyclone5_socdk.h <u-boot directory in yocto>/configs · socfpga_cyclone5_defconfig I'm looking forward to any answer! :rolleyes: