From owner-freebsd-mips@freebsd.org Mon May 20 21:28:14 2019 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F80715934B9 for ; Mon, 20 May 2019 21:28:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 00284939DC for ; Mon, 20 May 2019 21:28:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yb1-xb30.google.com with SMTP id e128so2505591ybc.12 for ; Mon, 20 May 2019 14:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RWdM3lel6Ou3UnPOywswJa8wB1jcNy1Kw4x87UcU82E=; b=Qp/Ex1Gkxhg7CNxnWD6vO92G0unvWNDpeVrpnv4HmNrS6bgDyTtshAIcb1nIt8ZMS8 oddah3LTusZZLB2i0f8kXShmACsgrHRia3aQS06htyCFa0+BZ+zFN2kscHd0Z09reaPR PgDG8X8eat9+2R4M0HixeBeMNEjqgo2+RMNIccqhdocqq1qAekKYkAd17ioW6DoM68Me 6CPEwAW4euvcUs3b0vQYx5d0SaS4glSC9aJBC4IcLkVSpQ/hEG0UeeacyP01ye55FhH8 M6AQCxFCKO2VuLXxXo9lfgWDDU6/DKDqyzf1c12Z7lT2UTp6wG/2WjbnHwjQdPYaPSUC GL4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RWdM3lel6Ou3UnPOywswJa8wB1jcNy1Kw4x87UcU82E=; b=Lsu0IqA7337ysF7DRXuLw59pwuWj6LDN3q+qBduP8QsoFz7tHFVDMUh6chEoXHgBUo wvDyA2LZ7tTxnrWw2SBqdx0QQBqe24EsfGLMB2EAzB5uWAACO/AOGl+uoV4dynY6+MhS bNuwf4b5T6giSJsRDRenOauYgpC5I31CLswqaJvq0UDCWjmAlDrro2h7oGmCL7nms9oT K7Y63DwE/tyWBOjbnW/aKaz33ogVrD1Y5RNMOl1JgvyCeRhxw7GtD3dCXjNMlX/X9ZrN mzeUi7zjJYxIcsqlF1LPhIY8Bnwpr7u320imqry/ZQ01/D7seNi5fTIzHJ8BTwfNZ3u+ GUpQ== X-Gm-Message-State: APjAAAUSki90ANA10cPMfjhs2L2DACmIun8qJLjDprWi6HS5R4193wqM QJhYMfBVpSzo1fIaoBXlPlVmKUqESYC1S9YKZMoUkw== X-Google-Smtp-Source: APXvYqzszYS/qWDr1++HSaRjeYW6caeq6zrdDg+ux1gtYvVWs/5MNH5iDyrjezMKQrrgThTSsRMqStSXwJNpSAsuLCk= X-Received: by 2002:a25:6b0f:: with SMTP id g15mr6157179ybc.264.1558387692244; Mon, 20 May 2019 14:28:12 -0700 (PDT) MIME-Version: 1.0 References: <2635.17990.qm@web103907.mail.ssk.yahoo.co.jp> In-Reply-To: <2635.17990.qm@web103907.mail.ssk.yahoo.co.jp> From: Adrian Chadd Date: Mon, 20 May 2019 14:27:59 -0700 Message-ID: Subject: Re: How to get flash address on dts? To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 00284939DC X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Qp/Ex1Gk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::b30 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-5.71 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; FREEMAIL_TO(0.00)[yahoo.co.jp]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_SHORT(-0.90)[-0.897,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[0.3.b.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.80)[ip: (-8.44), ipnet: 2607:f8b0::/32(-3.25), asn: 15169(-2.27), country: US(-0.06)] X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 May 2019 21:28:14 -0000 hi! Er, this is a very old email. :-) On Wed, 12 Sep 2018 at 03:28, Mori Hiroki wrote: > > Hi > > I modify forked Ralink WiFi driver. > > I want get eeprom data offset in flash. > > For example. > > https://github.com/yamori813/freebsd/blob/zrouter/sys/dts/mips/WN-G300DGR.dts > > > I want get "ralink,mtd-eeprom" value at wmac that is 0x1f040000. > > How to get in driver ? > > If you have suggestion, pelase let me know. Did you solve this already? I needed a super early driver that was called in ar71xx land before the flash addressing was remapped into a normal NOR flash device. It extracted out the calibration images and exposed them as firmware blobs that can be then accessed via named firmware_get() calls. So now all (i think!) of the ar71xx chips and the ath driver can now access their calibration data /after/ the system has booted, allowing me to use ath modules. -adrian