All of lore.kernel.org
 help / color / mirror / Atom feed
* Two images in one
@ 2017-03-16  4:53 Keskinarkaus, Teemu
  2017-03-16 14:03 ` Otavio Salvador
  0 siblings, 1 reply; 6+ messages in thread
From: Keskinarkaus, Teemu @ 2017-03-16  4:53 UTC (permalink / raw)
  To: 'meta-freescale@yoctoproject.org'

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

Hi,

On older Yocto project for x86 based HW I have two images in one. Basically the normal image and second is backup system in case the normal system for whatever reason won't boot etc..Boot loader does the selection which image to start loading.

That project used hdddirect - image  so all the work was done for that.  Now I have iMX6 based HW and it uses sdcard - image and recipes and tasks are different I haven't been able to figure out how to do the similar thing on that.

So I have two, mostly, independent image recipes. One for normal and for backup system. The normal image recipe then adds the backup system image after main image and copies the kernel to the FAT partition along the normal image kernel. Basically just add one more partition to normal system image and add backup system rootfs there.

Problem now is that since the tasks etc.. are so different with sdcard - image compared to hdddirect that I haven't found a way (task to modify that is) how to add those partition etc.. tasks for adding the backup system.

Has anyone else done similar thing for sdcard - image and/or have any suggestion how to do that?

If someone knows if there is support in Yocto already that would be good to know. I'm using Yocto 2.1.

Also, if you think this should be on yocto - mailing list do tell. The sdcard - image creation is in meta-fsl-arm - layer so that's why I thought this mailing list would be better suited for it.

-TeemuK


________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.

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

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

* Re: Two images in one
  2017-03-16  4:53 Two images in one Keskinarkaus, Teemu
@ 2017-03-16 14:03 ` Otavio Salvador
  2017-03-20 11:36   ` Keskinarkaus, Teemu
  0 siblings, 1 reply; 6+ messages in thread
From: Otavio Salvador @ 2017-03-16 14:03 UTC (permalink / raw)
  To: Keskinarkaus, Teemu; +Cc: meta-freescale

On Thu, Mar 16, 2017 at 1:53 AM, Keskinarkaus, Teemu
<teemu.keskinarkaus@crosscontrol.com> wrote:
...
> Has anyone else done similar thing for sdcard – image and/or have any
> suggestion how to do that?

This fits better on the WIC tool use-case.

> If someone knows if there is support in Yocto already that would be good to
> know. I’m using Yocto 2.1.
>
> Also, if you think this should be on yocto – mailing list do tell. The
> sdcard – image creation is in meta-fsl-arm – layer so that’s why I thought
> this mailing list would be better suited for it.

I really want to kill the sdcard class soon; the WIC is the way to go
for now on...

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


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

* Re: Two images in one
  2017-03-16 14:03 ` Otavio Salvador
@ 2017-03-20 11:36   ` Keskinarkaus, Teemu
  2017-03-20 15:00     ` Otavio Salvador
  0 siblings, 1 reply; 6+ messages in thread
From: Keskinarkaus, Teemu @ 2017-03-20 11:36 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

Hi,

Thanks. I was able to create the normal image with WIC tool. What I wasn't able to do was find documentation that would describe how I'll add the second image there.

So I tried to add new partition and give second image's rootfs as source but it seems that I cannot get the source directory right and it won't find the image.

Do you know good documentation for that tool or know how that thing could be accomplished?

-TeemuK

-----Original Message-----
From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br]
Sent: 16. maaliskuuta 2017 16:04
To: Keskinarkaus, Teemu
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] Two images in one

On Thu, Mar 16, 2017 at 1:53 AM, Keskinarkaus, Teemu <teemu.keskinarkaus@crosscontrol.com> wrote:
...
> Has anyone else done similar thing for sdcard – image and/or have any
> suggestion how to do that?

This fits better on the WIC tool use-case.

> If someone knows if there is support in Yocto already that would be
> good to know. I’m using Yocto 2.1.
>
> Also, if you think this should be on yocto – mailing list do tell. The
> sdcard – image creation is in meta-fsl-arm – layer so that’s why I
> thought this mailing list would be better suited for it.

I really want to kill the sdcard class soon; the WIC is the way to go for now on...

--
Otavio Salvador                             O.S. Systems
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br&data=02%7C01%7Cteemu.keskinarkaus%40crosscontrol.com%7C52acaee234f540ddabdf08d46c753c20%7C1602ae82026640d6910b11680fe0f6a5%7C0%7C0%7C636252698240618706&sdata=o3TXzca%2BcoJL83h9l88r3Kl2PwIyFY1uT8NB9Tb%2Ba9k%3D&reserved=0        https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br&data=02%7C01%7Cteemu.keskinarkaus%40crosscontrol.com%7C52acaee234f540ddabdf08d46c753c20%7C1602ae82026640d6910b11680fe0f6a5%7C0%7C0%7C636252698240618706&sdata=76o6XrzjR%2BsFuLyxuP40jZiuL%2F1uCbZJUSkkrLkgEWM%3D&reserved=0
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.

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

* Re: Two images in one
  2017-03-20 11:36   ` Keskinarkaus, Teemu
@ 2017-03-20 15:00     ` Otavio Salvador
  2017-03-21  5:23       ` Keskinarkaus, Teemu
  2017-03-21  7:41       ` Keskinarkaus, Teemu
  0 siblings, 2 replies; 6+ messages in thread
From: Otavio Salvador @ 2017-03-20 15:00 UTC (permalink / raw)
  To: Keskinarkaus, Teemu; +Cc: meta-freescale

On Mon, Mar 20, 2017 at 8:36 AM, Keskinarkaus, Teemu
<teemu.keskinarkaus@crosscontrol.com> wrote:
> Thanks. I was able to create the normal image with WIC tool. What I wasn't able to do was find documentation that would describe how I'll add the second image there.
>
> So I tried to add new partition and give second image's rootfs as source but it seems that I cannot get the source directory right and it won't find the image.
>
> Do you know good documentation for that tool or know how that thing could be accomplished?

The multiple image support is being discussed on mailing list. You can
hook it externally but using the OE tooling I believe it is 2.3
material.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


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

* Re: Two images in one
  2017-03-20 15:00     ` Otavio Salvador
@ 2017-03-21  5:23       ` Keskinarkaus, Teemu
  2017-03-21  7:41       ` Keskinarkaus, Teemu
  1 sibling, 0 replies; 6+ messages in thread
From: Keskinarkaus, Teemu @ 2017-03-21  5:23 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

I was able to add the second rootfs there right after I sent the mail.

What do you mean by '2.3 material'?

-TeemuK

-----Original Message-----
From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br]
Sent: 20. maaliskuuta 2017 17:00
To: Keskinarkaus, Teemu
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] Two images in one

On Mon, Mar 20, 2017 at 8:36 AM, Keskinarkaus, Teemu <teemu.keskinarkaus@crosscontrol.com> wrote:
> Thanks. I was able to create the normal image with WIC tool. What I wasn't able to do was find documentation that would describe how I'll add the second image there.
>
> So I tried to add new partition and give second image's rootfs as source but it seems that I cannot get the source directory right and it won't find the image.
>
> Do you know good documentation for that tool or know how that thing could be accomplished?

The multiple image support is being discussed on mailing list. You can hook it externally but using the OE tooling I believe it is 2.3 material.

--
Otavio Salvador                             O.S. Systems
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.

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

* Re: Two images in one
  2017-03-20 15:00     ` Otavio Salvador
  2017-03-21  5:23       ` Keskinarkaus, Teemu
@ 2017-03-21  7:41       ` Keskinarkaus, Teemu
  1 sibling, 0 replies; 6+ messages in thread
From: Keskinarkaus, Teemu @ 2017-03-21  7:41 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

I also noticed that first time building image again I get Taskhash mismatch error in do_rootfs_wicenv - task. That goes away if I redo the image. I googled and it seems that the DATETIME bug/feature should be already fixed on that so I'm not sure where that Taskhash mismatch error comes from. Most likely not meta-freescale related thing anyway.

-Teemu

-----Original Message-----
From: Otavio Salvador [mailto:otavio.salvador@ossystems.com.br]
Sent: 20. maaliskuuta 2017 17:00
To: Keskinarkaus, Teemu
Cc: meta-freescale@yoctoproject.org
Subject: Re: [meta-freescale] Two images in one

On Mon, Mar 20, 2017 at 8:36 AM, Keskinarkaus, Teemu <teemu.keskinarkaus@crosscontrol.com> wrote:
> Thanks. I was able to create the normal image with WIC tool. What I wasn't able to do was find documentation that would describe how I'll add the second image there.
>
> So I tried to add new partition and give second image's rootfs as source but it seems that I cannot get the source directory right and it won't find the image.
>
> Do you know good documentation for that tool or know how that thing could be accomplished?

The multiple image support is being discussed on mailing list. You can hook it externally but using the OE tooling I believe it is 2.3 material.

--
Otavio Salvador                             O.S. Systems
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ossystems.com.br&data=02%7C01%7Cteemu.keskinarkaus%40crosscontrol.com%7Cd62357b17659487eecfc08d46fa1cb41%7C1602ae82026640d6910b11680fe0f6a5%7C0%7C0%7C636256188065714123&sdata=drdO68NZodV64WHQCMgjYFpyPVMNRmgFR382u5HZhcA%3D&reserved=0        https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcode.ossystems.com.br&data=02%7C01%7Cteemu.keskinarkaus%40crosscontrol.com%7Cd62357b17659487eecfc08d46fa1cb41%7C1602ae82026640d6910b11680fe0f6a5%7C0%7C0%7C636256188065714123&sdata=xGW0Jt4Bcb9q22GCLufEBB4KsrFbGmW4PcmrPFeXpxw%3D&reserved=0
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.

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

end of thread, other threads:[~2017-03-21  7:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-16  4:53 Two images in one Keskinarkaus, Teemu
2017-03-16 14:03 ` Otavio Salvador
2017-03-20 11:36   ` Keskinarkaus, Teemu
2017-03-20 15:00     ` Otavio Salvador
2017-03-21  5:23       ` Keskinarkaus, Teemu
2017-03-21  7:41       ` Keskinarkaus, Teemu

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.