This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using ArmTF-Test SP/SPD with Juno

Hi experts  ,

I configured my Juno board as this instruction and my workspace is initialized by the script from that page too.

Now I met some unknown issues when setting secure timer for my board. I find the ARM-TF provides a test secure payload and they utilize the secure timer so I want to try this payload to confirm my board's timer works well.

In this case, I'm wondering can I still use the workspace I got to build the TSP for Juno board?

If I can, could you please give me some hints about how to modify the build scripts? If I can't, is there any other instructions about applying the TSP on Juno?

Thank you in advance.

Simon

Parents
  • Hi Simon,

    It looks like the UART is being misconfigured on Juno.

    If you navigate to `<workspace>/arm-tf/include/plat/arm/board/common' and apply these 2 patches you'll see the TSP printing messages to UART1 (the bottom UART) as expected:

    v2m_def.patch     board_css_def.patch

    For example:

    NOTICE: TSP: v1.3(debug):v1.3-567-g3fb340a-dirty
    NOTICE: TSP: Built : 11:54:01, Aug 7 2017
    INFO: TSP: Total memory base : 0x4001000
    INFO: TSP: Total memory size : 0xa000 bytes
    INFO: ARM GICv2 driver initialized
    INFO: TSP: cpu 0x80000100: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000000 turned on
    INFO: TSP: cpu 0x80000000: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000001 turned on
    INFO: TSP: cpu 0x80000001: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000101 turned on
    INFO: TSP: cpu 0x80000101: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000102 turned on
    INFO: TSP: cpu 0x80000102: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000103 turned on
    INFO: TSP: cpu 0x80000103: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000100: 2 smcs, 2 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000001: 2 smcs, 2 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000100 resumed. maximum off power level 0
    INFO: TSP: cpu 0x80000100: 3 smcs, 3 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000001 resumed. maximum off power level 0
    INFO: TSP: cpu 0x80000001: 3 smcs, 3 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000101: 2 smcs, 2 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000001: 4 smcs, 4 erets 2 cpu suspend requests
    INFO: TSP: cpu 0x80000102: 2 smcs, 2 erets 1 cpu suspend requests

    I'll poke the ARM Trusted Firmware development team about this to see whether it's a known issue.

    Ta,
    Ash.

Reply
  • Hi Simon,

    It looks like the UART is being misconfigured on Juno.

    If you navigate to `<workspace>/arm-tf/include/plat/arm/board/common' and apply these 2 patches you'll see the TSP printing messages to UART1 (the bottom UART) as expected:

    v2m_def.patch     board_css_def.patch

    For example:

    NOTICE: TSP: v1.3(debug):v1.3-567-g3fb340a-dirty
    NOTICE: TSP: Built : 11:54:01, Aug 7 2017
    INFO: TSP: Total memory base : 0x4001000
    INFO: TSP: Total memory size : 0xa000 bytes
    INFO: ARM GICv2 driver initialized
    INFO: TSP: cpu 0x80000100: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000000 turned on
    INFO: TSP: cpu 0x80000000: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000001 turned on
    INFO: TSP: cpu 0x80000001: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000101 turned on
    INFO: TSP: cpu 0x80000101: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000102 turned on
    INFO: TSP: cpu 0x80000102: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000103 turned on
    INFO: TSP: cpu 0x80000103: 1 smcs, 1 erets 1 cpu on requests
    INFO: TSP: cpu 0x80000100: 2 smcs, 2 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000001: 2 smcs, 2 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000100 resumed. maximum off power level 0
    INFO: TSP: cpu 0x80000100: 3 smcs, 3 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000001 resumed. maximum off power level 0
    INFO: TSP: cpu 0x80000001: 3 smcs, 3 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000101: 2 smcs, 2 erets 1 cpu suspend requests
    INFO: TSP: cpu 0x80000001: 4 smcs, 4 erets 2 cpu suspend requests
    INFO: TSP: cpu 0x80000102: 2 smcs, 2 erets 1 cpu suspend requests

    I'll poke the ARM Trusted Firmware development team about this to see whether it's a known issue.

    Ta,
    Ash.

Children