Re: [yocto] Wic Image Generation

2024-04-22 Thread Quentin Schulz via lists.yoctoproject.org

Hi Brati,

Please always use the "Answer all" button so that the mailing list is 
still in copy.


On 4/22/24 11:47, Bratiranjan Acharya wrote:

Hi,

I've reviewed the information you shared. Can you clarify one thing for me?
In the last line, "bootloader --ptable gpt," what does it entail? Here's
the scenario: I have a gpt.bin file that creates all the necessary
partitions, but I'm aiming to generate a wic image instead. What steps
should I take? Do I still require the gpt.bin file, or is there an
alternative approach?



bootloader --ptable gpt

will generate the GPT table based on the partitions defined in the same 
file.


wic is capable of generating the GPT table for you.

I believe wic source code is in 
https://git.openembedded.org/openembedded-core/tree/scripts/lib/wic.


Cheers,
Quentin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62977): https://lists.yoctoproject.org/g/yocto/message/62977
Mute This Topic: https://lists.yoctoproject.org/mt/105458322/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Wic Image Generation

2024-04-22 Thread Quentin Schulz via lists.yoctoproject.org

Hi Brati,

On 4/16/24 10:36, Bratiranjan Acharya via lists.yoctoproject.org wrote:

You don't often get email from bratiranjan12=gmail@lists.yoctoproject.org. Learn 
why this is important


-- Forwarded message -
From: Bratiranjan Acharya 
mailto:bratiranja...@gmail.com>>
Date: Thu, 11 Apr 2024 at 11:12
Subject: Wic Image Generation
To: mailto:yocto@lists.yoctoproject.org>>


Hi,
I want to create a Wic image from total scratch. Like, i have a "gpt.bin" which creates 
the partition and put the required images in it. But, i want to reate a wic image which will do the 
same. So, for that do i need that "gpt.bin"? like, as per my knowledge wic cannot create 
the gpt partition please do correct me if am wrong. And i dont even have any .bbclass file which 
can help to create the wic image so please help me to generate this wic image from total scratch, 
what are the steps i need to follow, where i need to put the wks file and how i can write in the 
wks file.

FOR Eg: I need to have 6 partitions where i have a active and backup 
bootloader,kernel,rootfs so for that how we can write the wks file.



Have a look at what is done in meta-rockchip:
https://git.yoctoproject.org/meta-rockchip/tree/wic/rockchip.wks

This creates a wic image with 9 partitions and a GPT partition table.

Maybe https://docs.yoctoproject.org/dev-manual/wic.html could be useful 
as well. I'm not entirely sure we provide enough documentation for the 
wks file in the docs, so probably something we can improve, patches 
welcome :)


Cheers,
Quentin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62976): https://lists.yoctoproject.org/g/yocto/message/62976
Mute This Topic: https://lists.yoctoproject.org/mt/105458322/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Wic Image Generation

2024-04-16 Thread Bratiranjan Acharya
-- Forwarded message -
From: Bratiranjan Acharya 
Date: Thu, 11 Apr 2024 at 11:12
Subject: Wic Image Generation
To: 


Hi,
I want to create a Wic image from total scratch. Like, i have a "gpt.bin"
which creates the partition and put the required images in it. But, i want
to reate a wic image which will do the same. So, for that do i need that
"gpt.bin"? like, as per my knowledge wic cannot create the gpt
partition please do correct me if am wrong. And i dont even have any
.bbclass file which can help to create the wic image so please help me to
generate this wic image from total scratch, what are the steps i need to
follow, where i need to put the wks file and how i can write in the wks
file.

FOR Eg: I need to have 6 partitions where i have a active and backup
bootloader,kernel,rootfs so for that how we can write the wks file.

Thanks & Regards
Brati

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62935): https://lists.yoctoproject.org/g/yocto/message/62935
Mute This Topic: https://lists.yoctoproject.org/mt/105458322/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Wic Image Generation

2024-04-11 Thread SIMON BABY
I am also looking to format my eMMC card with 6 partitions with different
primary and secondary images. How can I achieve this using the wks file ?

Regards
Simon

On Thu, Apr 11, 2024 at 12:38 AM Bratiranjan Acharya <
bratiranja...@gmail.com> wrote:

> Hi,
> I want to create a Wic image from total scratch. Like, i have a "gpt.bin"
> which creates the partition and put the required images in it. But, i want
> to reate a wic image which will do the same. So, for that do i need that
> "gpt.bin"? like, as per my knowledge wic cannot create the gpt
> partition please do correct me if am wrong. And i dont even have any
> .bbclass file which can help to create the wic image so please help me to
> generate this wic image from total scratch, what are the steps i need to
> follow, where i need to put the wks file and how i can write in the wks
> file.
>
> FOR Eg: I need to have 6 partitions where i have a active and backup
> bootloader,kernel,rootfs so for that how we can write the wks file.
>
> Thanks & Regards
> Brati
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62920): https://lists.yoctoproject.org/g/yocto/message/62920
Mute This Topic: https://lists.yoctoproject.org/mt/105458322/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Wic Image Generation

2024-04-11 Thread Bratiranjan Acharya
Hi,
I want to create a Wic image from total scratch. Like, i have a "gpt.bin"
which creates the partition and put the required images in it. But, i want
to reate a wic image which will do the same. So, for that do i need that
"gpt.bin"? like, as per my knowledge wic cannot create the gpt
partition please do correct me if am wrong. And i dont even have any
.bbclass file which can help to create the wic image so please help me to
generate this wic image from total scratch, what are the steps i need to
follow, where i need to put the wks file and how i can write in the wks
file.

FOR Eg: I need to have 6 partitions where i have a active and backup
bootloader,kernel,rootfs so for that how we can write the wks file.

Thanks & Regards
Brati

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62913): https://lists.yoctoproject.org/g/yocto/message/62913
Mute This Topic: https://lists.yoctoproject.org/mt/105458322/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-