From owner-freebsd-mips@freebsd.org Sun May 19 15:53:51 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 10E2815B139B for ; Sun, 19 May 2019 15:53:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 20B6C6A2DD for ; Sun, 19 May 2019 15:53:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id CC79115B139A; Sun, 19 May 2019 15:53:49 +0000 (UTC) Delivered-To: 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 8FA9F15B1399 for ; Sun, 19 May 2019 15:53:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw1-xc31.google.com (mail-yw1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) (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 A73D36A2D5 for ; Sun, 19 May 2019 15:53:48 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yw1-xc31.google.com with SMTP id a130so4819330ywe.13 for ; Sun, 19 May 2019 08:53:48 -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=lBXDQrLg+xkarjGWdjScH4TtTx+c59QpKshAd88c1gI=; b=R2X8gmlgN4ozAfP945qj864e3t56/WiSl3lzQTkGTu3MX5DFoBYvfG3Y5E+D5qp+2b Olzodr9TShNfeUw1YzQ6Hb7xtv+zDKyVyqVHq+vmwpzKhoDTpTH2XvAz4zwvbr7/mGy2 OilEUsYqhazNMcmpbpyHyAjEkLHaMGKWzXq+rKErvSNluvEO3PQFggVdcfl037BdnTXz F2uTxFAr664WiOraHlRtQ/DW3Xh367i4+Ht7ipBmZ9PIRn0WI+3GXOs0xgKH9XTG7awt ud2mVg8gU5mxB88JbK0loDGfiwCraSa9FYBWBWKe8JUtZ7+JKT7YbIQoBd4dgcflHBAe ASUg== 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=lBXDQrLg+xkarjGWdjScH4TtTx+c59QpKshAd88c1gI=; b=t8Gus9xD/d3la5uFzAnQy9w5eRo1O5qM0ZOcZRB7LHAksQ78MNRIngWdyNoecxcdCM eGBUfuYBkMKKCy7QpEvbli2+/yUlI/VcI703jaiob62Gkh8R32OfCFchf+86lLe28v/j oyd3F66QTPTgCOZ6KwkUVpySisvFOdAxzdbhUdYf5x7rjTOOHi6WRzSyxzSW/+C9u8Rp yLa9PTdvccDY9RHW2+IJYFRyyqaB4kVFYWZjmah79HHtDQmb+hslX1xa8CgBBjYzf9mP RF+T2VVKmBtacxopQ9BAEpkMG1hVaFZ+WdijtNHvDy7lthmSvdiGCuRXi6eH9QEVyHwB xpvA== X-Gm-Message-State: APjAAAXQ1eGgLrWkOiyD6tfsXSzOiIh3aK63fAze+u2YEJZcXvB1vWK0 d+E5yKfo+PsY+EHh9ljJmbdwLQu+Q8NypS9P5TfgnQ== X-Google-Smtp-Source: APXvYqw9FfzJ7ed2Voi4si1iIW7L5addAdUd48k+359bhLp8v111pQYRiw2HHaMZeIFVgaYNVp23I7ruitVfYnoB48w= X-Received: by 2002:a81:3c47:: with SMTP id j68mr10064470ywa.293.1558281227754; Sun, 19 May 2019 08:53:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Sun, 19 May 2019 08:53:36 -0700 Message-ID: Subject: Re: Mikrotok Routerboard RB450G To: Wojciech Puchar Cc: "freebsd-mips@freebsd.org. Robert Pera" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: A73D36A2D5 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=R2X8gmlg; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::c31 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-6.97 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; 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]; NEURAL_HAM_SHORT(-0.97)[-0.975,0]; 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_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[mips@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.3.c.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]; IP_SCORE(-2.98)[ip: (-9.31), ipnet: 2607:f8b0::/32(-3.26), asn: 15169(-2.27), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] 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: Sun, 19 May 2019 15:53:51 -0000 Hi! Is that an AR71XX based board? Ah yes, it is. So, an AR71XX kernel config should boot on the thing. The NAND flash - I think we have support for it somehow but I haven't used the NAND flash on the thing. I think the SD slot would require a bit of kernel work. I'll go see if I have one of these in my box of old MIPS boards. It shouldn't be too tricky to make it work. -adrian On Tue, 7 May 2019 at 08:36, Wojciech Puchar wrote: > > This hardware is quite cheaply available and will suit my needs fine. > It is specified on FreeBSD MIPS page as supported. > > So my questions: > > 1) what kernel config should i use for it to begin with. > 2) what options to specify to build world (i want full FreeBSD not cutdown > versions). > 3) does it support builtin flash storage and SD card slot. > > > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Sun May 19 16:02:07 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 590F815B193F for ; Sun, 19 May 2019 16:02:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) (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 78E6A6AA39 for ; Sun, 19 May 2019 16:02:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yb1-xb29.google.com with SMTP id x7so531224ybg.5 for ; Sun, 19 May 2019 09:02:05 -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=c8rxPZYkYlFcgjoOKD+qpleMC4xEtAwQsMUsj9thkqI=; b=a2aUOsWJBiA5/FurivjVfU+me8jwTmrn708DloyzI/UxbeVt0Al/7N2t0AZc13E64z 81lcxQA+6KdkNFRq6NyP4rDCvl6b3TeT2Gce/5mqcqGd+Y+CmqyONmgh7U4kMcmd+W3D NG/4x5f+RDyGKn/6IVd3swKU+1UZxVO/Oje9hlYa6KZE8kpEnB7x1uM/hKreE/6eUXO/ l+0JckX/hhLzb8rudztiTWjvLyJwe8CSdShEqru1UB/WFIUoBnDtgqvw1jbeikLGHR1k YOId7djciIy9YcRBgIoagDM4EB8esE7a2fmlj46mkOEvy9SofsuvsLHgmoR3wiXRjHIk ISPw== 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=c8rxPZYkYlFcgjoOKD+qpleMC4xEtAwQsMUsj9thkqI=; b=IFqTcGY/8jAcMOKpQOGmtjgQ5QqssPTwvSBMuhQwvleQktGTaCM3g66y9tea1MDy8q 2T8+xmikhgnWQi86+cg52jcyxUqvjMeuN9g7Zi8feinzPQA8AxYwJYepC2R7XByeCVuo 0LRXq6COFFao9zzcxNtJd2p6KdIUnG3qkyKo2uPr0GDl2QjMfSXWtzeOmRBjQPU/DLxp NOnqVDl9jpgPcb0CRenuMSBHo1Y+BBKqWRF7O4dOhqt+1rExgEtaSHExcbZlsu/BHx6q 48AXwqCIQL1IotU0ye9+FC99RTpm3zBLn/YHpT1v7MU6H+iZpuBXVEqMLwhWkV8WYOsI I/mw== X-Gm-Message-State: APjAAAVp+325rNTqgz/+dYzYribAA5JFbX+Auefu3iddYUPZydCASQ+l 6zV0O/1WvcQL78z1FTR5svZP7eEwm8ZQCwNgBPGowQ== X-Google-Smtp-Source: APXvYqz7Trdx5eUWXrzh6WwgbpqxNwAi4rh2Ifigv0vHk2d+xSfDuLj9u+6A2+7o1F5lu4VV6HMOYJmIfnv/xeSfvKk= X-Received: by 2002:a5b:2ce:: with SMTP id h14mr32233435ybp.193.1558281724724; Sun, 19 May 2019 09:02:04 -0700 (PDT) MIME-Version: 1.0 References: <8da9f5d2-e33e-0f55-7f30-3344ccf5f0a7@grosbein.net> <20190424101102.GK18788@cicely7.cicely.de> In-Reply-To: <20190424101102.GK18788@cicely7.cicely.de> From: Adrian Chadd Date: Sun, 19 May 2019 09:01:52 -0700 Message-ID: Subject: Re: MIPS future... To: ticso@cicely.de Cc: Eugene Grosbein , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 78E6A6AA39 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=a2aUOsWJ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::b29 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-6.96 / 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:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; 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)[]; RCPT_COUNT_THREE(0.00)[3]; 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)[9.2.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]; IP_SCORE(-2.98)[ip: (-9.29), ipnet: 2607:f8b0::/32(-3.26), asn: 15169(-2.27), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] 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: Sun, 19 May 2019 16:02:07 -0000 On Wed, 24 Apr 2019 at 03:11, Bernd Walter wrote: > > On Thu, Dec 13, 2018 at 08:04:17AM +0700, Eugene Grosbein wrote: > > 13.12.2018 1:15, Warner Losh wrote: > > > > > And then there's the even larger question: how many people are still using > > > mips32? It looks like a fair number, maybe, but I have no idea for sure, so > > > if you do, please provide feedback on the platforms you are running FreeBSD > > > 11 or newer on. > > > > I have TP-Link TL-WDR4300 https://www.tp-link.com/en/products/details/TL-WDR4300.html > > that is MIPS32 74Kc AR9344 SOC with 8MB on-board flash and 128M RAM > > that successfully boots to multiuser mode using very old FreeBSD 11-CURRENT. > > I'm using one of them as an AP in one location with the mini-build. > My other locatin was using an OpenWRT AP, but just yesterday I finally setup > FreeBSD-12 stable to replace the OpenWRT. > It was very tricky to find out what modules had to be loaded to get WiFi > working. I'm actively working on trying to tidy this up on -HEAD (on the MIPS boards) because, well, I'm back to trying to make it all work well. There's support for the last two chips (dragonfly, honeybee) that I need to finish and bring over too. > And on how to start them without loader perloading modules. > I finally came up with the following rc.local: > /sbin/kldload wlan_xauth > /sbin/kldload ath_hal_ar9300.ko > /sbin/kldload if_ath_ahb.ko > /sbin/kldload if_ath_pci.ko > sleep 1 > /sbin/ifconfig bridge0 unplumb > sleep 1 > /sbin/ifconfig bridge0 plumb Yeah. Part of the unfun part of the FreeBSD wifi experience is that devices take non-zero amounts of time to do stuff in deferred threads, so there's fun race conditions when trying to script bringing things up. It used to be easier - everything would block in the ioctl path for loading, creating/destroying interfaces, etc - but the newer firmware NICs have stuff deferred into async calls and they don't all block the ioctl path. So, sometimes you need sleeps until the interface has been fully loaded/plumbed. It's one of the many annoying things in my ath10k port that I'm trying to chip away at. > > I stopped trying it because its USB support was pretty unstable leading to random panics or just hangs and > > 8MB are not enough for my purposes without extra USB storage for packages and > > I could not even fit FreeBSD 12 base system to its internal flash due to siginficantly increased code bloat > > and ENOTIME to deal with troubles. I'm working on this right now too. Annoying the biggest thing I need help with is that we can't build without SSL because of how libunbound/libldns is built. It has a checked in config.h from configure which hard-enables SSL. Hopefully I can build hostapd/wpa_supplciant with the built-in crypto routines to get some savings. If I can get rid of needing libcrypto and libssl in the wifi AP builds then we save a few megabytes of space; enough to fit in 8MB again. i'm working on a cpio-like tool to replace cpio/libarchive because libarchive is also quite large (almost a megabyte + libcrypto depedency) which we don't need right now. > > Same, the instable USB support was what killed most of my ambitions with that. > This is a showstopper for other boards as well. > Don't know if this specific to atheros, but I've tested several atheros > based boards and USB just wasn't working well enough for a rootfs. > Maybe that has changed since my last test... Is this USB on the atheros chips? what's wrong with it? It /used/ to be enough to run a rootfs from but I haven't done that in a few years and there's been some changes to the USB stack since then. > Since it is for my own need with existing infrastructure, the TL-WDR4300 > is using nfsroot. > However, there are still some issues. > It is bridging to the WiFi, but I like to have isolation. > Since it is nfsroot, I can't use normal VLANs to my gateway. > I should be able to use VXLAN to my normal gateway however. > Routing is not an option as I can't install packages/ports for dhcp: > root@apx1:~ # pkg > ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg" > root@apx1:~ # which cc > cc: Command not found. Is this from my freebsd-wifi-build scripts? Yeah, some stuff needs updating again. I am working on that too. ;-) > The rootfs is via ../root/mips_ap/ build by the freebsd-wifi-build. > Beside the missing cc it looks pretty much complete. > Maybe a normal crossbuild would get me a compiler? It won't get you one in my normal image because it's too big. > > That said, if I can't have a working compiler, I would try vxlan, but still > a working compiler would be nice to have. The FreeBSD targets for the AP have a lot of stuff removed in the build. I used to use an option in freebsd-wifi-build to build non-AP images (ie, full cross-built images) which unfortunately won't include a compiler until that is also added in as a cross-build target. Poke me repeatedly on #freebsd-wifi ; I'll keep plodding through this list now that I'm poking at it again. -adrian From owner-freebsd-mips@freebsd.org Sun May 19 16:04:07 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 CF25215B1A08 for ; Sun, 19 May 2019 16:04:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw1-xc32.google.com (mail-yw1-xc32.google.com [IPv6:2607:f8b0:4864:20::c32]) (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 BE88C6AB7F; Sun, 19 May 2019 16:04:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yw1-xc32.google.com with SMTP id a130so4825907ywe.13; Sun, 19 May 2019 09:04:05 -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=5vXHk/FqwIJ2fetouAL6mXtAwPEBhzBZ346e9BcEQVI=; b=Yj2FuJgabHF+5sypk5wW48+EKxZQB9DvzvUqLou7i77iwXoT2giaTjNqOmllXwMKPS pmVqM8PeVfwfB+emvZ5/0mHhMqWQO5lhTzFsCsPoAupfP0l1k6FvZDiUG4EYyPE4UXkK J96b7x4ohMun2xIY7V8F4B1+oIbP4B2ckaxzH4Fa34i3Qyv/CLmGYcwJ2xguiqg4Yupn 2GUUZ7A060Hf+Iwh2IVXMBbIluCmzd7GCrwO/hIEHYgEXK1FADfa/PfggPvArM58zdKm m0pt7N88C2J6z3UKkk6IoyufLMGfDe4v6Yrj7ngEXAL9gV6zn0Yh7DBdEhbizwQedSki 63Og== 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=5vXHk/FqwIJ2fetouAL6mXtAwPEBhzBZ346e9BcEQVI=; b=lIIXzRTAbW3zMtZxacXzjrICWh3hHTXc8kf/kNID8zqojEBrYTWedlbeAG+ze9vhVq ZANL14OtFEB03PMnAY1MgpN1NIF4TtjuYBrhib7oYeEaYPSnXKmlJp6ST9AhQEjPC7BG KZg5ND2NHX859hp6Gu7lUn90ZaE4Znhlrcu5akIVoCQ7iLHsqMUuurK4mFqQE+0J3H4G Qwdz35eNizm0qiUfqEDyARC1kTMcWnK45DiekwUO3XNa3mnydLmlzcCUzilyobIqEP7M meQRSW+teKENVGRd57bpc+2St+PLlko2ieojpbctm4tRvwGWrAIzBBOVqD8ZAcR0oU9Y 61Dg== X-Gm-Message-State: APjAAAXoowd+lHpt1Cvk3QNyymzoGUsIhgsKgiWRnYIOtGEdBnKxmSrw EHz7ncpZwUUSSaeQyFAh3vrbSw0qEVsxW8Tm9qk= X-Google-Smtp-Source: APXvYqzqwuUMVcniJNpIrD+AxVTLGd/HQcQWkydqEwlGcUhuBOhpv140YyoGIPvatqZ3Kq+kVavlp0XrMc8ODtWx3gU= X-Received: by 2002:a81:3217:: with SMTP id y23mr31656204ywy.386.1558281845058; Sun, 19 May 2019 09:04:05 -0700 (PDT) MIME-Version: 1.0 References: <1991993923.530828.1556558314174.JavaMail.yahoo.ref@jws704008.mail.kks.yahoo.co.jp> <1991993923.530828.1556558314174.JavaMail.yahoo@jws704008.mail.kks.yahoo.co.jp> <22b68b094cbe7ab1b07673e43f6473906bd2d648.camel@freebsd.org> <20190429195750.409e9d13aea2ff1654a20d3c@bidouilliste.com> <20190429202357.79ac2d8dba8d0bed1caa8203@bidouilliste.com> <130153476.2287928.1556589558764.JavaMail.yahoo@jws700105.mail.ssk.yahoo.co.jp> In-Reply-To: <130153476.2287928.1556589558764.JavaMail.yahoo@jws700105.mail.ssk.yahoo.co.jp> From: Adrian Chadd Date: Sun, 19 May 2019 09:03:53 -0700 Message-ID: Subject: Re: spigen problem To: Mori Hiroki Cc: Emmanuel Vadot , Ian Lepore , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: BE88C6AB7F X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Yj2FuJga; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::c32 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-6.71 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.90)[-0.903,0]; 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)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.80)[ip: (-8.38), ipnet: 2607:f8b0::/32(-3.26), asn: 15169(-2.27), country: US(-0.06)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.3.c.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]; RCVD_COUNT_TWO(0.00)[2] 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: Sun, 19 May 2019 16:04:07 -0000 hi! this looks ok to me. I'll go commit this tonight. -a On Mon, 29 Apr 2019 at 19:03, Mori Hiroki wrote: > > Hi. > > I'm sorry. This is mtk_spi_v1.c issue. Current code hard depend > flash access. > > I add workadound for this code and put review. > > https://reviews.freebsd.org/D20101 > > Thanks > > Hiroki Mori > > ----- Original Message ----- > > From: Emmanuel Vadot > > To: Ian Lepore > > Cc: "freebsd-mips@freebsd.org" > > Date: 2019/4/30, Tue 03:23 > > Subject: Re: spigen problem > > > > On Mon, 29 Apr 2019 12:13:41 -0600 > > Ian Lepore wrote: > > > >> On Mon, 2019-04-29 at 19:57 +0200, Emmanuel Vadot wrote: > >> > On Mon, 29 Apr 2019 11:34:34 -0600 > >> > Ian Lepore wrote: > >> > > >> > > On Tue, 2019-04-30 at 02:18 +0900, Mori Hiroki wrote: > >> > > > Hi > >> > > > > >> > > > I add small spi lcd on RT3050. This lcd controller is > > S6D0151. > >> > > > > >> > > > S6D0151 transfer is tree byte command then tree byte data. > >> > > > > >> > > > I use spigen mruby rapper. This rapper use > > SPIGENIOC_TRANSFER. > >> > > > > >> > > > I try to send tree byte command. But spi transfer is six > > byte. > >> > > > > >> > > > This is reason. > >> > > > > >> > > > sys/dev/spibus/spigen.c > >> > > > > >> > > > error = copyin(st->st_command.iov_base, > > transfer.tx_cmd, > >> > > > transfer.tx_cmd_sz = transfer.rx_cmd_sz = st- > >> > > > > st_command.iov_len); > >> > > > > >> > > > > >> > > > This lcd not work six byte transfer. > >> > > > > >> > > > How do I fix this ? > >> > > > > >> > > > Regards > >> > > > > >> > > > Hiroki Mori > >> > > > > >> > > > >> > > I'm not sure what you mean by "This is the reason", > > that code sets > >> > > up > >> > > the transfer for exactly as many bytes as you requested in > >> > > st_command.iov_len. If you set that to three bytes, only three > >> > > bytes > >> > > will be transfered. > >> > > > >> > > -- Ian > >> > > >> > I guess that Mori-San wants to transfer 3 bytes but receive 6, if > >> > it's > >> > that you need to set tx_cmd_sz with dummy bytes count too. The tx > >> > buffer will also need to contain the dummy bytes values. > >> > > >> > >> If you mean send 3 command bytes and read back 3 response bytes, then > >> set st_command.iov_len to 3 and st_data.iov_len to 3. > >> > >> -- Ian > > > > Ah right, forgot about command/data being splitted. > > > > -- > > Emmanuel Vadot > > _______________________________________________ > > 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" > > > > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Sun May 19 16:05:05 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 6C6E415B1A78 for ; Sun, 19 May 2019 16:05:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com [209.85.219.176]) (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 A83C16ABE3; Sun, 19 May 2019 16:05:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yb1-f176.google.com with SMTP id p134so4720994ybc.4; Sun, 19 May 2019 09:05:04 -0700 (PDT) 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=Tllm/QtDnLVxJWDEbx3mE8zKrkWakA+xbOzUIXeenHY=; b=r31R/Ai9UgxIyIFbIB2SGIrAltFC5rO3Zuysh2e9ysS3YRDQHuqgD0KQhbvvj+bvAZ ffQ7TLFP6rK7A5JakaRvcbGoHhvNNwWrxig35nt+VxKr7RJsi3l2iSfYlF4XStiYJj7H zzky6OTB0vQJQYMgjEBpGrsesBPcYjs/jCbMp/533FFJjuudsoJvlvL9f2g/T/XUfKBz TrRA0YRjuans7fIKQ9v+Is/MocR7nY/TWX9amXhjqqzGOpLfzx6m/Ut5F89+j5lU9OhP CwItLV4xZx24apfEJvN1PN+2gcZ1N2kbqlkQoVj+qsYE/oMZDeepxHn6xasMnd/AYUK1 IXjQ== X-Gm-Message-State: APjAAAWKEqL1JmgrsuZpJzoXtXBLtA/jU73ndVDej5Fcb9yA7Z88toiR wjlB+pF02rkJqTkWgfGBk8asdfw47Oxt8fgf+jskWA== X-Google-Smtp-Source: APXvYqzjf/qeY8nhGaDE26dqirQJnjKbuTH+nMmCjh90SIzjjJA6Rtd5pIkk7noZbF2vdBMiZDLSbfROy6pbgYe0G74= X-Received: by 2002:a25:358b:: with SMTP id c133mr779190yba.296.1558281898081; Sun, 19 May 2019 09:04:58 -0700 (PDT) MIME-Version: 1.0 References: <162762.820.qm@web103902.mail.ssk.yahoo.co.jp> In-Reply-To: <162762.820.qm@web103902.mail.ssk.yahoo.co.jp> From: Adrian Chadd Date: Sun, 19 May 2019 09:04:46 -0700 Message-ID: Subject: Re: how to work bhnd interrupt To: Mori Hiroki , Landon Fuller Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: A83C16ABE3 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 209.85.219.176 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-5.14 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; IP_SCORE(-2.19)[ip: (-5.14), ipnet: 209.85.128.0/17(-3.50), asn: 15169(-2.27), country: US(-0.06)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[freebsd.org]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.94)[-0.941,0]; RCVD_IN_DNSWL_NONE(0.00)[176.219.85.209.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com]; FREEMAIL_TO(0.00)[yahoo.co.jp]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com]; RCVD_COUNT_TWO(0.00)[2] 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: Sun, 19 May 2019 16:05:05 -0000 hi! +Landon Fuller since he did bhnd. -a On Thu, 6 Dec 2018 at 01:21, Mori Hiroki wrote: > > Hi > > I look dev/bhnd code. I believe INTRNG interrupt registration > is cpu_establish_hardintr(). But I can't find in dev/bhnd. > > How to handle interrupt in bhnd ? > > Hiroki Mori > > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Sun May 19 16:06:17 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 5503315B1AF2 for ; Sun, 19 May 2019 16:06:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 C71E06AC42 for ; Sun, 19 May 2019 16:06:15 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yb1-f171.google.com with SMTP id p134so4721753ybc.4 for ; Sun, 19 May 2019 09:06:15 -0700 (PDT) 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; bh=pokAR+uvrsKZuaAZwyH0zJ70RurSG72Y7FbPcZ6j7OI=; b=N9cnwiVErG5eMAE7pANHgIqR7FFzZt6I1QIZe1c4uzTX+fUzsNH6KJftOLPbbDRikn e8DLlPvreIHi0xAyRbJNKOAyZ+Pf790rT13ccHG+YDSqQV1+a3azrTQg8APodgU41JIz z3ReKjZAr45VRuD5hbO0/Ovqc0bVIY32eLKIlnYNqdsROPsh5hLJKNIG7bQ+uV3FkUSI aPAnzFpA9lO1H79srqi/qHWqMZBi8ciPbuMMbMSyTv97CasDpD2EKRDqSyYBFRB05fQg qKgXrY5OQIJg93+i96Vp0lbRIBg2wEFbk0itHuvEjf6hDACZqnIN3zqqizouI427Ugvv 2wGg== X-Gm-Message-State: APjAAAXy0Dug/iTtoOwbFcYc1qKPfbzPEM1KF7UdfxtKgScM0+KzzoaU h6RFO1HadA8LN9MjFAG9K+P0Xi8Ght6TulYM44reCg== X-Google-Smtp-Source: APXvYqwHzDwCmGTKugP8rOGi4hWbRiQ9n+KB+i7QRCS7Dhex2klmN8D4keyR0hEirqflR6oWoU+eYz+13IzhTYXBbOc= X-Received: by 2002:a25:2d42:: with SMTP id s2mr6380662ybe.476.1558281967663; Sun, 19 May 2019 09:06:07 -0700 (PDT) MIME-Version: 1.0 References: <897817.7763.qm@web103915.mail.ssk.yahoo.co.jp> <530507.76366.qm@web103901.mail.ssk.yahoo.co.jp> In-Reply-To: <530507.76366.qm@web103901.mail.ssk.yahoo.co.jp> From: Adrian Chadd Date: Sun, 19 May 2019 09:05:55 -0700 Message-ID: Subject: Re: mips boot message To: Mori Hiroki , "freebsd-mips@freebsd.org. Robert Pera" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: C71E06AC42 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 209.85.219.171 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-4.05 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; IP_SCORE(-1.17)[ipnet: 209.85.128.0/17(-3.50), asn: 15169(-2.27), country: US(-0.06)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[171.219.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.87)[-0.869,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FORGED_SENDER(0.30)[adrian@freebsd.org,adrianchadd@gmail.com]; FREEMAIL_TO(0.00)[yahoo.co.jp]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[adrian@freebsd.org,adrianchadd@gmail.com]; RCVD_COUNT_TWO(0.00)[2] 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: Sun, 19 May 2019 16:06:17 -0000 hi! Did you create a PR for this so we can get it merged in? -adrian On Tue, 16 Oct 2018 at 19:55, Mori Hiroki wrote: > > Hi > > I was modify mips/mips source. > > https://gist.github.com/yamori813/aad6abc78b68a9e19a8563944d32033b > > > diff --git a/sys/mips/mips/cpu.c b/sys/mips/mips/cpu.c > index 0f8583d..c490f09 100644 > --- a/sys/mips/mips/cpu.c > +++ b/sys/mips/mips/cpu.c > @@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); > #include > #endif > > -static void cpu_identify(void); > +void cpu_identify(void); > > struct mips_cpuinfo cpuinfo; > > @@ -341,11 +341,9 @@ mips_cpu_init(void) > > mips_icache_sync_all(); > mips_dcache_wbinv_all(); > -/* Print some info about CPU */ > -cpu_identify(); > } > > -static void > +void > cpu_identify(void) > { > uint32_t cfg0, cfg1, cfg2, cfg3; > diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c > index efd604a..cf8aaeb 100644 > --- a/sys/mips/mips/machdep.c > +++ b/sys/mips/mips/machdep.c > @@ -179,6 +179,8 @@ struct bootinfo bootinfo; > */ > vm_offset_t kernel_kseg0_end = (vm_offset_t)&end; > > +void cpu_identify(void); > + > static void > cpu_startup(void *dummy) > { > @@ -186,6 +188,10 @@ cpu_startup(void *dummy) > if (boothowto & RB_VERBOSE) > bootverbose++; > > +printf("CPU model: %s\n", cpu_model); > + > +cpu_identify(); > + > printf("real memory = %ju (%juK bytes)\n", ptoa((uintmax_t)realmem), > ptoa((uintmax_t)realmem) / 1024); > > > > > ----- Original Message ----- > >From: Warner Losh > >To: Mori Hiroki > >Cc: freebsd-mips@freebsd.org > >Date: 2018/10/13, Sat 00:22 > >Subject: Re: mips boot message > > > > > > > > > > > >On Fri, Oct 12, 2018, 1:50 AM Mori Hiroki wrote: > > > >Hi > >> > >>FreeBSD/mips cpu information is before dmesg. > >> > >>I think good that is cpu information is after this. > >> > >>---<>--- > >> > >> > >>How about this ? > >> > >>Thanks > >> > >>Hiroki Mori > >> > >> > >>Starting kernel ... > >> > >>CPU platform: Atheros AR7241 rev 1 > >>CPU Frequency=400 MHz > >>CPU DDR Frequency=400 MHz > >>CPU AHB Frequency=200 MHz > >>platform frequency: 400 MHz > >>CPU reference clock: 5 MHz > >>CPU MDIO clock: 5 MHz > >>arguments: > >> a0 = 00000007 > >> a1 = a3f6bfb0 > >> a2 = a3f6c460 > >> a3 = 00000004 > >>Cmd line:argv is invalid > >>Environment: > >>envp is invalid > >>Cache info: > >> picache_stride = 4096 > >> picache_loopcount = 16 > >> pdcache_stride = 4096 > >> pdcache_loopcount = 8 > >> max line size = 32 > >>cpu0: MIPS Technologies processor v116.147 > >> MMU: Standard TLB, 16 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) > >> L1 i-cache: 4 ways of 512 sets, 32 bytes per line > >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line > >> L2 cache: disabled > >> Config1=0x9ee3519e > >> Config2=0x80000000 > >> Config3=0x20 > >>Physical memory chunk(s): > >>0x373000 - 0x3ffffff, 63492096 bytes (15501 pages) > >>Maxmem is 0x4000000 > >>---<>--- > >>Copyright (c) 1992-2018 The FreeBSD Project. > >>Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > >>The Regents of the University of California. All rights reserved. > >>FreeBSD is a registered trademark of The FreeBSD Foundation. > >>FreeBSD 12.0-ALPHA8 #0 fd45ead(zrouter)-dirty: Fri Oct 12 16:32:39 JST 2018 > >> hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/ZRouter/tmp/storage/home/hiroki/freebsd/mips.mips/sys/Nec_WR8170N mips > >>gcc version 4.2.1 20070831 patched [FreeBSD] > >>Preloaded elf kernel "kernel" at 0x8036d370. > >>real memory = 67108864 (65536K bytes) > >>Physical memory chunk(s): > >> > > > > > >I like the idea, but other platforms put this after the memory. Can you make this more like x86 so we can automatically parse it more easily? > > > > > >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" From owner-freebsd-mips@freebsd.org Sun May 19 16:58:10 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 E47FE15B2B74 for ; Sun, 19 May 2019 16:58:09 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E2786C5C8 for ; Sun, 19 May 2019 16:58:08 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1558284117; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=gW1okSqWmUNqlPjJgCaR/ZEnPwN1uV1c8T9yJ95q8AOYmlTwNXsOsgNDZD08ffknhkJDGsheMxUYo DMSVaVotGvjrNLB4LWg0Gh/QNOEu0VnNomT2Skmt2Y86SvPRuj1AAYySxSfXmZKZ1uRU68M+sR+yjE CHcI8reDkiv8q8MwnNAosCR8cl8mZS+nMuA1xeWR8M4YFEEMJFIe022qCcsTepNlI+yH7GzheB/KcQ xGCytYlvvhaBI2SpBQ5CZse5ZMv3KXZF0bBInkZWaNqicMmpGHLO3kfHiJRdFbfeO3rooeF66FKfpz swEtIONOcOLb9Z9P5DKZIS8Q9MUUz9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=yLuDOLQ1ed6QMHiFQrbqAofks7QbtuIMW3Lv041k+30=; b=G51vzQE0Wz1lO/3UKaeIImy9tOyuwqyWyi4UejcAmDTmd72tg6sMaMck+/UDaCE4e7rDfWQeP0v+v uBGtsckjblR2fInZHeMvB9PJ0K9MSYCyobog/YrYD7m8/K26KeyaRPK/N8xr4OxjWmzB/hDKdEdGKe q3zBnH2/tOIz3nwW+KO0P5mUAwOSWbDublnguab16CGJndKu6jBdDQDkST+qd/o5pThGusgPYdBJxA UaVwM+IRvsIfwW6W2eCrpr9J27qvjw1QIrGKQuzaDVlo4IZpmHzvOAV72gK1ycbGfoid66P1/ksVAC R6ZtOF74ac12oWkUejEvtHxpatoG9aA== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=yLuDOLQ1ed6QMHiFQrbqAofks7QbtuIMW3Lv041k+30=; b=D1+kWH+j5UMQMc+aMP26rfc7uQKPx1Xnrnx0bvO8/qvDWA40plUTVpJrg/rdHELbHeGJ7EqiO9ceL ej6NXrIk2esFaXd070AJ59SvFNHouVWgWSxYwgYXtmSKdggsAmni4ogkwBokeVAqZfSyF/A3mgH7Sl Ovm6nzRFpAtkDKJEDverx1NWEQsLwZ2AeNlhzF8otwov76mgNmKQ5sbfUrX+IqdrqUXwjMKI5UFb6Z 1sOzvM/BsrWj841MZFHZgrEwkNSyqHldIZnz4QYJ2asVsNN8CWcZTWy6RKnsbfk+B+7poPgY5thKX4 amIGfqyMYOpTyuJwL1tv0K/u2vfwqcg== X-MHO-RoutePath: aGlwcGll X-MHO-User: 01b95847-7a55-11e9-98b8-27c316fec7c4 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 01b95847-7a55-11e9-98b8-27c316fec7c4; Sun, 19 May 2019 16:41:56 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x4JGfqou020974; Sun, 19 May 2019 10:41:52 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: spigen problem From: Ian Lepore To: Adrian Chadd , Mori Hiroki Cc: Emmanuel Vadot , "freebsd-mips@freebsd.org" Date: Sun, 19 May 2019 10:41:52 -0600 In-Reply-To: References: <1991993923.530828.1556558314174.JavaMail.yahoo.ref@jws704008.mail.kks.yahoo.co.jp> <1991993923.530828.1556558314174.JavaMail.yahoo@jws704008.mail.kks.yahoo.co.jp> <22b68b094cbe7ab1b07673e43f6473906bd2d648.camel@freebsd.org> <20190429195750.409e9d13aea2ff1654a20d3c@bidouilliste.com> <20190429202357.79ac2d8dba8d0bed1caa8203@bidouilliste.com> <130153476.2287928.1556589558764.JavaMail.yahoo@jws700105.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 2E2786C5C8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] 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: Sun, 19 May 2019 16:58:10 -0000 On Sun, 2019-05-19 at 09:03 -0700, Adrian Chadd wrote: > hi! > > this looks ok to me. I'll go commit this tonight. > > > -a > I actually think it's horrible and we should fix the real problem of supporting hardware that can only do unidirectional transfers. But, doing so is a pretty big job. I've got some ideas on it, but it's not something that's going to get finished in a week or two. -- Ian > On Mon, 29 Apr 2019 at 19:03, Mori Hiroki > wrote: > > > > Hi. > > > > I'm sorry. This is mtk_spi_v1.c issue. Current code hard depend > > flash access. > > > > I add workadound for this code and put review. > > > > https://reviews.freebsd.org/D20101 > > > > Thanks > > > > Hiroki Mori > > > > ----- Original Message ----- > > > From: Emmanuel Vadot > > > To: Ian Lepore > > > Cc: "freebsd-mips@freebsd.org" > > > Date: 2019/4/30, Tue 03:23 > > > Subject: Re: spigen problem > > > > > > On Mon, 29 Apr 2019 12:13:41 -0600 > > > Ian Lepore wrote: > > > > > > > On Mon, 2019-04-29 at 19:57 +0200, Emmanuel Vadot wrote: > > > > > On Mon, 29 Apr 2019 11:34:34 -0600 > > > > > Ian Lepore wrote: > > > > > > > > > > > On Tue, 2019-04-30 at 02:18 +0900, Mori Hiroki wrote: > > > > > > > Hi > > > > > > > > > > > > > > I add small spi lcd on RT3050. This lcd controller is > > > > > > S6D0151. > > > > > > > > > > > > > > S6D0151 transfer is tree byte command then tree byte > > > > data. > > > > > > > > > > > > > > I use spigen mruby rapper. This rapper use > > > > > > SPIGENIOC_TRANSFER. > > > > > > > > > > > > > > I try to send tree byte command. But spi transfer is six > > > > > > byte. > > > > > > > > > > > > > > This is reason. > > > > > > > > > > > > > > sys/dev/spibus/spigen.c > > > > > > > > > > > > > > error = copyin(st->st_command.iov_base, > > > > > > transfer.tx_cmd, > > > > > > > transfer.tx_cmd_sz = transfer.rx_cmd_sz = st- > > > > > > > > st_command.iov_len); > > > > > > > > > > > > > > > > > > > > > This lcd not work six byte transfer. > > > > > > > > > > > > > > How do I fix this ? > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > Hiroki Mori > > > > > > > > > > > > > > > > > > > I'm not sure what you mean by "This is the reason", > > > > > > that code sets > > > > > > up > > > > > > the transfer for exactly as many bytes as you requested in > > > > > > st_command.iov_len. If you set that to three bytes, only > > > > three > > > > > > bytes > > > > > > will be transfered. > > > > > > > > > > > > -- Ian > > > > > > > > > > I guess that Mori-San wants to transfer 3 bytes but receive > > > > 6, if > > > > > it's > > > > > that you need to set tx_cmd_sz with dummy bytes count too. > > > > The tx > > > > > buffer will also need to contain the dummy bytes values. > > > > > > > > > > > > > If you mean send 3 command bytes and read back 3 response > > > > bytes, then > > > > set st_command.iov_len to 3 and st_data.iov_len to 3. > > > > > > > > -- Ian > > > > > > Ah right, forgot about command/data being splitted. > > > > > > -- > > > Emmanuel Vadot > > > _______________________________________________ > > > 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" > > > > > > > _______________________________________________ > > 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" > > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Mon May 20 06:36:50 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 BB31315A37BE for ; Mon, 20 May 2019 06:36:49 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw1-xc29.google.com (mail-yw1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) (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 A92688E966; Mon, 20 May 2019 06:36:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yw1-xc29.google.com with SMTP id b74so5432250ywe.5; Sun, 19 May 2019 23:36:47 -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=KsKSWRxx+RpzksF3HEOAX1s089Gi1EimUMqhSb+pd2E=; b=JCFZj12aPkVrJCsSKRlkCHarRH6ovWADdF/mG3JFP8/0pEV4LIAOIjcyF4A/iyW2L1 Ollwst1+o25tua55/1ds/OnId4hDfOBSFh0mcol3RN2mJIGLbYGNW7hyYyUB47UBNoK3 ZucuOQrJMNVEMMHx9q7a9TqLm5o1Rf54G4imZgZRGoIW3tbDyZyGi7PhsX99CAswptfm mPHzrIhTMdKaLmAMBOC57fJub+wPpl4rX3h6wMGbjL0phF5Q+9nvFAXOO3BwLMSxPr1C oS8VbplXmarlOiXQBVSQ3okrrKxIrJeCVFSOzkfrJyioCOOQaBgGr1j63of0Arhe2qCd aleg== 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=KsKSWRxx+RpzksF3HEOAX1s089Gi1EimUMqhSb+pd2E=; b=r8nwJ9KVk6GCka354Q++mlglD0nCJz8yfVvK5BxvwAUbtBnLRh4q4LvS5jsRQj4h41 SxK+Sb6PXL0/ra2qsQ8edveFizO9wNBRExkoEa9OlqN5zpJaaZ37YHE3AVatzTrA2nvU gSeiWqP0u3wjq0ivCSlZjTehLoO1Sp/GE7q3Z/ppSmgH1s8eVRAnhNRyBAlfQAmMV6nY t47WLeCnryenQXVnk9avMlxB97hjtkw9HRnftkn62LvPG1FrNDWCg15jFwtj+Ukpj09z +Neaaaqq4DG0QK1YM4nLVH5B6d46V0J05Zky54ScwKFWfuWS+g/DlQ1YSgG9vYHorxsn gTwQ== X-Gm-Message-State: APjAAAWk4q7uiTGCmnHwQ7d7m5CRz5jkW82KXWSWTz4myrxMZ7syIN0i BO/834sQw8o177Vo6Ys7JKW+7mc8aISn8BkczOuxAg== X-Google-Smtp-Source: APXvYqwAsNiNSssw/HIHIOCZtpmy27gYS/47C9LuOCgOMN/+GboLQgDLyR+fmiGebtHhM9gPpDydby7rAitUgCQG9lU= X-Received: by 2002:a81:3c47:: with SMTP id j68mr11653428ywa.293.1558334206305; Sun, 19 May 2019 23:36:46 -0700 (PDT) MIME-Version: 1.0 References: <1991993923.530828.1556558314174.JavaMail.yahoo.ref@jws704008.mail.kks.yahoo.co.jp> <1991993923.530828.1556558314174.JavaMail.yahoo@jws704008.mail.kks.yahoo.co.jp> <22b68b094cbe7ab1b07673e43f6473906bd2d648.camel@freebsd.org> <20190429195750.409e9d13aea2ff1654a20d3c@bidouilliste.com> <20190429202357.79ac2d8dba8d0bed1caa8203@bidouilliste.com> <130153476.2287928.1556589558764.JavaMail.yahoo@jws700105.mail.ssk.yahoo.co.jp> In-Reply-To: From: Adrian Chadd Date: Sun, 19 May 2019 23:36:34 -0700 Message-ID: Subject: Re: spigen problem To: Ian Lepore Cc: Mori Hiroki , Emmanuel Vadot , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: A92688E966 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=JCFZj12a; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::c29 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-6.97 / 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:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; FROM_EQ_ENVFROM(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)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[9.2.c.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]; IP_SCORE(-3.00)[ip: (-9.40), ipnet: 2607:f8b0::/32(-3.26), asn: 15169(-2.27), country: US(-0.06)]; FREEMAIL_CC(0.00)[yahoo.co.jp]; RCVD_COUNT_TWO(0.00)[2] 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 06:36:50 -0000 On Sun, 19 May 2019 at 09:41, Ian Lepore wrote: > > On Sun, 2019-05-19 at 09:03 -0700, Adrian Chadd wrote: > > hi! > > > > this looks ok to me. I'll go commit this tonight. > > > > > > -a > > > > I actually think it's horrible and we should fix the real problem of > supporting hardware that can only do unidirectional transfers. But, > doing so is a pretty big job. I've got some ideas on it, but it's not > something that's going to get finished in a week or two. Do you mind if I commit this for now anyway? That at least unblocks Mori to do other interesting hacks. What are your ideas? -adrian From owner-freebsd-mips@freebsd.org Mon May 20 14:44:02 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 D038B15AF178 for ; Mon, 20 May 2019 14:44:02 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1E6198159D for ; Mon, 20 May 2019 14:44:01 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1558363434; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=n1+TRGyCy0EOZmGfYt1EjzQIE52pRcCb+lFzgsHZ1DWH/kWHgVrw50wJrSimrbakAYs3c+cdDw3j2 7rmNifFVNVzeYp5o6uj09MrX3rUNFbnhgN12UhVIs215wAB/ERazPNPr3rs6LwSGIfI6Wd2muMH8u2 RfixBNOOuc08CKMImvnP+jtX2CRDgIP2O5vRW+R0X+cmYmYI2cU0C/Kqas8RjYST56kaSw6PeAHKSk dsqfSrYqZ1L5WWF6HonWjj/LmSGd2byjoIobzajd2qor4zo7N7jZfP2kXnjDVh51EjZSf93mNtyKxk Q78QnN1nbxVmgEPSrilE0f+RFBptBkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=1KWf387FxvRG2jHFB28Q35KOAtlNSC1Sn6ZSCd8YQgo=; b=nlrioO+1wrDLQNDSa1ZyU8ITA+gRyo9egNtbSeyn84T7Rtacykggzwg5cMT9yVnXY2A4qkb35yBvQ mbq5m+aorqzATyFmHwMF6j1Mzbyvas+24e9j4x4vx+OKyGSVL4QqVC/XgI1gLzrgtv36fi3GRGKZnA rMXxXMucW8Pa9efXN+MpNhTwG/p2AvHip6ces7eeTpz//o3iS5Jc6SK9IulX14r0+ZFt1xxEdFJHBp Ags4MVCrjZhdqfk4OPmxfs56HGs+B88bCOUmgjgBduU5bhY3wH24wxCkIdXdts89uzqpNCHViyLuRr t1yy6FyqLWlyDMWK89yX7aN91ZWrTjg== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=1KWf387FxvRG2jHFB28Q35KOAtlNSC1Sn6ZSCd8YQgo=; b=AOuIfIPBGqVReaWcA2T1lnFbiY43oHyb/gL4upBYfldjdSuYZrEiHQZc7A7odKjFsEM7FfumGo78v /CRZP7PDVSe1RvODECss2+MFIiP32lJncGNHF6P3p7I/LR368Wgu3Gf1mEiwSDCJyU7ePRrvuL2EAt DPaPd26R3bEvG/41NSQ6eJ9b6wP3W0U8EnKuAXmQU131DLCzPLhra/DrbvI8lxnma4ZbQ2iqIdtCka Und8nPi6lYpZiGQU1lwzjycw/e0tOS0dqV+LH4QegYF79z72R/3QUXcnf/98csCtO/IOetczrPU1aQ 8+3mLjoiaBJ90AuABrpHy617uKYE+Qg== X-MHO-RoutePath: aGlwcGll X-MHO-User: ada453fd-7b0d-11e9-990f-673a89bc4518 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id ada453fd-7b0d-11e9-990f-673a89bc4518; Mon, 20 May 2019 14:43:52 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x4KEhl64024632; Mon, 20 May 2019 08:43:47 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <14cc3dfbfc7d7eb317129da8fe91485cf77b05af.camel@freebsd.org> Subject: Re: spigen problem From: Ian Lepore To: Adrian Chadd Cc: Mori Hiroki , Emmanuel Vadot , "freebsd-mips@freebsd.org" Date: Mon, 20 May 2019 08:43:47 -0600 In-Reply-To: References: <1991993923.530828.1556558314174.JavaMail.yahoo.ref@jws704008.mail.kks.yahoo.co.jp> <1991993923.530828.1556558314174.JavaMail.yahoo@jws704008.mail.kks.yahoo.co.jp> <22b68b094cbe7ab1b07673e43f6473906bd2d648.camel@freebsd.org> <20190429195750.409e9d13aea2ff1654a20d3c@bidouilliste.com> <20190429202357.79ac2d8dba8d0bed1caa8203@bidouilliste.com> <130153476.2287928.1556589558764.JavaMail.yahoo@jws700105.mail.ssk.yahoo.co.jp> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 1E6198159D X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.991,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US] 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 14:44:03 -0000 On Sun, 2019-05-19 at 23:36 -0700, Adrian Chadd wrote: > On Sun, 19 May 2019 at 09:41, Ian Lepore wrote: > > > > On Sun, 2019-05-19 at 09:03 -0700, Adrian Chadd wrote: > > > hi! > > > > > > this looks ok to me. I'll go commit this tonight. > > > > > > > > > -a > > > > > > > I actually think it's horrible and we should fix the real problem > > of > > supporting hardware that can only do unidirectional > > transfers. But, > > doing so is a pretty big job. I've got some ideas on it, but it's > > not > > something that's going to get finished in a week or two. > > Do you mind if I commit this for now anyway? That at least unblocks > Mori to do other interesting hacks. > > What are your ideas? > > Sorry, I should have been more specific that my whining didn't amount to a blocking request, because I just don't have the spare time right now to even try to address the underlying problem. There probably should have been a rule for spi from day one that the controller driver has to supply a dummy buffer if the caller doesn't supply a buffer for one of the directions and the controller must do bidirectional transfers (like if dma is involved). Instead we went the other way and said callers always must supply bidirectional buffers even though the case of using both input and output data in one transfer is exceedingly rare. I think a minimal-changes idea that may work is to say that the callers must supply a buffer for both directions like they do now, but they are allowed to set either the tx or the rx length to zero to provide a clue to the controller driver that a transfer in that direction isn't needed if the hardware can't do it (or if not doing it speeds things up or makes things easier). We still have to examine and change every existing controller driver, but the changes would be minimal. -- Ian From owner-freebsd-mips@freebsd.org Mon May 20 16:32:20 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 4E60315B1F1A for ; Mon, 20 May 2019 16:32:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) (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 5EACA862CB; Mon, 20 May 2019 16:32:19 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yb1-xb2c.google.com with SMTP id k202so5930905ybk.2; Mon, 20 May 2019 09:32:19 -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=2nfonNmmF2FPAcusFCBdhGNk8g7TpHi1DLmeNmyqGnE=; b=ph+Dh3SrfJsyL++p4xKatTZkUMlJ8VBiiSvEw/mQXS6AuJDPA6KFYZUXWyDoi5rTFn KKZg45GdP744RaDjwM1texKQ3NHaAj9rECNh59UchYtk3eFSblrZhAoo+cFG56wClu6C C575aqNrJmLM1HfskhepDSdc9Lbt1y0zSXgj0XPTSa4XQYRkQUu8F43/9abyvsVzdPxV hvKnPnusDPEHQ4UD2+9I28ImJXM7pgrgP0SXMtGXyQ+QbSLdXZISVvKp3YSUI3qc4LMU SwQBQy+/NSPrEx/D1Iw4X7Y8MNnWAJxzd5TRtyfK1c352XDWZSZc6eBfkCZ/5yCmWUWH X4XQ== 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=2nfonNmmF2FPAcusFCBdhGNk8g7TpHi1DLmeNmyqGnE=; b=qRgpJ0D2lS/6Iv6P7z9+23TW7WKRxkzwOLx1q29EuoEuWvsKr67WWc60f6oA/AzRA8 8yx4KUPh8etkjirAK0djbNXuiKJ0IYbdwfWBjd7npT8+mEzSUjphqkuKmg1+fyboQA1/ +c9+MtmsOMqtdjLddVU7FQ8OaZd491Rf/K3RaV76x/JfwqIcV4ORUUY8Uh4uRSYWHJkZ GcC6uFVxBtmbpCp5rZwVCc/CDakyBkwfHd6jYzgDpwdx3hC/xz6IHSnBRuX7fgr8tNrL s9e3+QNeG7DjR8SCVlxeod1usoIOfs0y8LM+HNDQ3Mur9wooLKP8WrOEk47YoVk5xJwR ZHSg== X-Gm-Message-State: APjAAAX+ib2VuD0tNlQO/HUdUdeeNe6EH+jVnHq878WdP/TM5lgcmdSb KLWmNP2rYvpSBs6XDd+FUZs2jQdVEhVvlCz7CPn9jg== X-Google-Smtp-Source: APXvYqzfU61jJn4YZ8t8qD2PKRNQz+2E1uciMuHnTsDEEiqcl0a7K1n0jKWt27hdMDUqBm4yjHnF4C6lppGRkJXQ6TU= X-Received: by 2002:a25:358b:: with SMTP id c133mr3461623yba.296.1558369938204; Mon, 20 May 2019 09:32:18 -0700 (PDT) MIME-Version: 1.0 References: <1991993923.530828.1556558314174.JavaMail.yahoo.ref@jws704008.mail.kks.yahoo.co.jp> <1991993923.530828.1556558314174.JavaMail.yahoo@jws704008.mail.kks.yahoo.co.jp> <22b68b094cbe7ab1b07673e43f6473906bd2d648.camel@freebsd.org> <20190429195750.409e9d13aea2ff1654a20d3c@bidouilliste.com> <20190429202357.79ac2d8dba8d0bed1caa8203@bidouilliste.com> <130153476.2287928.1556589558764.JavaMail.yahoo@jws700105.mail.ssk.yahoo.co.jp> <14cc3dfbfc7d7eb317129da8fe91485cf77b05af.camel@freebsd.org> In-Reply-To: <14cc3dfbfc7d7eb317129da8fe91485cf77b05af.camel@freebsd.org> From: Adrian Chadd Date: Mon, 20 May 2019 09:32:06 -0700 Message-ID: Subject: Re: spigen problem To: Ian Lepore Cc: Mori Hiroki , Emmanuel Vadot , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 5EACA862CB X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ph+Dh3Sr; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::b2c as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-6.86 / 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:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.89)[-0.890,0]; 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)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-2.96)[ip: (-9.24), ipnet: 2607:f8b0::/32(-3.25), asn: 15169(-2.26), country: US(-0.06)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[c.2.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]; FREEMAIL_CC(0.00)[yahoo.co.jp]; RCVD_COUNT_TWO(0.00)[2] 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 16:32:20 -0000 On Mon, 20 May 2019 at 07:43, Ian Lepore wrote: > > On Sun, 2019-05-19 at 23:36 -0700, Adrian Chadd wrote: > > On Sun, 19 May 2019 at 09:41, Ian Lepore wrote: > > > > > > On Sun, 2019-05-19 at 09:03 -0700, Adrian Chadd wrote: > > > > hi! > > > > > > > > this looks ok to me. I'll go commit this tonight. > > > > > > > > > > > > -a > > > > > > > > > > I actually think it's horrible and we should fix the real problem > > > of > > > supporting hardware that can only do unidirectional > > > transfers. But, > > > doing so is a pretty big job. I've got some ideas on it, but it's > > > not > > > something that's going to get finished in a week or two. > > > > Do you mind if I commit this for now anyway? That at least unblocks > > Mori to do other interesting hacks. > > > > What are your ideas? > > > > > > Sorry, I should have been more specific that my whining didn't amount > to a blocking request, because I just don't have the spare time right > now to even try to address the underlying problem. > > There probably should have been a rule for spi from day one that the > controller driver has to supply a dummy buffer if the caller doesn't > supply a buffer for one of the directions and the controller must do > bidirectional transfers (like if dma is involved). Instead we went the > other way and said callers always must supply bidirectional buffers > even though the case of using both input and output data in one > transfer is exceedingly rare. > > I think a minimal-changes idea that may work is to say that the callers > must supply a buffer for both directions like they do now, but they are > allowed to set either the tx or the rx length to zero to provide a clue > to the controller driver that a transfer in that direction isn't needed > if the hardware can't do it (or if not doing it speeds things up or > makes things easier). We still have to examine and change every > existing controller driver, but the changes would be minimal. Hi! Ok. That makes sense. I can make the AR71xx SPI controller do this with little effort. I don't think we have a lot of SPI drivers in the tree though, so yeah, hopefully it shouldn't be too bad. I think establishing that moving forward as an SPI driver requirement would be great. That way we don't accumulate extra debt. -adrian 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 From owner-freebsd-mips@freebsd.org Tue May 21 00:33:03 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 14E4015975DB for ; Tue, 21 May 2019 00:33:03 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8C1C96B227 for ; Tue, 21 May 2019 00:33:01 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id x4L09xUE040676 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 21 May 2019 02:10:00 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cicely.de; s=default; t=1558397401; bh=VG23za1ugHe9vf5Z6VOygK/I5fXCGPtw7ENrLNwv1Rc=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To; b=lNHBO8NbzR4b3UXvVkKj9hA4zugEsnt7MG+FfbtS1dNeC+oVqpW44Nl2V9C3wNnIU NueBvdlex7yNM51OmTgvy8X/oU2ba/rY4wtsJkxQ7jO1tEspSiUqbu6NovluTYhISE JIiyC8Ek4tj5Cl3C+Bc0LO2v0VzF5+OJwOkBUIHc= Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id x4L09mfJ024196 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 May 2019 02:09:48 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id x4L09lrA043001; Tue, 21 May 2019 02:09:47 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id x4L09kOZ043000; Tue, 21 May 2019 02:09:46 +0200 (CEST) (envelope-from ticso) Date: Tue, 21 May 2019 02:09:46 +0200 From: Bernd Walter To: Adrian Chadd Cc: ticso@cicely.de, Eugene Grosbein , "freebsd-mips@freebsd.org" Subject: Re: MIPS future... Message-ID: <20190521000946.GP26231@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <8da9f5d2-e33e-0f55-7f30-3344ccf5f0a7@grosbein.net> <20190424101102.GK18788@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 12.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-Rspamd-Queue-Id: 8C1C96B227 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cicely.de header.s=default header.b=lNHBO8Nb X-Spamd-Result: default: False [-2.24 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[ticso@cicely.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[cicely.de:+]; MX_GOOD(-0.01)[mx1.bwct.de]; NEURAL_HAM_SHORT(-0.47)[-0.470,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:21461, ipnet:195.149.99.0/24, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.965,0]; R_DKIM_ALLOW(-0.20)[cicely.de:s=default]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cicely.de]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.99.149.195.list.dnswl.org : 127.0.20.0]; R_SPF_NA(0.00)[]; IP_SCORE(-0.00)[country: DE(-0.01)] 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: Tue, 21 May 2019 00:33:03 -0000 On Sun, May 19, 2019 at 09:01:52AM -0700, Adrian Chadd wrote: > On Wed, 24 Apr 2019 at 03:11, Bernd Walter wrote: > > > > On Thu, Dec 13, 2018 at 08:04:17AM +0700, Eugene Grosbein wrote: > > > 13.12.2018 1:15, Warner Losh wrote: > > > > > I'm using one of them as an AP in one location with the mini-build. > > My other locatin was using an OpenWRT AP, but just yesterday I finally setup > > FreeBSD-12 stable to replace the OpenWRT. > > It was very tricky to find out what modules had to be loaded to get WiFi > > working. > > I'm actively working on trying to tidy this up on -HEAD (on the MIPS > boards) because, well, I'm back to trying to make it all work well. > There's support for the last two chips (dragonfly, honeybee) that I > need to finish and bring over too. > > > And on how to start them without loader perloading modules. > > I finally came up with the following rc.local: > > /sbin/kldload wlan_xauth > > /sbin/kldload ath_hal_ar9300.ko > > /sbin/kldload if_ath_ahb.ko > > /sbin/kldload if_ath_pci.ko > > sleep 1 > > /sbin/ifconfig bridge0 unplumb > > sleep 1 > > /sbin/ifconfig bridge0 plumb > > Yeah. Part of the unfun part of the FreeBSD wifi experience is that > devices take non-zero amounts of time to do stuff in deferred threads, > so there's fun race conditions when trying to script bringing things > up. It used to be easier - everything would block in the ioctl path > for loading, creating/destroying interfaces, etc - but the newer > firmware NICs have stuff deferred into async calls and they don't all > block the ioctl path. So, sometimes you need sleeps until the > interface has been fully loaded/plumbed. I rewmoved the sleep and ifconfig bridge0 in favour of: cloned_interfaces="bridge0" #ifconfig_bridge0="addm wlan0 addm wlan1 addm arge0 up" ifconfig_bridge0="up" autobridge_interfaces="bridge0" autobridge_bridge0="wlan* arge0" The problem was that, because I load the drivers via rc.local, the wlan interfaces came up after bridge0 > It's one of the many annoying things in my ath10k port that I'm trying > to chip away at. > > > > I stopped trying it because its USB support was pretty unstable leading to random panics or just hangs and > > > 8MB are not enough for my purposes without extra USB storage for packages and > > > I could not even fit FreeBSD 12 base system to its internal flash due to siginficantly increased code bloat > > > and ENOTIME to deal with troubles. > > I'm working on this right now too. Annoying the biggest thing I need > help with is that we can't build without SSL because of how > libunbound/libldns is built. It has a checked in config.h from > configure which hard-enables SSL. Hopefully I can build > hostapd/wpa_supplciant with the built-in crypto routines to get some > savings. > > If I can get rid of needing libcrypto and libssl in the wifi AP builds > then we save a few megabytes of space; enough to fit in 8MB again. i'm > working on a cpio-like tool to replace cpio/libarchive because > libarchive is also quite large (almost a megabyte + libcrypto > depedency) which we don't need right now. > > > > > Same, the instable USB support was what killed most of my ambitions with that. > > This is a showstopper for other boards as well. > > Don't know if this specific to atheros, but I've tested several atheros > > based boards and USB just wasn't working well enough for a rootfs. > > Maybe that has changed since my last test... > > Is this USB on the atheros chips? what's wrong with it? It /used/ to > be enough to run a rootfs from but I haven't done that in a few years > and there's been some changes to the USB stack since then. I havn't tested it with 12-STABLE, when I tried an USB rootfs few years ago, the USB drive wasn't stable and started producing IO errors after a few hours of uptime. This was reproduceabl witgh various kinds of USB sticks and HDD on the TP-Link WDR-4300 with its ATH9344 as well as on various AR9331 based boards. > > Since it is for my own need with existing infrastructure, the TL-WDR4300 > > is using nfsroot. > > However, there are still some issues. > > It is bridging to the WiFi, but I like to have isolation. > > Since it is nfsroot, I can't use normal VLANs to my gateway. > > I should be able to use VXLAN to my normal gateway however. > > Routing is not an option as I can't install packages/ports for dhcp: > > root@apx1:~ # pkg > > ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg" > > root@apx1:~ # which cc > > cc: Command not found. > > Is this from my freebsd-wifi-build scripts? Yeah, some stuff needs > updating again. I am working on that too. ;-) That is a general problem with ancient packages. The pkg binary package is outdated by at least half a year and build against an on older OpenSSL version. [56]apx1> ls -al /usr/lib/*ssl* -r--r--r-- 1 root wheel 3708526 Apr 23 19:22 /usr/lib/libssl.a lrwxr-xr-x 1 root wheel 13 Apr 23 19:22 /usr/lib/libssl.so -> libssl.so.111 -r--r--r-- 1 root wheel 590876 Apr 23 19:22 /usr/lib/libssl.so.111 -r--r--r-- 1 root wheel 3771294 Apr 23 19:22 /usr/lib/libssl_p.a > > The rootfs is via ../root/mips_ap/ build by the freebsd-wifi-build. > > Beside the missing cc it looks pretty much complete. > > Maybe a normal crossbuild would get me a compiler? > > It won't get you one in my normal image because it's too big. > > > > > That said, if I can't have a working compiler, I would try vxlan, but still > > a working compiler would be nice to have. > > The FreeBSD targets for the AP have a lot of stuff removed in the > build. I used to use an option in freebsd-wifi-build to build non-AP > images (ie, full cross-built images) which unfortunately won't include > a compiler until that is also added in as a cross-build target. Ok, so that should work if I do a standard crossbuild. > Poke me repeatedly on #freebsd-wifi ; I'll keep plodding through this > list now that I'm poking at it again. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-mips@freebsd.org Wed May 22 07:55:00 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 9437F15A4489 for ; Wed, 22 May 2019 07:55:00 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh602-vm9.bullet.mail.ssk.yahoo.co.jp (nh602-vm9.bullet.mail.ssk.yahoo.co.jp [182.22.90.34]) by mx1.freebsd.org (Postfix) with SMTP id B785E722B8 for ; Wed, 22 May 2019 07:54:51 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.105] by nh602.bullet.mail.ssk.yahoo.co.jp with NNFMP; 22 May 2019 07:51:42 -0000 Received: from [182.22.91.131] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 22 May 2019 07:51:42 -0000 Received: from [127.0.0.1] by omp604.mail.ssk.yahoo.co.jp with NNFMP; 22 May 2019 07:51:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 19821.90398.bm@omp604.mail.ssk.yahoo.co.jp X-YMail-OSG: Fh7iHMYVM1l9TxmyhZKYye2QdCCSbHzwOio3n0ZcNa_lrB0Uq7YxDF76gkGRm5U G1OK24d4NNCaiZv.vJjk1MRskYoakY7hp.wx1U7x80rq5xfKiALo5k7IhflVBcw04su1hVBlLIcR Rhrq7__cKfP2fltlwJovJ6Fvvep3CazcTEsARwB1JhoQJ2x9Xe4zRCfDZoJC_rF3402746MvF5XX PfTymLAUt7LheezlepkPgKTZkk0gjag_OCbzA4jOCDOUMCFr21E9FHzHusjJREnS4tpjFJ44OOTF m6sLMkouwrDovr6ew0KLkG47cQfbW4wVCtAC8uUR7u2SPzNGXGIfVJX6hk7aEe4b6thIwOTXX3Lc T.SBYV4h8vtc_fk9Xr9U1GDzar7I.79LdI7ZhrRbbf.srEx2Y1PAbv7RD8CbhW4mMuiyCQ6fJjZ_ kh3GckaTgj7f4OiZ.EDQsSfPjXx2q5q9Qvtd.tdX9pad9qeic5eHt0tORcKOnDChVNjP3EhnYIZG c.XAR9I4Ug_56m.jDP40d.3brChw9KXGrFeODC2._CIuONcGhT63heJg2uUS52QZGUC_lxvvhLnZ 2lpWPA4zxobNAw1VF8IA2idPFqloK_hbMu6GYLMEzzQ-- Received: from jws700101.mail.ssk.yahoo.co.jp by sendmailws602.mail.ssk.yahoo.co.jp; Wed, 22 May 2019 16:51:41 +0000; 1558511501.506 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1558511501; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=TYc0rgb4YmgWJXm7LjLSh2QfGbBkVezRqX7ase/1ciI=; b=Kk6SeDAymPZIB+8mK5Tf5rAs23lhRqSx4acvhFRuRO9WaL3qw9O8Ww+t/ZPXDrLf /3c9xSd+1jsf85B3xhyVeurCVguAN6Z9prUXXP4v+AbikE1mqZruFln86v8jx+yglH5 4kzEI1YNJtT9316xPlqWe8ID7LqHPEJDRj9KerQw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=e/p9AIc6QEH4P0ZlFEpDOCNNNIGDdEM0Agq6GL4JhS6yQYFizswv3UhCU/mqDaBd ZpCV49jwT26Wo003QbuA8R4rTfwUd1P591PRwrBWwYkdW9X+tpYdwQ+T+0Pu2cc+2i/ QoD0GlpZYzzSBX7qAkQaZ19vkzSVXHSfwAhdWrQQ=; Date: Wed, 22 May 2019 16:51:40 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Message-ID: <727982878.3874768.1558511500725.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> In-Reply-To: <1106936333.3441081.1558079082037.JavaMail.yahoo@jws700108.mail.ssk.yahoo.co.jp> References: <1106936333.3441081.1558079082037.JavaMail.yahoo.ref@jws700108.mail.ssk.yahoo.co.jp> <1106936333.3441081.1558079082037.JavaMail.yahoo@jws700108.mail.ssk.yahoo.co.jp> Subject: Re: Hang up boot on armv5t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: B785E722B8 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=Kk6SeDAy; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 182.22.90.34 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [1.75 / 15.00]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:182.22.90.0/23]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:23816, ipnet:182.22.0.0/17, country:JP]; IP_SCORE(2.20)[ip: (7.57), ipnet: 182.22.0.0/17(1.93), asn: 23816(1.54), country: JP(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.56)[-0.556,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_MEDIUM(0.31)[0.315,0]; NEURAL_SPAM_SHORT(0.70)[0.701,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[34.90.22.182.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[] 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: Wed, 22 May 2019 07:55:00 -0000 Hi RT3050(mips/mediatek) is hangup too on CURRENT. ---<>--- KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2019 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 13.0-CURRENT #48 4a3e7e7ca38(zrouter)-dirty: Wed May 22 16:36:18 JS= T 2019 =C2=A0 =C2=A0 hiroki@zrouter:/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/= tmp/usr/home/hiroki/freebsd/mips.mipsel/sys/Fon_FON2305E_FDT mips gcc version 4.2.1 20070831 patched [FreeBSD] Preloaded elf kernel "kernel" at 0x80369bc0. real memory=C2=A0 =3D 33554432 (32768K bytes) Physical memory chunk(s): 0x00402000 - 0x01f7efff, 28823552 bytes (7037 pages) avail memory =3D 28250112 (26MB) arc4random: WARNING: initial seeding bypassed the cryptographic random devi= ce because it was not yet seeded and the knob 'bypass_before_seeding' was e= nabled. ULE: setup cpu 0 random: entropy device external interface ----- Original Message ----- > From: Mori Hiroki > To: "freebsd-arm@freebsd.org" > Cc:=20 > Date: 2019/5/17, Fri 16:44 > Subject: Hang up boot on armv5t >=20 > Hi >=20 > I build 13-Current for arm/ralink today. > I have problem that is hang up on boot at random. >=20 > If you have advice, please let me know. >=20 > Regards >=20 > Hiroki Mori >=20 > ---<>--- > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2019 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 13.0-CURRENT #14 1a121cb132a(zrouter)-dirty: Fri May 17 16:32:40 = JST=20 > 2019 > =C2=A0 =C2=A0=20 > hiroki@zrouter:/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home= /hiroki/freebsd/arm.arm/sys/Buffalo_WZR2-G300N=20 > arm > FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on LLV= M=20 > 8.0.0) > Preloaded elf kernel "kernel" at 0xc02f42f8. > CPU: ARM926EJ-S rev 5 (ARM9EJ-S core) > =C2=A0 Little-endian DC enabled IC enabled WB enabled LABT branch predict= ion disabled > =C2=A0 16KB/32B 4-way instruction cache > =C2=A0 16KB/32B 4-way write-back-locking-C data cache > real memory=C2=A0 =3D 16777216 (16 MB) > avail memory =3D 11485184 (10 MB) > Physical memory chunk(s): > =C2=A0 0x40000000 - 0x40ffffff,=C2=A0 =C2=A0 16 MB ( =C2=A0 4096 pages) > Excluded memory regions: > =C2=A0 0x40000000 - 0x4043bfff, =C2=A0 =C2=A0 4 MB ( =C2=A0 1084 pages) N= oAlloc=C2=A0 > Static device mappings: > =C2=A0 0x19c00000 - 0x1e6fffff mapped at VA 0xfb400000 > =C2=A0 0x1e800000 - 0x1effffff mapped at VA 0xfac00000 > =C2=A0 0x1f000000 - 0x1f3fffff mapped at VA 0xfa800000 > arc4random: WARNING: initial seeding bypassed the cryptographic random de= vice=20 > because it was not yet seeded and the knob 'bypass_before_seeding' was=20 > enabled. > random: entropy device external interface >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >=20 From owner-freebsd-mips@freebsd.org Wed May 22 08:25:00 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 B885815A5523 for ; Wed, 22 May 2019 08:24:59 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh603-vm7.bullet.mail.ssk.yahoo.co.jp (nh603-vm7.bullet.mail.ssk.yahoo.co.jp [182.22.90.48]) by mx1.freebsd.org (Postfix) with SMTP id CD3DD734EE for ; Wed, 22 May 2019 08:24:57 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.106] by nh603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 22 May 2019 08:21:33 -0000 Received: from [182.22.91.130] by t604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 22 May 2019 08:21:33 -0000 Received: from [127.0.0.1] by omp603.mail.ssk.yahoo.co.jp with NNFMP; 22 May 2019 08:21:33 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 1941.97368.bm@omp603.mail.ssk.yahoo.co.jp X-YMail-OSG: eg1XKfYVM1mL4bKofXE4GkJ_.iAU_B5HGqGP2XrT7kEhv3Lk0m1hQv.32bMLzt7 Gs8r8P9sPm5bhPCIni.5LdWMdXbtbyMtCCb13rkze2dZdMxzULZ5pbpZkHtmC7Qnq7qZzoeMseAq yMngjpMDbVo6vMChUQoWprRrgvNc6l3Y5dtOSV0IqLhutZaHGNyFLzaTOm7BlBhS9vnKdYS_unzA WfyTsItOjZmkuqIM7JQzpblNZWIV8DkG8nnrIrPD6hfjkWAOLBnGwodaxmM0KiJ52x2h_rb9R1Jb snnvvJi7_t11M8zDPoE3a3MOrZEBQpTV6lza88iwpbaZRSIZS_WAYn_MCPhXgckiv12gofOU3F1n RZke52HRmStkguQfRRISqs.nxEGcpyEpcC_P521WcfGjLoFvqAXME83MVYTDMBLq7tiqQ3Q8oRaa kG03s5.6X9rK9YG48tbYuKFcQLOkJNVeseCznruZuVjMpu2ZeL3m5B4SbFJCIUzEgmGZamtN82c9 .LH8Xfqp8pdiGIv1qVo_zXaFHAeaf9ssq_b1ASo.5QRtxK.2s2aSYUv2i5ySlNtJV8WSA11k2Tc3 cSBkY.hO2dnZa_nF748kp1iXve63z4ohAze0cK2XqTQ-- Received: from jws700102.mail.ssk.yahoo.co.jp by sendmailws613.mail.ssk.yahoo.co.jp; Wed, 22 May 2019 17:21:32 +0000; 1558513292.476 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1558513292; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=A/QVYnIRw/KhTcNpX5cTzHTra0MXFwpQjf2d3h8JCEg=; b=ABrWH1rD4jQaJmK9zwq7P+7MP1Suo3fKtVX+ahBAaCY53HOCSqYzvWZc0DIk+DLD Uq4YCBETxb7Upc2RA22fAlOE2k6dTGr7fDS9bvEtOMDb9+Szzvy08CKIs4wA3ADd4s6 brUgbuV7Nrvv5GCOMLIpv8RSeTyKya11QJl6lrw8= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=sufxwxblifd27nRYY4PqxMt5Oqgg95gNiAnoUVvlUKZSu1EPCVsTSnBP3yS8edvH wD6AknRE/XbAIJjr4lmfIN97ZsBZwG8vAu+bsvMcBYtTpXTSCPns35QUkfSC6rbQrx6 JJWmTXvpFYX5oDJtk4tJY9Ka30+oTy38k015CV7g=; Date: Wed, 22 May 2019 17:21:31 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: "freebsd-arm@freebsd.org" , "freebsd-mips@freebsd.org" Message-ID: <370204247.3859255.1558513291699.JavaMail.yahoo@jws700102.mail.ssk.yahoo.co.jp> In-Reply-To: <727982878.3874768.1558511500725.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> References: <1106936333.3441081.1558079082037.JavaMail.yahoo.ref@jws700108.mail.ssk.yahoo.co.jp> <1106936333.3441081.1558079082037.JavaMail.yahoo@jws700108.mail.ssk.yahoo.co.jp> <727982878.3874768.1558511500725.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> Subject: Re: Hang up boot on armv5t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: CD3DD734EE X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=ABrWH1rD; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 182.22.90.48 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-1.43 / 15.00]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:182.22.90.0/23]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[cached: mx3.mail.yahoo.co.jp]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:23816, ipnet:182.22.0.0/17, country:JP]; IP_SCORE(0.68)[ip: (0.03), ipnet: 182.22.0.0/17(1.91), asn: 23816(1.53), country: JP(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.90)[-0.895,0]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.991,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_SHORT(0.68)[0.677,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[48.90.22.182.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[] 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: Wed, 22 May 2019 08:25:00 -0000 Hi A10 have no problem. http://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D4967 ----- Original Message ----- > From: Mori Hiroki > To: "freebsd-arm@freebsd.org" ; "freebsd-mips@fr= eebsd.org" > Cc:=20 > Date: 2019/5/22, Wed 16:51 > Subject: Re: Hang up boot on armv5t >=20 > Hi >=20 > RT3050(mips/mediatek) is hangup too on CURRENT. >=20 > ---<>--- > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2019 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 13.0-CURRENT #48 4a3e7e7ca38(zrouter)-dirty: Wed May 22 16:36:18 = JST=20 > 2019 > =C2=A0 =C2=A0=20 > hiroki@zrouter:/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home= /hiroki/freebsd/mips.mipsel/sys/Fon_FON2305E_FDT=20 > mips > gcc version 4.2.1 20070831 patched [FreeBSD] > Preloaded elf kernel "kernel" at 0x80369bc0. > real memory=C2=A0 =3D 33554432 (32768K bytes) > Physical memory chunk(s): > 0x00402000 - 0x01f7efff, 28823552 bytes (7037 pages) > avail memory =3D 28250112 (26MB) > arc4random: WARNING: initial seeding bypassed the cryptographic random de= vice=20 > because it was not yet seeded and the knob 'bypass_before_seeding' was=20 > enabled. > ULE: setup cpu 0 > random: entropy device external interface >=20 > ----- Original Message ----- >> From: Mori Hiroki >> To: "freebsd-arm@freebsd.org" >> Cc:=20 >> Date: 2019/5/17, Fri 16:44 >> Subject: Hang up boot on armv5t >>=20 >> Hi >>=20 >> I build 13-Current for arm/ralink today. >> I have problem that is hang up on boot at random. >>=20 >> If you have advice, please let me know. >>=20 >> Regards >>=20 >> Hiroki Mori >>=20 >> ---<>--- >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2019 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 199= 4 >> The Regents of the University of California. All rights reserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 13.0-CURRENT #14 1a121cb132a(zrouter)-dirty: Fri May 17 16:32:4= 0=20 > JST=20 >> 2019 >> =C2=A0 =C2=A0=20 >>=20 > hiroki@zrouter:/usr/home/hiroki/zobj/usr/home/hiroki/ZRouter/tmp/usr/home= /hiroki/freebsd/arm.arm/sys/Buffalo_WZR2-G300N=20 >=20 >> arm >> FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on L= LVM=20 >> 8.0.0) >> Preloaded elf kernel "kernel" at 0xc02f42f8. >> CPU: ARM926EJ-S rev 5 (ARM9EJ-S core) >> =C2=A0 Little-endian DC enabled IC enabled WB enabled LABT branch predi= ction=20 > disabled >> =C2=A0 16KB/32B 4-way instruction cache >> =C2=A0 16KB/32B 4-way write-back-locking-C data cache >> real memory=C2=A0 =3D 16777216 (16 MB) >> avail memory =3D 11485184 (10 MB) >> Physical memory chunk(s): >> =C2=A0 0x40000000 - 0x40ffffff,=C2=A0 =C2=A0 16 MB ( =C2=A0 4096 pages) >> Excluded memory regions: >> =C2=A0 0x40000000 - 0x4043bfff, =C2=A0 =C2=A0 4 MB ( =C2=A0 1084 pages)= NoAlloc=C2=A0 >> Static device mappings: >> =C2=A0 0x19c00000 - 0x1e6fffff mapped at VA 0xfb400000 >> =C2=A0 0x1e800000 - 0x1effffff mapped at VA 0xfac00000 >> =C2=A0 0x1f000000 - 0x1f3fffff mapped at VA 0xfa800000 >> arc4random: WARNING: initial seeding bypassed the cryptographic random= =20 > device=20 >> because it was not yet seeded and the knob 'bypass_before_seeding'=20 > was=20 >> enabled. >> random: entropy device external interface >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 >> To unsubscribe, send any mail to=20 > "freebsd-arm-unsubscribe@freebsd.org" >>=20 >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm=20 > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >=20 From owner-freebsd-mips@freebsd.org Thu May 23 07:39:29 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 8CDA6159FD1F for ; Thu, 23 May 2019 07:39:29 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh501-vm3.bullet.mail.kks.yahoo.co.jp (nh501-vm3.bullet.mail.kks.yahoo.co.jp [183.79.56.133]) by mx1.freebsd.org (Postfix) with SMTP id E1E628759C for ; Thu, 23 May 2019 07:39:27 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.141] by nh501.bullet.mail.kks.yahoo.co.jp with NNFMP; 23 May 2019 07:37:33 -0000 Received: from [183.79.100.132] by t504.bullet.mail.kks.yahoo.co.jp with NNFMP; 23 May 2019 07:37:33 -0000 Received: from [127.0.0.1] by omp501.mail.kks.yahoo.co.jp with NNFMP; 23 May 2019 07:37:33 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 464521.46176.bm@omp501.mail.kks.yahoo.co.jp X-YMail-OSG: rDTngOcVM1mJseB4dVT4c50UmKAhRX1D0637.TlsexgxfNLE11HAdXlmzShf_aR aw600Rc2ACXxmOiQ5aq.q1a.K05XwuMZBi.LQyVGuZSoRQQX9j10Uj2taKB7x7IaWasn7GzraMem Q9YzomzkEiBeO2vMlteuIHYvZooTj6nXCqD66WhmYL6Z7y3ZojiZ.bQELP6RoiSsYrvMBrdkANy5 fal2pTxHRlCrJFt4bXXHVWpt3AI6nmS1Vt3lFGsy_0AowhZ.xpYHQ4FmuVLRzkYrZcpcLdaCInUT zsgEgJW6k6DN_.ayC0gKoIJeeQkPuvWgTUoNWB2T_V5ZD6Jg5FlQ2LtRhgtd4rbL9O1FpZmT8L7h LLTN_pM0qREYti8dqLvkEYsAUft0_46sCqA61Y_QtcBG2YhuRdWq4bwoAfvKqbAo.l3tFTQo_4_H xK1AKScYAbhbFgibgkjI47xgystGSAsGWFlVQ6KjFj.G6EIOH.5oyeJobSFR9SYnrcBZ0RVBdPAs Ac6TlGglddceXJOVkeCIe5BCGVfYqJDxmJzLvfgwiS2IYIMvdDBtvxEP1GdRfNNsSujzV4JQ5NE9 swzIe5IWMhlzHGbQ4lXy2BRWCGPceQrn5Kw3B6kWE Received: from jws700101.mail.ssk.yahoo.co.jp by sendmailws620.mail.ssk.yahoo.co.jp; Thu, 23 May 2019 16:37:32 +0000; 1558597052.824 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1558597053; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=fq0ER6/zJt7f8BnK5M1gcQffeJCGEWKCW+Xc8AOngsQ=; b=h1U9+5gkDOOfLD/u2brI56DyLs8fc8T1fQr4J0iN0poV9coebo2LcS12zcP6Ak3g FliDNx4cDyP8b+gINnTdx4SXwbRvAnXpoQgzc+Bq3W0YjQlM9YMCiOnaadN0jtnCUYz Ij1BLClacCs/TQzyHlGe2yHg5uWcXCnMdULXqOF4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SjABCpr1In5C6kxhe4SIg/Jm612R0PlZnJLt7k189IwGkbjjUJkEdNmWxf9N6Grp fbeeJ/Q8o70sGk8+YzHsU9i7BIeR6OlJCmfhn9JdXi8bE5DMxUl/6kVSlDjwB8/yBTJ 8PMKq2FBANBUAdIgzsC3nlUW1j74/Yak4qYgREFk=; Date: Thu, 23 May 2019 16:37:31 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: Adrian Chadd , "freebsd-mips@freebsd.org" Message-ID: <150518145.3964519.1558597051972.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> In-Reply-To: References: <897817.7763.qm@web103915.mail.ssk.yahoo.co.jp> <530507.76366.qm@web103901.mail.ssk.yahoo.co.jp> Subject: Re: mips boot message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: E1E628759C X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=h1U9+5gk; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 183.79.56.133 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-1.76 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:183.79.56.0/23]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; MX_GOOD(-0.01)[cached: mx3.mail.yahoo.co.jp]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:24572, ipnet:183.79.0.0/16, country:JP]; IP_SCORE(0.69)[ipnet: 183.79.0.0/16(1.93), asn: 24572(1.55), country: JP(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.65)[-0.646,0]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.94)[-0.943,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_SHORT(0.05)[0.049,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[133.56.79.183.list.dnswl.org : 127.0.5.0] 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: Thu, 23 May 2019 07:39:29 -0000 Hi This is new review. https://reviews.freebsd.org/D20371 Last time=C2=A0Phabricator is not work for me then abandon. Regards Hiroki Mori ----- Original Message ----- > From: Adrian Chadd > To: Mori Hiroki ; "freebsd-mips@freebsd.org. Rober= t Pera" > Cc:=20 > Date: 2019/5/20, Mon 01:05 > Subject: Re: mips boot message >=20 > hi! >=20 > Did you create a PR for this so we can get it merged in? >=20 >=20 >=20 > -adrian >=20 > On Tue, 16 Oct 2018 at 19:55, Mori Hiroki wrote: >>=20 >>=C2=A0=C2=A0Hi >>=20 >>=C2=A0=C2=A0I was modify mips/mips source. >>=20 >>=C2=A0=C2=A0https://gist.github.com/yamori813/aad6abc78b68a9e19a8563944d3= 2033b >>=20 >>=20 >>=C2=A0=C2=A0diff --git a/sys/mips/mips/cpu.c b/sys/mips/mips/cpu.c >>=C2=A0=C2=A0index 0f8583d..c490f09 100644 >>=C2=A0=C2=A0--- a/sys/mips/mips/cpu.c >>=C2=A0=C2=A0+++ b/sys/mips/mips/cpu.c >>=C2=A0=C2=A0@@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); >> =C2=A0 #include >> =C2=A0 #endif >>=20 >>=C2=A0=C2=A0-static void cpu_identify(void); >>=C2=A0=C2=A0+void cpu_identify(void); >>=20 >> =C2=A0 struct mips_cpuinfo cpuinfo; >>=20 >>=C2=A0=C2=A0@@ -341,11 +341,9 @@ mips_cpu_init(void) >>=20 >> =C2=A0 mips_icache_sync_all(); >> =C2=A0 mips_dcache_wbinv_all(); >>=C2=A0=C2=A0-/* Print some info about CPU */ >>=C2=A0=C2=A0-cpu_identify(); >> =C2=A0 } >>=20 >>=C2=A0=C2=A0-static void >>=C2=A0=C2=A0+void >> =C2=A0 cpu_identify(void) >> =C2=A0 { >> =C2=A0 uint32_t cfg0, cfg1, cfg2, cfg3; >>=C2=A0=C2=A0diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.= c >>=C2=A0=C2=A0index efd604a..cf8aaeb 100644 >>=C2=A0=C2=A0--- a/sys/mips/mips/machdep.c >>=C2=A0=C2=A0+++ b/sys/mips/mips/machdep.c >>=C2=A0=C2=A0@@ -179,6 +179,8 @@ struct bootinfo bootinfo; >> =C2=A0=C2=A0=C2=A0*/ >> =C2=A0 vm_offset_t kernel_kseg0_end =3D (vm_offset_t)&end; >>=20 >>=C2=A0=C2=A0+void cpu_identify(void); >>=C2=A0=C2=A0+ >> =C2=A0 static void >> =C2=A0 cpu_startup(void *dummy) >> =C2=A0 { >>=C2=A0=C2=A0@@ -186,6 +188,10 @@ cpu_startup(void *dummy) >> =C2=A0 if (boothowto & RB_VERBOSE) >> =C2=A0 bootverbose++; >>=20 >>=C2=A0=C2=A0+printf("CPU model: %s\n", cpu_model); >>=C2=A0=C2=A0+ >>=C2=A0=C2=A0+cpu_identify(); >>=C2=A0=C2=A0+ >> =C2=A0 printf("real memory=C2=A0 =3D %ju (%juK bytes)\n",=20 > ptoa((uintmax_t)realmem), >> =C2=A0 =C2=A0 =C2=A0 ptoa((uintmax_t)realmem) / 1024); >>=20 >>=20 >>=20 >>=20 >>=C2=A0=C2=A0----- Original Message ----- >>=C2=A0=C2=A0>From: Warner Losh >>=C2=A0=C2=A0>To: Mori Hiroki >>=C2=A0=C2=A0>Cc: freebsd-mips@freebsd.org >>=C2=A0=C2=A0>Date: 2018/10/13, Sat 00:22 >>=C2=A0=C2=A0>Subject: Re: mips boot message >>=C2=A0=C2=A0> >>=C2=A0=C2=A0> >>=C2=A0=C2=A0> >>=C2=A0=C2=A0> >>=C2=A0=C2=A0> >>=C2=A0=C2=A0>On Fri, Oct 12, 2018, 1:50 AM Mori Hiroki =20 > wrote: >>=C2=A0=C2=A0> >>=C2=A0=C2=A0>Hi >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>>FreeBSD/mips cpu information is before dmesg. >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>>I think good that is cpu information is after this. >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>>---<>--- >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>>How about this ? >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>>Thanks >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>>Hiroki Mori >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>>Starting kernel ... >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0>>CPU platform: Atheros AR7241 rev 1 >>=C2=A0=C2=A0>>CPU Frequency=3D400 MHz >>=C2=A0=C2=A0>>CPU DDR Frequency=3D400 MHz >>=C2=A0=C2=A0>>CPU AHB Frequency=3D200 MHz >>=C2=A0=C2=A0>>platform frequency: 400 MHz >>=C2=A0=C2=A0>>CPU reference clock: 5 MHz >>=C2=A0=C2=A0>>CPU MDIO clock: 5 MHz >>=C2=A0=C2=A0>>arguments: >>=C2=A0=C2=A0>>=C2=A0 a0 =3D 00000007 >>=C2=A0=C2=A0>>=C2=A0 a1 =3D a3f6bfb0 >>=C2=A0=C2=A0>>=C2=A0 a2 =3D a3f6c460 >>=C2=A0=C2=A0>>=C2=A0 a3 =3D 00000004 >>=C2=A0=C2=A0>>Cmd line:argv is invalid >>=C2=A0=C2=A0>>Environment: >>=C2=A0=C2=A0>>envp is invalid >>=C2=A0=C2=A0>>Cache info: >>=C2=A0=C2=A0>>=C2=A0 picache_stride=C2=A0 =C2=A0 =3D 4096 >>=C2=A0=C2=A0>>=C2=A0 picache_loopcount =3D 16 >>=C2=A0=C2=A0>>=C2=A0 pdcache_stride=C2=A0 =C2=A0 =3D 4096 >>=C2=A0=C2=A0>>=C2=A0 pdcache_loopcount =3D 8 >>=C2=A0=C2=A0>>=C2=A0 max line size=C2=A0 =C2=A0=C2=A0=C2=A0=3D 32 >>=C2=A0=C2=A0>>cpu0: MIPS Technologies processor v116.147 >>=C2=A0=C2=A0>>=C2=A0 MMU: Standard TLB, 16 entries (4K 16K 64K 256K 1M 16= M 64M 256M pg=20 > sizes) >>=C2=A0=C2=A0>>=C2=A0 L1 i-cache: 4 ways of 512 sets, 32 bytes per line >>=C2=A0=C2=A0>>=C2=A0 L1 d-cache: 4 ways of 256 sets, 32 bytes per line >>=C2=A0=C2=A0>>=C2=A0 L2 cache: disabled >>=C2=A0=C2=A0>>=C2=A0 Config1=3D0x9ee3519e >>=C2=A0=C2=A0>>=C2=A0 Config2=3D0x80000000 >>=C2=A0=C2=A0>>=C2=A0 Config3=3D0x20 >>=C2=A0=C2=A0>>Physical memory chunk(s): >>=C2=A0=C2=A0>>0x373000 - 0x3ffffff, 63492096 bytes (15501 pages) >>=C2=A0=C2=A0>>Maxmem is 0x4000000 >>=C2=A0=C2=A0>>---<>--- >>=C2=A0=C2=A0>>Copyright (c) 1992-2018 The FreeBSD Project. >>=C2=A0=C2=A0>>Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 199= 2, 1993,=20 > 1994 >>=C2=A0=C2=A0>>The Regents of the University of California. All rights res= erved. >>=C2=A0=C2=A0>>FreeBSD is a registered trademark of The FreeBSD Foundation= . >>=C2=A0=C2=A0>>FreeBSD 12.0-ALPHA8 #0 fd45ead(zrouter)-dirty: Fri Oct 12 1= 6:32:39=20 > JST 2018 >>=C2=A0=C2=A0>>=C2=A0 =C2=A0=20 > hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg= /ZRouter/tmp/storage/home/hiroki/freebsd/mips.mips/sys/Nec_WR8170N=20 > mips >>=C2=A0=C2=A0>>gcc version 4.2.1 20070831 patched [FreeBSD] >>=C2=A0=C2=A0>>Preloaded elf kernel "kernel" at 0x8036d370. >>=C2=A0=C2=A0>>real memory=C2=A0 =3D 67108864 (65536K bytes) >>=C2=A0=C2=A0>>Physical memory chunk(s): >>=C2=A0=C2=A0>> >>=C2=A0=C2=A0> >>=C2=A0=C2=A0> >>=C2=A0=C2=A0>I like the idea, but other platforms put this after the memo= ry. Can you=20 > make this more like x86 so we can automatically parse it more easily? >>=C2=A0=C2=A0> >>=C2=A0=C2=A0> >>=C2=A0=C2=A0>Warner >>=C2=A0=C2=A0> >>=C2=A0=C2=A0> >>=C2=A0=C2=A0_______________________________________________ >>=C2=A0=C2=A0freebsd-mips@freebsd.org mailing list >>=C2=A0=C2=A0https://lists.freebsd.org/mailman/listinfo/freebsd-mips >>=C2=A0=C2=A0To unsubscribe, send any mail to=20 > "freebsd-mips-unsubscribe@freebsd.org" >=20 From owner-freebsd-mips@freebsd.org Fri May 24 01:30:59 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 481A11592391 for ; Fri, 24 May 2019 01:30:59 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 CC5756CFBB for ; Fri, 24 May 2019 01:30:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72f.google.com with SMTP id p26so2515132qkj.5 for ; Thu, 23 May 2019 18:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v/LAG4j+S0MZwtThI2CTqcjytCmXkeGPe3gQn5HNOaE=; b=m/aqAStAPQbe4R0D/wh1Z7D79UbtzAhm/RkhZ6av+LZfGfnJvzlLwmcrL8aHO4R9Up q+2TvjiI5CxFZFLGQdOS5qJOkL9VVEql4B8Y2nQyv7GDsC4cmx6IDs5OjPnoAA/pENgR QLzqBDABMidq3IwI+eJZDRt5u3G/HsvTbmIxLxQGw4kmK/awLTqZrxehYXVOBFGbE5Xb xd06WrVYlIwg0+MwkEBBdMaXSiPhdY9FanmiUOG1IrIAvPFFi/+D50ZaC/VCq+iUA7yR +Lc8AI9JoE4zXEpazgeSwJS0+cDI5dh0GWz3t5c1cuiI+sRPI4B7bxtUrOuFszVgYOn0 jQ9w== 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=v/LAG4j+S0MZwtThI2CTqcjytCmXkeGPe3gQn5HNOaE=; b=EseKv+a8/1ZvXNELBq28VkUhhahUwSxV9FjnRv4Lbi5Uwq90YtvSZh1Yg19FUyH3KD C1vJrJYwGMgBaWQUQMRiiHeEKXxQG7gFGIOoV/ZwnsNRrf3LhbsUq7RT4mG+zWqkOiwc cEPe03geT+/aJ0ipQo0vksDuwmmFKl9FbuJDd6bTEZO0TCdxi9lDbejSdiisQYK2UJ7A ceP5WlrKvxOADsjXmwV5opn22vspsmlFcwM9+yxEmyAg3X+WZT7a4BhSgRhRN8Njabvl Xj30LhSoOzJNoMIy+MdrB2YWPTg5WhdpnhWNyxACe7MBZOwriv241U5tXLsgseLTSmid dnYg== X-Gm-Message-State: APjAAAW3CmAu4khKyEcXFg9+RP2qZVB7q2WHQDzyhrVxUVWNCIOQ8ma4 CWD9Lun6hg9sUcRH1kr0fM3K92fG9pCHZ87Nj0zZlg== X-Google-Smtp-Source: APXvYqy+CP6Zygpzp5hxBbjk2KSuK7cPvDX8KvBxHVJeVkSauXW3Qvqo2bIBJHsLwKIoG3ZlXdcADMwozzajG/7BdrY= X-Received: by 2002:a05:620a:1384:: with SMTP id k4mr25124373qki.69.1558661457081; Thu, 23 May 2019 18:30:57 -0700 (PDT) MIME-Version: 1.0 References: <897817.7763.qm@web103915.mail.ssk.yahoo.co.jp> <530507.76366.qm@web103901.mail.ssk.yahoo.co.jp> <150518145.3964519.1558597051972.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> In-Reply-To: <150518145.3964519.1558597051972.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> From: Warner Losh Date: Thu, 23 May 2019 19:30:45 -0600 Message-ID: Subject: Re: mips boot message To: Mori Hiroki Cc: Adrian Chadd , "freebsd-mips@freebsd.org" X-Rspamd-Queue-Id: CC5756CFBB X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=m/aqAStA X-Spamd-Result: default: False [-5.91 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-mips@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: ALT1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[f.2.7.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]; NEURAL_HAM_SHORT(-0.88)[-0.877,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; FREEMAIL_TO(0.00)[yahoo.co.jp]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; IP_SCORE(-3.03)[ip: (-9.50), ipnet: 2607:f8b0::/32(-3.29), asn: 15169(-2.29), country: US(-0.06)]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 24 May 2019 01:30:59 -0000 I've integrated this into my tree, but am unsure of which kernel config you used. None of the ones we have in the tree seem to pull in the AR531x files. Warner On Thu, May 23, 2019 at 1:39 AM Mori Hiroki wrote: > Hi > > This is new review. > > https://reviews.freebsd.org/D20371 > > Last time Phabricator is not work for me then abandon. > > Regards > > Hiroki Mori > > ----- Original Message ----- > > From: Adrian Chadd > > To: Mori Hiroki ; "freebsd-mips@freebsd.org. > Robert Pera" > > Cc: > > Date: 2019/5/20, Mon 01:05 > > Subject: Re: mips boot message > > > > hi! > > > > Did you create a PR for this so we can get it merged in? > > > > > > > > -adrian > > > > On Tue, 16 Oct 2018 at 19:55, Mori Hiroki wrote: > >> > >> Hi > >> > >> I was modify mips/mips source. > >> > >> https://gist.github.com/yamori813/aad6abc78b68a9e19a8563944d32033b > >> > >> > >> diff --git a/sys/mips/mips/cpu.c b/sys/mips/mips/cpu.c > >> index 0f8583d..c490f09 100644 > >> --- a/sys/mips/mips/cpu.c > >> +++ b/sys/mips/mips/cpu.c > >> @@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); > >> #include > >> #endif > >> > >> -static void cpu_identify(void); > >> +void cpu_identify(void); > >> > >> struct mips_cpuinfo cpuinfo; > >> > >> @@ -341,11 +341,9 @@ mips_cpu_init(void) > >> > >> mips_icache_sync_all(); > >> mips_dcache_wbinv_all(); > >> -/* Print some info about CPU */ > >> -cpu_identify(); > >> } > >> > >> -static void > >> +void > >> cpu_identify(void) > >> { > >> uint32_t cfg0, cfg1, cfg2, cfg3; > >> diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c > >> index efd604a..cf8aaeb 100644 > >> --- a/sys/mips/mips/machdep.c > >> +++ b/sys/mips/mips/machdep.c > >> @@ -179,6 +179,8 @@ struct bootinfo bootinfo; > >> */ > >> vm_offset_t kernel_kseg0_end = (vm_offset_t)&end; > >> > >> +void cpu_identify(void); > >> + > >> static void > >> cpu_startup(void *dummy) > >> { > >> @@ -186,6 +188,10 @@ cpu_startup(void *dummy) > >> if (boothowto & RB_VERBOSE) > >> bootverbose++; > >> > >> +printf("CPU model: %s\n", cpu_model); > >> + > >> +cpu_identify(); > >> + > >> printf("real memory = %ju (%juK bytes)\n", > > ptoa((uintmax_t)realmem), > >> ptoa((uintmax_t)realmem) / 1024); > >> > >> > >> > >> > >> ----- Original Message ----- > >> >From: Warner Losh > >> >To: Mori Hiroki > >> >Cc: freebsd-mips@freebsd.org > >> >Date: 2018/10/13, Sat 00:22 > >> >Subject: Re: mips boot message > >> > > >> > > >> > > >> > > >> > > >> >On Fri, Oct 12, 2018, 1:50 AM Mori Hiroki > > wrote: > >> > > >> >Hi > >> >> > >> >>FreeBSD/mips cpu information is before dmesg. > >> >> > >> >>I think good that is cpu information is after this. > >> >> > >> >>---<>--- > >> >> > >> >> > >> >>How about this ? > >> >> > >> >>Thanks > >> >> > >> >>Hiroki Mori > >> >> > >> >> > >> >>Starting kernel ... > >> >> > >> >>CPU platform: Atheros AR7241 rev 1 > >> >>CPU Frequency=400 MHz > >> >>CPU DDR Frequency=400 MHz > >> >>CPU AHB Frequency=200 MHz > >> >>platform frequency: 400 MHz > >> >>CPU reference clock: 5 MHz > >> >>CPU MDIO clock: 5 MHz > >> >>arguments: > >> >> a0 = 00000007 > >> >> a1 = a3f6bfb0 > >> >> a2 = a3f6c460 > >> >> a3 = 00000004 > >> >>Cmd line:argv is invalid > >> >>Environment: > >> >>envp is invalid > >> >>Cache info: > >> >> picache_stride = 4096 > >> >> picache_loopcount = 16 > >> >> pdcache_stride = 4096 > >> >> pdcache_loopcount = 8 > >> >> max line size = 32 > >> >>cpu0: MIPS Technologies processor v116.147 > >> >> MMU: Standard TLB, 16 entries (4K 16K 64K 256K 1M 16M 64M 256M pg > > sizes) > >> >> L1 i-cache: 4 ways of 512 sets, 32 bytes per line > >> >> L1 d-cache: 4 ways of 256 sets, 32 bytes per line > >> >> L2 cache: disabled > >> >> Config1=0x9ee3519e > >> >> Config2=0x80000000 > >> >> Config3=0x20 > >> >>Physical memory chunk(s): > >> >>0x373000 - 0x3ffffff, 63492096 bytes (15501 pages) > >> >>Maxmem is 0x4000000 > >> >>---<>--- > >> >>Copyright (c) 1992-2018 The FreeBSD Project. > >> >>Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > > 1994 > >> >>The Regents of the University of California. All rights reserved. > >> >>FreeBSD is a registered trademark of The FreeBSD Foundation. > >> >>FreeBSD 12.0-ALPHA8 #0 fd45ead(zrouter)-dirty: Fri Oct 12 16:32:39 > > JST 2018 > >> >> > > hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zorg/ZRouter/tmp/storage/home/hiroki/freebsd/mips.mips/sys/Nec_WR8170N > > > mips > >> >>gcc version 4.2.1 20070831 patched [FreeBSD] > >> >>Preloaded elf kernel "kernel" at 0x8036d370. > >> >>real memory = 67108864 (65536K bytes) > >> >>Physical memory chunk(s): > >> >> > >> > > >> > > >> >I like the idea, but other platforms put this after the memory. Can > you > > make this more like x86 so we can automatically parse it more easily? > >> > > >> > > >> >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" > > > > _______________________________________________ > 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" > From owner-freebsd-mips@freebsd.org Fri May 24 22:22:13 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 979D315B699C for ; Fri, 24 May 2019 22:22:13 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh603-vm8.bullet.mail.ssk.yahoo.co.jp (nh603-vm8.bullet.mail.ssk.yahoo.co.jp [182.22.90.49]) by mx1.freebsd.org (Postfix) with SMTP id 7CBE482315 for ; Fri, 24 May 2019 22:22:02 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.105] by nh603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 24 May 2019 22:19:04 -0000 Received: from [182.22.91.207] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 24 May 2019 22:19:04 -0000 Received: from [127.0.0.1] by omp610.mail.ssk.yahoo.co.jp with NNFMP; 24 May 2019 22:19:04 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 80703.83841.bm@omp610.mail.ssk.yahoo.co.jp X-YMail-OSG: Q3OxbsUVM1n37ZCnVX7W_22mrrWG819eEfzIoUVsGJoxDs7TjKl.oDF80GLehMI lp9W_Tf0V.P_AxhzETpKyEYxDcMN2VdgMjbDHVuUpilhYxXR3S9S0WwX1u.rm_6ck5BfTEuzB.V_ Gnrf.2Z37HYgTGaDmhxMMYd_ukx6pLEJMdFhi6mpcvmp_5UvO4ky1dX.sjw6uwGQjR9ucICnPOl0 _PXAl7RpZCiayR3UMN4PMKVPfO4XZfwrLfgpCZ5br_Xku1xSKHjh3EmW.qoU7V1mIv_PXe1MenB4 f_b_V5Xvd9rZa.ZMXrVTGIEHd3Tva4LVwV2SokmeSfY5B0GgcMLwbn46a_cdaAQhpyUQHb3Aeqe2 6yvRDicMb8o6RUdPYTI2XCsREaFyQJoEdp2Rq34iBCWUK.ZM3gzh.qEkDlAx0KmtyLYg5o.JHsv0 AgJWd4ldqswIurgvM8kT9gfvb_bhNn2zip66QuPjH_keEATTZ46ZZkw6YjjA4xzlvuh6SxlkBc.k VB95EXl9j1H7mqSWxIl9ojj4u0dceDaPUpxJplRbPX50B13_lOqBnwEDmGEloUgExd04VVtc9b27 fevPAuqE3rRdDcFz7mUfv831V2DlaJPDtGBNp81lZ Received: from jws700103.mail.ssk.yahoo.co.jp by sendmailws614.mail.ssk.yahoo.co.jp; Sat, 25 May 2019 07:19:03 +0000; 1558736343.565 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1558736344; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=DhthEl9oUPC9SFzoV0OvJ07C2C+0S9xXUjKg+HRZF3w=; b=iLi0onboJAEscaqDvKz5yXuiP+n0TuWc51EfpVfR2+a1VY+zP0LYXwQ5Oq2QY1D+ CMF4vlX4ja5HxI2goz6Xx0kiUEbQfCwWNG64FDeFz+6TQkkmdGZMxo3ZJFwmYIc0ZC1 IexZcqSIJxldmlT23LNR9iXtZHGL5z/0ow6oaKp0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Cc:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ubqDdsU82ucV5/sXTdSUBLnnMu99vQV+Gxw5GzjBGsXWYS5nbjVCchpClokc754K c9WKS3Fmxoizr4qzOsjiaHTML30vdeSZkdeNZHwo1VqRpazfTwz3QChttuILPh159Tr pQBGvm/FP4EtuDfrk3lYfLQtPizDuM+t0xNBASz8=; Date: Sat, 25 May 2019 07:19:02 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: Warner Losh Cc: Adrian Chadd , "freebsd-mips@freebsd.org" Message-ID: <261635237.4091823.1558736342967.JavaMail.yahoo@jws700103.mail.ssk.yahoo.co.jp> In-Reply-To: References: <897817.7763.qm@web103915.mail.ssk.yahoo.co.jp> <530507.76366.qm@web103901.mail.ssk.yahoo.co.jp> <150518145.3964519.1558597051972.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp> Subject: Re: mips boot message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 7CBE482315 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=iLi0onbo; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 182.22.90.49 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-0.67 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:182.22.90.0/23]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; MX_GOOD(-0.01)[mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo.co.jp, mx2.mail.yahoo.co.jp, mx3.mail.yahoo.co.jp, mx1.mail.yahoo.co.jp, mx5.mail.yahoo. co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp,mx3.mail.yahoo.co.jp,mx1.mail.yahoo.co.jp,mx5.mail.yahoo.co.jp,mx2.mail.yahoo.co.jp]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:23816, ipnet:182.22.0.0/17, country:JP]; IP_SCORE(0.67)[ipnet: 182.22.0.0/17(1.90), asn: 23816(1.52), country: JP(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.39)[-0.394,0]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.90)[-0.904,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_SPAM_SHORT(0.87)[0.869,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[49.90.22.182.list.dnswl.org : 127.0.5.0] 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: Fri, 24 May 2019 22:22:13 -0000 Hi Thanks for commit this patch. I use ZRouter build system always. But freebsd source tree have std.AR5312 and=C2=A0std.AR5315 at sys/mips/conf. This is basic configuration=C2=A0for this target. I use many ethernet switch on this soc. This configuration have in ZRouter tree. Hiroki Mori ----- Original Message ----- >From: Warner Losh >To: Mori Hiroki =20 >Cc: Adrian Chadd ; "freebsd-mips@freebsd.org" >Date: 2019/5/24, Fri 10:30 >Subject: Re: mips boot message >=20 > >I've integrated this into my tree, but am unsure of which kernel config yo= u used. None of the ones we have in the tree seem to pull in the AR531x fil= es. > > >Warner > >On Thu, May 23, 2019 at 1:39 AM Mori Hiroki wrote: > >Hi >> >>This is new review. >> >>https://reviews.freebsd.org/D20371 >> >>Last time=C2=A0Phabricator is not work for me then abandon. >> >>Regards >> >>Hiroki Mori >> >>----- Original Message ----- >>> From: Adrian Chadd >>> To: Mori Hiroki ; "freebsd-mips@freebsd.org. Rob= ert Pera" >>> Cc:=20 >>> Date: 2019/5/20, Mon 01:05 >>> Subject: Re: mips boot message >>>=20 >>> hi! >>>=20 >>> Did you create a PR for this so we can get it merged in? >>>=20 >>>=20 >>>=20 >>> -adrian >>>=20 >>> On Tue, 16 Oct 2018 at 19:55, Mori Hiroki wrote= : >>>>=20 >>>>=C2=A0=C2=A0Hi >>>>=20 >>>>=C2=A0=C2=A0I was modify mips/mips source. >>>>=20 >>>>=C2=A0=C2=A0https://gist.github.com/yamori813/aad6abc78b68a9e19a8563944= d32033b >>>>=20 >>>>=20 >>>>=C2=A0=C2=A0diff --git a/sys/mips/mips/cpu.c b/sys/mips/mips/cpu.c >>>>=C2=A0=C2=A0index 0f8583d..c490f09 100644 >>>>=C2=A0=C2=A0--- a/sys/mips/mips/cpu.c >>>>=C2=A0=C2=A0+++ b/sys/mips/mips/cpu.c >>>>=C2=A0=C2=A0@@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); >>>> =C2=A0 #include >>>> =C2=A0 #endif >>>>=20 >>>>=C2=A0=C2=A0-static void cpu_identify(void); >>>>=C2=A0=C2=A0+void cpu_identify(void); >>>>=20 >>>> =C2=A0 struct mips_cpuinfo cpuinfo; >>>>=20 >>>>=C2=A0=C2=A0@@ -341,11 +341,9 @@ mips_cpu_init(void) >>>>=20 >>>> =C2=A0 mips_icache_sync_all(); >>>> =C2=A0 mips_dcache_wbinv_all(); >>>>=C2=A0=C2=A0-/* Print some info about CPU */ >>>>=C2=A0=C2=A0-cpu_identify(); >>>> =C2=A0 } >>>>=20 >>>>=C2=A0=C2=A0-static void >>>>=C2=A0=C2=A0+void >>>> =C2=A0 cpu_identify(void) >>>> =C2=A0 { >>>> =C2=A0 uint32_t cfg0, cfg1, cfg2, cfg3; >>>>=C2=A0=C2=A0diff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machde= p.c >>>>=C2=A0=C2=A0index efd604a..cf8aaeb 100644 >>>>=C2=A0=C2=A0--- a/sys/mips/mips/machdep.c >>>>=C2=A0=C2=A0+++ b/sys/mips/mips/machdep.c >>>>=C2=A0=C2=A0@@ -179,6 +179,8 @@ struct bootinfo bootinfo; >>>> =C2=A0=C2=A0=C2=A0*/ >>>> =C2=A0 vm_offset_t kernel_kseg0_end =3D (vm_offset_t)&end; >>>>=20 >>>>=C2=A0=C2=A0+void cpu_identify(void); >>>>=C2=A0=C2=A0+ >>>> =C2=A0 static void >>>> =C2=A0 cpu_startup(void *dummy) >>>> =C2=A0 { >>>>=C2=A0=C2=A0@@ -186,6 +188,10 @@ cpu_startup(void *dummy) >>>> =C2=A0 if (boothowto & RB_VERBOSE) >>>> =C2=A0 bootverbose++; >>>>=20 >>>>=C2=A0=C2=A0+printf("CPU model: %s\n", cpu_model); >>>>=C2=A0=C2=A0+ >>>>=C2=A0=C2=A0+cpu_identify(); >>>>=C2=A0=C2=A0+ >>>> =C2=A0 printf("real memory=C2=A0 =3D %ju (%juK bytes)\n",=20 >>> ptoa((uintmax_t)realmem), >>>> =C2=A0 =C2=A0 =C2=A0 ptoa((uintmax_t)realmem) / 1024); >>>>=20 >>>>=20 >>>>=20 >>>>=20 >>>>=C2=A0=C2=A0----- Original Message ----- >>>>=C2=A0=C2=A0>From: Warner Losh >>>>=C2=A0=C2=A0>To: Mori Hiroki >>>>=C2=A0=C2=A0>Cc: freebsd-mips@freebsd.org >>>>=C2=A0=C2=A0>Date: 2018/10/13, Sat 00:22 >>>>=C2=A0=C2=A0>Subject: Re: mips boot message >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0>On Fri, Oct 12, 2018, 1:50 AM Mori Hiroki =20 >>> wrote: >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0>Hi >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>>FreeBSD/mips cpu information is before dmesg. >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>>I think good that is cpu information is after this. >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>>---<>--- >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>>How about this ? >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>>Thanks >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>>Hiroki Mori >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>>Starting kernel ... >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0>>CPU platform: Atheros AR7241 rev 1 >>>>=C2=A0=C2=A0>>CPU Frequency=3D400 MHz >>>>=C2=A0=C2=A0>>CPU DDR Frequency=3D400 MHz >>>>=C2=A0=C2=A0>>CPU AHB Frequency=3D200 MHz >>>>=C2=A0=C2=A0>>platform frequency: 400 MHz >>>>=C2=A0=C2=A0>>CPU reference clock: 5 MHz >>>>=C2=A0=C2=A0>>CPU MDIO clock: 5 MHz >>>>=C2=A0=C2=A0>>arguments: >>>>=C2=A0=C2=A0>>=C2=A0 a0 =3D 00000007 >>>>=C2=A0=C2=A0>>=C2=A0 a1 =3D a3f6bfb0 >>>>=C2=A0=C2=A0>>=C2=A0 a2 =3D a3f6c460 >>>>=C2=A0=C2=A0>>=C2=A0 a3 =3D 00000004 >>>>=C2=A0=C2=A0>>Cmd line:argv is invalid >>>>=C2=A0=C2=A0>>Environment: >>>>=C2=A0=C2=A0>>envp is invalid >>>>=C2=A0=C2=A0>>Cache info: >>>>=C2=A0=C2=A0>>=C2=A0 picache_stride=C2=A0 =C2=A0 =3D 4096 >>>>=C2=A0=C2=A0>>=C2=A0 picache_loopcount =3D 16 >>>>=C2=A0=C2=A0>>=C2=A0 pdcache_stride=C2=A0 =C2=A0 =3D 4096 >>>>=C2=A0=C2=A0>>=C2=A0 pdcache_loopcount =3D 8 >>>>=C2=A0=C2=A0>>=C2=A0 max line size=C2=A0 =C2=A0=C2=A0=C2=A0=3D 32 >>>>=C2=A0=C2=A0>>cpu0: MIPS Technologies processor v116.147 >>>>=C2=A0=C2=A0>>=C2=A0 MMU: Standard TLB, 16 entries (4K 16K 64K 256K 1M = 16M 64M 256M pg=20 >>> sizes) >>>>=C2=A0=C2=A0>>=C2=A0 L1 i-cache: 4 ways of 512 sets, 32 bytes per line >>>>=C2=A0=C2=A0>>=C2=A0 L1 d-cache: 4 ways of 256 sets, 32 bytes per line >>>>=C2=A0=C2=A0>>=C2=A0 L2 cache: disabled >>>>=C2=A0=C2=A0>>=C2=A0 Config1=3D0x9ee3519e >>>>=C2=A0=C2=A0>>=C2=A0 Config2=3D0x80000000 >>>>=C2=A0=C2=A0>>=C2=A0 Config3=3D0x20 >>>>=C2=A0=C2=A0>>Physical memory chunk(s): >>>>=C2=A0=C2=A0>>0x373000 - 0x3ffffff, 63492096 bytes (15501 pages) >>>>=C2=A0=C2=A0>>Maxmem is 0x4000000 >>>>=C2=A0=C2=A0>>---<>--- >>>>=C2=A0=C2=A0>>Copyright (c) 1992-2018 The FreeBSD Project. >>>>=C2=A0=C2=A0>>Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1= 992, 1993,=20 >>> 1994 >>>>=C2=A0=C2=A0>>The Regents of the University of California. All rights r= eserved. >>>>=C2=A0=C2=A0>>FreeBSD is a registered trademark of The FreeBSD Foundati= on. >>>>=C2=A0=C2=A0>>FreeBSD 12.0-ALPHA8 #0 fd45ead(zrouter)-dirty: Fri Oct 12= 16:32:39=20 >>> JST 2018 >>>>=C2=A0=C2=A0>>=C2=A0 =C2=A0=20 >>> hiroki@microserver:/storage/home/hiroki/zorg/obj/storage/home/hiroki/zo= rg/ZRouter/tmp/storage/home/hiroki/freebsd/mips.mips/sys/Nec_WR8170N=20 >>> mips >>>>=C2=A0=C2=A0>>gcc version 4.2.1 20070831 patched [FreeBSD] >>>>=C2=A0=C2=A0>>Preloaded elf kernel "kernel" at 0x8036d370. >>>>=C2=A0=C2=A0>>real memory=C2=A0 =3D 67108864 (65536K bytes) >>>>=C2=A0=C2=A0>>Physical memory chunk(s): >>>>=C2=A0=C2=A0>> >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0>I like the idea, but other platforms put this after the me= mory. Can you=20 >>> make this more like x86 so we can automatically parse it more easily? >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0>Warner >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0> >>>>=C2=A0=C2=A0_______________________________________________ >>>>=C2=A0=C2=A0freebsd-mips@freebsd.org mailing list >>>>=C2=A0=C2=A0https://lists.freebsd.org/mailman/listinfo/freebsd-mips >>>>=C2=A0=C2=A0To unsubscribe, send any mail to=20 >>> "freebsd-mips-unsubscribe@freebsd.org" >>>=20 >> >>_______________________________________________ >>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" >> > > From owner-freebsd-mips@freebsd.org Fri May 24 22:41:29 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 1015715B6D33 for ; Fri, 24 May 2019 22:41:29 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh603-vm3.bullet.mail.ssk.yahoo.co.jp (nh603-vm3.bullet.mail.ssk.yahoo.co.jp [182.22.90.44]) by mx1.freebsd.org (Postfix) with SMTP id 83CE582E15 for ; Fri, 24 May 2019 22:41:26 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.104] by nh603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 24 May 2019 22:39:12 -0000 Received: from [182.22.91.133] by t602.bullet.mail.ssk.yahoo.co.jp with NNFMP; 24 May 2019 22:39:12 -0000 Received: from [127.0.0.1] by omp606.mail.ssk.yahoo.co.jp with NNFMP; 24 May 2019 22:39:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 187645.80116.bm@omp606.mail.ssk.yahoo.co.jp X-YMail-OSG: jueSKnwVM1lWWzyGMC9zfN.CjJ4xSbQ2LqmQg1yvW_Ym4ZoBQpHC13EFH_A2koX kVKr8fc73lc1cN8Neq3eQfT1FhUOeibx_6UTtSbrT1uIHRcdwrMFqPsbjOW4ds2AeCAzyw.gL8S4 XVw87p.qBWgLfxOkkZZftFDpBIbYiaBSorPwFPqiCj775f.gCzR1nT.pxG95R19yiHQ24tf4y1eb 6MEdH6Ep7.N5ZZfi8DhudFUwkyuZeropN5pJvKItPZSc33.werMgv644E5ZFL3YGPDFb.ajELehH Qfsbk0OAR0rUQSHMOQiO0LZMfb3DZ4pOuIrHw2MYK10MqO_o_EZWKhTwSv_8lBYmf0JynjHF3KTX ufWChm7AAZczb2fpgKhnXdBpegxnIPd0Fgo2yWLp8vIQekio0egGmNrutHm9YoYayEUBH3qT0f2x nDRwwg_2UIgZUaYFy7_LkK2XrLOmC2QkEDV5m_TwEez9pDRPjLJJrRKPAPn5O1liJKmiTdKCEUF4 1G8tW4mFWmBLs9i1Sptj2.WHGyEoZKiiuIQdJZM7RiRDa02wF9tD_soocmqt8a4iqTekUcQvi5XL FWqryQtTOs1NqUMPgyMrIaVNOkkZcrBnmkCYEV7Y- Received: from jws704005.mail.kks.yahoo.co.jp by sendmailws514.mail.kks.yahoo.co.jp; Sat, 25 May 2019 07:39:11 +0000; 1558737551.555 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1558737552; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:References; bh=P5sK8HHtrb9NMokO4guaEnEDfaJoZqfIocFjVARIi0I=; b=AacPf5sVpt0CtrmwO9TVxH0+keE+Rda/TEnjF2329fQqO8/nElIOklKBUWSl9KPg 6ZM8S9pjpz6/sNCEgTmSg60KLVMg7Z9RT3fCQhvf6YboHxwjbwmu5unXchzgeGJAb7X LEJ0axyqd7Fmio3YGxv/lRggXQQ05FHy0ylO40p0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:References; b=hWoWI6NxaNgx+utkjvSKjBqMvk2pHY2vIWLTjvGf3ZMZpxZQPhD+w7GqRWyTK9Ed Z0M7c/nP1OxFE12S2NoS6BpYf8flNjGQ7ShCC9FRk8PbFqjUp5c/Q7tMZuNvKrhzXgp wRd/s5riOTMGzuzGmezY2qCaHTpkUTQqMhBYnScI=; Date: Sat, 25 May 2019 07:39:11 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: "freebsd-mips@freebsd.org" Message-ID: <1714338063.1555379.1558737551203.JavaMail.yahoo@jws704005.mail.kks.yahoo.co.jp> Subject: evdev problem on USB Ten key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <1714338063.1555379.1558737551203.JavaMail.yahoo.ref@jws704005.mail.kks.yahoo.co.jp> X-Rspamd-Queue-Id: 83CE582E15 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=AacPf5sV; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 182.22.90.44 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [0.70 / 15.00]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:182.22.90.0/23]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; MX_GOOD(-0.01)[cached: mx3.mail.yahoo.co.jp]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:23816, ipnet:182.22.0.0/17, country:JP]; IP_SCORE(0.67)[ipnet: 182.22.0.0/17(1.89), asn: 23816(1.51), country: JP(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; NEURAL_HAM_LONG(-0.82)[-0.818,0]; NEURAL_SPAM_MEDIUM(0.83)[0.833,0]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.92)[0.922,0]; RCVD_IN_DNSWL_NONE(0.00)[44.90.22.182.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[] 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: Fri, 24 May 2019 22:41:29 -0000 Hi I use evdev on mips amd arm by USB Ten key module. I have problem on evdev that is broken data from dev/input/event0. I seem data is 24 bytes. But contain data is broken. First work fine but soon occur broken event. Also complete broken on num lock on. If you have advice, Please let me know. Thanks Hiroki Mori