From owner-freebsd-mips@freebsd.org Fri Feb 5 15:45:22 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE2D3A77A3B for ; Fri, 5 Feb 2016 15:45:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ig0-x22f.google.com (mail-ig0-x22f.google.com [IPv6:2607:f8b0:4001:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F179BB6 for ; Fri, 5 Feb 2016 15:45:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-ig0-x22f.google.com with SMTP id mw1so16227511igb.1 for ; Fri, 05 Feb 2016 07:45:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Tv4AosBVayCOO95z4jWPsPK1H8t9OMjkud/rLcWw8FY=; b=neFoPOvJiRj+48OSvzC2E9G9yPGx5P8c0V3yAGHvzDUp3vcDAO2TVuSV01gBLQ0etV MzEHHnK+pwuxhyttcQ8n1UkQha4raEVJQXK6Wou0RsJIy+3pY7hf7/CBVYmNc0fjq5EL lB1LHXUMeCxXmPBlohWW2NxGAVILTK8JY5ldKAHoQ6N0/7khbFI+iUhAqH9oNWcqJ9i2 gwLvPhrbhNcSjAx/tAIjZrsuT9J3oy2+rQ5qxOG2QfCtfUvwDjWt/BXZMYWvG9MXYDK5 +N4RLeyirMRC91ZrPAIoqrt+UjNBFocxf1G1Rb+NyE290zv2PjBLf6CrEkIzh6hMRHIS U0eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Tv4AosBVayCOO95z4jWPsPK1H8t9OMjkud/rLcWw8FY=; b=OePWsfPnRyIwrbIg2Wj3PAC2UpHiKj45gkvZ8O/av2GeFhI/cs31XgJJGpkWhIwYM6 1rkle1GFoiae5WJnHYRyr+Kb1Tr67W7Sawmjmc6/RMYOXWDT77NwUxnmQPhVDJ2afVBZ 67eOfT6fw28CqU7t6AawJhrhukdymeYzcVlfUWU726YoeLlfo/X3Y342l0BuQyrxtwoa WBUs4IoxvE2SmncjAm38FzMbUmTQ5XhwxBI1fOseJvOnLx6CrOgjJ4dibRd37/O6pXWk /goXJ2qEnfAHi0+EIZVm5H5U0clFhIgLYEt4q1rjMEUha/P+2lWFKsndHeLlkuXV/J8y wYyA== X-Gm-Message-State: AG10YORpNt5VYSfEJMKEisFcmnJPzv9AUNMaRNkXw7u0HcOD7BQXGm7FDKjQgsLX+Vrc7Olf+LnZ3PAeyu6+uA== MIME-Version: 1.0 X-Received: by 10.50.142.98 with SMTP id rv2mr15312951igb.61.1454687121821; Fri, 05 Feb 2016 07:45:21 -0800 (PST) Received: by 10.36.14.19 with HTTP; Fri, 5 Feb 2016 07:45:21 -0800 (PST) In-Reply-To: <641178.28622.qm@web101717.mail.ssk.yahoo.co.jp> References: <658790.3177.qm@web101716.mail.ssk.yahoo.co.jp> <915990.4597.qm@web101713.mail.ssk.yahoo.co.jp> <641178.28622.qm@web101717.mail.ssk.yahoo.co.jp> Date: Fri, 5 Feb 2016 07:45:21 -0800 Message-ID: Subject: Re: CFI Byte order problem From: Adrian Chadd To: Mori Hiroki Cc: Warner Losh , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 15:45:22 -0000 Which 2316 datasheet do you have? Email me a copy and I'll see. It may be the wifi mac byteswap control .. -a On 5 February 2016 at 06:34, Mori Hiroki wrote: > 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 >> To: Mori Hiroki >> Cc: Warner Losh ; "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 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 >>>> To: Mori Hiroki >>>> Cc: "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 >> 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" >>