From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-yk0-f177.google.com ([209.85.160.177]) by metis.ext.pengutronix.de with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZXOoz-0002as-BE for ptxdist@pengutronix.de; Thu, 03 Sep 2015 09:20:33 +0200 Received: by ykek143 with SMTP id k143so35013009yke.2 for ; Thu, 03 Sep 2015 00:20:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55E7F107.2010804@pengutronix.de> References: <55E6B0AD.1000207@pengutronix.de> <55E6B760.1090008@pengutronix.de> <55E6C17A.6070201@pengutronix.de> <55E7F107.2010804@pengutronix.de> Date: Thu, 3 Sep 2015 15:20:26 +0800 Message-ID: From: Hardik A Gohil Subject: Re: [ptxdist] Script List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0149557391==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============0149557391== Content-Type: multipart/alternative; boundary=001a11390a8602b80c051ed29ef1 --001a11390a8602b80c051ed29ef1 Content-Type: text/plain; charset=UTF-8 On Thu, Sep 3, 2015 at 3:04 PM, Marc Kleine-Budde wrote: > On 09/03/2015 02:55 AM, Hardik A Gohil wrote: > >>> Actually I am creating a script to generate the root.ubifs separately > >>> from environment > >> > >> Why? > > > We have another team who adds applications to root and generates RFS. > > I suggest you don't convert your platform-.../root into a UBIFS, this is > for nfsroot purposes only. In new ptxdist the debug symbols are placed > there, too. > > I see two options: > Let ptxdist generate a tar.gz of the rootfs. The rootfs has proper > owner/permissions and device node inside. You can do what ever you want > with this. > Yes now I am generating tar.gz of the rootfs and passing the tar ball to other team to add the application. and they are generating root.ubifs using the following script ----------------------------------------------------------------------------- LEB_SIZE="126976" MINIMUM_IO_UNIT_SIZE="2048" MAX_LEB_COUNT="3929" EXTRA_ARGS=" -F" ROOTFS=root.ubifs FS_SOURCE_PATH=$HOME/Downloads/root #FS_SOURCE_PATH=$HOME/tmp MKFS_UBIFS=/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/sbin/mkfs.ubifs $MKFS_UBIFS -d $FS_SOURCE_PATH -e $LEB_SIZE -m $MINIMUM_IO_UNIT_SIZE -c $MAX_LEB_COUNT $EXTRA_ARGS -o $ROOTFS --------------------------------------------------------------------------------- After root.ubifs loaded to target permissions are missing in few folders. > > Another option is that the other team gives you a tarball of the > applications and you install it with "install_archive", see > "rules/post/install.make". > > Marc > > -- > Pengutronix e.K. | Marc Kleine-Budde | > Industrial Linux Solutions | Phone: +49-231-2826-924 | > Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | > Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > > -- Regards Hardik A Gohil Willowglen Msc Bhd --001a11390a8602b80c051ed29ef1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Sep 3, 2015 at 3:04 PM, Marc Kleine-Budde <= ;mkl@pengutronix.de= > wrote:
On 09/03/2015 02:55 AM, Hardik A Gohil wrote:
>>> Actually I am creating a script to generate the root.ubifs sep= arately
>>> from environment
>>
>> Why?

> We have another team who adds applications to root and generates RFS.<= br>
I suggest you don't convert your platform-.../root into a UBIFS,= this is
for nfsroot purposes only. In new ptxdist the debug symbols are placed
there, too.

I see two options:
Let ptxdist generate a tar.gz of the rootfs. The rootfs has proper
owner/permissions and device node inside. You can do what ever you want
with this.


Yes now I am generating = tar.gz of the rootfs and passing the tar ball to other team to add the appl= ication.
=C2=A0and they are generating root.ubifs using the f= ollowing script
--------------------------------------------------------= ---------------------
LEB_SIZE=3D"126976"
MINIMUM_IO_UNIT_S= IZE=3D"2048"
MAX_LEB_COUNT=3D"3929"
EXTRA_ARGS=3D= " -F"
ROOTFS=3Droot.ubifs
FS_SOURCE_PATH=3D$HOME/Downloads/= root
#FS_SOURCE_PATH=3D$HOME/tmp
MKFS_UBIFS=3D/opt/PHYTEC_BSPs/phyCOR= E-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/sbin/mkfs.ubifs
<= br>$MKFS_UBIFS -d $FS_SOURCE_PATH -e $LEB_SIZE -m $MINIMUM_IO_UNIT_SIZE -c = $MAX_LEB_COUNT $EXTRA_ARGS -o $ROOTFS
----------------------------------= -----------------------------------------------

After roo= t.ubifs loaded to target permissions are missing in few folders. =C2=A0=C2= =A0

Another option is that the other team gives you a tarball of the
applications and you install it with "install_archive", see
"rules/post/install.make".

Marc

--
Pengutronix e.K.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 | Marc Kleine-Budde=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
Industrial Linux Solutions=C2=A0 =C2=A0 =C2=A0 =C2=A0 | Phone: +49-231-2826-924=C2=A0 = =C2=A0 =C2=A0|
Vertretung West/Dortmund=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | Fax:=C2=A0 =C2= =A0+49-5= 121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686=C2=A0 | http://www.pengutronix.de=C2= =A0 =C2=A0|


--
ptxdist mailing list
ptxdist@pengutronix.de




--
Regards
Hardik A Gohil
Willowglen Msc Bhd

--001a11390a8602b80c051ed29ef1-- --===============0149557391== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXguZGUK --===============0149557391==--