<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/noltari/scripts/target-metadata.pl, branch master</title>
<subtitle>Staging tree of Alvaro Fernandez Rojas</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/noltari/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/'/>
<updated>2021-12-02T20:42:58Z</updated>
<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-03.infra.openwrt.org/openwrt/staging/noltari/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: rename 'sdcard' to 'legacy-sdcard'</title>
<updated>2021-08-16T11:22:17Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-08-07T13:30:53Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=98bccdafd7244238d9dfbbc1a342a4bb557e4b7c'/>
<id>urn:sha1:98bccdafd7244238d9dfbbc1a342a4bb557e4b7c</id>
<content type='text'>
While an image layout based on MBR and 'bootfs' partition may be easy
to understand for users who are very used to the IBM PC and always have
the option to access the SD card outside of the device (and hence don't
really depend on other recovery methods or dual-boot), in my opinion
it's a dead end for many desirable features on embedded systems,
especially when managed remotely (and hence without an easy option to
access the SD card using another device in case things go wrong, for
example).

Let me explain:

* using a MSDOS/VFAT filesystem to store kernel(s) is problematic, as a
  single corruption of the bootfs can render the system into a state
  that it no longer boots at all. This makes dual-boot useless, or at
  least very tedious to setup with then 2 independent boot partitions
  to avoid the single point of failure on a "hot" block (the FAT index
  of the boot partition, written every time a file is changed in
  bootfs). And well: most targets even store the bootloader environment
  in a file in that very same FAT filesystem, hence it cannot be used
  to script a reliable dual-boot method (as loading the environment
  itself will already fail if the filesystem is corrupted).

* loading the kernel uImage from bootfs and using rootfs inside an
  additional partition means the bootloader can only validate the
  kernel -- if rootfs is broken or corrupted, this can lead to a reboot
  loop, which is often a quite costly thing to happen in terms of
  hardware lifetime.

* imitating MBR-boot behavior with a FAT-formatted bootfs partition
  (like IBM PC in the 80s and 90s) is just one of many choices on
  embedded targets. There are much better options with modern U-Boot
  (which is what we use and build from source for all targets booting
  off SD cards), see examples in mediatek/mt7622 and mediatek/mt7623.

Hence rename the 'sdcard' feature to 'legacy-sdcard', and prefix
functions with 'legacy_sdcard_' instead of 'sdcard_'.

Tested-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>base-files: add generic sdcard upgrade method</title>
<updated>2021-08-06T22:34:40Z</updated>
<author>
<name>Stijn Tintel</name>
</author>
<published>2021-07-29T22:11:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=8347d8b4fbe41ce7db386f948df3ebb6c6bc32d3'/>
<id>urn:sha1:8347d8b4fbe41ce7db386f948df3ebb6c6bc32d3</id>
<content type='text'>
Add a generic sdcard upgrade method instead of duplicating code in yet
another target, and add a feature flag to only install this upgrade
method in targets that set this flag. Copied from mvebu.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
</content>
</entry>
<entry>
<title>scripts/target-metadata.pl: order features alphabetically</title>
<updated>2021-08-06T22:30:37Z</updated>
<author>
<name>Stijn Tintel</name>
</author>
<published>2021-08-06T22:28:08Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=84c9570aaadec70b667586c3c84dd9fd095baa9e'/>
<id>urn:sha1:84c9570aaadec70b667586c3c84dd9fd095baa9e</id>
<content type='text'>
We generaly do this in many other places, so let's do it here also.

Signed-off-by: Stijn Tintel &lt;stijn@linux-ipv6.be&gt;
</content>
</entry>
<entry>
<title>include/image*: add support for device-tree overlays</title>
<updated>2021-03-17T17:45:34Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-03-17T17:30:48Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=6890f6fe13bb8dfc40dbca89703d4ab1116dd4bc'/>
<id>urn:sha1:6890f6fe13bb8dfc40dbca89703d4ab1116dd4bc</id>
<content type='text'>
Add new target feature 'dt-overlay' which makes DTC keep the symbol
names in the generated dtb.
Make sure additional DT overlay sources specified by the new device
variable DEVICE_DTS_OVERLAY get compiled together with the main DTS
(currently overlays got to be in the same folder). Let Build/fit pass
the generated DT overlay blobs to mkits.sh.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>treewide: fix spelling 'seperate' -&gt; 'separate'</title>
<updated>2021-02-28T23:59:21Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-02-28T23:58:10Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=ebcb4f1d0a091d1fa87d6aa04ecae355ef23ef22'/>
<id>urn:sha1:ebcb4f1d0a091d1fa87d6aa04ecae355ef23ef22</id>
<content type='text'>
This popular spelling mistake was also introduced by myself lately.
Fix it everywhere.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>image: allow building FIT and uImage with ramdisk</title>
<updated>2021-02-24T01:35:20Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-02-21T14:19:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=330bd380e8b691833c8dcc9b579b51851cbd4b0f'/>
<id>urn:sha1:330bd380e8b691833c8dcc9b579b51851cbd4b0f</id>
<content type='text'>
Instead of embedding the initrd cpio archive into the kernel, allow
for having an external ramdisk added to the FIT or uImage.
This is useful to overcome kernel size limitations present in many
stock bootloaders, as the ramdisk is then loaded seperately and doesn't
add to the kernel size. Hence we can have larger ramdisks to host ie.
installers with all binaries to flash included (or a web-based
firmware selector).
In terms of performance and total size the differences are neglectible.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>scripts: target-metadata don't add PROFILES twice</title>
<updated>2021-01-15T08:42:21Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-04-15T00:49:54Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=4dad3244297d8315b25ef029286681be4e7123a0'/>
<id>urn:sha1:4dad3244297d8315b25ef029286681be4e7123a0</id>
<content type='text'>
Since 4ee3cf2b5a profiles with alternative vendor names may appear
multiple times in `tmp/.targetinfo` or `.targetinfo` (for
ImageBuilders).

The `target-metadata.pl` script adds these profiles then twice to
`PROFILE_NAMES` and the ImageBuilder show the profile twice when running
`make info`.

This patch removes duplicate profile IDs and only adds them once to
`.profiles.mk`.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: define PWM_SUPPORT arch feature flag</title>
<updated>2020-09-25T17:32:33Z</updated>
<author>
<name>Christian Lamparter</name>
</author>
<published>2020-08-29T21:07:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=f6fbc397066e57d180aebc62e6bf52464d06bd76'/>
<id>urn:sha1:f6fbc397066e57d180aebc62e6bf52464d06bd76</id>
<content type='text'>
As the PWM has its own sub-system in the Linux kernel,
I think it should be handled in the same way as GPIO, RTC, PCI...

This patch introduces a specific feature flag "pwm" and the
"leds-pwm" kernel module as the first customer.

Signed-off-by: Christian Lamparter &lt;chunkeey@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: add option to mark devices as BROKEN</title>
<updated>2020-07-30T19:49:07Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-07-28T18:47:34Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/noltari/commit/?id=1d5260cf72763d92ba8c4aff61b3605e37af614a'/>
<id>urn:sha1:1d5260cf72763d92ba8c4aff61b3605e37af614a</id>
<content type='text'>
By specifying "BROKEN := 1" or "BROKEN := y" for a device, it will be
hidden (and deselected) by default. By that, it provides a stronger
option to "disable" a device beyond just using DEFAULT := n.

To make these devices visible, just enable the BROKEN option in
developer settings as already implemented for targets and packages.

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