<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/luka/package/base-files, branch master</title>
<subtitle>tree of Luka Perkov resides here</subtitle>
<id>https://git.openwrt.org/openwrt/staging/luka/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/luka/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/'/>
<updated>2020-05-28T09:22:22Z</updated>
<entry>
<title>package/base-files: caldata: work around dd's limitation</title>
<updated>2020-05-28T09:22:22Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-05-16T20:18:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=7557e7f267e845db5a403139c49f2637f9021992'/>
<id>urn:sha1:7557e7f267e845db5a403139c49f2637f9021992</id>
<content type='text'>
tl;dr: dd will silently truncate the output if reading from special
files (e.g. sysfs attributes) with a too large bs parameter.

This problem was exposed on some RouterBOARD ipq40xx devices which use a
caldata payload which is larger than PAGE_SIZE, contrary to all other
currently supported RouterBOARD devices: the caldata would fail to
properly load with the current scripts.

Background: dd doesn't seem to correctly handle read() results that
return less than requested data. sysfs attributes have a kernel exchange
buffer which is at most PAGE_SIZE big, so only 1 page can be read() at a
time. In this case, if bs is larger than PAGE_SIZE, dd will silently
truncate blocks to PAGE_SIZE. With the current scripts using bs=&lt;size&gt;
count=1, the data is truncated to PAGE_SIZE as soon as the requested
&lt;size&gt; exceeds this value.

This commit works around this problem by using `cat` in the caldata
routines that can read from a file (routines that read from mtd devices
are untouched). cat correctly handles partial read requests. The output
is then piped to dd with the same parameters as before, to ensure that
the resulting file remains exactly the same.

This is a simple workaround, the downside is that it uses a pipe and one
more executable, and therefore has a larger memory footprint and is
slower. This is deemed acceptable considering these routines are only
used at boot time.

Tested-by: Robert Marko &lt;robimarko@gmail.com&gt;
Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>base-files: switch_to_ramfs: add nand-utils</title>
<updated>2020-05-18T16:24:06Z</updated>
<author>
<name>Álvaro Fernández Rojas</name>
</author>
<published>2020-05-14T16:19:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=8339f8d95ebb9b6ca8084d8979948107bcf5411c'/>
<id>urn:sha1:8339f8d95ebb9b6ca8084d8979948107bcf5411c</id>
<content type='text'>
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: upgrade: fix indent</title>
<updated>2020-05-08T18:15:43Z</updated>
<author>
<name>Javier Marcet</name>
</author>
<published>2020-04-04T15:50:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=02656caa7b3c6da24a1c253b8d28887ab5c1bed1'/>
<id>urn:sha1:02656caa7b3c6da24a1c253b8d28887ab5c1bed1</id>
<content type='text'>
Use same indent as for the rest of the file.

Signed-off-by: Javier Marcet &lt;javier@marcet.info&gt;
[add commit description]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>package/base-files: add caldata_sysfsload_from_file()</title>
<updated>2020-05-08T13:17:17Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-04-20T11:48:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=02a9d3d6a932cdf707f8bcf4555d095839ce8d24'/>
<id>urn:sha1:02a9d3d6a932cdf707f8bcf4555d095839ce8d24</id>
<content type='text'>
This routine enables loading caldata binary via the kernel sysfs loader

See https://www.kernel.org/doc/html/v4.19/driver-api/firmware/fallback-mechanisms.html

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>package/base-files: caldata: allow setting target file</title>
<updated>2020-05-08T13:17:17Z</updated>
<author>
<name>Thibaut VARÈNE</name>
</author>
<published>2020-04-20T11:48:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=8f4735297bbfb24976e06bb4f2f115be29a99404'/>
<id>urn:sha1:8f4735297bbfb24976e06bb4f2f115be29a99404</id>
<content type='text'>
This will enable platforms to extract caldata to an arbitrary file,
or patch mac in an abitrary file.

Signed-off-by: Thibaut VARÈNE &lt;hacks@slashdirt.org&gt;
</content>
</entry>
<entry>
<title>base-files: generate config files with correct permissions</title>
<updated>2020-04-30T19:51:12Z</updated>
<author>
<name>Hans Dedecker</name>
</author>
<published>2020-04-30T19:29:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=ad27c133eb606ee39fa346b7bdb26c1764ee869e'/>
<id>urn:sha1:ad27c133eb606ee39fa346b7bdb26c1764ee869e</id>
<content type='text'>
As touch creates files with permission 0644 use umask to create
config files with permission 0600 to be inline with INSTALL_CONF

Signed-off-by: Hans Dedecker &lt;dedeckeh@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: ensure VERBOSE is set</title>
<updated>2020-04-20T22:01:49Z</updated>
<author>
<name>Alexander Couzens</name>
</author>
<published>2019-11-13T17:13:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=b77fd0d30bfa93def97fc1633d389b994600fea3'/>
<id>urn:sha1:b77fd0d30bfa93def97fc1633d389b994600fea3</id>
<content type='text'>
If not set, it shows the following error
sh: out of range

Signed-off-by: Alexander Couzens &lt;lynxis@fe80.eu&gt;
</content>
</entry>
<entry>
<title>base-files: don't ship local build key when on buildbot</title>
<updated>2020-04-12T19:35:00Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2020-04-12T19:28:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=0aa2ecf5b223b838678b61bd2ded9f29903f17b1'/>
<id>urn:sha1:0aa2ecf5b223b838678b61bd2ded9f29903f17b1</id>
<content type='text'>
Including the local build key in /etc/opkg/keys isn't feasible when
building on the buildbot: The included key collides with its copy
already in openwrt-keyring which breaks the ImageBuilder.
Not including a locally generated key also makes the base-files package
more reproducible.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: preinit: also config switch when no port roles defined</title>
<updated>2020-04-12T14:29:02Z</updated>
<author>
<name>Chuanhong Guo</name>
</author>
<published>2020-04-10T04:07:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=f017f617aecbd47debd4d3a734dc0e471342db96'/>
<id>urn:sha1:f017f617aecbd47debd4d3a734dc0e471342db96</id>
<content type='text'>
current preinit code in base-files doesn't config switch when there are
no port roles defined. But this kind of configuration exists on single
port devices where switch vlan is simply disabled.
configure reset and enable_vlan property when a switch node exist.

Signed-off-by: Chuanhong Guo &lt;gch981213@gmail.com&gt;
</content>
</entry>
<entry>
<title>base-files: source functions.sh in /lib/functions/system.sh</title>
<updated>2020-04-12T12:16:57Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-03-13T15:56:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/luka/commit/?id=ae636effd24a7637cefca58a143063f395c82d05'/>
<id>urn:sha1:ae636effd24a7637cefca58a143063f395c82d05</id>
<content type='text'>
The file /lib/functions/system.sh depends on find_mtd_index() and
find_mtd_part() located in /lib/function.sh, so let's source that
file.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
</feed>
