Yocto SDK for S32G VPN RDB3

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

Yocto SDK for S32G VPN RDB3

Jump to solution
156 Views
vinaybhat88922
Contributor I

Hi,

We are developing an application for s32grdb3 evaluation board. we want to cross compile our application using Yocto BSP version 39 - https://github.com/nxp-auto-linux/auto_yocto_bsp/tree/release/bsp39.0

We followed the process described in "S32G-VNP-GLDBOX3SOFTWARE ENABLEMENT GUIDE" (with necessary modifications ) to generate SDK so that we have all the libs that we need with compiler. The build process fails everytime with strange errors(its different every time). Question is, is the SDK available online ? Because we dont want to invest lot of time to build the SDK weirs our usecase in the end is only to cross compile our application

Tags (2)
0 Kudos
1 Solution
140 Views
chenyin_h
NXP Employee
NXP Employee

Thanks for the question.

Yes, the BSP is indeed available online, I understand that you may need the BSP itself, also, the compiler is needed due to the cross compiling for your own application.

  1. Installing the BSP:

Carefully following the README from

https://github.com/nxp-auto-linux/auto_yocto_bsp/tree/release/bsp39.0, the following commands may be useful for your reference:

mkdir ~/bin

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo  > ~/bin/repo

chmod a+x ~/bin/repo

PATH=${PATH}:~/bin

mkdir fsl-auto-yocto-bsp

cd fsl-auto-yocto-bsp

repo init -u https://github.com/nxp-auto-linux/auto_yocto_bsp -b release/bsp39.0

repo sync

./sources/meta-alb/scripts/host-prepare.sh

. nxp-setup-alb.sh -m s32g399ardb3

cd build_s32g399ardb3

bitbake fsl-image-auto

 

After the building, the BSP components including ATF, u-boot, Linux kernel and rootfs should be built successfully.

 

  1. Get the toolchain

According to the BSP39.0 User manual, the link for a compatible pre-built GCC 11.3.0 for ARM64 toolchain, as delivered by Arm at:

https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x...

Once you have downloaded the toolchain package, in order to install it, you just need to untar it in a directory of your choice, for example, you put it into the /home/test/toolchain

Then this toolchain could be used with your own application for cross compiling.

 

Hope it helps.

 

Best Regards

Chenyin

View solution in original post

0 Kudos
1 Reply
141 Views
chenyin_h
NXP Employee
NXP Employee

Thanks for the question.

Yes, the BSP is indeed available online, I understand that you may need the BSP itself, also, the compiler is needed due to the cross compiling for your own application.

  1. Installing the BSP:

Carefully following the README from

https://github.com/nxp-auto-linux/auto_yocto_bsp/tree/release/bsp39.0, the following commands may be useful for your reference:

mkdir ~/bin

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo  > ~/bin/repo

chmod a+x ~/bin/repo

PATH=${PATH}:~/bin

mkdir fsl-auto-yocto-bsp

cd fsl-auto-yocto-bsp

repo init -u https://github.com/nxp-auto-linux/auto_yocto_bsp -b release/bsp39.0

repo sync

./sources/meta-alb/scripts/host-prepare.sh

. nxp-setup-alb.sh -m s32g399ardb3

cd build_s32g399ardb3

bitbake fsl-image-auto

 

After the building, the BSP components including ATF, u-boot, Linux kernel and rootfs should be built successfully.

 

  1. Get the toolchain

According to the BSP39.0 User manual, the link for a compatible pre-built GCC 11.3.0 for ARM64 toolchain, as delivered by Arm at:

https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x...

Once you have downloaded the toolchain package, in order to install it, you just need to untar it in a directory of your choice, for example, you put it into the /home/test/toolchain

Then this toolchain could be used with your own application for cross compiling.

 

Hope it helps.

 

Best Regards

Chenyin

0 Kudos