[elbe-users] Inconsistent contents of UBIFS and nfsroot
Ralf Schlatterbeck
rsc at runtux.com
Tue Feb 27 10:22:48 CET 2018
I'm creating an NFS root and an ubifs during the same elbe run (XML
snippet see below).
The two resulting filesystems do have different contents. In particular
the ubifs is missing the files /etc/init.d/rcS and /etc/init.d/rc
I've verified with 'tar tvf nfsroot.tar.gz' against unpacking the
generated nand.img.gz with ubireader_extract_files from the
https://github.com/jrspruitt/ubi_reader project. The two files above are
present on the nfsroot.tar.gz but not on the ubi image.
My current understanding is that this should not happen.
The logs don't seem to tell me anything:
running cmd +mkfs.ubifs -r /var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/filesystems/0 -o /var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/rootfs.ubifs -m 2048 -e 126976 -c 400 -x lzo+
------------------------------------------------------------------------------
------------------------------------------------------------------------------
running cmd +mv "/var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/filesystems/0"/* "/var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/target/"+
------------------------------------------------------------------------------
------------------------------------------------------------------------------
running cmd +ubinize -o /var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/nand.img -p 128KiB -m 2048 /var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/nand.img_nand.cfg+
------------------------------------------------------------------------------
------------------------------------------------------------------------------
running cmd +gzip -f "/var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/nand.img"+
------------------------------------------------------------------------------
------------------------------------------------------------------------------
running cmd +gzip -f "/var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/rootfs.ubifs"+
------------------------------------------------------------------------------
------------------------------------------------------------------------------
running cmd +tar cfz /var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/nfsroot.tar.gz -C /var/cache/elbe/5d58e9e9-854d-4e47-9109-f81ead806c4f/target/ .+
------------------------------------------------------------------------------
...
<package>
<tar>
<name>nfsroot.tar.gz</name>
</tar>
</package>
<images>
<mtd>
<name>nand.img</name>
<nr>0</nr>
<size>61184kB</size>
<ubivg>
<label>nand</label>
<miniosize>2048</miniosize>
<maxlogicaleraseblockcount>400</maxlogicaleraseblockcount>
<logicaleraseblocksize>126976</logicaleraseblocksize>
<physicaleraseblocksize>128KiB</physicaleraseblocksize>
<ubi>
<type>dynamic</type>
<label>rootfs</label>
<id>0</id>
<size>50MiB</size>
</ubi>
</ubivg>
</mtd>
</images>
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting www: http://www.runtux.com
Reichergasse 131, A-3411 Weidling email: office at runtux.com
More information about the elbe-users
mailing list