Yocto SDK for S32G VPN RDB3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Yocto SDK for S32G VPN RDB3

跳至解决方案
1,491 次查看
vinaybhat88922
Contributor II

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

标记 (2)
0 项奖励
回复
1 解答
1,475 次查看
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 项奖励
回复
1 回复
1,476 次查看
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 项奖励
回复