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 3.1.4 Byteswap Control This document have not parallel flash(cfi) information because of AR2316 don't have cfi interface. I guess AR9132 datasheet have it. I think two case. One is cfi byte swap is soc default. Other is U-Boot is set to this control. I use Buffalo WZR-HP-G300NH 1stGen. http://www.dd-wrt.com/wiki/index.php/Buffalo_WZR-HP-G300NH This router have 32MByte cfi flash 16 bit bus wide. I think add check byte swap contole in cfi_core.c is more better. Do you think this? Regards. Hiroki Mori ----- Original Message ----- > From: Adrian Chadd <adrian.chadd@gmail.com> > To: Mori Hiroki <yamori813@yahoo.co.jp> > Cc: Warner Losh <imp@bsdimp.com>; "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> > Date: 2016/2/5, Fri 14:23 > Subject: Re: CFI Byte order problem > > I have the AR9132 datasheet. What's the CFI hooked up to? That's what > I'm confused about, the AR9132 doesn't /have/ a parallel flash > interface. :P > > > > -a > > > On 4 February 2016 at 20:17, Mori Hiroki <yamori813@yahoo.co.jp> wrote: >> I don't have AR9132 datasheet. But Some other Atheros datasheet >> tell to know Byteswap Control register. I think if Atheros open >> the AR9132 datasheet, then set correct to Byteswap Control >> register. But It's impossible, then ifdef workaround. >> >> Hiroki Mori >> >> ----- Original Message ----- >>> From: Warner Losh <imp@bsdimp.com> >>> To: Mori Hiroki <yamori813@yahoo.co.jp> >>> Cc: "freebsd-mips@freebsd.org" > <freebsd-mips@freebsd.org> >>> Date: 2016/2/5, Fri 13:04 >>> Subject: Re: CFI Byte order problem >>> >>> >>> >>> >>> >>> >>> On Thu, Feb 4, 2016 at 8:31 AM, Mori Hiroki > <yamori813@yahoo.co.jp> wrote: >>> >>> Hi. >>>> >>>> I build Current for AR9132. But don't recognize cfi flash > memory. >>>> I make debug write and found byte endian issue. I seem AR9132 >>>> is byte swap in cfi flash memory by default. Current cif code is >>>> byte swap on Big Endian machine. This is conflict. >>>> >>>> I make workaound by option for this problem. >>>> >>>> https://github.com/yamori813/freebsd/commit/2da6531d24e0d689763f25055420078a63a08baa >>> >>> >>> Why the #ifdef? Why not always swap on big endian platforms? >>> >>> >>> Warner >>> >>> >>> >>> >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to > "freebsd-mips-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?641178.28622.qm>
