<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-updater.git/classes, branch dunfell</title>
<subtitle>Mirror of github.com/advancedtelematic/meta-updater</subtitle>
<id>https://git.enea.com/cgit/linux/meta-updater.git/atom?h=dunfell</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-updater.git/atom?h=dunfell'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/'/>
<updated>2021-01-30T12:26:47+00:00</updated>
<entry>
<title>image_types_ostree.bbclass: get lock before accessing OSTREE_REPO</title>
<updated>2021-01-30T12:26:47+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2021-01-18T11:47:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=0b2db6c1527b7b8114dbc97369e082338645623a'/>
<id>urn:sha1:0b2db6c1527b7b8114dbc97369e082338645623a</id>
<content type='text'>
In commit d13ec585ae677affd88b9d92c6ea135cc249b2fa:
[ image_types_ostree: use OSTree repo location for lockfiles ]

A lockfile ${OSTREE_REPO}/ostree.lock was added to prevent concurrent
access to the repository by multiple bitbake instances, but it should
not only apply to ostreecommit task, but ostreepush task also need it.

This fixes a following race condition error:
| | ERROR: Execution of '.../temp/run.do_image_ostreecommit.34262' failed with exit code 1:
| error: Writing content object: Creating temp file: No such file or directory

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.com&gt;
</content>
</entry>
<entry>
<title>image_types_ota.bbclass: use standard ext4 features</title>
<updated>2021-01-30T12:26:39+00:00</updated>
<author>
<name>Ricardo Salveti</name>
<email>ricardo@foundries.io</email>
</author>
<published>2021-01-12T01:26:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=17ee8a7741f4752c9dbb27885dd7cbdb2e3655ef'/>
<id>urn:sha1:17ee8a7741f4752c9dbb27885dd7cbdb2e3655ef</id>
<content type='text'>
Avoid removing 64bit and metadata_csum by default and prefer the
standard ext4 features instead.

64bit enables the file system to be larger than 2^32 blocks and
metadata_csum enables metadata checksumming, both of which are
enabled by default on recent mke2fs releases.

It is unclear why 64bit was disabled by looking at the git history, but
my assumption would be that either kernel or userspace was old enough
for this feature to not be supported/available. Since this option is
currently used by most distros by default, it should now be safe to
enable it (requires kernel &gt;= 2.6.28).

metadata_csum was disabled in 4d34fa53db to make the u-boot tooling work
with the ext4 file system (when saving environment), but the correct fix
should instead be a fix at the userspace tooling instead, since not
every target requires u-boot.

Signed-off-by: Ricardo Salveti &lt;ricardo@foundries.io&gt;
</content>
</entry>
<entry>
<title>image_types_ota.bbclass: pass -t ext4 to mke2fs</title>
<updated>2021-01-03T07:43:00+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@lge.com</email>
</author>
<published>2020-12-29T15:19:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=e575b08906aeac4d359e6067f306a0f6a408f70c'/>
<id>urn:sha1:e575b08906aeac4d359e6067f306a0f6a408f70c</id>
<content type='text'>
* it doesn't automatically pass "-t ext4", because here we're calling
  mke2fs as mkfs.ota-ext4 instead of mkfs.ext4

  so the resulting was now ext2 instead of ext4
  $ file image-raspberrypi4.rootfs.ota-ext4
  image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext2 filesystem data, UUID=15862fcd-6204-486b-a4c6-fdf7b1710797, volume name "otaroot" (large files)
  after this fix:
  $ file image-raspberrypi4.rootfs.ota-ext4
  image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext4 filesystem data, UUID=3709e65c-1d2b-4280-85d1-638f5f9c3cc0, volume name "otaroot" (extents) (64bit) (large files) (huge files)

  that's why metadata_csum and other features enabled by default
  in ext4 were now missing after
  https://github.com/advancedtelematic/meta-updater/pull/787
  we can drop 64bit feature as well, it's also enabled in default
  recipe-sysroot-native/etc/mke2fs.conf
      [defaults]
            base_features = sparse_super,large_file,filetype,resize_inode,dir_index,ext_attr
            default_mntopts = acl,user_xattr
            enable_periodic_fsck = 0
            blocksize = 4096
            inode_size = 256
            inode_ratio = 16384

      [fs_types]
            ext3 = {
                    features = has_journal
            }
            ext4 = {
                    features = has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
                    inode_size = 256
            }
      ...

Signed-off-by: Martin Jansa &lt;martin.jansa@lge.com&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>Revert "[dunfell] Fix ota-ext4 IMAGE_FSTYPE"</title>
<updated>2020-12-31T12:57:00+00:00</updated>
<author>
<name>Anatoliy Odukha</name>
<email>aodukha@gmail.com</email>
</author>
<published>2020-12-31T12:57:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=10ffc6395012ac20d0574150e467114bfdb3ff41'/>
<id>urn:sha1:10ffc6395012ac20d0574150e467114bfdb3ff41</id>
<content type='text'>
</content>
</entry>
<entry>
<title>image_types_ota.bbclass: pass -t ext4 to mke2fs</title>
<updated>2020-12-29T16:23:45+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@lge.com</email>
</author>
<published>2020-12-29T15:19:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=71b44d57ff6f12b2e351f6e2597a75ab2cacb8e9'/>
<id>urn:sha1:71b44d57ff6f12b2e351f6e2597a75ab2cacb8e9</id>
<content type='text'>
* it doesn't automatically pass "-t ext4", because here we're calling
  mke2fs as mkfs.ota-ext4 instead of mkfs.ext4

  so the resulting was now ext2 instead of ext4
  $ file image-raspberrypi4.rootfs.ota-ext4
  image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext2 filesystem data, UUID=15862fcd-6204-486b-a4c6-fdf7b1710797, volume name "otaroot" (large files)
  after this fix:
  $ file image-raspberrypi4.rootfs.ota-ext4
  image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext4 filesystem data, UUID=3709e65c-1d2b-4280-85d1-638f5f9c3cc0, volume name "otaroot" (extents) (64bit) (large files) (huge files)

  that's why metadata_csum and other features enabled by default
  in ext4 were now missing after
  https://github.com/advancedtelematic/meta-updater/pull/787
  we can drop 64bit feature as well, it's also enabled in default
  recipe-sysroot-native/etc/mke2fs.conf
      [defaults]
            base_features = sparse_super,large_file,filetype,resize_inode,dir_index,ext_attr
            default_mntopts = acl,user_xattr
            enable_periodic_fsck = 0
            blocksize = 4096
            inode_size = 256
            inode_ratio = 16384

      [fs_types]
            ext3 = {
                    features = has_journal
            }
            ext4 = {
                    features = has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
                    inode_size = 256
            }
      ...

Signed-off-by: Martin Jansa &lt;martin.jansa@lge.com&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>Revert "image_types_ota.bbclass: add metadata_csum mkfs option"</title>
<updated>2020-12-29T16:23:32+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>martin.jansa@lge.com</email>
</author>
<published>2020-12-29T15:23:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=64c24452a850001223df1054bfcbb1a9010732ac'/>
<id>urn:sha1:64c24452a850001223df1054bfcbb1a9010732ac</id>
<content type='text'>
This reverts commit 4d34fa53db086955adf6bc58941ebf98a16778f8.

This issue exists only because mke2fs is creating ext2 by default
instead of ext4 which enables this by default as shown in
recipe-sysroot-native/etc/mke2fs.conf
  [defaults]
        base_features = sparse_super,large_file,filetype,resize_inode,dir_index,ext_attr
        default_mntopts = acl,user_xattr
        enable_periodic_fsck = 0
        blocksize = 4096
        inode_size = 256
        inode_ratio = 16384

  [fs_types]
        ext3 = {
                features = has_journal
        }
        ext4 = {
                features = has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize
                inode_size = 256
        }
  ...

Signed-off-by: Martin Jansa &lt;martin.jansa@lge.com&gt;
Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>image_types_ota.bbclass: add metadata_csum mkfs option</title>
<updated>2020-12-16T18:26:12+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2020-11-25T11:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=13ced79d9be744e6d48e0044b454cdb171bbd5b0'/>
<id>urn:sha1:13ced79d9be744e6d48e0044b454cdb171bbd5b0</id>
<content type='text'>
This fixes a following error:
| Saving Environment to EXT4... Unsupported feature metadata_csum found, not writing

when u-boot tries to write env to EXT4 filesystem.

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.com&gt;
</content>
</entry>
<entry>
<title>image_types_ota.bbclass: call oe_mkext234fs to make ota-ext4 image</title>
<updated>2020-12-16T18:25:56+00:00</updated>
<author>
<name>Ming Liu</name>
<email>liu.ming50@gmail.com</email>
</author>
<published>2020-11-25T09:18:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=0266ff603111539cdf05d8f1dffdd5975d8ef49c'/>
<id>urn:sha1:0266ff603111539cdf05d8f1dffdd5975d8ef49c</id>
<content type='text'>
We dont have to maintain our own function calculate_size and use
dd/mkfs.ext4 to generate ota-ext4 image, they have been done in OE
by get_rootfs_size/oe_mkext234fs functions, we could just use them.

The major benefit could be we can sync the future fixes/changes in
these functions from OE, also avoid maintaining some duplicated code in
image_types_ota.bbclass.

Signed-off-by: Ming Liu &lt;liu.ming50@gmail.com&gt;
</content>
</entry>
<entry>
<title>ostree-kernel-initramfs: add back initramfs fit workaround</title>
<updated>2020-10-29T11:41:43+00:00</updated>
<author>
<name>Ricardo Salveti</name>
<email>ricardo@foundries.io</email>
</author>
<published>2020-10-15T15:27:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=e5325ff58540674d2402b9ce72a34ac65b52c71d'/>
<id>urn:sha1:e5325ff58540674d2402b9ce72a34ac65b52c71d</id>
<content type='text'>
Previous initramfs fit specific workaround was removed as part of commit
6eecf1593d, causing ostree to provide an init argument as part of the
kernel command line arguments when it is not really needed.

Bring back the workaround by simply generating an empty file in case
kernel image type is fit and initramfs is also used by the target.

Signed-off-by: Ricardo Salveti &lt;ricardo@foundries.io&gt;
</content>
</entry>
<entry>
<title>image_types_ostree: fix chmod</title>
<updated>2020-10-29T10:38:46+00:00</updated>
<author>
<name>Dominik Wild</name>
<email>dominik.wild@glutz.com</email>
</author>
<published>2020-09-17T13:19:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=75518b1feb3098f8656b1fd434f03e82749926e6'/>
<id>urn:sha1:75518b1feb3098f8656b1fd434f03e82749926e6</id>
<content type='text'>
Signed-off-by: Dominik Wild &lt;dominik.wild@glutz.com&gt;
</content>
</entry>
</feed>
