How to build S32G3 GoldVIP project?

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

How to build S32G3 GoldVIP project?

Jump to solution
1,754 Views
DRAVE
Contributor IV

Hi nxp,

We want to build the GoldVIP project for S32G3. We couldn't find detailed construction documents for the GoldVIP project. Excuse me, is the GoldVIP project a Yocto project? Whether there is a GoldVIP project porting guide document? Thank you!

Labels (1)
0 Kudos
Reply
1 Solution
1,691 Views
GuilhermeS32G
Contributor III

Hello @DRAVE ,

 

Actually, building the GoldVIP image using Yocto project is possible.

NXP maintains the meta-gvip layer for this purpose.

The latest version at time of writing is release/goldvip-1.12.0. It is based on Linux BSP 41.0.

The required Yocto layers revisions are listed in here and here.

For this specific release, you may fetch the Yocto layer sources manually by running these commands:

mkdir sources && cd sources
git clone https://git.yoctoproject.org/meta-freescale/ && cd meta-freescale && git checkout 1aa79a0c9b7d6d8af626b2d39a1d518d70d28205 && cd ..
git clone https://git.openembedded.org/meta-python2 && cd meta-python2 && git checkout f02882e2aa9279ca7becca8d0cedbffe88b5a253 && cd ..
git clone https://git.yoctoproject.org/meta-security && cd meta-security && git checkout 1a3e42cedbd94ca73be45800d0e902fec35d0f0f && cd ..
git clone https://git.yoctoproject.org/meta-virtualization && cd meta-virtualization && git checkout cb2bc17e96552cdfc141d27bd9f4dbd95a872846 && cd ..
git clone https://git.openembedded.org/meta-openembedded && cd meta-openembedded && git checkout 8bb16533532b6abc2eded7d9961ab2a108fd7a5b && cd ..
git clone https://git.yoctoproject.org/poky/ && cd poky && git checkout 6d1a878bbf24c66f7186b270f823fcdf82e35383 && cd ..
git clone https://git.yoctoproject.org/meta-java && cd meta-java && git checkout 2926885ebb4c3780789918e0d2ce5ee42cf115a5 && cd ..
git clone https://git.yoctoproject.org/meta-aws && cd meta-aws && git checkout 7c32ab97047e0ac3f5e2c90a8021bf70e02f6d95 && cd ..
git clone https://github.com/nxp-auto-goldvip/meta-gvip && cd meta-gvip && git checkout 1e749d340290f92edba7b87ca35fc800fa9c814b && cd .. 
git clone https://github.com/nxp-auto-linux/meta-alb && cd meta-alb && git checkout 3d9b44b8ef908c9745db191b6e8657f7ef36fa12 && cd ../.. && cp sources/meta-alb/nxp-setup-alb.sh .

 Alternatively, you may use the Repo tool to fetch these sources from Git automatically.

Once all the sources are downloaded, you can run the shell script:

. nxp-setup-alb.sh -m s32g399ardb3

to initialize the build environment. This will create the folder build_s32g399ardb3.

Modify the file build_s32g399ardb3/conf/bblayers.conf to include the additional Yocto layers:

BBLAYERS ?= " \
 ...
  <path to sources/meta-aws> \
  <path to sources/meta-java> \
  <path to sources/meta-gvip> \
"

Then you can start the build by running:

bitbake fsl-image-goldvip

 

View solution in original post

0 Kudos
Reply
5 Replies
1,692 Views
GuilhermeS32G
Contributor III

Hello @DRAVE ,

 

Actually, building the GoldVIP image using Yocto project is possible.

NXP maintains the meta-gvip layer for this purpose.

The latest version at time of writing is release/goldvip-1.12.0. It is based on Linux BSP 41.0.

The required Yocto layers revisions are listed in here and here.

For this specific release, you may fetch the Yocto layer sources manually by running these commands:

mkdir sources && cd sources
git clone https://git.yoctoproject.org/meta-freescale/ && cd meta-freescale && git checkout 1aa79a0c9b7d6d8af626b2d39a1d518d70d28205 && cd ..
git clone https://git.openembedded.org/meta-python2 && cd meta-python2 && git checkout f02882e2aa9279ca7becca8d0cedbffe88b5a253 && cd ..
git clone https://git.yoctoproject.org/meta-security && cd meta-security && git checkout 1a3e42cedbd94ca73be45800d0e902fec35d0f0f && cd ..
git clone https://git.yoctoproject.org/meta-virtualization && cd meta-virtualization && git checkout cb2bc17e96552cdfc141d27bd9f4dbd95a872846 && cd ..
git clone https://git.openembedded.org/meta-openembedded && cd meta-openembedded && git checkout 8bb16533532b6abc2eded7d9961ab2a108fd7a5b && cd ..
git clone https://git.yoctoproject.org/poky/ && cd poky && git checkout 6d1a878bbf24c66f7186b270f823fcdf82e35383 && cd ..
git clone https://git.yoctoproject.org/meta-java && cd meta-java && git checkout 2926885ebb4c3780789918e0d2ce5ee42cf115a5 && cd ..
git clone https://git.yoctoproject.org/meta-aws && cd meta-aws && git checkout 7c32ab97047e0ac3f5e2c90a8021bf70e02f6d95 && cd ..
git clone https://github.com/nxp-auto-goldvip/meta-gvip && cd meta-gvip && git checkout 1e749d340290f92edba7b87ca35fc800fa9c814b && cd .. 
git clone https://github.com/nxp-auto-linux/meta-alb && cd meta-alb && git checkout 3d9b44b8ef908c9745db191b6e8657f7ef36fa12 && cd ../.. && cp sources/meta-alb/nxp-setup-alb.sh .

 Alternatively, you may use the Repo tool to fetch these sources from Git automatically.

Once all the sources are downloaded, you can run the shell script:

. nxp-setup-alb.sh -m s32g399ardb3

to initialize the build environment. This will create the folder build_s32g399ardb3.

Modify the file build_s32g399ardb3/conf/bblayers.conf to include the additional Yocto layers:

BBLAYERS ?= " \
 ...
  <path to sources/meta-aws> \
  <path to sources/meta-java> \
  <path to sources/meta-gvip> \
"

Then you can start the build by running:

bitbake fsl-image-goldvip

 

0 Kudos
Reply
1,594 Views
GuilhermeS32G
Contributor III

Hello,

 

Although my previous answer is able to build the GoldVIP image (with some small configurations), it does not build all the features of the GoldVIP image without appending these features in the conf/local.conf file.

For following the standard build process, refer to the chapter 25 of the GoldVIP-S32G3-1.12.0-User-Manual.pdf.

 

Thanks,

 

Guilherme

0 Kudos
Reply
1,640 Views
DRAVE
Contributor IV

Hi @GuilhermeS32G

 Thanks for your reply! I was having trouble downloading openjdk-8 when using the "bitbake fsl-image-goldvip" command. Been waiting for openjdk-8 to download. Do you know why? Is it my own Internet reason? Thank you!

DRAVE_0-1731293787787.png

 

Tags (1)
0 Kudos
Reply
1,630 Views
GuilhermeS32G
Contributor III

Hello @DRAVE ,

 

It is likely that your connectivity to the download mirrors is the problem. Although I did have problems downloading some files (namely xalan, avalon-framework-api, xml-commons-resolver), openjdk downloaded succesfully from my side.

It seems this problem with openjdk is not new:

https://community.nxp.com/t5/S32G/s32g2-goldvip-bitbake-failure-with-openjdk/m-p/1829915

 

In your case, you can stop this build by pressing Ctrl+C as it is clearly stuck.

When some files cannot be downloaded directly from Yocto, one option is to download them manually and placing them in your downloads folder. The next time you start the build, bitbake will detect these files and will not attempt to download them again.

You can try to download the missing files from this mirror:

https://mirrors.kernel.org/yocto-sources/openjdk-f89009ada191.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-corba-aarch64-shenandoah-jdk8u272-b10.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-corba-jdk8u272-ga.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-hotspot-aarch64-shenandoah-jdk8u272-b10.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-hotspot-jdk8u272-ga.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-jaxp-aarch64-shenandoah-jdk8u272-b10.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-jaxp-jdk8u272-ga.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-jaxws-aarch64-shenandoah-jdk8u272-b10.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-jaxws-jdk8u272-ga.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-jdk-aarch64-shenandoah-jdk8u272-b10.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-jdk-jdk8u272-ga.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-jdk8u-aarch64-shenandoah-jdk8u272-b10.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-jdk8u-jdk8u272-ga.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-langtools-aarch64-shenandoah-jdk8u272-b10.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-langtools-jdk8u272-ga.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-nashorn-aarch64-shenandoah-jdk8u272-b10.tar.bz2
https://mirrors.kernel.org/yocto-sources/openjdk8-272-nashorn-jdk8u272-ga.tar.bz2

Something that you may try is to download all the required files before start building the image. To achieve this, you may use the command:

 

bitbake -k fsl-image-goldvip --runall=fetch

 

If there are errors downloading files, you may either retry or manually download them and place in the correct folder until no files are missing.

 

Best regards,

Guilherme

0 Kudos
Reply
1,725 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @DRAVE 

Thanks for the post.

As described in the GoldVIP link:

https://www.nxp.com/design/design-center/software/automotive-software-and-tools/s32g-vehicle-integra...

It integrates NXP standard and reference software, along with open source and third-party software to provide an evaluation, development and rapid prototyping platform.

GoldVIP is not a Yocto project, there are A53 side code(BSP), M7 side code included, for using it, I suggest referencing the document included in the GoldVIP packages, especially the user manual.

By the way, you may get the GoldVIP from the following link:

https://www.nxp.com/app-autopackagemgr/automotive-software-package-manager:AUTO-SW-PACKAGE-MANAGER

chenyin_h_0-1730776801771.png

I hope it will help.

By the way, we are doing a GoldVIP user survey(https://forms.office.com/e/9iwTrQCWi0), thanks for filling it out if you feel interested in the GoldVIP, any input from the customer would help us on improving the quality for GoldVIP.

Thank you very much.

 

BR

Chenyin

 

 

 

 

0 Kudos
Reply