CC33XX-SOFTWARE: cc33xx kernel patch on kernel version 6.6

Part Number: CC33XX-SOFTWARE

Tool/software:

Hi,

I'm facing some problems regarding the cc33xx kernel drivers.

  • I'm working on a yocto scarthgap buildsystem to generate an image for my board
  • I'm on Linux kernel version 6.6

So I found a ti repo with a patch for 6.6: https://github.com/TexasInstruments-Sandbox/cc33xx-linux-mpu-ports/blob/main/6.6.y/0001-drivers-cc33xx-forward-port-cc33xx-1.0.2.10-SDK-driv.patch

But when I try to apply both patches with a bbappend file to the linux-xxx recipe, the build already stops after facing issues with the cc33xx_kernel.patch and never comes to a point where the 0001-drivers-cc33xx-forward-port-cc33xx-1.0.2.10-SDK-driv.patch can "hopefully" solve these issues. So it seems to me that these patches are made for manual execution. What I need is one cc33xx_kernel_6.6.patch file that fits for kernel version 6.6.

Is this somewhere available? Or is it possible for TI to provide?

Thanks a lot.

SJ

  • Hi SJ,

    This is probably expected. The issue is that 'cc33xx_kernel.patch' is not really a "git patch" but more of a "git diff". 

    A fix for this would be to create your own patch that can be integrated into your Yocto build. You can take your kernel source code (assuming it is already tracked by git) and execute the following:

    1. cd <your_linux_repo>

    2. patch -p0 < cc33xx_kernel.patch

    3. patch -p1 < 0001-drivers-cc33xx-forward-port-cc33xx-1.0.2.10-SDK-driv.patch

    4. git add -A (be careful using ALL, but written here for simplicity)

    5. git commit -m "add cc33xx driver"

    6. git format-patch -1

    The output file will be like "0001-add-cc33xx-driver.patch" which you can integrate into your Yocto build. Let me know if you have issues with this.