Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1334160 > unrolled thread
| Started by | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| First post | 2016-02-15 06:30 +0100 |
| Last post | 2016-02-15 21:00 +0100 |
| Articles | 12 — 5 participants |
Back to article view | Back to linux.kernel
[PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-02-15 06:30 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-02-15 12:20 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Arnd Bergmann <arnd@arndb.de> - 2016-02-15 12:30 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-02-15 19:00 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-02-15 19:20 +0100
[PATCH 1/1 v2] MIPS: DTS: cavium-octeon: provide model attribute Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-02-15 19:40 +0100
Re: [PATCH 1/1 v2] MIPS: DTS: cavium-octeon: provide model attribute David Daney <ddaney.cavm@gmail.com> - 2016-02-17 01:30 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Aaro Koskinen <aaro.koskinen@iki.fi> - 2016-02-15 19:40 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-02-15 20:30 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Aaro Koskinen <aaro.koskinen@iki.fi> - 2016-02-15 20:50 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Aaro Koskinen <aaro.koskinen@iki.fi> - 2016-02-15 21:00 +0100
Re: [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-02-15 21:00 +0100
| From | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| Date | 2016-02-15 06:30 +0100 |
| Subject | [PATCH 1/1] MIPS: DTS: cavium-octeon: provide model attribute |
| Message-ID | <r2jTs-4Xm-11@gated-at.bofh.it> |
Downstream packages like Debian flash-kernel rely on
/proc/device-tree/model
to determine how to install an updated kernel image.
Most dts files provide this property.
It is suggested by IEEE Std 1275-1994.
This patch adds a model attribute for Octeon CPUs.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts | 1 +
arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
index 9c48e05..a746678 100644
--- a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
+++ b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
@@ -8,6 +8,7 @@
*/
/ {
compatible = "cavium,octeon-3860";
+ model = "Cavium Octeon 3XXX";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&ciu>;
diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
index 79b46fc..c8a292a 100644
--- a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
+++ b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
@@ -8,6 +8,7 @@
*/
/ {
compatible = "cavium,octeon-6880";
+ model = "Cavium Octeon 68XX";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&ciu2>;
--
2.1.4
[toc] | [next] | [standalone]
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Date | 2016-02-15 12:20 +0100 |
| Message-ID | <r2pma-aS-25@gated-at.bofh.it> |
| In reply to | #1334160 |
Hello.
On 2/15/2016 8:26 AM, Heinrich Schuchardt wrote:
> Downstream packages like Debian flash-kernel rely on
> /proc/device-tree/model
> to determine how to install an updated kernel image.
>
> Most dts files provide this property.
> It is suggested by IEEE Std 1275-1994.
>
> This patch adds a model attribute for Octeon CPUs.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts | 1 +
> arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
> index 9c48e05..a746678 100644
> --- a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
> +++ b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
> @@ -8,6 +8,7 @@
> */
> / {
> compatible = "cavium,octeon-3860";
> + model = "Cavium Octeon 3XXX";
> #address-cells = <2>;
> #size-cells = <2>;
> interrupt-parent = <&ciu>;
> diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
> index 79b46fc..c8a292a 100644
> --- a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
> +++ b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
> @@ -8,6 +8,7 @@
> */
> / {
> compatible = "cavium,octeon-6880";
> + model = "Cavium Octeon 68XX";
> #address-cells = <2>;
> #size-cells = <2>;
> interrupt-parent = <&ciu2>;
The ePAPR 1.1 standard says:
2.3.2 model
Property: model
Value type: <string>
Description:
The model property value is a <string> that specifies the
manufacturer’s model number of the device.
The recommended format is: “manufacturer,model”, where manufacturer
is a string describing the name of the manufacturer (such as a stock
ticker symbol), and model specifies the model number.
Example:
model = “fsl,MPC8349EMITX”;
MBR, Sergei
[toc] | [prev] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2016-02-15 12:30 +0100 |
| Message-ID | <r2pvQ-e6-11@gated-at.bofh.it> |
| In reply to | #1334394 |
On Monday 15 February 2016 14:16:48 Sergei Shtylyov wrote: > > Property: model > Value type: <string> > Description: > The model property value is a <string> that specifies the > manufacturer’s model number of the device. > > The recommended format is: “manufacturer,model”, where manufacturer > is a string describing the name of the manufacturer (such as a stock > ticker symbol), and model specifies the model number. > > This also means that you absolutely cannot have wildcards in there (same rule as for the compatible strings) and that the property should be in the .dts file, not .dtsi. Arnd
[toc] | [prev] | [next] | [standalone]
| From | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| Date | 2016-02-15 19:00 +0100 |
| Message-ID | <r2vBg-4if-9@gated-at.bofh.it> |
| In reply to | #1334394 |
On 02/15/2016 12:16 PM, Sergei Shtylyov wrote:
> Hello.
>
> On 2/15/2016 8:26 AM, Heinrich Schuchardt wrote:
>
>> Downstream packages like Debian flash-kernel rely on
>> /proc/device-tree/model
>> to determine how to install an updated kernel image.
>>
>> Most dts files provide this property.
>> It is suggested by IEEE Std 1275-1994.
>>
>> This patch adds a model attribute for Octeon CPUs.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> ---
>> arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts | 1 +
>> arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts | 1 +
>> 2 files changed, 2 insertions(+)
>>
>> diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
>> b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
>> index 9c48e05..a746678 100644
>> --- a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
>> +++ b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
>> @@ -8,6 +8,7 @@
>> */
>> / {
>> compatible = "cavium,octeon-3860";
>> + model = "Cavium Octeon 3XXX";
>> #address-cells = <2>;
>> #size-cells = <2>;
>> interrupt-parent = <&ciu>;
>> diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
>> b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
>> index 79b46fc..c8a292a 100644
>> --- a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
>> +++ b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
>> @@ -8,6 +8,7 @@
>> */
>> / {
>> compatible = "cavium,octeon-6880";
>> + model = "Cavium Octeon 68XX";
>> #address-cells = <2>;
>> #size-cells = <2>;
>> interrupt-parent = <&ciu2>;
>
> The ePAPR 1.1 standard says:
>
> 2.3.2 model
>
> Property: model
> Value type: <string>
> Description:
> The model property value is a <string> that specifies the
> manufacturer’s model number of the device.
>
> The recommended format is: “manufacturer,model”, where manufacturer
> is a string describing the name of the manufacturer (such as a stock
> ticker symbol), and model specifies the model number.
>
> Example:
> model = “fsl,MPC8349EMITX”;
>
> MBR, Sergei
>
>
Hello Sergei, hello Arnd,
thank you for reviewing.
IEEE Std 1275-1994 says stock symbols should be in upper case.
I guess international standards should have precedence over papers valid
for a single architecture (power.org).
Would you support a patch having the following strings?
model = "CAVM, Octeon 3860";
model = "CAVM, Octeon 6880";
Otherwise, please, make a suggestion.
Best regards
Heinrich Schuchardt
[toc] | [prev] | [next] | [standalone]
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Date | 2016-02-15 19:20 +0100 |
| Message-ID | <r2vUE-4Jg-61@gated-at.bofh.it> |
| In reply to | #1334671 |
On 02/15/2016 08:52 PM, Heinrich Schuchardt wrote:
>>> Downstream packages like Debian flash-kernel rely on
>>> /proc/device-tree/model
>>> to determine how to install an updated kernel image.
>>>
>>> Most dts files provide this property.
>>> It is suggested by IEEE Std 1275-1994.
>>>
>>> This patch adds a model attribute for Octeon CPUs.
>>>
>>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>>> ---
>>> arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts | 1 +
>>> arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts | 1 +
>>> 2 files changed, 2 insertions(+)
>>>
>>> diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
>>> b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
>>> index 9c48e05..a746678 100644
>>> --- a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
>>> +++ b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
>>> @@ -8,6 +8,7 @@
>>> */
>>> / {
>>> compatible = "cavium,octeon-3860";
>>> + model = "Cavium Octeon 3XXX";
>>> #address-cells = <2>;
>>> #size-cells = <2>;
>>> interrupt-parent = <&ciu>;
>>> diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
>>> b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
>>> index 79b46fc..c8a292a 100644
>>> --- a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
>>> +++ b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
>>> @@ -8,6 +8,7 @@
>>> */
>>> / {
>>> compatible = "cavium,octeon-6880";
>>> + model = "Cavium Octeon 68XX";
>>> #address-cells = <2>;
>>> #size-cells = <2>;
>>> interrupt-parent = <&ciu2>;
>>
>> The ePAPR 1.1 standard says:
>>
>> 2.3.2 model
>>
>> Property: model
>> Value type: <string>
>> Description:
>> The model property value is a <string> that specifies the
>> manufacturer’s model number of the device.
>>
>> The recommended format is: “manufacturer,model”, where manufacturer
>> is a string describing the name of the manufacturer (such as a stock
>> ticker symbol), and model specifies the model number.
>>
>> Example:
>> model = “fsl,MPC8349EMITX”;
[...]
> Hello Sergei, hello Arnd,
>
> thank you for reviewing.
>
> IEEE Std 1275-1994 says stock symbols should be in upper case.
>
> I guess international standards should have precedence over papers valid
> for a single architecture (power.org).
>
> Would you support a patch having the following strings?
>
> model = "CAVM, Octeon 3860";
> model = "CAVM, Octeon 6880";
>
> Otherwise, please, make a suggestion.
Documentation/devicetree/bindings/vendor-prefixes.txt already has the
vendor prefix for Cavium, and it's (surprise!) "cavium".
Otherwise, the names look much better -- just remove space after comma please.
> Best regards
>
> Heinrich Schuchardt
MBR, Sergei
[toc] | [prev] | [next] | [standalone]
| From | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| Date | 2016-02-15 19:40 +0100 |
| Subject | [PATCH 1/1 v2] MIPS: DTS: cavium-octeon: provide model attribute |
| Message-ID | <r2wdY-4Rn-19@gated-at.bofh.it> |
| In reply to | #1334698 |
Downstream packages like Debian flash-kernel rely on
/proc/device-tree/model
to determine how to install an updated kernel image.
Most dts files provide this property.
This patch adds a model attribute Octeon CPUs.
v2:
Use vendor prefix defined in vendor-prefixes.txt.
Separate model from vendor by comma.
Avoid wildcards.
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts | 1 +
arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
index 9c48e05..f70cd58 100644
--- a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
+++ b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
@@ -8,6 +8,7 @@
*/
/ {
compatible = "cavium,octeon-3860";
+ model = "cavium,Octeon 3860";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&ciu>;
diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
index 79b46fc..0b40899 100644
--- a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
+++ b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
@@ -8,6 +8,7 @@
*/
/ {
compatible = "cavium,octeon-6880";
+ model = "cavium,Octeon 6880";
#address-cells = <2>;
#size-cells = <2>;
interrupt-parent = <&ciu2>;
--
2.1.4
[toc] | [prev] | [next] | [standalone]
| From | David Daney <ddaney.cavm@gmail.com> |
|---|---|
| Date | 2016-02-17 01:30 +0100 |
| Subject | Re: [PATCH 1/1 v2] MIPS: DTS: cavium-octeon: provide model attribute |
| Message-ID | <r2Yae-6Sl-17@gated-at.bofh.it> |
| In reply to | #1334712 |
On 02/15/2016 10:35 AM, Heinrich Schuchardt wrote:
> Downstream packages like Debian flash-kernel rely on
> /proc/device-tree/model
> to determine how to install an updated kernel image.
>
> Most dts files provide this property.
>
> This patch adds a model attribute Octeon CPUs.
>
> v2:
> Use vendor prefix defined in vendor-prefixes.txt.
> Separate model from vendor by comma.
> Avoid wildcards.
>
> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
NAK.
These device tree templates are only used on systems with archaic
versions of u-boot. For all modern OCTEON systems, the device tree is
provided by the firmware and is not under the control of the authors of
the Linux kernel.
Whatever problem you are attempting to solve, almost by definition,
cannot be solved by modifying these files.
We are worse off changing these, and giving people false hope that you
are fixing something, than doing nothing.
David Daney
> ---
> arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts | 1 +
> arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
> index 9c48e05..f70cd58 100644
> --- a/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
> +++ b/arch/mips/boot/dts/cavium-octeon/octeon_3xxx.dts
> @@ -8,6 +8,7 @@
> */
> / {
> compatible = "cavium,octeon-3860";
> + model = "cavium,Octeon 3860";
> #address-cells = <2>;
> #size-cells = <2>;
> interrupt-parent = <&ciu>;
> diff --git a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
> index 79b46fc..0b40899 100644
> --- a/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
> +++ b/arch/mips/boot/dts/cavium-octeon/octeon_68xx.dts
> @@ -8,6 +8,7 @@
> */
> / {
> compatible = "cavium,octeon-6880";
> + model = "cavium,Octeon 6880";
> #address-cells = <2>;
> #size-cells = <2>;
> interrupt-parent = <&ciu2>;
>
[toc] | [prev] | [next] | [standalone]
| From | Aaro Koskinen <aaro.koskinen@iki.fi> |
|---|---|
| Date | 2016-02-15 19:40 +0100 |
| Message-ID | <r2wdZ-4Rn-29@gated-at.bofh.it> |
| In reply to | #1334671 |
Hi, On Mon, Feb 15, 2016 at 06:52:20PM +0100, Heinrich Schuchardt wrote: > On 02/15/2016 12:16 PM, Sergei Shtylyov wrote: > > On 2/15/2016 8:26 AM, Heinrich Schuchardt wrote: > >> 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.
[toc] | [prev] | [next] | [standalone]
| From | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| Date | 2016-02-15 20:30 +0100 |
| Message-ID | <r2x0m-5sb-19@gated-at.bofh.it> |
| In reply to | #1334714 |
On 02/15/2016 07:38 PM, Aaro Koskinen wrote: > Hi, > > On Mon, Feb 15, 2016 at 06:52:20PM +0100, Heinrich Schuchardt wrote: >> On 02/15/2016 12:16 PM, Sergei Shtylyov wrote: >>> On 2/15/2016 8:26 AM, Heinrich Schuchardt wrote: >>>> 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
[toc] | [prev] | [next] | [standalone]
| From | Aaro Koskinen <aaro.koskinen@iki.fi> |
|---|---|
| Date | 2016-02-15 20:50 +0100 |
| Message-ID | <r2xjI-5z4-9@gated-at.bofh.it> |
| In reply to | #1334757 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Aaro Koskinen <aaro.koskinen@iki.fi> |
|---|---|
| Date | 2016-02-15 21:00 +0100 |
| Message-ID | <r2xtn-5CC-5@gated-at.bofh.it> |
| In reply to | #1334764 |
Hi, On Mon, Feb 15, 2016 at 08:50:48PM +0100, Heinrich Schuchardt wrote: > On 02/15/2016 08:40 PM, Aaro Koskinen wrote: > > 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. > > you are right DTBs are built in for MIPS systems. > > Still it would be useful to be able to use the same property 'model' to > determine which u-boot script (boot.scr) to install. But that cannot be solved by adding a static model string to octeon_3xxx.dts, because different OCTEON boards need different u-boot commands (some boot from flash, some from mmc, some from USB, etc.). A.
[toc] | [prev] | [next] | [standalone]
| From | Heinrich Schuchardt <xypron.glpk@gmx.de> |
|---|---|
| Date | 2016-02-15 21:00 +0100 |
| Message-ID | <r2xtn-5CC-7@gated-at.bofh.it> |
| In reply to | #1334764 |
On 02/15/2016 08:40 PM, Aaro Koskinen wrote: > 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. > Hello Aaro, you are right DTBs are built in for MIPS systems. Still it would be useful to be able to use the same property 'model' to determine which u-boot script (boot.scr) to install. Best regards Heinrich Schuchardt
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web