how to flash yocto image in s32g2

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

how to flash yocto image in s32g2

4,692 次查看
abhijeet1
Contributor I

I am using S32G274 board ,i make custom yocto image for this board create meta-layer and wrote recipe, but when i flash (core-image-eea-s32g274avtpdcu.rootfs_mini.sdcard) image to board my change not shown on board ,can you please tell me which image i need to flash on board and the process of flashing the image.

0 项奖励
回复
8 回复数

4,642 次查看
abhijeet1
Contributor I

Hi mayank

bitbake-layers create-layers meta-abhjeet

bitbake-layers add-layers meta-abhijeet (i try this but unable to add then I added manually)

bitbake-layers show-layers (my layer was showing)

then inside meta-abhijeet/recipes-example i create one folder server.

inside server i create server_0.1.bb file and files directory

inside files directory i wrote my code in .c file and add this .c file in server_0.1.bb file in SRC_URI = "file://ser.c"

and add "server" BPT-yocto_nxp-bsp_34_0/sources/meta-nxp-pdcu/recipes-core/images$ vim core-image-eea.bb 

IMAGE_INSTALL += " server" like that, then (bitbake server) after that build bitbake core-image-eea.

then i flash mini_sdcard image to my board but it will not shown in /usr/bin.

but when i extract core-image-eea-s32g274avtpdcu.roots.tar.bz2 file in my pc 

it will show the "ser" in usr/bin

i thought in mini-sdcard not show the full feature

0 项奖励
回复

4,634 次查看
MayanksPatel
NXP Employee
NXP Employee

Hi @abhijeet1,

Can you please try to flash the full image which will be generated recently?

Also, try the following command to build:

bitbake -f -c cleansstate core-image-eea;bitbake core-image-eea -c cleanall;bitbake core-image-eea

The command will clear the already updated image and re-create a new image.

I think that the ROOTFS is updating but the .sdcard image is not updating again.

 

Thanks,

Mayank s Patel

0 项奖励
回复

4,610 次查看
abhijeet1
Contributor I

Hi mayank 

full image means? , Today i tried bitbake -f -c cleansstate core-image-eea;bitbake core-image-eea -c cleanall;bitbake core-image-eea these command and then flash mini.sdcard image but still my changes are not reflected on board. 

Thank you 

Abhijeet Mourya

0 项奖励
回复

4,601 次查看
MayanksPatel
NXP Employee
NXP Employee

Hi @abhijeet1,

Can you share your image with me?

Also, Please share the screenshot of your folder "tmp/deploy/images/s32g274ardb2".

 

Thanks,

Mayank s Patel

0 项奖励
回复

4,550 次查看
abhijeet1
Contributor I

Hi mayank 

Please find the attachment below.

0 项奖励
回复

4,542 次查看
MayanksPatel
NXP Employee
NXP Employee

Hi @abhijeet1,

Why you are using "core-image-eea-s32g274avtpdcu.rootfs_mini.sdcard" image? Is there any specific use case for using this image?

Generally, "core-image-eea-s32g274avtpdcu.rootfs.sdcard" image should be used. Please try flashing this image and  check your recipe is included in the build or not.

 

Thanks,

Mayank s Patel

0 项奖励
回复

4,466 次查看
abhijeet1
Contributor I

Hi ,mayank 

i flashed core-image-eea-s32g274avtpdcu.rootfs.sdcard and now my recipe is included in the build .

Thank you for your support. 

0 项奖励
回复

4,657 次查看
MayanksPatel
NXP Employee
NXP Employee

Hi @abhijeet1,

How did you create the meta-layer and recipe in the yocto build? Please share the steps here.

I suspect that the meta-layer is not included in the build.

Also, you can follow the information available online for creating meta-layer and recipes using standard methods.

 

Hope this helps.

 

Thanks,

Mayank s Patel

0 项奖励
回复