Code Signing Tool(CST) in Yocto Environment for L1046ardb

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

Code Signing Tool(CST) in Yocto Environment for L1046ardb

2,394 Views
rashmitharamesh
Contributor III

Hi,

I am referring to https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf 

1. Section 10.3.4 Code Signing Tool says If Yocto doesn't install CST Package below steps should be followed

In the Yocto environment, the user can use below commands to rebuild cst:
1. bitbake cst-native –c cleanall
2. bitbake cst-native

While I try to execute these commands, i get an error saying

"Failed to fetch URL git://git.freescale.com/ppc/sdk/cst.git;nobranch=1"

2. I tried to edit cst_git.bb to edit the URL to 

SRC_URI = "git://git.freescale.com/git/cgit.cgi/ppc/sdk/cst.git;branch=sdk-v2.0.x"

But the execution is still using the old URL (which is incorrect)

How to make cst_git.bb reflect changes while executing?

3. What should be the value of SRCREV?

It looks like an auto-generated code, since I am modifying the URL. How do i get the corresponding SRCREV?

Is SRCREV = "${AUTOREV}" correct?

Thanks,

Rashmitha

chitra.amzarewale@utas.utc.com

Labels (1)
0 Kudos
3 Replies

1,978 Views
Pavel
NXP Employee
NXP Employee

I have removed SDK 2.0-1703 folder from Ubuntu 14.

Install again SDK 2.0 and SDK 2.0-1703.

There is no error message for these commands:

  1. bitbake cst-native –c cleanall
    2. bitbake cst-native

 

Try to remove SDK 2.0 from your Ubuntu, install again SDK 2.0 and SDK 2.0-1703 and test these commands again.

Have a great day,
Pavel Chubakov

0 Kudos

1,978 Views
Pavel
NXP Employee
NXP Employee

It looks like that your SDK is not completely installed.

The following command sequence was used under Ubuntu 14:

 

  1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos

 

  1. a) command: ls -l /bin/sh

                Message:  /bin/sh -> dash

  1. b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message:

                Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'

                Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'

                Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'

                Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'

  1. c) command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

 

  1. mount SDK source .iso file
  2. cd <sdk-install-dir>.
  3. ./sources/meta-freescale/scripts/host-prepare.sh

Usually Linux recommends also run the following command: sudo usr/sbin/visudo

  1. Install SDK 2.0-1703
  2. . fsl-setup-env -m ls1046ardb
  3. bitbake fsl-image-minimal
  4. bitbake cst-native -c cleanall
  5. bitbake cst-native

Have a great day,
Pavel Chubakov

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,978 Views
rashmitharamesh
Contributor III

Yes, I had missed Step 9. But even when i run command given in step 9, I am facing the same GIT URL error

WARNING: Failed to fetch URL git://git.freescale.com/ppc/sdk/cst.git;nobranch=1, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: unable to connect to git.freescale.com:
git.freescale.com: Name or service not known


ERROR: Function failed: Fetcher failure for URL: 'git://git.freescale.com/ppc/sdk/cst.git;nobranch=1'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/rashmitha/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/work/x86_64-linux/cst-native/git-r0/temp/log.do_fetch.27875
ERROR: Task 80 (virtual:native:/home/rashmitha/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-devtools/cst/cst_git.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 965 tasks of which 678 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
virtual:native:/home/rashmitha/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-devtools/cst/cst_git.bb, do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

.

.

.

I tried changing SOURCE_MIRROR_URL in local.conf to 

http://git.freescale.com/git/cgit.cgi/ppc/sdk/

Now the error is

ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: unable to connect to git.freescale.com:
git.freescale.com[0: 192.88.156.202]: errno=Connection timed out

.

.

Ping to 192.88.156.202 does not fetch any packets. Is there an issue with the GIT server?

0 Kudos