Hi Chunyan,

 

Thanks for your help.

 

By the way, CAT is the CoreSight Access Tool.

 

Now I follow your suggestions.

Connect DStream to Juno via JTAG;

Run 'Debug Hardware Configuration' on PC, connect the device - i.e. Juno When kernel crush happens, press 'Auto Configure' of 'Debug Hardware Configuration', then kernel will restart.

 

It still crashes. The boot log is attached for your reference.

A bit puzzled on what to do next.

 

Regards,

Yan Lin Aung

 

-----Original Message-----
From: Chunyan Zhang [mailto:zhang.chunyan@linaro.org]
Sent: Thursday, November 17, 2016 5:57 PM
To: Yan Lin Aung (Dr)
Cc: Mathieu Poirier; coresight@lists.linaro.org; Yan Lin Aung
Subject: Re: CoreSight post from yan_lin_aung@yahoo.com requires approval

 

On 17 November 2016 at 17:06, Yan Lin Aung (Dr) <yan_lin_aung@pmail.ntu.edu.sg> wrote:

> Hi Chunyan,

> 

> I have DStream here as well and can do waking up of DAP via CSAT.

 

What's CSAT?

 

I might not make enough clear in the last mail, powering on debug power domain is something have to be done if we want to use CoreSight on Juno.

 

> As you mentioned, this should not cause kernel crash.

> 

> The Linaro kernel 4.8.0-rc4 boots up fine normally.

> After doing the diff on two configs, it only crashes when I enable the following configs:

> 

> CONFIG_CORESIGHT=y

> CONFIG_CORESIGHT_LINKS_AND_SINKS=y

> CONFIG_CORESIGHT_LINK_AND_SINK_TMC=y

> CONFIG_CORESIGHT_SINK_TPIU=y

> CONFIG_CORESIGHT_SINK_ETBV10=y

> CONFIG_CORESIGHT_SOURCE_ETM4X=y

> 

> Any suggestions?

 

I seems that the problem is just related with CoreSight, so now try to power on debug domain that CoreSight is located on, and to see if the problem will disappear.

 

The operation steps I always do are:

Connect DStream to Juno via JTAG;

Run 'Debug Hardware Configuration' on PC, connect the device - i.e. Juno When kernel crush happens, press 'Auto Configure' of 'Debug Hardware Configuration', then kernel will restart.

 

Regards,

Chunyan

 

 

> Thanks.

> 

> Regards,

> Yan Lin Aung

> 

> -----Original Message-----

> From: Chunyan Zhang [mailto:zhang.chunyan@linaro.org]

> Sent: Thursday, November 17, 2016 3:00 PM

> To: Yan Lin Aung (Dr)

> Cc: Mathieu Poirier; coresight@lists.linaro.org; Yan Lin Aung

> Subject: Re: CoreSight post from yan_lin_aung@yahoo.com requires

> approval

> 

> On 17 November 2016 at 14:14, Yan Lin Aung (Dr) <yan_lin_aung@pmail.ntu.edu.sg> wrote:

>> Hi Mathieu,

>> 

>> It is good that you are now convinced to move from Juno to db410c as a reference platform for CoreSight.

>> I will be looking forward to it.

>> 

>> Of course, I will try to get things working on Juno r2.

>> The Linaro 16.09/16.10 deliverables provide kernel 4.8.0-rc4 option (i.e. Linaro tracking kernel).

>> I tried compiling from source enabling CoreSight config but somehow the kernel crash during boot up.

> 

> Some components of CoreSight on Juno are on the debug power domain which normally is switched off. I gets DStream connected with Juno via JTAG and then power on debug domain via DS-5 (specially is Debug Hardware Configuration).

> 

> But if I remember correctly, this shouldn't cause kernel crash.

> 

> I would suggest to use a released image [1] to run up Juno first, and then get the /proc/config.gz on Juno to you PC, then reconfigure your kernel source code based on the configurations just got from the running Juno, the thing maybe that there're some configurations have to be selected, but not included in the defconfig.

> 

> Hopes it would help.

> 

> Cheers,

> Chunyan

> 

> [1] https://community.arm.com/docs/DOC-10952

> 

>> 

>> Any help can be given for the Juno r2?

>> 

>> Thanks.

>> 

>> Regards,

>> Yan Lin Aung

>> 

> 

> [...]

> 

>> _______________________________________________

>> CoreSight mailing list

>> CoreSight@lists.linaro.org

>> https://lists.linaro.org/mailman/listinfo/coresight

> ________________________________

> CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents.

> Towards a sustainable earth: Print only when necessary. Thank you.