* hi, i have two flashs, but my kernel can only find one , how can i write the dts?
@ 2010-07-16 8:34 hacklu
2010-07-16 21:46 ` Grant Likely
0 siblings, 1 reply; 4+ messages in thread
From: hacklu @ 2010-07-16 8:34 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]
this is my dts file:
flash@0,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
probe-type = "CFI";
reg = <0 0 1000000>;
bank-width = <2>;
device-width = <1>;
hrcw@0 {
label = "hrcw";
reg = <0 40000>;
};
jffs@40000 {
label = "jffs";
reg = <40000 200000>;
};
jffs2@240000 {
label = "uimage";
reg = <240000 d80000>;
};
};
flash@1,0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "cfi-flash";
probe-type = "CFI";
reg = <1000000 0 1000000>;
bank-width = <2>;
device-width = <1>;
jffs3@240000 {
label = "jffs2";
reg = <0 1000000>;
};
};
2010-07-16
hacklu
[-- Attachment #2: Type: text/html, Size: 6905 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: hi, i have two flashs, but my kernel can only find one , how can i write the dts?
2010-07-16 8:34 hi, i have two flashs, but my kernel can only find one , how can i write the dts? hacklu
@ 2010-07-16 21:46 ` Grant Likely
2010-07-19 3:56 ` Re: hi, i have two flashs, but my kernel can only find one , how cani " hacklu
0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2010-07-16 21:46 UTC (permalink / raw)
To: hacklu; +Cc: linuxppc-dev
T24gRnJpLCBKdWwgMTYsIDIwMTAgYXQgMjozNCBBTSwgaGFja2x1IDxlbWJlZHdheS50ZXN0QGdt
YWlsLmNvbT4gd3JvdGU6Cj4gdGhpcyBpcyBteSBkdHMgZmlsZToKPiBmbGFzaEAwLDCgewo+IKCg
oKCgoKCgoKCgoKCgoKCgoKCgoKCgoCNhZGRyZXNzLWNlbGxzoD2gPDE+Owo+IKCgoKCgoKCgoKCg
oKCgoKCgoKCgoKCgoCNzaXplLWN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in thread
* Re: Re: hi, i have two flashs, but my kernel can only find one , how cani write the dts?
2010-07-16 21:46 ` Grant Likely
@ 2010-07-19 3:56 ` hacklu
2010-07-19 4:33 ` Grant Likely
0 siblings, 1 reply; 4+ messages in thread
From: hacklu @ 2010-07-19 3:56 UTC (permalink / raw)
To: Grant Likely; +Cc: linuxppc-dev
[-- Attachment #1.1: Type: text/plain, Size: 2122 bytes --]
thanks very much! it works well now~~
but i found in my system,if i add the 0x prefix it will cause a syntax error
2010-07-19
hacklu
发件人: Grant Likely
发送时间: 2010-07-17 05:46:59
收件人: hacklu
抄送: linuxppc-dev
主题: Re: hi, i have two flashs, but my kernel can only find one , how cani write the dts?
On Fri, Jul 16, 2010 at 2:34 AM, hacklu <embedway.test@gmail.com> wrote:
> this is my dts file:
> flash@0,0 {
> #address-cells = <1>;
> #size-cells = <1>;
> compatible = "cfi-flash";
> probe-type = "CFI";
> reg = <0 0 1000000>;
> bank-width = <2>;
> device-width = <1>;
> hrcw@0 {
> label = "hrcw";
> reg = <0 40000>;
> };
> jffs@40000 {
> label = "jffs";
> reg = <40000 200000>;
> };
> jffs2@240000 {
> label = "uimage";
> reg = <240000 d80000>;
> };
> };
> flash@1,0 {
> #address-cells = <1>;
> #size-cells = <1>;
> compatible = "cfi-flash";
> probe-type = "CFI";
> reg = <1000000 0 1000000>;
This looks wrong. If you're second flash is on chip select 1 as the
node name suggests, then this should be (first cell is CS#, second is
offset, and third is size. Alos you're missing the 0x prefix):
reg = <1 0 0x1000000>;
If your second flash is on chip select 0 with the first flash, but
offset by 0x1000000, then reg should be:
reg = <0 0x1000000 0x1000000>;
and the name should be:
flash@0,1000000 { ... };
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
[-- Attachment #1.2: Type: text/html, Size: 9255 bytes --]
[-- Attachment #2: 14.gif --]
[-- Type: image/gif, Size: 1662 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: hi, i have two flashs, but my kernel can only find one , how cani write the dts?
2010-07-19 3:56 ` Re: hi, i have two flashs, but my kernel can only find one , how cani " hacklu
@ 2010-07-19 4:33 ` Grant Likely
0 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2010-07-19 4:33 UTC (permalink / raw)
To: hacklu; +Cc: linuxppc-dev
On Sun, Jul 18, 2010 at 9:56 PM, hacklu <embedway.test@gmail.com> wrote:
>
> thanks very much! it works well now~~
> but i found in my system,if i add the 0x prefix it will cause=A0a syntax =
error
Ah, your dts file is in the old version 0 format. You must be on an
older kernel, or at least haven't updated your dts file to the new
format after upgrading.
g.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-19 4:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-16 8:34 hi, i have two flashs, but my kernel can only find one , how can i write the dts? hacklu
2010-07-16 21:46 ` Grant Likely
2010-07-19 3:56 ` Re: hi, i have two flashs, but my kernel can only find one , how cani " hacklu
2010-07-19 4:33 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).