Provided ADI Images too large for 8GB SD Card?

I have been trying to get the zedboard + FMCOMMS4 system up and running so that I can test the capabilities of the AD9364 chip using the IIO Oscilloscope. I am trying to use the SD card to boot it, but don't have ADI's provided AD-FMC-SDCARD, so I am trying to format and make my own. I am trying to use the following guide to set up my SD card: https://wiki.analog.com/resources/tools-software/linux-software/zynq_images

I notice that the latest images provided by ADI (for me it is 23 February 2021 release candidate (2019_R2) ) is almost 9.5GB when extracted. Does this mean that I must have an SD card where the BOOT partition is at least that size, so that it can fit ADI's provided image, as well as the uImage, BOOT.BIN, and devicetree.dtb?

Also, I notice that ADI does not provide a root filesystem, but there are examples showing a distribution of linux running on the target machine with the IIO Oscilloscope GUI running. Do I need to get a rootfs file myself, or is that somehow baked into ADI's provided files?

  • 0
    •  Analog Employees 
    on Jun 17, 2021 10:05 PM

    The second partition on the SD card is the rootfs. You will need a 16 GB sdcard to use 2019_R2+. Earlier releases will fit on an 8 GB card.

    -Travis

  • The BOOT partition needs to be FAT32 though, correct? I believe that FAT32 can only hold a capacity of ~4GB. Is this an issue?

  • 0
    •  Analog Employees 
    on Jun 17, 2021 10:14 PM in reply to AJ_Stee

    BOOT is FAT32 but it's small at ~1 GB. The rootfs partition is ext4 and is larger. The reason for the increase in size is that we switched from Linaro to Raspbian at the core and we support more tools by default.

    -Travis

  • Maybe there is some part here that I'm missing. If the image is 9.5GB, how will it fit in the BOOT partition? Or will writing the image to a SD card place the files in their necessary locations?

    Additionally, where can I get a file system supported by the ADI tools (specifically running the iio oscilloscope with zedboard+fmcomms4) if I want to build it using petalinux? Will any ubuntu rootfs work, or are there only specific filesystems files that ADI supports?

  • +1
    •  Analog Employees 
    on Jun 18, 2021 12:07 AM in reply to AJ_Stee

    The SD card image has multiple partitions, not just BOOT. The second one below is the rootfs:

    tcollins@tron:~$ fdisk -l 2021-02-23-ADI-Kuiper.img
    Disk 2021-02-23-ADI-Kuiper.img: 9.42 GiB, 10104078336 bytes, 19734528 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x18f1f9d5

    Device Boot Start End Sectors Size Id Type
    2021-02-23-ADI-Kuiper.img1 8192 2105343 2097152 1G c W95 FAT32 (LBA)
    2021-02-23-ADI-Kuiper.img2 2113536 19734527 17620992 8.4G 83 Linux
    2021-02-23-ADI-Kuiper.img3 2105344 2113535 8192 4M a2 unknown

    When you burn the img file it will place all the partitions for you.

    When you use Peta you go through the Yocto flow which creates the rootfs and will be much slimmer than the standard ADI standard. But you have to build it yourself.

    -Travis