Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 2016 23:34:44 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        Adrian Chadd <adrian.chadd@gmail.com>
Cc:        Warner Losh <imp@bsdimp.com>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: CFI Byte order problem
Message-ID:  <641178.28622.qm@web101717.mail.ssk.yahoo.co.jp>
In-Reply-To: <CAJ-Vmo=bCpR%2BqUwCxM0jHVBiF9StsbPBVB16q_fJpJP-SV8Qnw@mail.gmail.com>
References:  <658790.3177.qm@web101716.mail.ssk.yahoo.co.jp> <CANCZdfqPJEsRAKwt93vvyy9Uf9cQtYRien85GHUSOLBJGWT_ew@mail.gmail.com> <915990.4597.qm@web101713.mail.ssk.yahoo.co.jp> <CAJ-Vmo=bCpR%2BqUwCxM0jHVBiF9StsbPBVB16q_fJpJP-SV8Qnw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I have AR2316 datasheet from net. This document have=0A=0A3.1.4 Byteswap Co=
ntrol=0A=0AThis document have not=A0parallel flash(cfi) information=A0=0Abe=
cause of AR2316=A0don't=A0have cfi interface. I guess=0AAR9132 datasheet ha=
ve it.=0A=0AI think two case. One is cfi byte swap is soc default.=0AOther =
is U-Boot is set to this control.=0A=0AI use Buffalo WZR-HP-G300NH 1stGen.=
=0A=0Ahttp://www.dd-wrt.com/wiki/index.php/Buffalo_WZR-HP-G300NH=0A=0A=0ATh=
is router have 32MByte cfi flash 16 bit bus wide.=0A=0AI think add check by=
te swap contole in=A0cfi_core.c is more better.=0A=0ADo you think this?=0A=
=0ARegards.=0A=0AHiroki Mori=0A=0A----- Original Message -----=0A> From: Ad=
rian Chadd <adrian.chadd@gmail.com>=0A> To: Mori Hiroki <yamori813@yahoo.co=
.jp>=0A> Cc: Warner Losh <imp@bsdimp.com>; "freebsd-mips@freebsd.org" <free=
bsd-mips@freebsd.org>=0A> Date: 2016/2/5, Fri 14:23=0A> Subject: Re: CFI By=
te order problem=0A> =0A> I have the AR9132 datasheet. What's the CFI hooke=
d up to? That's what=0A> I'm confused about, the AR9132 doesn't /have/ a pa=
rallel flash=0A> interface. :P=0A> =0A> =0A> =0A> -a=0A> =0A> =0A> On 4 Feb=
ruary 2016 at 20:17, Mori Hiroki <yamori813@yahoo.co.jp> wrote:=0A>>=A0=A0I=
 don't have AR9132 datasheet. But Some other Atheros datasheet=0A>>=A0=A0te=
ll to know Byteswap Control register. I think if Atheros open=0A>>=A0=A0the=
 AR9132 datasheet, then set correct to Byteswap Control=0A>>=A0=A0register.=
 But It's impossible, then ifdef workaround.=0A>> =0A>>=A0=A0Hiroki Mori=0A=
>> =0A>>=A0=A0----- Original Message -----=0A>>> From: Warner Losh <imp@bsd=
imp.com>=0A>>> To: Mori Hiroki <yamori813@yahoo.co.jp>=0A>>> Cc: "freebsd-m=
ips@freebsd.org" =0A> <freebsd-mips@freebsd.org>=0A>>> Date: 2016/2/5, Fri =
13:04=0A>>> Subject: Re: CFI Byte order problem=0A>>> =0A>>> =0A>>> =0A>>> =
=0A>>> =0A>>> =0A>>> On Thu, Feb 4, 2016 at 8:31 AM, Mori Hiroki =0A> <yamo=
ri813@yahoo.co.jp> wrote:=0A>>> =0A>>> Hi.=0A>>>> =0A>>>> I build Current f=
or AR9132. But don't recognize cfi flash =0A> memory.=0A>>>> I make debug w=
rite and found byte endian issue. I seem AR9132=0A>>>> is byte swap in cfi =
flash memory by default. Current cif code is=0A>>>> byte swap on Big Endian=
 machine. This is conflict.=0A>>>> =0A>>>> I make workaound by option for t=
his problem.=0A>>>> =0A>>>> https://github.com/yamori813/freebsd/commit/2da=
6531d24e0d689763f25055420078a63a08baa=0A>>> =0A>>> =0A>>> Why the #ifdef? W=
hy not always swap on big endian platforms?=0A>>> =0A>>> =0A>>> Warner=0A>>=
> =0A>>> =0A>>> =0A>>> =0A>>=A0=A0_________________________________________=
______=0A>>=A0=A0freebsd-mips@freebsd.org mailing list=0A>>=A0=A0https://li=
sts.freebsd.org/mailman/listinfo/freebsd-mips=0A>>=A0=A0To unsubscribe, sen=
d any mail to =0A> "freebsd-mips-unsubscribe@freebsd.org"=0A> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?641178.28622.qm>