SPI path not set. LMK not found on device tree. Issue with BSP of RFSoC4x2

Hey All,

I am trying to rebuild PetaLinux from the BSP file with small modification to the CMA. However with no success.

To reconstruct my error without changing the bootargs kernel( no cma),

  1. I sourced the installed directory on PetaLinux 2022.1
  2. Run “petalinux-create -t project -s ” where is the path to the appropriate BSP file in “bsp_releases”.
  3. “petalinux-config --silentconfig”
  4. “petalinux-build”
  5. “petalinux-package --boot --u-boot --fpga images/linux/system.bit”
  6. Copied the BOOT.bin image.ub boot.scr to the root partition of my sdcard.
  7. I am using the original Rootfs of the the Image from this website.

@JennySmith888 I have seen you used the BOOT.BIN file with some changes to the dtsi file. how did you manage to avoid the error of

SPI path not set. LMK not found on device tree. Issue with BSP of RFSoC4x2

I used the BSP files from RealDigital and used as well the instructions in the README file.

I appreciate any ideas on how to proceed on that topic.

Thanks!

1 Like

@cathalmccabe Hey Cathal, I do not know if this is related to your area of expertise. is this issue known to you guys, that the BSP is faulty?

Thanks!

1 Like

@njachimi Hey Nathan, I’ve seen you published the post about the support for RFSoC4x2.
Do you know of problems with rebuilding the rootfs and boot files from bsp file?

Thanks a lot,
Ido

try adding the below config in the system-user.dtsi

&spi0 {
            status = "okay";
     
            lmk@0 {
                    compatible = "ti,lmk04828";
                    reg = <0x00>;
                    spi-max-frequency = <0x7a120>;
                    num_bytes = <0x03>;
            };
     
            lmxdac@1 {
                    compatible = "ti,lmx2594";
                    reg = <0x01>;
                    spi-max-frequency = <0x7a120>;
                    num_bytes = <0x03>;
            };
     
            lmxadc@2 {
                    compatible = "ti,lmx2594";
                    reg = <0x02>;
                    spi-max-frequency = <0x7a120>;
                    num_bytes = <0x03>;
            };
    };