Forum Discussion

sgannava's avatar
sgannava
Icon for Occasional Contributor rankOccasional Contributor
2 years ago

Custom linux image build failure for Arri10 SoC development kit

Hi,

I am following the below documentation to build my custom Linux image for Arria10 SoC development kit. While building Yocto Rootfs, I am facing oe_runmake error. I have attached the log as well.

This is happening in the build process while compiling linux-socfpga-6.6+git package.

I tried below steps as well

step-1: bitbake -c cleanall linux-socfpga

step-2: bitbake linux-socfpga

But at step-2, again same issues.

Any help would be appreciated.

Thanks,

Sai

21 Replies

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi Sai


    Are able to build the linux image without adding your custom recipe?

    What are the error message that you get after adding custom recipe?


    Regards

    Jingyang, Teh


  • sgannava's avatar
    sgannava
    Icon for Occasional Contributor rankOccasional Contributor

    Hi Jingyang,

    Sorry for late response.

    I am able to build the dtb files after adding custom dts files. But I am facing bitbake errors while building rootfs using yocto, after adding custom recipes.

    With Regards,

    Sai

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi


    Any update om this case?

    Are you able successfully generate and run the generated GHRDbinaries?


    Regards

    Jingyang, Teh


  • sgannava's avatar
    sgannava
    Icon for Occasional Contributor rankOccasional Contributor

    Hi Jingyang,

    The board is booting up with the pre-built linux binaries.

    So, I can use pre-built .itb and uboot.img for initial booting and I can use .dtb and zimage files built by me for my application. Correct me if I am wrong.

    Thanks

    Sai

    • sgannava's avatar
      sgannava
      Icon for Occasional Contributor rankOccasional Contributor

      Hi Jingyang,

      Thanks for the response.

      I am checking the GSRD image with the board I have. I will get back to you.

      Regards,

      Sai

  • sgannava's avatar
    sgannava
    Icon for Occasional Contributor rankOccasional Contributor

    Hi Jingyang

    Thanks for the response

    I have tried only maiking changes in one level i.e. in linux.

    I will try changing in both uboot and linux.

    Apart from that, I have a general question. I have built the image without making any changes to dts, means I just reproduced the steps mentioned in rocketboards documentation. Image build was successful but I am not able to boot the board. There is nothing shown up in the bootlog

    The board details I have are

    Serial Number: 10ASXSoC003452 Rev C

    Serial Number: 10ASXSoC003968

    Thanks

    Sai

  • tehjingy_Altera's avatar
    tehjingy_Altera
    Icon for Regular Contributor rankRegular Contributor

    Hi


    Please find my response below:


    1. Where can I include my custom device tree source files and re-build the image?

    You could directly make changes to the device tree source file (socfpga_arria10_socdk_xxx.dts )in the repo that you have clone in your work directory. There are two level of device tree you will need to edit. One for the uboot and one for linux:

    uboot

    u-boot-socfpga/arch/arm/dts


    linux

    linux-socfpga/arch/arm/boot

    /dts



    2. Where can I make changes so that the image mounts to /mnt folder instead of /dev/mmcblk02

    What do you mean the image mount point? Which image mount point are you referring to?

    Are you referring to the linux image? The linux image needs to be from a dev eg. QSPI or sd card.


    Regards

    Jingyang, Teh


  • sgannava's avatar
    sgannava
    Icon for Occasional Contributor rankOccasional Contributor

    Hi Jingyang,

    I am able to build the image successfully by removing the linux-socfpga_6.6bb (which is causing the error) blindly following the steps mentioned in the documentation. But I have below questions

    1. Where can I include my custom device tree source files and re-build the image?

    2. Where can I make changes so that the image mounts to /mnt folder instead of /dev/mmcblk02

    Thanks

    Sai