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" >> > >