[meta-xilinx] Using Yocto with Avnet MiniZed

Dan Collins dan at collinsnz.com
Fri Apr 19 04:00:48 PDT 2019


Hi Philip,

I've managed to get the kernel booting. I needed to embed the device tree (CONFIG_OF_EMBED) and also enable legacy booting (CONFIG_IMAGE_FORMAT_LEGACY). If I had figured out FIT images, I probably could have made that work instead. For some reason I was missing the device tree and configuration, so I couldn't actually boot from it.

I'm about to put the rootfs onto a USB drive that I can use to format the eMMC partition.

When I've completed this experiment, I can start looking into replacing FSPL with the u-boot SPL and then I'll have a complete Yocto system!

Kind regards,
Dan






---- On Fri, 19 Apr 2019 10:13:22 +1200 Dan Collins <mailto:dan at collinsnz.com> wrote ----



Hi Philip,



Shortly after writing this note I found your u-boot fork on github. You've pre-empted a question I knew I was going to have, because the default Avnet image doesn't have ext4 to format my eMMC with. I see you've created a kernel and RAM disk to get that. Is there any reason you can't fit it into a boot partition on the eMMC though? In any case, bootstrapping like this is fine by me! Thanks for sharing the binary files and the overall process - I'll see about trying to emulate that.



I've also been in discussion with Nathan Rossi who explained a little more about the boot process. In particular, where u-boot SPL fits into the picture. He made a commit a while back that removed the SPL from the repo because it was missing the ps7 files, and I see you've gone ahead and added those files back in.



Regardless, I think there's something wrong with the kernel images I'm building. None have initramfs and neither my uImage or fitImage files will boot (the later is missing the device tree and config). I'll keep digging!



Kind regards,

Dan







---- On Fri, 19 Apr 2019 02:51:19 +1200 Philip Balister <mailto:philip at balister.org> wrote ----










I need to publish my WIP on the minized. 



I've got a file system + kernel that boots from usb as a fitimage, with 

the ramdisk you can partition, format and mount the emmc. Then untar a 

tarball larger filesystem from the USB stick. Then boot from a fitimage 

found inside that filesystem. 



You do need an fpga image to hook up a couple of things in the fpga so 

the kernel doesn't hang at boot. 



There are some files at: 



https://www.dropbox.com/sh/9l5o4e4ipyqv2rs/AAA8ypYHK1Mmgjn-OZwiY2A9a?dl=0 



you can play with. You will need to update boot.bin and u-boot-dtg.img 

in qspi. 



Philip 



On 04/18/2019 07:09 AM, Dan Collins wrote: 

> Hi all, 

> 

> 

> 

> I have been trying to get a Yocto system running on my MiniZed and I'm making very slow progress. I don't fully understand the intended flow of the current machine (in meta-xilinx-contrib) so I've made a few patches to get things working the way I think I can. Right now my goal is a working system and I'm not fixed on using u-boot SPL vs Xilinx FSBL. 

> 

> 

> 

> What I do have is a qSPI image with FSBL and a u-boot.elf image with CONFIG_OF_EMBED set (so device tree is now in u-boot). I spent a long time trying to get this to work before I finally found embedded the device tree helped! I even played around with getting FSBL to load u-boot from the eMMC, but I gave up pretty quickly as it seems we need a BOOT.bin and the Yocto toolchain is just giving me u-boot.bin and u-boot.elf. 

> 

> 

> 

> Now, I'm trying to get a kernel image to boot but I'm stuck with u-boot telling me my uImage, on the eMMC, is no good (wrong image format for bootm). I decided I'd make even more changes and try using a fitImage instead, however I need to figure out how to get the device tree into my FIT image. 

> 

> 

> 

> At this point, I've decided I must be going against the grain. Can anyone explain the recommended / tested path for this? The MiniZed board has the constraint that we can only boot from qSPI - but I am not fussed on using FSBL + u-boot, u-boot SPL + u-boot, or anything else. 

> 

> 

> 

> Kind regards, 

> 

> Dan Collins 

> 

> 

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20190419/51399e4d/attachment.html>


More information about the meta-xilinx mailing list