mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Script
@ 2015-09-02  7:44 Hardik A Gohil
  2015-09-02  8:17 ` Marc Kleine-Budde
  0 siblings, 1 reply; 13+ messages in thread
From: Hardik A Gohil @ 2015-09-02  7:44 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 528 bytes --]

Hello,

Can any one explain me this script from
rules/post/ptxd_make_image_common.make used while creating root.ubifs image

DOPERMISSIONS := '{     \
        if ($$1 == "f") \
                printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n", $$5,
$$2, $$3, $$4, $$2);    \
        if ($$1 == "n") \
                printf("rm -f \".%s\"; mkdir -p \".`dirname \"%s\"`\";
mknod -m %s \".%s\" %s %s %s; chown %s.%s \".%s\";\n", $$2, $$2, $$5, $$2,
$$6, $$7, $$8, $$3, $$4, $$2);}'


-- 
Regards
Hardik A Gohil
Willowglen Msc Bhd

[-- Attachment #1.2: Type: text/html, Size: 944 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-02  7:44 [ptxdist] Script Hardik A Gohil
@ 2015-09-02  8:17 ` Marc Kleine-Budde
  2015-09-02  8:35   ` Hardik A Gohil
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Kleine-Budde @ 2015-09-02  8:17 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1031 bytes --]

On 09/02/2015 09:44 AM, Hardik A Gohil wrote:
> Hello,
> 
> Can any one explain me this script from
> rules/post/ptxd_make_image_common.make used while creating root.ubifs image
> 
> DOPERMISSIONS := '{     \
>         if ($$1 == "f") \
>                 printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n", $$5,
> $$2, $$3, $$4, $$2);    \
>         if ($$1 == "n") \
>                 printf("rm -f \".%s\"; mkdir -p \".`dirname \"%s\"`\";
> mknod -m %s \".%s\" %s %s %s; chown %s.%s \".%s\";\n", $$2, $$2, $$5,
> $$2, $$6, $$7, $$8, $$3, $$4, $$2);}'

This scripts generates chmod, chown commands to change the ownership and
permission of a file or generates commands to create device nodes with
given ownership and permissions.

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   |


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

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-02  8:17 ` Marc Kleine-Budde
@ 2015-09-02  8:35   ` Hardik A Gohil
  2015-09-02  8:46     ` Marc Kleine-Budde
  0 siblings, 1 reply; 13+ messages in thread
From: Hardik A Gohil @ 2015-09-02  8:35 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1005 bytes --]

Hello

On Wed, Sep 2, 2015 at 4:17 PM, Marc Kleine-Budde <mkl@pengutronix.de>
wrote:

> On 09/02/2015 09:44 AM, Hardik A Gohil wrote:
> > Hello,
> >
> > Can any one explain me this script from
> > rules/post/ptxd_make_image_common.make used while creating root.ubifs
> image
> >
> > DOPERMISSIONS := '{     \
> >         if ($$1 == "f") \
> >                 printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n", $$5,
> > $$2, $$3, $$4, $$2);    \
> >         if ($$1 == "n") \
> >                 printf("rm -f \".%s\"; mkdir -p \".`dirname \"%s\"`\";
> > mknod -m %s \".%s\" %s %s %s; chown %s.%s \".%s\";\n", $$2, $$2, $$5,
> > $$2, $$6, $$7, $$8, $$3, $$4, $$2);}'
>
> This scripts generates chmod, chown commands to change the ownership and
> permission of a file or generates commands to create device nodes with
> given ownership and permissions.
>
>
awk -F: $(DOPERMISSIONS) $(image/permissions) called from here

I cannot find image/permissions file ??
-- 
Regards
Hardik A Gohil
Willowglen Msc Bhd

[-- Attachment #1.2: Type: text/html, Size: 1804 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-02  8:35   ` Hardik A Gohil
@ 2015-09-02  8:46     ` Marc Kleine-Budde
  2015-09-02  8:54       ` Hardik A Gohil
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Kleine-Budde @ 2015-09-02  8:46 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1534 bytes --]

On 09/02/2015 10:35 AM, Hardik A Gohil wrote:
> Hello
> 
> On Wed, Sep 2, 2015 at 4:17 PM, Marc Kleine-Budde <mkl@pengutronix.de
> <mailto:mkl@pengutronix.de>> wrote:
> 
>     On 09/02/2015 09:44 AM, Hardik A Gohil wrote:
>     > Hello,
>     >
>     > Can any one explain me this script from
>     > rules/post/ptxd_make_image_common.make used while creating root.ubifs image
>     >
>     > DOPERMISSIONS := '{     \
>     >         if ($$1 == "f") \
>     >                 printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n", $$5,
>     > $$2, $$3, $$4, $$2);    \
>     >         if ($$1 == "n") \
>     >                 printf("rm -f \".%s\"; mkdir -p \".`dirname \"%s\"`\";
>     > mknod -m %s \".%s\" %s %s %s; chown %s.%s \".%s\";\n", $$2, $$2, $$5,
>     > $$2, $$6, $$7, $$8, $$3, $$4, $$2);}'
> 
>     This scripts generates chmod, chown commands to change the ownership and
>     permission of a file or generates commands to create device nodes with
>     given ownership and permissions.
> 
> 
> awk -F: $(DOPERMISSIONS) $(image/permissions) called from here
> 
> I cannot find image/permissions file ??

./rules/post/000_ptxd_make_image_definitions.make:12:image/permissions
:= $(IMAGEDIR)/permissions

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   |


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

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-02  8:46     ` Marc Kleine-Budde
@ 2015-09-02  8:54       ` Hardik A Gohil
  2015-09-02  9:29         ` Marc Kleine-Budde
  0 siblings, 1 reply; 13+ messages in thread
From: Hardik A Gohil @ 2015-09-02  8:54 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 2173 bytes --]

On Wed, Sep 2, 2015 at 4:46 PM, Marc Kleine-Budde <mkl@pengutronix.de>
wrote:

> On 09/02/2015 10:35 AM, Hardik A Gohil wrote:
> > Hello
> >
> > On Wed, Sep 2, 2015 at 4:17 PM, Marc Kleine-Budde <mkl@pengutronix.de
> > <mailto:mkl@pengutronix.de>> wrote:
> >
> >     On 09/02/2015 09:44 AM, Hardik A Gohil wrote:
> >     > Hello,
> >     >
> >     > Can any one explain me this script from
> >     > rules/post/ptxd_make_image_common.make used while creating
> root.ubifs image
> >     >
> >     > DOPERMISSIONS := '{     \
> >     >         if ($$1 == "f") \
> >     >                 printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n",
> $$5,
> >     > $$2, $$3, $$4, $$2);    \
> >     >         if ($$1 == "n") \
> >     >                 printf("rm -f \".%s\"; mkdir -p \".`dirname
> \"%s\"`\";
> >     > mknod -m %s \".%s\" %s %s %s; chown %s.%s \".%s\";\n", $$2, $$2,
> $$5,
> >     > $$2, $$6, $$7, $$8, $$3, $$4, $$2);}'
> >
> >     This scripts generates chmod, chown commands to change the ownership
> and
> >     permission of a file or generates commands to create device nodes
> with
> >     given ownership and permissions.
> >
> >
> > awk -F: $(DOPERMISSIONS) $(image/permissions) called from here
> >
> > I cannot find image/permissions file ??
>
> ./rules/post/000_ptxd_make_image_definitions.make:12:image/permissions
> := $(IMAGEDIR)/permissions
>
>
ultimately the permissions file which I cannot find in the ptxdist
directory.

Actually I am creating a script to generate the root.ubifs separately from
environment

-------------------------------------------
LEB_SIZE="126976"
MINIMUM_IO_UNIT_SIZE="2048"
MAX_LEB_COUNT="3929"
EXTRA_ARGS=" -F"
ROOTFS=root.ubifs
FS_SOURCE_PATH=/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/root
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

----------------------------------------------

I need to add the permission manipulation and trying to figure out how to
fit in this script.

-- 
Regards
Hardik A Gohil
Willowglen Msc Bhd

[-- Attachment #1.2: Type: text/html, Size: 3497 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-02  8:54       ` Hardik A Gohil
@ 2015-09-02  9:29         ` Marc Kleine-Budde
  2015-09-03  0:55           ` Hardik A Gohil
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Kleine-Budde @ 2015-09-02  9:29 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1277 bytes --]

On 09/02/2015 10:54 AM, Hardik A Gohil wrote:

> ultimately the permissions file which I cannot find in the ptxdist
> directory. 
> 
> Actually I am creating a script to generate the root.ubifs separately
> from environment

Why?

> -------------------------------------------
> LEB_SIZE="126976"
> MINIMUM_IO_UNIT_SIZE="2048"
> MAX_LEB_COUNT="3929"
> EXTRA_ARGS=" -F"
> ROOTFS=root.ubifs
> FS_SOURCE_PATH=/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/root
> 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
> 
> ----------------------------------------------
> 
> I need to add the permission manipulation and trying to figure out how
> to fit in this script.

Don't do this. Just install your files with the provided primitives by
ptxdist, 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   |


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

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-02  9:29         ` Marc Kleine-Budde
@ 2015-09-03  0:55           ` Hardik A Gohil
  2015-09-03  7:04             ` Marc Kleine-Budde
  0 siblings, 1 reply; 13+ messages in thread
From: Hardik A Gohil @ 2015-09-03  0:55 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1219 bytes --]

On Wed, Sep 2, 2015 at 5:29 PM, Marc Kleine-Budde <mkl@pengutronix.de>
wrote:

> On 09/02/2015 10:54 AM, Hardik A Gohil wrote:
>
> > ultimately the permissions file which I cannot find in the ptxdist
> > directory.
> >
> > 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.

>
> > -------------------------------------------
> > LEB_SIZE="126976"
> > MINIMUM_IO_UNIT_SIZE="2048"
> > MAX_LEB_COUNT="3929"
> > EXTRA_ARGS=" -F"
> > ROOTFS=root.ubifs
> >
> FS_SOURCE_PATH=/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/root
> >
> 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
> >
> > ----------------------------------------------
> >
> > I need to add the permission manipulation and trying to figure out how
> > to fit in this script.
>
> Don't do this. Just install your files with the provided primitives by
> ptxdist, see rules/post/install.make.
>
>
-- 
Regards
Hardik A Gohil
Willowglen Msc Bhd

[-- Attachment #1.2: Type: text/html, Size: 2103 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-03  0:55           ` Hardik A Gohil
@ 2015-09-03  7:04             ` Marc Kleine-Budde
  2015-09-03  7:20               ` Hardik A Gohil
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Kleine-Budde @ 2015-09-03  7:04 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1010 bytes --]

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.

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   |


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

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-03  7:04             ` Marc Kleine-Budde
@ 2015-09-03  7:20               ` Hardik A Gohil
  2015-09-03  7:37                 ` Marc Kleine-Budde
  0 siblings, 1 reply; 13+ messages in thread
From: Hardik A Gohil @ 2015-09-03  7:20 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 2009 bytes --]

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 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

[-- Attachment #1.2: Type: text/html, Size: 3267 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-03  7:20               ` Hardik A Gohil
@ 2015-09-03  7:37                 ` Marc Kleine-Budde
  2015-09-03  7:46                   ` Hardik A Gohil
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Kleine-Budde @ 2015-09-03  7:37 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1505 bytes --]

On 09/03/2015 09:20 AM, Hardik A Gohil wrote:
>> 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.

Are you using ptxdist to generate the tar.gz?

>  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.

Are you extracting the tarball and creating the ubifs in one go in a
fakeroot environment?

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   |


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

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-03  7:37                 ` Marc Kleine-Budde
@ 2015-09-03  7:46                   ` Hardik A Gohil
  2015-09-03  7:49                     ` Marc Kleine-Budde
  0 siblings, 1 reply; 13+ messages in thread
From: Hardik A Gohil @ 2015-09-03  7:46 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1543 bytes --]

On Thu, Sep 3, 2015 at 3:37 PM, Marc Kleine-Budde <mkl@pengutronix.de>
wrote:

> On 09/03/2015 09:20 AM, Hardik A Gohil wrote:
> >> 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.
>
> Are you using ptxdist to generate the tar.gz?
>

Yes first i am generating tar.gz file using ptxdist.

>
> >  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.
>
> Are you extracting the tarball and creating the ubifs in one go in a
> fakeroot environment?
>

Then extract the root.tgz , add applications and create the root.ubifs
image using the above script.

>
>


-- 
Regards
Hardik A Gohil
Willowglen Msc Bhd

[-- Attachment #1.2: Type: text/html, Size: 2537 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-03  7:46                   ` Hardik A Gohil
@ 2015-09-03  7:49                     ` Marc Kleine-Budde
  2015-09-03  9:50                       ` Hardik A Gohil
  0 siblings, 1 reply; 13+ messages in thread
From: Marc Kleine-Budde @ 2015-09-03  7:49 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1536 bytes --]

On 09/03/2015 09:46 AM, Hardik A Gohil wrote:
>> Are you using ptxdist to generate the tar.gz?
> 
> Yes first i am generating tar.gz file using ptxdist.

>>>  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.
>>
>> Are you extracting the tarball and creating the ubifs in one go in a
>> fakeroot environment?
>>
> 
> Then extract the root.tgz , add applications and create the root.ubifs
> image using the above script.

The question is, are you running the extract and mkfs.ubifs in a single
fakeroot instance or as root?

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   |


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

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Script
  2015-09-03  7:49                     ` Marc Kleine-Budde
@ 2015-09-03  9:50                       ` Hardik A Gohil
  0 siblings, 0 replies; 13+ messages in thread
From: Hardik A Gohil @ 2015-09-03  9:50 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1595 bytes --]

On Thu, Sep 3, 2015 at 3:49 PM, Marc Kleine-Budde <mkl@pengutronix.de>
wrote:

> On 09/03/2015 09:46 AM, Hardik A Gohil wrote:
> >> Are you using ptxdist to generate the tar.gz?
> >
> > Yes first i am generating tar.gz file using ptxdist.
>
> >>>  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.
> >>
> >> Are you extracting the tarball and creating the ubifs in one go in a
> >> fakeroot environment?
> >>
> >
> > Then extract the root.tgz , add applications and create the root.ubifs
> > image using the above script.
>
> The question is, are you running the extract and mkfs.ubifs in a single
> fakeroot instance or as root?
>
>

> I extracted the root.tgz using the root permissions and loaded to
> target.Now permissions are intact without corruption.
>

   May be this was the problem.

   Thank you



-- 
Regards
Hardik A Gohil
Willowglen Msc Bhd

[-- Attachment #1.2: Type: text/html, Size: 2664 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2015-09-03  9:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-02  7:44 [ptxdist] Script Hardik A Gohil
2015-09-02  8:17 ` Marc Kleine-Budde
2015-09-02  8:35   ` Hardik A Gohil
2015-09-02  8:46     ` Marc Kleine-Budde
2015-09-02  8:54       ` Hardik A Gohil
2015-09-02  9:29         ` Marc Kleine-Budde
2015-09-03  0:55           ` Hardik A Gohil
2015-09-03  7:04             ` Marc Kleine-Budde
2015-09-03  7:20               ` Hardik A Gohil
2015-09-03  7:37                 ` Marc Kleine-Budde
2015-09-03  7:46                   ` Hardik A Gohil
2015-09-03  7:49                     ` Marc Kleine-Budde
2015-09-03  9:50                       ` Hardik A Gohil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox