This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM335X: Porting SDK 05.07 to Processor SDK

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: TPS65217

Tool/software: Linux

Hi,

I want to port uboot/kernel/rootfs from Sitara SDK 05.07.00 to PROCESSOR-SDK-LINUX-AM335X  04_02_00_09 for a customized printer controller board (based on AM335xx EVM). Lot of code changes had happened to this customized board in Sitara SDK 05.07.00. If i have to port to new sdk release, how to start with.

Thanks,

Jeya

 

  • Jeya,

    Given the large time differences between these two releases, a lot is going to change. Your effort also depends on how you did the development on 5.07. If you used git well and have a comprehensive set of patches that represent the changes made for your custom board, the overall effort is to see how to apply each change in the new 4.02 world. I'm sorry there will not be many absolute answers.

    For U-Boot and the Kernel, each have moved from being board file based to mainly Device Tree based for board porting. So, you will definitely need to learn Device Tree.  The best place to get started with DT is here:

    https://www.youtube.com/watch?v=m_NyYEBxfn8

    Once you have a good DT foundation, I would start comparing a board that was supported in 5.07 and is also supported in 4.02. The Beaglebone Black would be a good choice. Effectively this serves as an example of what you need to do for your board. You will mostly be moving configuration that used to be done in the board file to DT. You can do this iteratively taking one interface at a time. Get your board to boot in 4.02 and add interfaces until you are done.

    For file system, it really depends how you built it and what changes you made. We use Yocto/OE to build the FS for the Processor SDKs. Adding your own layers to apply changes as needed for your applications is one path you could take and is the best supported by the Processor SDK.

    Theoretically, your new U-Boot and Kernel should work with your existing FS, but given the time difference here, you may run into issues. The Processor SDK FS that comes with 4.02 might be a better place to start.

    I hope this information is useful for you.

  • Hi

    Thank you very much for the detailed reply.

    One more question i get is:

    Should i start modifying dts with base as am335x-evm.dts or am335x-bone.dts or am335x-boneblack.dts? Then i have to compile uboot using relevant am335x_***_defconfig also, right?

    I need to add support for tps65217 power chip, nand flash, ethernet micrel 9021 and few others. Currently it is not detecting nand flash, ethernet.  Please suggest me which dts file to take as reference and make modifications.

    Thanks,

    Jeya

  • Jeya,

    The EVM DTS has NAND and ethernet, I believe, so it would probably be the best to use as a base. However, feel free to steal from the others as you need to. They serve as great examples.

    Unless you need to change the defconfig, it should be fine.

    Focus on one interface at a time and get it to work before trying to get any others to work.
  • Hi RonB,

    Thank you for your suggestion. I'll try that way.

    Thanks,

    Jeya