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

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

From: Aaro Koskinen <hidden>
Date: 2016-02-15 19:41:09
Also in: linux-mips, lkml

Hi,

On Mon, Feb 15, 2016 at 08:21:33PM +0100, Heinrich Schuchardt wrote:
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.
OCTEON does not work like this. The file you are modifying
(octeon_3xxx.dts) is compiled into the kernel, and there is no external
DTB file. So the model string will be always the same regardless on
which board you have booted the kernel.

A.
--
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