09-13-2019 02:55 PM
I am not a newbie EE (over 60) and I do have an Ultra96 development board that I have been experimenting with. But I am new to the Zync processor and especially to Petalinux (but not linux itself).
While I know that Petalinux and yocto are not linux in and of themselves but are methods/scripts using bitbake and openembedded and others in order to build a linux distribution, I was wondering if I could link the SDL library, "libsdl2" into the build for petalinux.
Otherwise, is it possible to do a typical install like one would do on a "normal" linux installation such as ubuntu or debian? Using a "configure", "make" and "install"?
Yes, I do realize that there may be a limitation due to the fact that the Ultra96 v2 has only 2GB of onboard ddr.
Thank You
Tom
09-14-2019 06:18 PM
Tom,
Since you I have an Ultra96, I would start here (check if it's v1 or v2) and build a PetaLinux project from scratch. Once you have that booting, there's a link at the bottom of the linked page to UG1144. Use this guide to see if you can simply add the library you want from the PetaLinux config menu. If not, Chapter 7 says you can include a shared object that is pre-compiled. You can compile the source yourself using the appropriate cross complier from the PetaLinux tools. Or, and this may be an idea so crazy it just might work, you could extract the contents of the SDL2 Arch Linux ARM package. Good luck!
09-14-2019 06:18 PM
Tom,
Since you I have an Ultra96, I would start here (check if it's v1 or v2) and build a PetaLinux project from scratch. Once you have that booting, there's a link at the bottom of the linked page to UG1144. Use this guide to see if you can simply add the library you want from the PetaLinux config menu. If not, Chapter 7 says you can include a shared object that is pre-compiled. You can compile the source yourself using the appropriate cross complier from the PetaLinux tools. Or, and this may be an idea so crazy it just might work, you could extract the contents of the SDL2 Arch Linux ARM package. Good luck!
09-15-2019 08:58 AM
09-15-2019 11:18 AM
Glad to have helped Tom. I recently built a PetaLinux project for my Zynq 7020 based PYNQ board using the BSP for the ARTY 7Z (the boards are almost exactly the same). At first, I got it to boot but the root filesystem didn't occupy the entire partition of the SD for the root filesystem. When I tried to resize the data in the partition, that broke it all. Found a comment somewhere (on my phone and can't relocate the Stack Exchange question/answer) that said to run fsck on the image before you dd it to the SD and resize that it. That fixed that problem. If you're not even getting to U-boot, then your FSBL, BOOT.BIN, or FAT partition has an issue.
I used fdisk similar to the instructions here to set up the SD card.
09-15-2019 01:01 PM