Yocto .sdcard image

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

Yocto .sdcard image

2,913 Views
saurabh206
Senior Contributor III


Hi

I want to modify Yocto .sdcard image for my custom board.

Which file needs to modify to change .sdcard image?

Thanks

Saurabh

Tags (1)
0 Kudos
4 Replies

1,102 Views
Yuri
NXP Employee
NXP Employee

Hello,

  You need to rebuild Your project.

Please refer to the following :

How to modify yocto jethro and rebuild

How to modify source code and rebuild yocto project?

Have a great day,
Yuri

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

0 Kudos

1,102 Views
saurabh206
Senior Contributor III

Hi Yuri

Thanks for reply.

I have yocto build ready.

I want to prepare .sdcard image that include u-boot, uImage, dtb , rootfs, bmp logo and additional script.

I want to include bmp logo and additional script in yocto build, so whenever I build Yocto build I get final image.

So I need to modify sdcard image generation  to include additional files.

Thanks

Saurabh

0 Kudos

1,102 Views
pranavmadhu
Contributor IV

Hi Saurabh,

To add custom scripts and files, create a new meta layer of your own or create a new recipe on existing meta-*/recipr-*/ directory (refer other recipe to get reference), add your files and also add a bb file for the same. Now specify the name of bb file on the image which you are building. Better to create a new layer, refer section 5.1.8 in the link below to know how layers are created.

Yocto Project Development Manual

Also add the name of your bb file in the image file (eg: images/core-image-minimal.bb etc)

0 Kudos

1,102 Views
Yuri
NXP Employee
NXP Employee

You may mount the image file using "-o loop" option and treat  it as

file system.

Regards,

Yuri.

0 Kudos