All of lore.kernel.org
 help / color / mirror / Atom feed
* ask a question about filesystem in yocto
@ 2019-08-10  7:20 www
  2019-08-10  8:26 ` Maciej Pijanowski
  0 siblings, 1 reply; 3+ messages in thread
From: www @ 2019-08-10  7:20 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

Dear all,


I'm new learner and user of yocto. When I used it, I encountered a problem. I don't know how to resolve it, so I ask for help.
the problem is how can I create a new partition on yocto? if I have a package named webui, it can be generate several execute files and configuration files, the execute files will be install into filesystem, such as "/usr/bin", and be packed to rofs. but I don't want pack the configuration files  to rofs, and I want create a new image and the image will be a partition of the global image, and pack the configuration file to it, when the system start running, it can be  separate    mount to the filesystem.


When pack to rofs image, I don't know how to separate the execute file and configuration file in the webui package and pack to different part. Can someone help me to tell me how to solve this problem?


I am looking forward to your reply.


thanks,
Byron

[-- Attachment #2: Type: text/html, Size: 1457 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ask a question about filesystem in yocto
  2019-08-10  7:20 ask a question about filesystem in yocto www
@ 2019-08-10  8:26 ` Maciej Pijanowski
       [not found]   ` <5d880543.54cd.16c8463a940.Coremail.ouyangxuan10@163.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Maciej Pijanowski @ 2019-08-10  8:26 UTC (permalink / raw)
  To: www, yocto

[-- Attachment #1: Type: text/plain, Size: 1620 bytes --]


On 10.08.2019 09:20, www wrote:
> Dear all,
Hi,
>
> I'm new learner and user of yocto. When I used it, I encountered a 
> problem. I don't know how to resolve it, so I ask for help.
> the problem is how can I create a new partition on yocto? if I have a 
> package named webui, it can be generate several execute files and 
> configuration files, the execute files will be install into 
> filesystem, such as "/usr/bin", and be packed to rofs. but I don't 
> want pack the configuration files  to rofs, and I want create a new 
> image and the image will be a partition of the global image, and pack 
> the configuration file to it, when the system start running, it can be 
> separate    mount to the filesystem.
>
> When pack to rofs image, I don't know how to separate the execute file 
> and configuration file in the webui package and pack to different 
> part. Can someone help me to tell me how to solve this problem?
Please take a look at wic: 
https://www.yoctoproject.org/docs/2.4.2/dev-manual/dev-manual.html#creating-partitioned-images-using-wic

You can for example exclude some subdirectory from main rootfs partition 
and place it onto another partition instead.

Take a look at following wic flags:
--rootfs-dir
--exclude-path

You can define subdirs to split in local.conf or another config file 
(e.g. distro config) using the WIC_CREATE_EXTRA_ARGS
and flags as: --rootfs-dir rootfs-main=${IMAGE_ROOTFS}
>
> I am looking forward to your reply.
>
> thanks,
> Byron
>
>
>
-- 
Maciej Pijanowski
Embedded Systems Engineer
https://3mdeb.com | @3mdeb_com


[-- Attachment #2: Type: text/html, Size: 4065 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ask a question about filesystem in yocto
       [not found]   ` <5d880543.54cd.16c8463a940.Coremail.ouyangxuan10@163.com>
@ 2019-08-12  5:58     ` Maciej Pijanowski
  0 siblings, 0 replies; 3+ messages in thread
From: Maciej Pijanowski @ 2019-08-12  5:58 UTC (permalink / raw)
  To: www, yocto


[-- Attachment #1.1.1: Type: text/plain, Size: 2306 bytes --]


On 12.08.2019 07:53, www wrote:
>
> Hi Maciej Pijanowski,
Hi,
>
> Thank you for your kind help. I'll try it. Thank you.

Please reply to the mailing list as well when using the public mailings
lists,
so others can see the discussion.

>
> thanks,
> Byron
>
>
>
>
> 在 2019-08-10 16:26:19,"Maciej Pijanowski"
> <maciej.pijanowski@3mdeb.com> 写道:
>
>
>     On 10.08.2019 09:20, www wrote:
>>     Dear all,
>     Hi,
>>
>>     I'm new learner and user of yocto. When I used it, I encountered
>>     a problem. I don't know how to resolve it, so I ask for help.
>>     the problem is how can I create a new partition on yocto? if I
>>     have a package named webui, it can be generate several execute
>>     files and configuration files, the execute files will be install
>>     into filesystem, such as "/usr/bin", and be packed to rofs. but I
>>     don't want pack the configuration files  to rofs, and I want
>>     create a new image and the image will be a partition of the
>>     global image, and pack the configuration file to it, when the
>>     system start running, it can be  separate    mount to the filesystem.
>>
>>     When pack to rofs image, I don't know how to separate the execute
>>     file and configuration file in the webui package and pack to
>>     different part. Can someone help me to tell me how to solve this
>>     problem?
>     Please take a look at wic:
>     https://www.yoctoproject.org/docs/2.4.2/dev-manual/dev-manual.html#creating-partitioned-images-using-wic
>
>     You can for example exclude some subdirectory from main rootfs
>     partition and place it onto another partition instead.
>
>     Take a look at following wic flags:
>     --rootfs-dir
>     --exclude-path
>
>     You can define subdirs to split in local.conf or another config
>     file (e.g. distro config) using the WIC_CREATE_EXTRA_ARGS
>     and flags as: --rootfs-dir rootfs-main=${IMAGE_ROOTFS}
>>
>>     I am looking forward to your reply.
>>
>>     thanks,
>>     Byron
>>
>>
>>      
>>
>>
>     -- 
>     Maciej Pijanowski
>     Embedded Systems Engineer
>     https://3mdeb.com | @3mdeb_com
>
>
>
>  
>
-- 
Maciej Pijanowski
Embedded Systems Engineer
https://3mdeb.com | @3mdeb_com


[-- Attachment #1.1.2: Type: text/html, Size: 6533 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 817 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-12  5:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-10  7:20 ask a question about filesystem in yocto www
2019-08-10  8:26 ` Maciej Pijanowski
     [not found]   ` <5d880543.54cd.16c8463a940.Coremail.ouyangxuan10@163.com>
2019-08-12  5:58     ` Maciej Pijanowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.