Post Go back to editing

Yocto Linux build version 5.0.0 on ADSP-SC594 EZKIT - system freezes

Category: Software
Product Number: ADSP-SC594
Software Version: 5.0.0

Hi community,

I was very happy to run the process to build a Yocto Linux version 5.0.0 to be run on the SC594 EZKIT these days. In particular, the description how to build, release and install the system was really very good, thank you for that!

Unfortunately, the system does not really work in a stable way: once booted from SPI, the system freezes after a while. I found that it freezes within the time of a few seconds whenever a GBit cable is connected to the ethernet port. If no cable is connected, I have observed that the system freezes after some minutes, e.g., approximately 30 minutes.  

I also ran the system in nfsboot mode. Unfortunately, then, the system freezes after boot as well.

In the next step I built the older Yocto Linux version 3.1.2. With this version, the nfsboot on the EZKIT seems to work in a stable way. However, when trying to run spiboot, an error occurs whenever reading the kernel from spi memory in uboot with an error message reporting a wrong image format for bootm. I was able to work around this problem by using the stage1-boot.ldr and stage2-boot.ldr files from the version 5.0.0 build instead of the versions from 3.1.2 in combination with the kernel and the jff2 file from version 3.1.2.
Principally the boot process worked fine but later, unfortunately, error messages are shown indicating that the jff2 file system is broken (missing folder /var/run).

I am using a recent ADSP-SC594-EZKIT with SOM Rev C and EZKIT baseboard revision D.

Is there any kind of workaround to have version 5.0.0 running from SPI flash in a stable way?

Thank you and best regards

Hauke

Parents Reply Children
  • I have checked out version 5.0.0 from scratch and applied a few handwritten patches. Now it seems that I can build kernel 6.12. in the latest version. The problem was related mostly to patches in meta-adi layer that fix issues in the older kernel versions that are integrated in 6.12 anyway and do not need to be fixed anymore. Hence, removing the patches solved most issues.

    Running the new kernel in a quick test seemed to be stable nowThumbsup. I will test that more intensively later.

    One thing I quickly saw was that the mechanisms to load DSP firmware seems to have gone. In version 3.1.2 with the older kernel, there were entries in the file system/sys/class/remoteproc/remoteproc0 and /sys/class/remoteproc/remoteproc1. In version 5.0.0, the folder /sys/class/remoteproc is empty. Does this mechanism require another kernel config parameter in version 5.0.0 or does it work somehow in a different way?

    Thank you and best regards 

  • Have verified on my side. Let me look into that. 

  • Perfect, thank you very much for your efforts.

    I ran the kernel 6.12 for a longer time today. It seems principally stable - I could not observe any instable crashes or freezes. That is very good Thumbsup.

    However, the console output behavior is still a little annoying - it seems to be stuttering. E.g., when running dmesg, the console output stalls after a few lines. I then need to push return to obtain the next bunch of lines. Also, a "top" only fills a few lines.

    I then found that the serial console stuttering behavior seems to have a longer history with the latest kernel and tried many different approaches to fix it. Nothing could improve the console output. The last test was to add option "printk.threaded=0" and "printk.synchronous=1" in the boot args in uboot - with no change of behavior.

    This behavior was not observed in the 5.15 kernel. Is there a known workaround I could try to fix the behavior for the kernel 6.12?

  • Here open PR that fixes that, https://github.com/analogdevicesinc/linux/pull/2980 will be included in release 5.0.1. There is missing config flag in defconfig for sc594, and when moved from kernel 5.15 to 6.12 remoteporc Kconfig missing 32bit platform configuration flag for 32 bit ADSP's

  • Hi  
    thank you for taking care of this. I am looking forward to testing release 5.0.1 once it will be available!
    Best regards