From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id B50C876FF2 for ; Mon, 19 Oct 2015 15:41:47 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-03.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZoCZH-0005Mk-JI from Noor_Ahsan@mentor.com ; Mon, 19 Oct 2015 08:41:47 -0700 Received: from EU-MBX-01.mgc.mentorg.com ([169.254.1.18]) by SVR-IES-FEM-03.mgc.mentorg.com ([137.202.0.108]) with mapi id 14.03.0224.002; Mon, 19 Oct 2015 16:41:47 +0100 From: "Ahsan, Noor" To: "ed.bartosh@linux.intel.com" Thread-Topic: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 Thread-Index: AdEKhKgGSnfGRIbXS9+W9PrdxyfvIw== Date: Mon, 19 Oct 2015 15:41:46 +0000 Message-ID: <365E1805BC95084CBE82381A0B86999401095F9A9A@EU-MBX-01.mgc.mentorg.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.202.0.76] MIME-Version: 1.0 Cc: "Krishnakar, Srikanth" , "Larson, Chris" , "openembedded-core@lists.openembedded.org" Subject: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 15:41:49 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_365E1805BC95084CBE82381A0B86999401095F9A9AEUMBX01mgcmen_" --_000_365E1805BC95084CBE82381A0B86999401095F9A9AEUMBX01mgcmen_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, We are using wi.bz2 as our image fstypes. The image gets created smoothly f= or the first time. Our wks file uses -sourceparam argument and mention the = u-boot file part u-boot --source rawcopy --sourceparams=3D"file=3Du-boot-mx6-solox.imx"= --ondisk mmcblk --no-table --align 1 The issue comes when something is added to image recipe and it get rebuild.= At that time somehow u-boot-mx6-solox.imx gets deleted from deploy folder = and we get this error Error: exec_cmd: du -Lbks /home/noor/SB/release_2015.12/build_soloX/tmp/dep= loy/images/mx6-solox/u-boot-mx6-solox.imx returned '1' instead of 0 Checking basic build environment... Done. I was able to reproduce the error by cleaning image recipe and rebuilding i= t. I got the same error. So something is being done in wic setup which remo= ves the u-boot file. I need some help on this to resolve the issue of remov= al of u-boot. Noor --_000_365E1805BC95084CBE82381A0B86999401095F9A9AEUMBX01mgcmen_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

We are using wi.bz2 as our image fstypes. The image = gets created smoothly for the first time. Our wks file uses –sourcepa= ram argument and mention the u-boot file

 

part u-boot --source rawcopy --sourceparams=3D"= file=3Du-boot-mx6-solox.imx" --ondisk mmcblk --no-table --align 1=

 

The issue comes when something is added to image rec= ipe and it get rebuild. At that time somehow u-boot-mx6-solox.imx gets dele= ted from deploy folder and we get this error

 

Error: exec_cmd: du -Lbks /home/noor/SB/release_2015= .12/build_soloX/tmp/deploy/images/mx6-solox/u-boot-mx6-solox.imx returned '= 1' instead of 0

Checking basic build environment...

Done.

 

 

I was able to reproduce the error by cleaning image = recipe and rebuilding it. I got the same error. So something is being done = in wic setup which removes the u-boot file. I need some help on this to res= olve the issue of removal of u-boot.

 

Noor

--_000_365E1805BC95084CBE82381A0B86999401095F9A9AEUMBX01mgcmen_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id 8F94776710 for ; Tue, 20 Oct 2015 10:12:02 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZoTti-0007iQ-1G from Noor_Ahsan@mentor.com ; Tue, 20 Oct 2015 03:12:02 -0700 Received: from EU-MBX-01.mgc.mentorg.com ([169.254.1.18]) by SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) with mapi id 14.03.0224.002; Tue, 20 Oct 2015 11:12:01 +0100 From: "Ahsan, Noor" To: "ed.bartosh@linux.intel.com" Thread-Topic: [OE-core] U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 Thread-Index: AdEKhKgGSnfGRIbXS9+W9PrdxyfvIwAmtdIw Date: Tue, 20 Oct 2015 10:12:01 +0000 Message-ID: <365E1805BC95084CBE82381A0B86999401095FA549@EU-MBX-01.mgc.mentorg.com> References: <365E1805BC95084CBE82381A0B86999401095F9A9A@EU-MBX-01.mgc.mentorg.com> In-Reply-To: <365E1805BC95084CBE82381A0B86999401095F9A9A@EU-MBX-01.mgc.mentorg.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.202.0.76] MIME-Version: 1.0 Cc: "openembedded-core@lists.openembedded.org" , "Larson, Chris" , "Krishnakar, Srikanth" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2015 10:12:02 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_365E1805BC95084CBE82381A0B86999401095FA549EUMBX01mgcmen_" --_000_365E1805BC95084CBE82381A0B86999401095FA549EUMBX01mgcmen_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Ed Bartosh, Just to be clear the u-boot-mx6-solox.imx gets deleted when wic create comm= and is executed. Kindly let us know what to do. We are stuck with our relea= se. Noor From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded= -core-bounces@lists.openembedded.org] On Behalf Of Ahsan, Noor Sent: Monday, October 19, 2015 8:42 PM To: ed.bartosh@linux.intel.com Cc: Krishnakar, Srikanth; Larson, Chris; openembedded-core@lists.openembedd= ed.org Subject: [OE-core] U-boot file is being removed when image-recipe is rebuil= d which uses wic.bz2 Hello, We are using wi.bz2 as our image fstypes. The image gets created smoothly f= or the first time. Our wks file uses -sourceparam argument and mention the = u-boot file part u-boot --source rawcopy --sourceparams=3D"file=3Du-boot-mx6-solox.imx"= --ondisk mmcblk --no-table --align 1 The issue comes when something is added to image recipe and it get rebuild.= At that time somehow u-boot-mx6-solox.imx gets deleted from deploy folder = and we get this error Error: exec_cmd: du -Lbks /home/noor/SB/release_2015.12/build_soloX/tmp/dep= loy/images/mx6-solox/u-boot-mx6-solox.imx returned '1' instead of 0 Checking basic build environment... Done. I was able to reproduce the error by cleaning image recipe and rebuilding i= t. I got the same error. So something is being done in wic setup which remo= ves the u-boot file. I need some help on this to resolve the issue of remov= al of u-boot. Noor --_000_365E1805BC95084CBE82381A0B86999401095FA549EUMBX01mgcmen_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello Ed Bartosh,=

 

Just to be clear the u= -boot-mx6-solox.imx gets deleted when wic create command is executed. Kindl= y let us know what to do. We are stuck with our release.<= /p>

 

Noor=

 

From: openembedded-core-bounces@lists.openemb= edded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Ahsan, Noor
Sent: Monday, October 19, 2015 8:42 PM
To: ed.bartosh@linux.intel.com
Cc: Krishnakar, Srikanth; Larson, Chris; openembedded-core@lists.ope= nembedded.org
Subject: [OE-core] U-boot file is being removed when image-recipe is= rebuild which uses wic.bz2

 

Hello,

 

We are using wi.bz2 as our image fstypes. The image = gets created smoothly for the first time. Our wks file uses –sourcepa= ram argument and mention the u-boot file

 

part u-boot --source rawcopy --sourceparams=3D"= file=3Du-boot-mx6-solox.imx" --ondisk mmcblk --no-table --align 1=

 

The issue comes when something is added to image rec= ipe and it get rebuild. At that time somehow u-boot-mx6-solox.imx gets dele= ted from deploy folder and we get this error

 

Error: exec_cmd: du -Lbks /home/noor/SB/release_2015= .12/build_soloX/tmp/deploy/images/mx6-solox/u-boot-mx6-solox.imx returned '= 1' instead of 0

Checking basic build environment...

Done.

 

 

I was able to reproduce the error by cleaning image = recipe and rebuilding it. I got the same error. So something is being done = in wic setup which removes the u-boot file. I need some help on this to res= olve the issue of removal of u-boot.

 

Noor

--_000_365E1805BC95084CBE82381A0B86999401095FA549EUMBX01mgcmen_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id 3A1FC7680C for ; Wed, 21 Oct 2015 13:38:59 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-03.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZotbX-0004Zr-7E from Noor_Ahsan@mentor.com ; Wed, 21 Oct 2015 06:38:59 -0700 Received: from EU-MBX-01.mgc.mentorg.com ([169.254.1.18]) by SVR-IES-FEM-03.mgc.mentorg.com ([137.202.0.108]) with mapi id 14.03.0224.002; Wed, 21 Oct 2015 14:38:57 +0100 From: "Ahsan, Noor" To: "ed.bartosh@linux.intel.com" Thread-Topic: [OE-core] U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 Thread-Index: AdEKhKgGSnfGRIbXS9+W9PrdxyfvIwAmtdIwADmPvaA= Date: Wed, 21 Oct 2015 13:38:56 +0000 Message-ID: <365E1805BC95084CBE82381A0B86999401095FB12A@EU-MBX-01.mgc.mentorg.com> References: <365E1805BC95084CBE82381A0B86999401095F9A9A@EU-MBX-01.mgc.mentorg.com> <365E1805BC95084CBE82381A0B86999401095FA549@EU-MBX-01.mgc.mentorg.com> In-Reply-To: <365E1805BC95084CBE82381A0B86999401095FA549@EU-MBX-01.mgc.mentorg.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.202.0.76] MIME-Version: 1.0 Cc: "Krishnakar, Srikanth" , "Larson, Chris" , "openembedded-core@lists.openembedded.org" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2015 13:39:00 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_365E1805BC95084CBE82381A0B86999401095FB12AEUMBX01mgcmen_" --_000_365E1805BC95084CBE82381A0B86999401095FB12AEUMBX01mgcmen_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello Ed, Your help will be much appreciated. I am trying to locate the issue but no = luck yet. Noor From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded= -core-bounces@lists.openembedded.org] On Behalf Of Ahsan, Noor Sent: Tuesday, October 20, 2015 3:12 PM To: ed.bartosh@linux.intel.com Cc: openembedded-core@lists.openembedded.org; Larson, Chris; Krishnakar, Sr= ikanth Subject: Re: [OE-core] U-boot file is being removed when image-recipe is re= build which uses wic.bz2 Hello Ed Bartosh, Just to be clear the u-boot-mx6-solox.imx gets deleted when wic create comm= and is executed. Kindly let us know what to do. We are stuck with our relea= se. Noor From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@list= s.openembedded.org] On Behalf Of Ahsan, Noor Sent: Monday, October 19, 2015 8:42 PM To: ed.bartosh@linux.intel.com Cc: Krishnakar, Srikanth; Larson, Chris; openembedded-core@lists.openembedd= ed.org Subject: [OE-core] U-boot file is being removed when image-recipe is rebuil= d which uses wic.bz2 Hello, We are using wi.bz2 as our image fstypes. The image gets created smoothly f= or the first time. Our wks file uses -sourceparam argument and mention the = u-boot file part u-boot --source rawcopy --sourceparams=3D"file=3Du-boot-mx6-solox.imx"= --ondisk mmcblk --no-table --align 1 The issue comes when something is added to image recipe and it get rebuild.= At that time somehow u-boot-mx6-solox.imx gets deleted from deploy folder = and we get this error Error: exec_cmd: du -Lbks /home/noor/SB/release_2015.12/build_soloX/tmp/dep= loy/images/mx6-solox/u-boot-mx6-solox.imx returned '1' instead of 0 Checking basic build environment... Done. I was able to reproduce the error by cleaning image recipe and rebuilding i= t. I got the same error. So something is being done in wic setup which remo= ves the u-boot file. I need some help on this to resolve the issue of remov= al of u-boot. Noor --_000_365E1805BC95084CBE82381A0B86999401095FB12AEUMBX01mgcmen_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello Ed,

 

Your help will be much= appreciated. I am trying to locate the issue but no luck yet.

 

Noor=

 

From: openembedded-core-bounces@lists.openemb= edded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Ahsan, Noor
Sent: Tuesday, October 20, 2015 3:12 PM
To: ed.bartosh@linux.intel.com
Cc: openembedded-core@lists.openembedded.org; Larson, Chris; Krishna= kar, Srikanth
Subject: Re: [OE-core] U-boot file is being removed when image-recip= e is rebuild which uses wic.bz2

 

Hello Ed Bartosh,=

 

Just to be clear the u= -boot-mx6-solox.imx gets deleted when wic create command is executed. Kindl= y let us know what to do. We are stuck with our release.<= /p>

 

Noor=

 

From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bou= nces@lists.openembedded.org] On Behalf Of Ahsan, Noor
Sent: Monday, October 19, 2015 8:42 PM
To: ed.bartosh@linux.i= ntel.com
Cc: Krishnakar, Srikanth; Larson, Chris; openembedded-core@lists.openembedded.org
Subject: [OE-core] U-boot file is being removed when image-recipe is= rebuild which uses wic.bz2

 

Hello,

 

We are using wi.bz2 as our image fstypes. The image = gets created smoothly for the first time. Our wks file uses –sourcepa= ram argument and mention the u-boot file

 

part u-boot --source rawcopy --sourceparams=3D"= file=3Du-boot-mx6-solox.imx" --ondisk mmcblk --no-table --align 1=

 

The issue comes when something is added to image rec= ipe and it get rebuild. At that time somehow u-boot-mx6-solox.imx gets dele= ted from deploy folder and we get this error

 

Error: exec_cmd: du -Lbks /home/noor/SB/release_2015= .12/build_soloX/tmp/deploy/images/mx6-solox/u-boot-mx6-solox.imx returned '= 1' instead of 0

Checking basic build environment...

Done.

 

 

I was able to reproduce the error by cleaning image = recipe and rebuilding it. I got the same error. So something is being done = in wic setup which removes the u-boot file. I need some help on this to res= olve the issue of removal of u-boot.

 

Noor

--_000_365E1805BC95084CBE82381A0B86999401095FB12AEUMBX01mgcmen_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f170.google.com (mail-ig0-f170.google.com [209.85.213.170]) by mail.openembedded.org (Postfix) with ESMTP id 7978060124 for ; Thu, 22 Oct 2015 18:10:08 +0000 (UTC) Received: by igdg1 with SMTP id g1so113582igd.1 for ; Thu, 22 Oct 2015 11:10:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:in-reply-to:references:date :message-id:subject:to:cc:content-type; bh=v66wduK6KrbHn4iU18putEP27C00Yd8AKqfsK1m70es=; b=fviVZ/ESswnyLlSUFr0AQbhzETwxQZ+utNX4kqzRXPH9gnQHrbd/YNRfbTPOW/FS2E Godr9FucqakXwrv0UpucQRRFRwMGkLs0QLO4Mra3Vb+Z6EMs+/HnVLw45WvvUyDldDYZ 1qWnZ+hO71Fisj8xbNSlmysV5dqdOmbBaQd2XtgEkifx5h/LJkyuf3Vizo02TIWlzA+d B/2Yu+wvVsyGvhkY7c+qvkWb/CpPZkj4dXILzek1OKp2t6TSeCRdE4Qu+4I5aIw5vlRn kM/tylfkWd/tmo2D/Pt2jqpbbDVEPeQwienN+cTMxlHuSl6vv16E6lewkqHzHJZT1RHy eygA== X-Gm-Message-State: ALoCoQmUP1c72ljPAfdZbNXaGRewnT8MXYSIBNaQF+tivgEfCkm8S6Lef52UYuGVygIhHBAs3oyH X-Received: by 10.50.43.129 with SMTP id w1mr15301266igl.96.1445537408488; Thu, 22 Oct 2015 11:10:08 -0700 (PDT) Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com. [209.85.213.176]) by smtp.gmail.com with ESMTPSA id i134sm6496334ioi.11.2015.10.22.11.10.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Oct 2015 11:10:07 -0700 (PDT) From: Otavio Salvador X-Google-Original-From: Otavio Salvador Received: by igbhv6 with SMTP id hv6so193879igb.0 for ; Thu, 22 Oct 2015 11:10:07 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.43.225 with SMTP id z1mr36717092igl.19.1445537407252; Thu, 22 Oct 2015 11:10:07 -0700 (PDT) Received: by 10.36.218.7 with HTTP; Thu, 22 Oct 2015 11:10:07 -0700 (PDT) In-Reply-To: <365E1805BC95084CBE82381A0B86999401095FB12A@EU-MBX-01.mgc.mentorg.com> References: <365E1805BC95084CBE82381A0B86999401095F9A9A@EU-MBX-01.mgc.mentorg.com> <365E1805BC95084CBE82381A0B86999401095FA549@EU-MBX-01.mgc.mentorg.com> <365E1805BC95084CBE82381A0B86999401095FB12A@EU-MBX-01.mgc.mentorg.com> Date: Thu, 22 Oct 2015 16:10:07 -0200 Message-ID: To: "Ahsan, Noor" Cc: "openembedded-core@lists.openembedded.org" , "Krishnakar, Srikanth" , "Larson, Chris" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2015 18:10:08 -0000 Content-Type: text/plain; charset=UTF-8 On Wed, Oct 21, 2015 at 11:38 AM, Ahsan, Noor wrote: > Your help will be much appreciated. I am trying to locate the issue but no > luck yet. We reproduced this at O.S. Systems autobuilder today[1]. It seems very close to what you see. 1. http://ci.ossystems.com.br/job/fsl-community-bsp-master-next_x11-imx6qsabresd/869/console Can you take a look and confirm it is the same issue? -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mail.openembedded.org (Postfix) with ESMTP id 146EF75CC2 for ; Tue, 27 Oct 2015 13:40:36 +0000 (UTC) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 27 Oct 2015 06:40:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,205,1444719600"; d="scan'208";a="588914189" Received: from linux.intel.com ([10.23.219.25]) by FMSMGA003.fm.intel.com with ESMTP; 27 Oct 2015 06:40:37 -0700 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id A7B346A4005; Tue, 27 Oct 2015 06:39:34 -0700 (PDT) Date: Tue, 27 Oct 2015 15:40:31 +0200 From: Ed Bartosh To: Noor_Ahsan@mentor.com Message-ID: <20151027134031.GA12305@linux.intel.com> MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Cc: openembedded-core@lists.openembedded.org Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ed.bartosh@linux.intel.com List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 13:40:40 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Noor, Sorry for delay. I missed your e-mail somehow. Can you please show your recipe, wks file and the details of your build configuration(MACHINE, bblayers, etc) ? --- Regards, Ed From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id 4924A75CC2 for ; Tue, 27 Oct 2015 14:28:04 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Zr5EK-0004M0-Pv from Noor_Ahsan@mentor.com ; Tue, 27 Oct 2015 07:28:05 -0700 Received: from EU-MBX-03.mgc.mentorg.com ([169.254.2.245]) by SVR-IES-FEM-02.mgc.mentorg.com ([137.202.0.106]) with mapi id 14.03.0224.002; Tue, 27 Oct 2015 14:28:04 +0000 From: "Ahsan, Noor" To: "ed.bartosh@linux.intel.com" Thread-Topic: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 Thread-Index: AQHREL0SeK+5Z1memUCtZHGQFzlVr55/ZTtQ Date: Tue, 27 Oct 2015 14:28:02 +0000 Message-ID: <365E1805BC95084CBE82381A0B8699940121B4E446@EU-MBX-03.mgc.mentorg.com> References: <20151027134031.GA12305@linux.intel.com> In-Reply-To: <20151027134031.GA12305@linux.intel.com> Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [137.202.0.76] MIME-Version: 1.0 Cc: "openembedded-core@lists.openembedded.org" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 14:28:07 -0000 X-Groupsio-MsgNum: 72680 Content-Language: en-US Content-Type: multipart/mixed; boundary="_002_365E1805BC95084CBE82381A0B8699940121B4E446EUMBX03mgcmen_" --_002_365E1805BC95084CBE82381A0B8699940121B4E446EUMBX03mgcmen_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I have identified the issue and sent and RFC on mailing list. One feedback = I received was replace dd_cmd =3D "cp src dst" with dd_cmd =3D "cp %s %s" %= (src, dst) which was and off sight from me. I need more detailed review of= it. Noor -----Original Message----- From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com]=20 Sent: Tuesday, October 27, 2015 6:41 PM To: Ahsan, Noor Cc: openembedded-core@lists.openembedded.org Subject: Re: U-boot file is being removed when image-recipe is rebuild whic= h uses wic.bz2 Hi Noor, Sorry for delay. I missed your e-mail somehow. Can you please show your recipe, wks file and the details of your build con= figuration(MACHINE, bblayers, etc) ? --- Regards, Ed --_002_365E1805BC95084CBE82381A0B8699940121B4E446EUMBX03mgcmen_ Content-Type: message/rfc822 Content-Disposition: attachment; creation-date="Tue, 27 Oct 2015 14:28:01 GMT"; modification-date="Tue, 27 Oct 2015 14:28:01 GMT" Received: from SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) by SVR-IES-FEM-05.mgc.mentorg.com (137.202.0.112) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 22 Oct 2015 11:14:45 +0100 Received: from relay1.mentorg.com (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 22 Oct 2015 03:14:42 -0700 Received: from esa1.mentor.iphmx.com ([68.232.129.153]) by relay1.mentorg.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) id 1ZpCtN-0005m2-KY from openembedded-core-bounces@lists.openembedded.org for Noor_ahsan@mentor.com; Thu, 22 Oct 2015 03:14:41 -0700 Received: from mail.openembedded.org ([140.211.169.62]) by esa1.mentor.iphmx.com with ESMTP; 22 Oct 2015 02:14:40 -0800 Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 87B3075D22; Thu, 22 Oct 2015 10:14:24 +0000 (UTC) Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id C7D7F770F3 for ; Thu, 22 Oct 2015 10:14:15 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZpCsw-0005fv-UL from Noor_Ahsan@mentor.com ; Thu, 22 Oct 2015 03:14:15 -0700 Received: from EU-MBX-01.mgc.mentorg.com ([169.254.1.18]) by SVR-IES-FEM-04.mgc.mentorg.com ([137.202.0.110]) with mapi id 14.03.0224.002; Thu, 22 Oct 2015 11:14:02 +0100 From: "Ahsan, Noor" To: "openembedded-core@lists.openembedded.org" Subject: Re: [OE-core] [RFC] rawcopy.py: Copy source file in image creation build folder Thread-Topic: [RFC] rawcopy.py: Copy source file in image creation build folder Thread-Index: AQHRDBpMmQJRJH2xI0egLkJjuEGttZ53TCyA Sender: "openembedded-core-bounces@lists.openembedded.org" Date: Thu, 22 Oct 2015 10:14:02 +0000 Message-ID: <365E1805BC95084CBE82381A0B86999401095FB9D1@EU-MBX-01.mgc.mentorg.com> References: <1445443468-8394-1-git-send-email-noor_ahsan@mentor.com> List-Help: List-Subscribe: , List-Unsubscribe: , In-Reply-To: <1445443468-8394-1-git-send-email-noor_ahsan@mentor.com> Accept-Language: en-US Content-Language: en-US X-MS-Exchange-Organization-AuthMechanism: 10 X-MS-Exchange-Organization-AuthSource: SVR-ORW-FEM-06.mgc.mentorg.com X-MS-Has-Attach: X-Auto-Response-Suppress: All X-MS-TNEF-Correlator: list-post: list-archive: errors-to: openembedded-core-bounces@lists.openembedded.org list-id: Patches and discussions about the oe-core layer x-mailman-version: 2.1.12 x-beenthere: openembedded-core@lists.openembedded.org x-ironport-av: E=Sophos;i="5.15,747,1432627200"; d="scan'208";a="2260884" Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 -----Original Message----- From: Ahsan, Noor Sent: Wednesday, October 21, 2015 9:04 PM To: openembedded-core@lists.openembedded.org Cc: Ahsan, Noor Subject: [RFC] rawcopy.py: Copy source file in image creation build folder From: Noor * When a file is given using --sourceparams then wic directly use that file instead of copying them to build folder. At time of assmebling it os.rena= me is called which rename all the files to name. In that process the origina= l file get renamed. When image recipe is rebuilt then wic complains about missing file which renamed in previous build. Signed-off-by: Noor Ahsan --- scripts/lib/wic/plugins/source/rawcopy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/pl= ugins/source/rawcopy.py index f0691ba..f17da27 100644 --- a/scripts/lib/wic/plugins/source/rawcopy.py +++ b/scripts/lib/wic/plugins/source/rawcopy.py @@ -74,6 +74,10 @@ class RawCopyPlugin(SourcePlugin): dd_cmd =3D "dd if=3D%s of=3D%s ibs=3D%s skip=3D1 conv=3Dnotrun= c" % \ (src, dst, source_params['skip']) exec_cmd(dd_cmd) + else: + dst =3D os.path.join(cr_workdir, source_params['file']) + dd_cmd =3D "cp src dst" + exec_cmd(dd_cmd) dd_cmd will be replaced by cp_cmd but I need review of all impact of this s= o that I can send proper patch. # get the size in the right units for kickstart (kB) du_cmd =3D "du -Lbks %s" % dst -- 1.7.9.5 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core --_002_365E1805BC95084CBE82381A0B8699940121B4E446EUMBX03mgcmen_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mail.openembedded.org (Postfix) with ESMTP id 503D276104 for ; Tue, 27 Oct 2015 15:29:04 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 27 Oct 2015 08:28:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,205,1444719600"; d="scan'208";a="820592849" Received: from linux.intel.com ([10.23.219.25]) by fmsmga001.fm.intel.com with ESMTP; 27 Oct 2015 08:27:33 -0700 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id E15246A4005; Tue, 27 Oct 2015 08:26:31 -0700 (PDT) Date: Tue, 27 Oct 2015 17:27:29 +0200 From: Ed Bartosh To: "Ahsan, Noor" Message-ID: <20151027152729.GA14663@linux.intel.com> References: <20151027134031.GA12305@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4E446@EU-MBX-03.mgc.mentorg.com> MIME-Version: 1.0 In-Reply-To: <365E1805BC95084CBE82381A0B8699940121B4E446@EU-MBX-03.mgc.mentorg.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "openembedded-core@lists.openembedded.org" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ed.bartosh@linux.intel.com List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 15:29:05 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 27, 2015 at 02:28:02PM +0000, Ahsan, Noor wrote: > Hello, > > I have identified the issue and sent and RFC on mailing list. One feedback I received was replace dd_cmd = "cp src dst" with dd_cmd = "cp %s %s" % (src, dst) which was and off sight from me. I need more detailed review of it. Can you point me out where the renaming you've mentioned is happening? Anyway it would be good if I could reproduce the issue to better understand it. Can you provide more details about your configuration? Regards, Ed > > Noor > > -----Original Message----- > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > Sent: Tuesday, October 27, 2015 6:41 PM > To: Ahsan, Noor > Cc: openembedded-core@lists.openembedded.org > Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 > > Hi Noor, > > Sorry for delay. I missed your e-mail somehow. > > Can you please show your recipe, wks file and the details of your build configuration(MACHINE, bblayers, etc) ? > > --- > Regards, > Ed > Date: Thu, 22 Oct 2015 10:14:02 +0000 > From: "Ahsan, Noor" > To: "openembedded-core@lists.openembedded.org" > > Subject: Re: [OE-core] [RFC] rawcopy.py: Copy source file in image creation > build folder > > > > -----Original Message----- > From: Ahsan, Noor > Sent: Wednesday, October 21, 2015 9:04 PM > To: openembedded-core@lists.openembedded.org > Cc: Ahsan, Noor > Subject: [RFC] rawcopy.py: Copy source file in image creation build folder > > From: Noor > > * When a file is given using --sourceparams then wic directly use that file > instead of copying them to build folder. At time of assmebling it os.rename > is called which rename all the files to name. In that process the original > file get renamed. When image recipe is rebuilt then wic complains about > missing file which renamed in previous build. > > Signed-off-by: Noor Ahsan > --- > scripts/lib/wic/plugins/source/rawcopy.py | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/scripts/lib/wic/plugins/source/rawcopy.py b/scripts/lib/wic/plugins/source/rawcopy.py > index f0691ba..f17da27 100644 > --- a/scripts/lib/wic/plugins/source/rawcopy.py > +++ b/scripts/lib/wic/plugins/source/rawcopy.py > @@ -74,6 +74,10 @@ class RawCopyPlugin(SourcePlugin): > dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \ > (src, dst, source_params['skip']) > exec_cmd(dd_cmd) > + else: > + dst = os.path.join(cr_workdir, source_params['file']) > + dd_cmd = "cp src dst" > + exec_cmd(dd_cmd) > > > dd_cmd will be replaced by cp_cmd but I need review of all impact of this so that I can send proper patch. > > > # get the size in the right units for kickstart (kB) > du_cmd = "du -Lbks %s" % dst > -- > 1.7.9.5 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- -- Regards, Ed From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id 0211575D4A for ; Tue, 27 Oct 2015 15:40:51 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-05.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Zr6Ml-0001BZ-5u from Noor_Ahsan@mentor.com ; Tue, 27 Oct 2015 08:40:51 -0700 Received: from EU-MBX-03.mgc.mentorg.com ([169.254.2.245]) by SVR-IES-FEM-05.mgc.mentorg.com ([137.202.0.112]) with mapi id 14.03.0224.002; Tue, 27 Oct 2015 15:40:50 +0000 From: "Ahsan, Noor" To: "ed.bartosh@linux.intel.com" Thread-Topic: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 Thread-Index: AQHREL0SeK+5Z1memUCtZHGQFzlVr55/ZTtQgAARRoCAAAMMUA== Date: Tue, 27 Oct 2015 15:40:49 +0000 Message-ID: <365E1805BC95084CBE82381A0B8699940121B4E51B@EU-MBX-03.mgc.mentorg.com> References: <20151027134031.GA12305@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4E446@EU-MBX-03.mgc.mentorg.com> <20151027152729.GA14663@linux.intel.com> In-Reply-To: <20151027152729.GA14663@linux.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.202.0.76] MIME-Version: 1.0 Cc: "openembedded-core@lists.openembedded.org" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 15:40:54 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable This is my wks file=20 part u-boot --source rawcopy --sourceparams=3D"file=3Du-boot-mx6-solox.imx"= --ondisk mmcblk --no-table --align 1 part /boot --source bootimg-partition --ondisk mmcblk --fstype=3Dvfat --lab= el boot --active --align 4096 --size 8M --extra-space 0 part / --source rootfs --ondisk mmcblk --fstype=3Dext4 --label root --align= 4096 u-boot-mx6-solox.imx gets removed after wic is called. It is in fsimage.py. see os.rename(source, image_file + '.p%d' % part['num'= ]). def assemble(self, image_file): msger.debug("Installing partitions") for part in self.partitions: source =3D part['source_file'] if source: # install source_file contents into a partition cmd =3D "dd if=3D%s of=3D%s bs=3D%d seek=3D%d count=3D%d co= nv=3Dnotrunc" % \ (source, image_file, self.sector_size, part['start'], part['size']) exec_cmd(cmd) msger.debug("Installed %s in partition %d, sectors %d-%d, " "size %d sectors" % \ (source, part['num'], part['start'], part['start'] + part['size'] - 1, part['size']= )) os.rename(source, image_file + '.p%d' % part['num']) -----Original Message----- From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com]=20 Sent: Tuesday, October 27, 2015 8:27 PM To: Ahsan, Noor Cc: openembedded-core@lists.openembedded.org Subject: Re: U-boot file is being removed when image-recipe is rebuild whic= h uses wic.bz2 On Tue, Oct 27, 2015 at 02:28:02PM +0000, Ahsan, Noor wrote: > Hello, >=20 > I have identified the issue and sent and RFC on mailing list. One feedbac= k I received was replace dd_cmd =3D "cp src dst" with dd_cmd =3D "cp %s %s"= % (src, dst) which was and off sight from me. I need more detailed review = of it. Can you point me out where the renaming you've mentioned is happening? Anyway it would be good if I could reproduce the issue to better understand= it. Can you provide more details about your configuration? Regards, Ed >=20 > Noor >=20 > -----Original Message----- > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > Sent: Tuesday, October 27, 2015 6:41 PM > To: Ahsan, Noor > Cc: openembedded-core@lists.openembedded.org > Subject: Re: U-boot file is being removed when image-recipe is rebuild=20 > which uses wic.bz2 >=20 > Hi Noor, >=20 > Sorry for delay. I missed your e-mail somehow. >=20 > Can you please show your recipe, wks file and the details of your build c= onfiguration(MACHINE, bblayers, etc) ? >=20 > --- > Regards, > Ed > Date: Thu, 22 Oct 2015 10:14:02 +0000 > From: "Ahsan, Noor" > To: "openembedded-core@lists.openembedded.org" > > Subject: Re: [OE-core] [RFC] rawcopy.py: Copy source file in image=20 > creation build folder >=20 >=20 >=20 > -----Original Message----- > From: Ahsan, Noor > Sent: Wednesday, October 21, 2015 9:04 PM > To: openembedded-core@lists.openembedded.org > Cc: Ahsan, Noor > Subject: [RFC] rawcopy.py: Copy source file in image creation build=20 > folder >=20 > From: Noor >=20 > * When a file is given using --sourceparams then wic directly use that fi= le > instead of copying them to build folder. At time of assmebling it os.re= name > is called which rename all the files to name. In that process the origi= nal > file get renamed. When image recipe is rebuilt then wic complains about > missing file which renamed in previous build. >=20 > Signed-off-by: Noor Ahsan > --- > scripts/lib/wic/plugins/source/rawcopy.py | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/scripts/lib/wic/plugins/source/rawcopy.py=20 > b/scripts/lib/wic/plugins/source/rawcopy.py > index f0691ba..f17da27 100644 > --- a/scripts/lib/wic/plugins/source/rawcopy.py > +++ b/scripts/lib/wic/plugins/source/rawcopy.py > @@ -74,6 +74,10 @@ class RawCopyPlugin(SourcePlugin): > dd_cmd =3D "dd if=3D%s of=3D%s ibs=3D%s skip=3D1 conv=3Dnotr= unc" % \ > (src, dst, source_params['skip']) > exec_cmd(dd_cmd) > + else: > + dst =3D os.path.join(cr_workdir, source_params['file']) > + dd_cmd =3D "cp src dst" > + exec_cmd(dd_cmd) >=20 >=20 > dd_cmd will be replaced by cp_cmd but I need review of all impact of this= so that I can send proper patch. >=20 >=20 > # get the size in the right units for kickstart (kB) > du_cmd =3D "du -Lbks %s" % dst > -- > 1.7.9.5 >=20 > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- -- Regards, Ed From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mail.openembedded.org (Postfix) with ESMTP id 279B475D4A for ; Tue, 27 Oct 2015 17:42:09 +0000 (UTC) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 27 Oct 2015 10:41:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,206,1444719600"; d="scan'208";a="804572355" Received: from linux.intel.com ([10.23.219.25]) by orsmga001.jf.intel.com with ESMTP; 27 Oct 2015 10:41:41 -0700 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id C0EF06A4005; Tue, 27 Oct 2015 10:40:39 -0700 (PDT) Date: Tue, 27 Oct 2015 19:41:36 +0200 From: Ed Bartosh To: "Ahsan, Noor" Message-ID: <20151027174136.GA28537@linux.intel.com> References: <20151027134031.GA12305@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4E446@EU-MBX-03.mgc.mentorg.com> <20151027152729.GA14663@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4E51B@EU-MBX-03.mgc.mentorg.com> MIME-Version: 1.0 In-Reply-To: <365E1805BC95084CBE82381A0B8699940121B4E51B@EU-MBX-03.mgc.mentorg.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "openembedded-core@lists.openembedded.org" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ed.bartosh@linux.intel.com List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2015 17:42:10 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 27, 2015 at 03:40:49PM +0000, Ahsan, Noor wrote: > This is my wks file > > part u-boot --source rawcopy --sourceparams="file=u-boot-mx6-solox.imx" --ondisk mmcblk --no-table --align 1 > part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0 > part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4096 > > u-boot-mx6-solox.imx gets removed after wic is called. > > It is in fsimage.py. see os.rename(source, image_file + '.p%d' % part['num']). > > > def assemble(self, image_file): > msger.debug("Installing partitions") > > for part in self.partitions: > source = part['source_file'] > if source: > # install source_file contents into a partition > cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc" % \ > (source, image_file, self.sector_size, > part['start'], part['size']) > exec_cmd(cmd) > > msger.debug("Installed %s in partition %d, sectors %d-%d, " > "size %d sectors" % \ > (source, part['num'], part['start'], > part['start'] + part['size'] - 1, part['size'])) > > os.rename(source, image_file + '.p%d' % part['num']) > Thank you for the info! I'll try to reproduce the issue. Wild guess: would copying a file instead of renaming it solve the issue? Regards, Ed > -----Original Message----- > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > Sent: Tuesday, October 27, 2015 8:27 PM > To: Ahsan, Noor > Cc: openembedded-core@lists.openembedded.org > Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 > > On Tue, Oct 27, 2015 at 02:28:02PM +0000, Ahsan, Noor wrote: > > Hello, > > > > I have identified the issue and sent and RFC on mailing list. One feedback I received was replace dd_cmd = "cp src dst" with dd_cmd = "cp %s %s" % (src, dst) which was and off sight from me. I need more detailed review of it. > > Can you point me out where the renaming you've mentioned is happening? > > Anyway it would be good if I could reproduce the issue to better understand it. Can you provide more details about your configuration? > > Regards, > Ed > > > > > > Noor > > > > -----Original Message----- > > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > > Sent: Tuesday, October 27, 2015 6:41 PM > > To: Ahsan, Noor > > Cc: openembedded-core@lists.openembedded.org > > Subject: Re: U-boot file is being removed when image-recipe is rebuild > > which uses wic.bz2 > > > > Hi Noor, > > > > Sorry for delay. I missed your e-mail somehow. > > > > Can you please show your recipe, wks file and the details of your build configuration(MACHINE, bblayers, etc) ? > > > > --- > > Regards, > > Ed > > > Date: Thu, 22 Oct 2015 10:14:02 +0000 > > From: "Ahsan, Noor" > > To: "openembedded-core@lists.openembedded.org" > > > > Subject: Re: [OE-core] [RFC] rawcopy.py: Copy source file in image > > creation build folder > > > > > > > > -----Original Message----- > > From: Ahsan, Noor > > Sent: Wednesday, October 21, 2015 9:04 PM > > To: openembedded-core@lists.openembedded.org > > Cc: Ahsan, Noor > > Subject: [RFC] rawcopy.py: Copy source file in image creation build > > folder > > > > From: Noor > > > > * When a file is given using --sourceparams then wic directly use that file > > instead of copying them to build folder. At time of assmebling it os.rename > > is called which rename all the files to name. In that process the original > > file get renamed. When image recipe is rebuilt then wic complains about > > missing file which renamed in previous build. > > > > Signed-off-by: Noor Ahsan > > --- > > scripts/lib/wic/plugins/source/rawcopy.py | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/scripts/lib/wic/plugins/source/rawcopy.py > > b/scripts/lib/wic/plugins/source/rawcopy.py > > index f0691ba..f17da27 100644 > > --- a/scripts/lib/wic/plugins/source/rawcopy.py > > +++ b/scripts/lib/wic/plugins/source/rawcopy.py > > @@ -74,6 +74,10 @@ class RawCopyPlugin(SourcePlugin): > > dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \ > > (src, dst, source_params['skip']) > > exec_cmd(dd_cmd) > > + else: > > + dst = os.path.join(cr_workdir, source_params['file']) > > + dd_cmd = "cp src dst" > > + exec_cmd(dd_cmd) > > > > > > dd_cmd will be replaced by cp_cmd but I need review of all impact of this so that I can send proper patch. > > > > > > # get the size in the right units for kickstart (kB) > > du_cmd = "du -Lbks %s" % dst > > -- > > 1.7.9.5 > > > > -- > > _______________________________________________ > > Openembedded-core mailing list > > Openembedded-core@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-core > > > -- > -- > Regards, > Ed -- -- Regards, Ed From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by mail.openembedded.org (Postfix) with ESMTP id 3D5BC73695 for ; Thu, 29 Oct 2015 10:50:08 +0000 (UTC) Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-05.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1ZrkmV-0006RU-JR from Noor_Ahsan@mentor.com ; Thu, 29 Oct 2015 03:50:07 -0700 Received: from EU-MBX-03.mgc.mentorg.com ([169.254.2.245]) by SVR-IES-FEM-05.mgc.mentorg.com ([137.202.0.112]) with mapi id 14.03.0224.002; Thu, 29 Oct 2015 10:50:07 +0000 From: "Ahsan, Noor" To: "ed.bartosh@linux.intel.com" Thread-Topic: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 Thread-Index: AQHREL0SeK+5Z1memUCtZHGQFzlVr55/ZTtQgAARRoCAAAMMUIAAImwAgAKxVLA= Date: Thu, 29 Oct 2015 10:50:06 +0000 Message-ID: <365E1805BC95084CBE82381A0B8699940121B4F9C3@EU-MBX-03.mgc.mentorg.com> References: <20151027134031.GA12305@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4E446@EU-MBX-03.mgc.mentorg.com> <20151027152729.GA14663@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4E51B@EU-MBX-03.mgc.mentorg.com> <20151027174136.GA28537@linux.intel.com> In-Reply-To: <20151027174136.GA28537@linux.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.202.0.76] MIME-Version: 1.0 Cc: "openembedded-core@lists.openembedded.org" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2015 10:50:11 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ed, Any update on this.=20 I think os.rename should remain there. We should copy the file in build fol= der in rawcopy. Right now we don't copy it but in others we copy things in = build folder. Noor -----Original Message----- From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com]=20 Sent: Tuesday, October 27, 2015 10:42 PM To: Ahsan, Noor Cc: openembedded-core@lists.openembedded.org Subject: Re: U-boot file is being removed when image-recipe is rebuild whic= h uses wic.bz2 On Tue, Oct 27, 2015 at 03:40:49PM +0000, Ahsan, Noor wrote: > This is my wks file >=20 > part u-boot --source rawcopy=20 > --sourceparams=3D"file=3Du-boot-mx6-solox.imx" --ondisk mmcblk --no-table= =20 > --align 1 part /boot --source bootimg-partition --ondisk mmcblk=20 > --fstype=3Dvfat --label boot --active --align 4096 --size 8M=20 > --extra-space 0 part / --source rootfs --ondisk mmcblk --fstype=3Dext4=20 > --label root --align 4096 >=20 > u-boot-mx6-solox.imx gets removed after wic is called. >=20 > It is in fsimage.py. see os.rename(source, image_file + '.p%d' % part['nu= m']). >=20 >=20 > def assemble(self, image_file): > msger.debug("Installing partitions") >=20 > for part in self.partitions: > source =3D part['source_file'] > if source: > # install source_file contents into a partition > cmd =3D "dd if=3D%s of=3D%s bs=3D%d seek=3D%d count=3D%d = conv=3Dnotrunc" % \ > (source, image_file, self.sector_size, > part['start'], part['size']) > exec_cmd(cmd) >=20 > msger.debug("Installed %s in partition %d, sectors %d-%d,= " > "size %d sectors" % \ > (source, part['num'], part['start'], > part['start'] + part['size'] - 1,=20 > part['size'])) >=20 > os.rename(source, image_file + '.p%d' % part['num']) >=20 Thank you for the info! I'll try to reproduce the issue. Wild guess: would copying a file instead of renaming it solve the issue? Regards, Ed > -----Original Message----- > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > Sent: Tuesday, October 27, 2015 8:27 PM > To: Ahsan, Noor > Cc: openembedded-core@lists.openembedded.org > Subject: Re: U-boot file is being removed when image-recipe is rebuild=20 > which uses wic.bz2 >=20 > On Tue, Oct 27, 2015 at 02:28:02PM +0000, Ahsan, Noor wrote: > > Hello, > >=20 > > I have identified the issue and sent and RFC on mailing list. One feedb= ack I received was replace dd_cmd =3D "cp src dst" with dd_cmd =3D "cp %s %= s" % (src, dst) which was and off sight from me. I need more detailed revie= w of it. >=20 > Can you point me out where the renaming you've mentioned is happening? >=20 > Anyway it would be good if I could reproduce the issue to better understa= nd it. Can you provide more details about your configuration? >=20 > Regards, > Ed >=20 >=20 > >=20 > > Noor > >=20 > > -----Original Message----- > > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > > Sent: Tuesday, October 27, 2015 6:41 PM > > To: Ahsan, Noor > > Cc: openembedded-core@lists.openembedded.org > > Subject: Re: U-boot file is being removed when image-recipe is=20 > > rebuild which uses wic.bz2 > >=20 > > Hi Noor, > >=20 > > Sorry for delay. I missed your e-mail somehow. > >=20 > > Can you please show your recipe, wks file and the details of your build= configuration(MACHINE, bblayers, etc) ? > >=20 > > --- > > Regards, > > Ed >=20 > > Date: Thu, 22 Oct 2015 10:14:02 +0000 > > From: "Ahsan, Noor" > > To: "openembedded-core@lists.openembedded.org" > > > > Subject: Re: [OE-core] [RFC] rawcopy.py: Copy source file in image=20 > > creation build folder > >=20 > >=20 > >=20 > > -----Original Message----- > > From: Ahsan, Noor > > Sent: Wednesday, October 21, 2015 9:04 PM > > To: openembedded-core@lists.openembedded.org > > Cc: Ahsan, Noor > > Subject: [RFC] rawcopy.py: Copy source file in image creation build=20 > > folder > >=20 > > From: Noor > >=20 > > * When a file is given using --sourceparams then wic directly use that = file > > instead of copying them to build folder. At time of assmebling it os.= rename > > is called which rename all the files to name. In that process the ori= ginal > > file get renamed. When image recipe is rebuilt then wic complains abo= ut > > missing file which renamed in previous build. > >=20 > > Signed-off-by: Noor Ahsan > > --- > > scripts/lib/wic/plugins/source/rawcopy.py | 4 ++++ > > 1 file changed, 4 insertions(+) > >=20 > > diff --git a/scripts/lib/wic/plugins/source/rawcopy.py > > b/scripts/lib/wic/plugins/source/rawcopy.py > > index f0691ba..f17da27 100644 > > --- a/scripts/lib/wic/plugins/source/rawcopy.py > > +++ b/scripts/lib/wic/plugins/source/rawcopy.py > > @@ -74,6 +74,10 @@ class RawCopyPlugin(SourcePlugin): > > dd_cmd =3D "dd if=3D%s of=3D%s ibs=3D%s skip=3D1 conv=3Dno= trunc" % \ > > (src, dst, source_params['skip']) > > exec_cmd(dd_cmd) > > + else: > > + dst =3D os.path.join(cr_workdir, source_params['file']) > > + dd_cmd =3D "cp src dst" > > + exec_cmd(dd_cmd) > >=20 > >=20 > > dd_cmd will be replaced by cp_cmd but I need review of all impact of th= is so that I can send proper patch. > >=20 > >=20 > > # get the size in the right units for kickstart (kB) > > du_cmd =3D "du -Lbks %s" % dst > > -- > > 1.7.9.5 > >=20 > > -- > > _______________________________________________ > > Openembedded-core mailing list > > Openembedded-core@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-core >=20 >=20 > -- > -- > Regards, > Ed -- -- Regards, Ed From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mail.openembedded.org (Postfix) with ESMTP id 2FA2473CC7 for ; Thu, 29 Oct 2015 12:21:42 +0000 (UTC) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 29 Oct 2015 05:21:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,214,1444719600"; d="scan'208";a="590290159" Received: from linux.intel.com ([10.23.219.25]) by FMSMGA003.fm.intel.com with ESMTP; 29 Oct 2015 05:21:42 -0700 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id 4240F6A4005; Thu, 29 Oct 2015 05:20:40 -0700 (PDT) Date: Thu, 29 Oct 2015 14:21:37 +0200 From: Ed Bartosh To: "Ahsan, Noor" Message-ID: <20151029122137.GA9445@linux.intel.com> References: <20151027134031.GA12305@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4E446@EU-MBX-03.mgc.mentorg.com> <20151027152729.GA14663@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4E51B@EU-MBX-03.mgc.mentorg.com> <20151027174136.GA28537@linux.intel.com> <365E1805BC95084CBE82381A0B8699940121B4F9C3@EU-MBX-03.mgc.mentorg.com> MIME-Version: 1.0 In-Reply-To: <365E1805BC95084CBE82381A0B8699940121B4F9C3@EU-MBX-03.mgc.mentorg.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "openembedded-core@lists.openembedded.org" Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ed.bartosh@linux.intel.com List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2015 12:21:45 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 29, 2015 at 10:50:06AM +0000, Ahsan, Noor wrote: > Ed, > > Any update on this. > > > I think os.rename should remain there. We should copy the file in build folder in rawcopy. Right now we don't copy it but in others we copy things in build folder. > I'm ok with the patch then if you update it according to Leonardo's suggestion. > Noor > > -----Original Message----- > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > Sent: Tuesday, October 27, 2015 10:42 PM > To: Ahsan, Noor > Cc: openembedded-core@lists.openembedded.org > Subject: Re: U-boot file is being removed when image-recipe is rebuild which uses wic.bz2 > > On Tue, Oct 27, 2015 at 03:40:49PM +0000, Ahsan, Noor wrote: > > This is my wks file > > > > part u-boot --source rawcopy > > --sourceparams="file=u-boot-mx6-solox.imx" --ondisk mmcblk --no-table > > --align 1 part /boot --source bootimg-partition --ondisk mmcblk > > --fstype=vfat --label boot --active --align 4096 --size 8M > > --extra-space 0 part / --source rootfs --ondisk mmcblk --fstype=ext4 > > --label root --align 4096 > > > > u-boot-mx6-solox.imx gets removed after wic is called. > > > > It is in fsimage.py. see os.rename(source, image_file + '.p%d' % part['num']). > > > > > > def assemble(self, image_file): > > msger.debug("Installing partitions") > > > > for part in self.partitions: > > source = part['source_file'] > > if source: > > # install source_file contents into a partition > > cmd = "dd if=%s of=%s bs=%d seek=%d count=%d conv=notrunc" % \ > > (source, image_file, self.sector_size, > > part['start'], part['size']) > > exec_cmd(cmd) > > > > msger.debug("Installed %s in partition %d, sectors %d-%d, " > > "size %d sectors" % \ > > (source, part['num'], part['start'], > > part['start'] + part['size'] - 1, > > part['size'])) > > > > os.rename(source, image_file + '.p%d' % part['num']) > > > > Thank you for the info! I'll try to reproduce the issue. > > Wild guess: would copying a file instead of renaming it solve the issue? > > > Regards, > Ed > > > -----Original Message----- > > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > > Sent: Tuesday, October 27, 2015 8:27 PM > > To: Ahsan, Noor > > Cc: openembedded-core@lists.openembedded.org > > Subject: Re: U-boot file is being removed when image-recipe is rebuild > > which uses wic.bz2 > > > > On Tue, Oct 27, 2015 at 02:28:02PM +0000, Ahsan, Noor wrote: > > > Hello, > > > > > > I have identified the issue and sent and RFC on mailing list. One feedback I received was replace dd_cmd = "cp src dst" with dd_cmd = "cp %s %s" % (src, dst) which was and off sight from me. I need more detailed review of it. > > > > Can you point me out where the renaming you've mentioned is happening? > > > > Anyway it would be good if I could reproduce the issue to better understand it. Can you provide more details about your configuration? > > > > Regards, > > Ed > > > > > > > > > > Noor > > > > > > -----Original Message----- > > > From: Ed Bartosh [mailto:ed.bartosh@linux.intel.com] > > > Sent: Tuesday, October 27, 2015 6:41 PM > > > To: Ahsan, Noor > > > Cc: openembedded-core@lists.openembedded.org > > > Subject: Re: U-boot file is being removed when image-recipe is > > > rebuild which uses wic.bz2 > > > > > > Hi Noor, > > > > > > Sorry for delay. I missed your e-mail somehow. > > > > > > Can you please show your recipe, wks file and the details of your build configuration(MACHINE, bblayers, etc) ? > > > > > > --- > > > Regards, > > > Ed > > > > > Date: Thu, 22 Oct 2015 10:14:02 +0000 > > > From: "Ahsan, Noor" > > > To: "openembedded-core@lists.openembedded.org" > > > > > > Subject: Re: [OE-core] [RFC] rawcopy.py: Copy source file in image > > > creation build folder > > > > > > > > > > > > -----Original Message----- > > > From: Ahsan, Noor > > > Sent: Wednesday, October 21, 2015 9:04 PM > > > To: openembedded-core@lists.openembedded.org > > > Cc: Ahsan, Noor > > > Subject: [RFC] rawcopy.py: Copy source file in image creation build > > > folder > > > > > > From: Noor > > > > > > * When a file is given using --sourceparams then wic directly use that file > > > instead of copying them to build folder. At time of assmebling it os.rename > > > is called which rename all the files to name. In that process the original > > > file get renamed. When image recipe is rebuilt then wic complains about > > > missing file which renamed in previous build. > > > > > > Signed-off-by: Noor Ahsan > > > --- > > > scripts/lib/wic/plugins/source/rawcopy.py | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/scripts/lib/wic/plugins/source/rawcopy.py > > > b/scripts/lib/wic/plugins/source/rawcopy.py > > > index f0691ba..f17da27 100644 > > > --- a/scripts/lib/wic/plugins/source/rawcopy.py > > > +++ b/scripts/lib/wic/plugins/source/rawcopy.py > > > @@ -74,6 +74,10 @@ class RawCopyPlugin(SourcePlugin): > > > dd_cmd = "dd if=%s of=%s ibs=%s skip=1 conv=notrunc" % \ > > > (src, dst, source_params['skip']) > > > exec_cmd(dd_cmd) > > > + else: > > > + dst = os.path.join(cr_workdir, source_params['file']) > > > + dd_cmd = "cp src dst" > > > + exec_cmd(dd_cmd) > > > > > > > > > dd_cmd will be replaced by cp_cmd but I need review of all impact of this so that I can send proper patch. > > > > > > > > > # get the size in the right units for kickstart (kB) > > > du_cmd = "du -Lbks %s" % dst > > > -- > > > 1.7.9.5 > > > > > > -- > > > _______________________________________________ > > > Openembedded-core mailing list > > > Openembedded-core@lists.openembedded.org > > > http://lists.openembedded.org/mailman/listinfo/openembedded-core > > > > > > -- > > -- > > Regards, > > Ed > > -- > -- > Regards, > Ed -- -- Regards, Ed