Thread (12 messages) 12 messages, 5 authors, 2016-02-17

Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute

From: Heinrich Schuchardt <hidden>
Date: 2016-02-15 19:21:58
Also in: linux-mips, lkml

On 02/15/2016 07:38 PM, Aaro Koskinen wrote:
Hi,

On Mon, Feb 15, 2016 at 06:52:20PM +0100, Heinrich Schuchardt wrote:
quoted
On 02/15/2016 12:16 PM, Sergei Shtylyov wrote:
quoted
On 2/15/2016 8:26 AM, Heinrich Schuchardt wrote:
quoted
Downstream packages like Debian flash-kernel rely on
/proc/device-tree/model
to determine how to install an updated kernel image.
Would you support a patch having the following strings?

model = "CAVM, Octeon 3860";
model = "CAVM, Octeon 6880";
The built-in DTBs are shared by multiple completely different boards
(from multiple different manufacturers). How would those strings help
for cases like flash-kernel?

A.
Hello Aaro,

flash-kernel has a database /usr/share/flash-kernel/db/all.db with
entries like:

Machine: LeMaker Banana Pi
Kernel-Flavors: armmp armmp-lpae
Boot-Script-Path: /boot/boot.scr
DTB-Id: sun7i-a20-bananapi.dtb
U-Boot-Script-Name: bootscr.sunxi
Required-Packages: u-boot-tools

Machine refers to the value of /proc/device-tree/model.
DTB-Id is the dtb to be installed.

So what flash-kernel does is:
- look up value of /proc/device-tree/model
- retrieve correlated dtb file name from database
- install dtb with this name
- create symbolic links for the dtb

If multiple boards use the the same dtb that is fine with flash-kernel
as long as the value of model is unique per dtb.

Best regards

Heinrich Schuchardt
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help