[From nobody Thu Jun 25 05:55:58 2020
Received: from polaris.svanheule.net ([84.16.241.116])
 by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux))
 id 1jnpzp-0007Be-QO
 for openwrt-devel@lists.openwrt.org; Tue, 23 Jun 2020 20:58:22 +0000
Received: from terra.local.svanheule.net (unknown
 [IPv6:2a02:a03f:5650:d01:497:5396:74c4:9add])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: sander@svanheule.net)
 by polaris.svanheule.net (Postfix) with ESMTPSA id B801F154AC7;
 Tue, 23 Jun 2020 22:58:05 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net;
 s=mail1707; t=1592945885;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:
 content-transfer-encoding:content-transfer-encoding;
 bh=S2aSmN9DGaXtpb8jaeMlXd9Qm1wqbpKQcdYTZP4/A7A=;
 b=knsg3xXERyrYgNrCmSQybjYPER12Py0c7dyoE38Mw7qlGjYj4Jg8QYdxFUYQ+pStifn2Rj
 BimYe+MGlEfICQZqRYzg8YAUGRspaqFhu0RpxON1XEsXda9EM7kZBh+J3x4r7L/4Jpslf3
 Pjtm6n+Tvi2oqYPQqwe3umDUiSARRV7AXRgRa+w5ezHPooH/XQG1qscCAqzSvjHyRq7SGi
 jZoPGnEAyAS5/CmSNe0f0YNEjXlbTBbix4emLcnihr3vTlezsoEg/PPDKTGR09gZpJdjUs
 HSY4O8VjwR0GonZvsjIqtPdNdzI5Vajh4BkuAg23p8Cnxk3UsbCRGL9jtJx29w==
From: Sander Vanheule &lt;sander@svanheule.net&gt;
To: openwrt-devel@lists.openwrt.org
Cc: Sander Vanheule &lt;sander@svanheule.net&gt;
Subject: [PATCH 0/1] kernel: mtdsplit: support okli loader splitting
Date: Tue, 23 Jun 2020 22:57:54 +0200
Message-Id: &lt;20200623205755.352533-1-sander@svanheule.net&gt;
X-Mailer: git-send-email 2.26.2
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Note: CRM114 invocation failed
X-Spam-Score: -0.2 (/)
X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary:
 Content analysis details:   (-0.2 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [84.16.241.116 listed in list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
 valid
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain

To enable dynamic kernel/rootfs splitting for devices that require an
ELF loader, I decided to modify the current splitter for openwrt,okli
compatible partitions.

openwrt,okli is currently used by one device: PISEN WMB001N.
For this device, this patch could remove the custom build directives for
the factory images.
For TP-Link CPE devices, it could enable a dynamic firmware partition,
while these devices currently employ a fixed partition split.

The modifications are placed inside mtdsplit_uimage.c to leverage the
existing uImage definitions. Alternatively, this loader could be moved
to a separate file, but then I would prefer to create an extra
mtdsplit_uimage.h header for the common parts. This would touch more
parts of the code, but might be better moving forward.

This patch was also posted on github with pull request #3130
https://github.com/openwrt/openwrt/pull/3130

Sander Vanheule (1):
  kernel: mtdsplit: support okli loader splitting

 .../drivers/mtd/mtdsplit/mtdsplit_uimage.c    | 124 +++++++++++++++++-
 1 file changed, 118 insertions(+), 6 deletions(-)

-- 
2.26.2


]