<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/chunkeey/package/base-files, branch mikrotik</title>
<subtitle>Staging tree of Christian Lamparter</subtitle>
<id>https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=mikrotik</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/chunkeey/atom?h=mikrotik'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/'/>
<updated>2022-02-06T22:09:15Z</updated>
<entry>
<title>base-files: replace fgrep with grep -F</title>
<updated>2022-02-06T22:09:15Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2022-02-05T17:38:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=7994461a5a1c2cdd8bf4cc3fa38c4d496534f080'/>
<id>urn:sha1:7994461a5a1c2cdd8bf4cc3fa38c4d496534f080</id>
<content type='text'>
fgrep is deprecated and replaced by grep -F. The latter is used
throughout the tree whereas this is the only usage of the former.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: upgrade: fix efi partitions size calculation</title>
<updated>2021-12-27T12:51:41Z</updated>
<author>
<name>Javier Marcet</name>
</author>
<published>2020-04-04T15:52:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=018ada5403f02921be22ee0cf49b88b2700ee105'/>
<id>urn:sha1:018ada5403f02921be22ee0cf49b88b2700ee105</id>
<content type='text'>
We were missing (not using) the last sector of each partition,
compared with the output of gparted.

Signed-off-by: Javier Marcet &lt;javier@marcet.info&gt;
[moved the dot]
Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: fix service_running check</title>
<updated>2021-12-04T00:39:11Z</updated>
<author>
<name>Florian Eckert</name>
</author>
<published>2021-06-15T06:48:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=dd681838d370f1f6f6fa1bf1f22b0414322292f3'/>
<id>urn:sha1:dd681838d370f1f6f6fa1bf1f22b0414322292f3</id>
<content type='text'>
The following command checks if a instance of a service is running.
/etc/init.d/&lt;service&gt; running &lt;instance&gt;

 In the variable `$@`, which is passed to the function
`service_running`, the first argument is always the `instance` which
should be checked. Because all other variables where removed from `$@`
with `shift`.

Before this change the first argument of `$@` was set to the `$service`
Variable. So the function does not work as expected. The `$service`
variable was always the instance which should be checked. This is not
what we want.

Signed-off-by: Florian Eckert &lt;fe@dev.tdt.de&gt;
Reviewed-by: Sungbo Eo &lt;mans0n@gorani.run&gt;
</content>
</entry>
<entry>
<title>base-files: add eMMC sysupgrade support</title>
<updated>2021-12-02T20:42:58Z</updated>
<author>
<name>Enrico Mioso</name>
</author>
<published>2021-12-01T15:17:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=57c1f3f9c5c699cc215bebde772552787c632570'/>
<id>urn:sha1:57c1f3f9c5c699cc215bebde772552787c632570</id>
<content type='text'>
Adds generic support for sysupgrading on eMMC-based devices.

Provide function emmc_do_upgrade and emmc_copy_config to be used in
/lib/upgrade/platform.sh instead of redundantly implementing the same
logic over and over again.
Similar to generic sysupgrade on NAND, use environment variables
CI_KERNPART, CI_ROOTPART and newly introduce CI_DATAPART to indicate
GPT partition names to be used. On devices with more than one MMC
block device, CI_ROOTDEV can be used to specify the MMC device for
partition name lookups.

Also allow to select block devices directly using EMMC_KERN_DEV,
EMMC_ROOT_DEV and EMMC_DATA_DEV, as using GPT partition names is not
always an option (e.g. when forced to use MBR).

To easily handle writing kernel and rootfs make use of sysupgrade.tar
format convention which is also already used for generic NAND support.

Signed-off-by: Enrico Mioso &lt;mrkiko.rs@gmail.com&gt;
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
CC: Li Zhang &lt;li.zhang@gl-inet.com&gt;
CC: TruongSinh Tran-Nguyen &lt;i@truongsinh.pro&gt;
</content>
</entry>
<entry>
<title>base-files: dont always create kernel UBI volume</title>
<updated>2021-11-28T16:17:22Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2021-09-20T17:13:43Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=f2c4064ecb76bca69d4ce3fbc52209992f2334dc'/>
<id>urn:sha1:f2c4064ecb76bca69d4ce3fbc52209992f2334dc</id>
<content type='text'>
Currently nand_upgrade_tar() will pass the kernel length
to nand_upgrade_prepare_ubi() in all cases except for when
the kernel is to be installed in a separate partition as a
binary with the MTD tool.

While this is fine for almost all cases newer MikroTik NAND
devices like hAP ac3 require the kernel to be installed as a
UBIFS packed UBI volume in its own partition.

So, since we have a custom recipe to use ubiformat to flash
the kernel in its partition it makes no sense for sysupgrade
to also install the kernel as a UBI volume in the "ubi"
partition as it only wastes space and will never be used.

So, simply check whether CI_KERNPART is set to "none" and
if so unset the "has_kernel" variable which will in turn
prevent the kernel length from being passed on and then
the kernel UBI volume wont be created for no usefull purpose.

The ath79 MikroTik NAND target has been setting CI_KERNPART
to "none" for a while now altough that was not preventing
the kernel to be installed as UBI volume as well.

Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: stage2: improve /proc/*/stat parser</title>
<updated>2021-11-13T18:36:52Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-11-13T16:29:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=4d3303b1bddf3c66fc0a05fb5eb45ceac48cd0d5'/>
<id>urn:sha1:4d3303b1bddf3c66fc0a05fb5eb45ceac48cd0d5</id>
<content type='text'>
Simply reading /proc/*/stat as a space-separated string will not work
as the process name may itself contain spaces. Hence we must match on
the '(' and ')' characters around the process name and can then handle
the remaining string as space-separated values.
This fixes shell error messages which have been popping up the console
due to spaces in process names being interpreted as field separators.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: drop get_partition_by_name shell function</title>
<updated>2021-11-01T18:01:02Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-11-01T14:03:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=73657dfbdd79e8cbafa218f8d04ceefad7b63404'/>
<id>urn:sha1:73657dfbdd79e8cbafa218f8d04ceefad7b63404</id>
<content type='text'>
find_mmc_part provides a better alternative and all users of
get_partition_by_name have been removed.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: allow specifiying rootdev for find_mmc_part</title>
<updated>2021-11-01T18:00:42Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-11-01T13:58:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=9f223a20bd5f0cbec9f34427588b645ae38433ff'/>
<id>urn:sha1:9f223a20bd5f0cbec9f34427588b645ae38433ff</id>
<content type='text'>
Some devices got more than one mmc device.
Allow specifying the root device as 2nd parameter of find_mmc_part so
scripts can avoid matching irrelevant partitions on wrong mmc device.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: add minimal mmc support</title>
<updated>2021-10-31T23:56:51Z</updated>
<author>
<name>Davide Fioravanti</name>
</author>
<published>2020-09-01T23:18:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=6e137943442fb0ab66c34462fa19e5a4260eddd5'/>
<id>urn:sha1:6e137943442fb0ab66c34462fa19e5a4260eddd5</id>
<content type='text'>
Added minimal mmc support for helper functions:

 - find_mmc_part: Look for a given partition name. Returns the
	coresponding partition path
 - caldata_extract_mmc: Look for a given partition name and then
	extracts the calibration data
 - mmc_get_mac_binary: Returns the mac address from a given partition
	name and offset

Signed-off-by: Davide Fioravanti &lt;pantanastyle@gmail.com&gt;
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
[replace dd with caldata_dd, moved sysupgrade mmc to orbi]
Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files, metadata: support additional group membership</title>
<updated>2021-10-28T15:27:21Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-10-26T12:02:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/chunkeey/commit/?id=b2aca61360c33ad3161f8ef35a1c28ebb2507600'/>
<id>urn:sha1:b2aca61360c33ad3161f8ef35a1c28ebb2507600</id>
<content type='text'>
Some packages may require additional group membership for the system
user added by that package. Allow defining additional groups as third
member of the ':'-separated tuple, allowing to specify multiple
','-separated groups with optional GID.

Example:
USERID:=foouser=1000:foogroup=1000:addg1=1001,addg2=1002,addg3

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
</feed>
