How to change Rootfs name in yocto setup?

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

How to change Rootfs name in yocto setup?

跳至解决方案
2,399 次查看
bandarulavanya
Contributor V

Hi All,

I am trying to give our own defined names for sdcard boot partition and rootfs partitions which i created using yocto setup.

For Boot partition i can able to change in " /sources/meta-fsl-arm/classes$ vi image_types_fsl.bbclass" this file we need to change.

#BOOTDD_VOLUME_ID ?= "Boot ${MACHINE}"
BOOTDD_VOLUME_ID ?= "BOOT"

But for rootfs currently it is giving random digits like this " 52b25f42-b1b3-4091-a226-0952f04656c1" this one i need to change as "ROOTFS" how can i do it, can you please any one help me to sort it out.

Thanks & Regards,

Lavanya.

标记 (4)
1 解答
2,013 次查看
bandarulavanya
Contributor V

Hi all,

I found it

in /poky/meta/classes/image_types.bbclass we need to add like this

EXTRA_IMAGECMD_ext2 ?= "-i 4096 -L rootfs"
EXTRA_IMAGECMD_ext3 ?= "-i 4096 -L rootfs"
EXTRA_IMAGECMD_ext4 ?= "-i 4096 -L rootfs"

"-L rootfs" which will give name as rootfs instead of random digits.

Thanks & Regards,

Lavanya

在原帖中查看解决方案

1 回复
2,014 次查看
bandarulavanya
Contributor V

Hi all,

I found it

in /poky/meta/classes/image_types.bbclass we need to add like this

EXTRA_IMAGECMD_ext2 ?= "-i 4096 -L rootfs"
EXTRA_IMAGECMD_ext3 ?= "-i 4096 -L rootfs"
EXTRA_IMAGECMD_ext4 ?= "-i 4096 -L rootfs"

"-L rootfs" which will give name as rootfs instead of random digits.

Thanks & Regards,

Lavanya