Error reading DDR from LS1043ardb target

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error reading DDR from LS1043ardb target

1,053 Views
hoanguyen
Contributor II

Attached is the error when reading DDR from ls1043ardb target. The error is: "ERROR:root:code for hash md5 was not found". Have anyone run into this problem and how to resolve it?

 

CodeWarrior Development Studio for QorIQ LS series - ARM V8 ISA

 

(c) Freescale Semiconductor, Inc. 2014. All rights reserved.
Learn more about CodeWarrior at
http://www.freescale.com/codewarrior

 

Version: 11.2.3

Original Attachment has been moved to: DDR_1043A_Error.txt.zip

0 Kudos
7 Replies

830 Views
nguyenhoa
Contributor I

Adrian,

With the correction, I got the following error:

Traceback (most recent call last):
File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/resources/QorIQ/cdde/ddr/import_from_target.py", line 82, in <module>
import_from_target()
File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/resources/QorIQ/cdde/ddr/import_from_target.py", line 52, in import_from_target
ddr_init.update_endianness(params['soc'], ddr_ctrl, session)
File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/resources/QorIQ/cdde/ddr/ddr_init.py", line 45, in update_endianness
ddr_ip_rev = session.read_32_ccsr(ddr_ctrl['address'] + DDR_IP_REV_OFFSET)
File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/resources/QorIQ/cdde/common/target_session.py", line 110, in read_32_ccsr
bytes = self._peer.mem.read(self._ccsr, address, access, 4, verify=verify)
File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/target-connection/cdde/cdde-linux/bin/components/tcf/ta/tcf.py", line 1752, in read
ctxt = self._search_context_by_name(contextPath)
File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/target-connection/cdde/cdde-linux/bin/components/tcf/ta/tcf.py", line 1263, in _search_context_by_name
return self.get_context_by_relative_path(active, self.displayNamePropId, relPath)
File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/target-connection/cdde/cdde-linux/bin/components/tcf/ta/tcf.py", line 1250, in get_context_by_relative_path
_throw_error("Context path " + str(relPath) + " unresolved")
File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/target-connection/cdde/cdde-linux/bin/components/tcf/ta/tcf.py", line 75, in _throw_error
raise TcfError(description)
ta.tcf.TcfError: 'Context path /CCSR unresolved'

Have you got a chance to run this test from a LInux host?

Hoa

0 Kudos

830 Views
addiyi
NXP Employee
NXP Employee

Yes, I tested on my side on a CentOS 7 machine. You should try the followings:

Install the libraries as describes in Readme file:

CentOS 7 or newer
* Elevate to root using su
* In the terminal run the following commands:
# yum install --setopt=protected_multilib=false libXrandr.i686
# yum install --setopt=protected_multilib=false libXpm.i686
# yum install --setopt=protected_multilib=false gtk2.i686
# yum install --setopt=protected_multilib=false libXtst.i686
# yum install --setopt=protected_multilib=false libusb.i686
# yum install --setopt=protected_multilib=false libuuid.i686
# yum install --setopt=protected_multilib=false glibc.i686
# yum install --setopt=protected_multilib=false libstdc++.i686
# yum install --setopt=protected_multilib=false libgcc.i686
# yum install --setopt=protected_multilib=false libxcb.i686
# yum install --setopt=protected_multilib=false nspr.i686
# yum install --setopt=protected_multilib=false cairo.i686
# yum install --setopt=protected_multilib=false glib2.i686
# yum install --setopt=protected_multilib=false libXdamage.i686
# yum install --setopt=protected_multilib=false pango.i686
# yum install --setopt=protected_multilib=false fontconfig.i686

Go to \Common\QCVS\Optimization\target-connection\cdde\cdde-linux\bin\ and execute:

createlinks_xpcom.sh

setenv.sh

Resolve any errors and give it a try again.

Adrian

0 Kudos

830 Views
hoanguyen
Contributor II

Adrian,

I got the same error

Traceback (most recent call last):
  File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/resources/QorIQ/cdde/ddr/import_from_target.py", line 15, in <module>
    from common import utils, script_cmd
  File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/resources/QorIQ/cdde/common/utils.py", line 77
    return os.path.realpath(params_folder_name))
                                               ^
SyntaxError: invalid syntax

this Linux version is:

CentOS Linux release 7.2.1511 (Core)

Linux turtle4 3.10.0-327.36.1.el7.x86_64 #1 SMP Sun Sep 18 13:04:29 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

thanks,

Hoa

0 Kudos

830 Views
addiyi
NXP Employee
NXP Employee

return os.path.realpath(params_folder_name)) is invalid. You should have return os.path.realpath(params_folder_name)

Adrian

0 Kudos

830 Views
nguyenhoa
Contributor I

Thanks Adrian for responding to my question but I still have the following error:

Traceback (most recent call last):
  File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/resources/QorIQ/cdde/ddr/import_from_target.py", line 15, in <module>
    from common import utils, script_cmd
  File "/opt/Freescale/CW4NET_v2016.01/Common/QCVS/Optimization/resources/QorIQ/cdde/common/utils.py", line 77
    return os.path.realpath(params_folder_name))
                                               ^
SyntaxError: invalid syntax

Somehow I don't have an option to attach the utils.py file, so I just paste line 77 here:

def get_script_params_folder():
    """  
    Determines the temporary folder that holds the script paramter files  
    but also the script binaries, in case of tests that execute on the core.  
    """
    params_folder_name = os.environ.get('VALIDATION_SCRIPT_PARAMS_FOLDER', 'qcvs')
    return os.path.realpath(params_folder_name))
 

It sounds like more change is needed to correect this problem

Hoa

0 Kudos

830 Views
addiyi
NXP Employee
NXP Employee

Try attached file.

Also, provide the info about your linux OS.

0 Kudos

830 Views
addiyi
NXP Employee
NXP Employee

You are using CW on a Linux host OS? If yes, please try the followings steps:

Go to:

 

\Common\QCVS\Optimization\resources\QorIQ\cdde\common\utils.py and comment

 

import tempfile

 

and replace:

 

return os.path.realpath(os.path.join(tempfile.gettempdir(), params_folder_name)) with return os.path.realpath(params_folder_name)

Adrian

0 Kudos