<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-updater.git/classes, branch fix/python3-repo-bitbake</title>
<subtitle>Mirror of github.com/advancedtelematic/meta-updater</subtitle>
<id>https://git.enea.com/cgit/linux/meta-updater.git/atom?h=fix%2Fpython3-repo-bitbake</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-updater.git/atom?h=fix%2Fpython3-repo-bitbake'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/'/>
<updated>2021-01-03T07:39:15+00:00</updated>
<entry>
<title>image_types_ota.bbclass: pass -t ext4 to mke2fs</title>
<updated>2021-01-03T07:39:15+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=3e717a07aa5c36be48665d50a4db64ee4461d3e1'/>
<id>urn:sha1:3e717a07aa5c36be48665d50a4db64ee4461d3e1</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>image_types_ota.bbclass: add metadata_csum mkfs option</title>
<updated>2020-11-25T11:00:13+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=4d34fa53db086955adf6bc58941ebf98a16778f8'/>
<id>urn:sha1:4d34fa53db086955adf6bc58941ebf98a16778f8</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-11-25T09:18:48+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=45dc621274f1c798619ffb34be4b1f8d1f657cab'/>
<id>urn:sha1:45dc621274f1c798619ffb34be4b1f8d1f657cab</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-15T17:21:11+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=f9e462ef42bcf79beb2b354b5a1c069c8e47d65d'/>
<id>urn:sha1:f9e462ef42bcf79beb2b354b5a1c069c8e47d65d</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-09-17T13:26:33+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=323b0d0d83f42a85609a638825859b3053d06ac0'/>
<id>urn:sha1:323b0d0d83f42a85609a638825859b3053d06ac0</id>
<content type='text'>
Signed-off-by: Dominik Wild &lt;dominik.wild@glutz.com&gt;
</content>
</entry>
<entry>
<title>sota: introduce OSTREE_MULTI_DEVICETREE_SUPPORT</title>
<updated>2020-09-03T10:34:06+00:00</updated>
<author>
<name>Ming Liu</name>
<email>ming.liu@toradex.com</email>
</author>
<published>2020-09-03T07:58:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=d48a90f293f8d44a7538f6b412c7b0ad6361f867'/>
<id>urn:sha1:d48a90f293f8d44a7538f6b412c7b0ad6361f867</id>
<content type='text'>
ostree supports multiple devicetrees provided that there is no
/lib/modules/$kversion/devicetree installed on rootfs, in which case,
a uboot variable 'fdtdir' would be written to /boot/loader/uEnv.txt
instead of fdt_file.

Introduce OSTREE_MULTI_DEVICETREE_SUPPORT to control that, when it's
set to '0', there is no functional changes with current implementation,
while it's set to '1', then /lib/modules/$kversion/devicetree would not
be installed and the end users need set their own fdtfile/fdt_file in
boot script to locate the devicetree in 'fdtdir'.

Signed-off-by: Ming Liu &lt;ming.liu@toradex.com&gt;
</content>
</entry>
<entry>
<title>image_repo_manifest.bbclass: fix build when there is no repo on host</title>
<updated>2020-08-18T13:57:39+00:00</updated>
<author>
<name>Martin Jansa</name>
<email>Martin.Jansa@gmail.com</email>
</author>
<published>2020-08-18T13:57:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=54f39be6b64aa75e4120a8fb13adc6ac5d973ccf'/>
<id>urn:sha1:54f39be6b64aa75e4120a8fb13adc6ac5d973ccf</id>
<content type='text'>
* failing "which repo" causes the run.buildinfo_manifest task to fail
  before it even reaches the test for empty repotool variable:

  dash -x some-image/1.0-r2/temp/run.buildinfo_manifest.80233

  + export systemd_system_unitdir=/usr/lib/systemd/system
  + export systemd_unitdir=/usr/lib/systemd
  + export systemd_user_unitdir=/usr/lib/systemd/user
  + buildinfo_manifest
  + which repo
  + repotool=
  + bb_sh_exit_handler
  + ret=1
  + [ 1 != 0 ]
  + echo WARNING: exit code 1 from a shell command.
  WARNING: exit code 1 from a shell command.
  + exit 1

  causing nasty long python exception from do_image task

  with this fix, it just shows an warning again:

  dash -x some-image/1.0-r2/temp/run.buildinfo_manifest.80233

  + export systemd_user_unitdir=/usr/lib/systemd/user
  + buildinfo_manifest
  + which repo
  + true
  + repotool=
  + [ -n  ]
  + bbwarn Android repo tool not found; manifest not copied.
  + [ -p some-image/1.0-r2/temp/fifo.80233 ]
  + echo WARNING: Android repo tool not found; manifest not copied.
  WARNING: Android repo tool not found; manifest not copied.
  + ret=0
  + trap  0
  + exit 0

Signed-off-by: Martin Jansa &lt;Martin.Jansa@gmail.com&gt;
</content>
</entry>
<entry>
<title>image_repo_manifest.bbclass: explicitly call python3</title>
<updated>2020-08-10T07:25:25+00:00</updated>
<author>
<name>Ming Liu</name>
<email>ming.liu@toradex.com</email>
</author>
<published>2020-08-09T10:28:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=235da14ba5f365e7890ea456718eb26323c5a158'/>
<id>urn:sha1:235da14ba5f365e7890ea456718eb26323c5a158</id>
<content type='text'>
Now we have changed to inherit python3native to provide python3 binary
for repo, then we need explicitly call python3 to execute repo, or else
it will firstly try to locate python which will fail if python is not
in HOSTTOOLS.

This fixes a following warning:
| Android repo tool failed to run; manifest not copied

Signed-off-by: Ming Liu &lt;ming.liu@toradex.com&gt;
</content>
</entry>
<entry>
<title>sota_raspberrypi: Use new variable for bootfiles path.</title>
<updated>2020-08-07T06:34:40+00:00</updated>
<author>
<name>Patrick Vacek</name>
<email>patrickvacek@gmail.com</email>
</author>
<published>2020-08-04T11:50:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=5c667a14b326c7e73c121bb93606a3bd072b1a18'/>
<id>urn:sha1:5c667a14b326c7e73c121bb93606a3bd072b1a18</id>
<content type='text'>
This was changed in f046b4128c9ca3420614887006101fa2b10fc6e7 of
meta-raspberrypi. This also requires
e947e8590f74477505c754d016d99fc71cadf4e1 in meta-updater-raspberrypi.

Signed-off-by: Patrick Vacek &lt;patrickvacek@gmail.com&gt;
</content>
</entry>
<entry>
<title>Inherit python3native instead of using HOSTTOOLS.</title>
<updated>2020-08-03T11:47:30+00:00</updated>
<author>
<name>Patrick Vacek</name>
<email>patrickvacek@gmail.com</email>
</author>
<published>2020-08-03T06:58:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-updater.git/commit/?id=628c4e317618d1b03da41e43cf0ede69c1fa4695'/>
<id>urn:sha1:628c4e317618d1b03da41e43cf0ede69c1fa4695</id>
<content type='text'>
Signed-off-by: Patrick Vacek &lt;patrickvacek@gmail.com&gt;
</content>
</entry>
</feed>
