From owner-freebsd-mips@freebsd.org Sun Oct 14 05:34:54 2018 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 8DC0C10C5CF0 for ; Sun, 14 Oct 2018 05:34:54 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from hobbes.arroway.org (hobbes.arroway.org [173.199.118.77]) by mx1.freebsd.org (Postfix) with ESMTP id 4011D7A110 for ; Sun, 14 Oct 2018 05:34:53 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from [10.1.1.10] (unknown [181.223.140.47]) by hobbes.arroway.org (Postfix) with ESMTPA id BEEB61C7DD3 for ; Sun, 14 Oct 2018 02:34:46 -0300 (BRT) Received: from 10.1.3.66 (SquirrelMail authenticated user matheus) by 10.1.1.10 with HTTP; Sun, 14 Oct 2018 02:34:46 -0300 Message-ID: Date: Sun, 14 Oct 2018 02:34:46 -0300 Subject: FreeBSD-wifi-build From: "Nenhum_de_Nos" To: freebsd-mips@freebsd.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2018 05:34:54 -0000 >>> stage 4.2: building libraries -------------------------------------------------------------- ===> gnu/lib/libssp/libssp_nonshared (obj,all,install) ===> gnu/lib/libgcc (obj,all,install) {standard input}: Assembler messages: {standard input}:4: Error: unknown pseudo-op: `.nan' {standard input}:5: Error: unknown pseudo-op: `.module' {standard input}:6: Error: unknown pseudo-op: `.module' {standard input}:13: Warning: Tried to set unrecognized symbol: nomicromips --- ssp-local.o --- *** [ssp-local.o] Error code 1 make[4]: stopped in /usr/arm/release-11.2/gnu/lib/libssp/libssp_nonshared 1 error make[4]: stopped in /usr/arm/release-11.2/gnu/lib/libssp/libssp_nonshared --- gnu/lib/libssp/libssp_nonshared__PL --- *** [gnu/lib/libssp/libssp_nonshared__PL] Error code 2 make[3]: stopped in /usr/arm/release-11.2 A failure has been detected in another branch of the parallel make make[4]: stopped in /usr/arm/release-11.2/gnu/lib/libgcc --- gnu/lib/libgcc__PL --- *** [gnu/lib/libgcc__PL] Error code 2 make[3]: stopped in /usr/arm/release-11.2 2 errors Hi guys, I am again trying to update the image on my DIR 825 and get one running on the 1043ND, but I can't build new images for neither of them. Using 11.2R source tree, I get the error bellow, and current gets me nowhere as well. Are there news to the wifi-build tool? What is the source code I should build it against nowadays? thanks, matheus make[3]: stopped in /usr/arm/release-11.2 --- libraries --- *** [libraries] Error code 2 make[2]: stopped in /usr/arm/release-11.2 1 error make[2]: stopped in /usr/arm/release-11.2 --- _libraries --- *** [_libraries] Error code 2 make[1]: stopped in /usr/arm/release-11.2 1 error make[1]: stopped in /usr/arm/release-11.2 --- buildworld --- *** [buildworld] Error code 2 make: stopped in /usr/arm/release-11.2 -- "We will call you Cygnus, the God of balance you shall be." From owner-freebsd-mips@freebsd.org Mon Oct 15 07:26:31 2018 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 B438B10D1D98 for ; Mon, 15 Oct 2018 07:26:31 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh603-vm13.bullet.mail.ssk.yahoo.co.jp (nh603-vm13.bullet.mail.ssk.yahoo.co.jp [182.22.90.54]) by mx1.freebsd.org (Postfix) with SMTP id E9C0688283 for ; Mon, 15 Oct 2018 07:26:30 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.106] by nh603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 15 Oct 2018 07:24:00 -0000 Received: from [182.22.91.207] by t604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 15 Oct 2018 07:24:00 -0000 Received: from [127.0.0.1] by omp610.mail.ssk.yahoo.co.jp with NNFMP; 15 Oct 2018 07:24:00 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 643005.29792.bm@omp610.mail.ssk.yahoo.co.jp Received: (qmail 43309 invoked by uid 60001); 15 Oct 2018 07:24:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1539588240; bh=eLFn7ZhmkG1e4p8+hoKXt5Ov4T4FOos9JJTBW3dGV5U=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=J6luik6KTd3T0NDtRfgHm1316YvypDSI/ITfllfdFYlh0pvzzgQYynF2uEuhAr/ptp5OMJeTi5ZJwApxD2r4PO9RMJi+QwqdsrXETatAB1gCr3CQSSnHEJ5WVn6550eY1X/SDnZEa3MgVwHLJrF7Ott5MiTyw3NZf5ufD98zhC0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=g12lIFEoTxYYerjaoR5bj7iNPFf4r8sjr+WKP22+TFUwCVd4mDMI3A+Ghccf+P48kcXIwqoWO5BUA842w6OwqqJSS6kKrnNuQw0AS6qNr3mMPjUNNSXxQ9RtHknhiATFp6f1aDw+DNU0bhAM+laVk+2ioLx99LkMrZds51jkCII=; Message-ID: <573863.8263.qm@web103906.mail.ssk.yahoo.co.jp> X-YMail-OSG: Ln3wkZ0VM1lU5cVTUZgicW9JhoGUhjJJLgKeT1802HbNCISqWv18Tc1l20cKr3.iEj.sPfaVM_ftRbU3n2lPI2g94Ul0AW49d3j2_UbPBXIKJky0mKHqO1_muWmeaiIr8zJ_ha4sUIuHuqnvmQk5jm3gxzfAVf7TOEueaw1eLdzi1IwE3driw8V0pjunxW5ZiKGditASXw_qUAfvgL67I1GQBhhZu4VlKpjHlJcjYhOxtl0ZQzWF09tm_lQ9xAbxyaslOs.d4tgTHjcM2ItgZrn6GhGDiYCNo5qQ2lWnahgNuOp1vI.up1T5.TnCgFPZbt8uKzKRCRGywj53pZtC8WBwkoXnhxRyWX9AdHWSDcg.61J8EIDbuamNQm9DXlacUqvR6uUnfV0GAfkfYh02YHpFBkad0KQNXWY1oX.2ThLDYdEUa7lep3vTkeftvdNXbrGju_kEsWB1jk2ik4xOTmWEsJtbY6At4Xb0Udi3mcV8z9N24kohmEEqnLe0KOXm8qjhkECzbBLOu4OCqKwnPPsm7GyVC9X43qXqta4.Tnc7590knt7aE_CblPo0G.44MbB5JL2j.mV2avjKtW9Sjx9tFF.Fcnyb4XoPzvqeASsGWyckroQhSjLQ24LqcYE- Received: from [203.165.243.65] by web103906.mail.ssk.yahoo.co.jp via HTTP; Mon, 15 Oct 2018 16:23:59 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: YzAEGCQVM1nXSNbG.837j9S84g_CWLL1sArjGTjXzbAyrgkFM3GtRWj25cSLDlC8gF6wH1oCgPTnNHE9jZb6KnyZRrYTc3KBpsnRyK4D29QVbuIvotnGaN54cQ6zyvyLmpja References: <973860.2973.qm@web103905.mail.ssk.yahoo.co.jp> Date: Mon, 15 Oct 2018 16:23:59 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Solved: AR7241 switch fail To: "freebsd-mips@freebsd.org" In-Reply-To: <973860.2973.qm@web103905.mail.ssk.yahoo.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 07:26:31 -0000 Hi=0A=0ASolved this problem myself.=0A=0AAR7240 mdio is arge0 but AR7241 is= arge1 same as AR9340.=0A=0Ahttp://dmesgd.nycbug.org/index.cgi?do=3Dview&id= =3D4416=0A=0A=0AThanks=0A=0AHiroki Mori=0A=0A=0A----- Original Message ----= -=0A> From: Mori Hiroki =0A> To: "freebsd-mips@freeb= sd.org" =0A> Cc: =0A> Date: 2018/10/13, Sat 06:33= =0A> Subject: AR7241 switch fail=0A> =0A> Hi=0A> =0A> I try to AR7241. I ha= ve problem at ethernet switch.=0A> =0A> I use same hints on AR7240. AR7240 = is good.=0A> =0A> http://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D4380=0A= > =0A> =0A> Dose some body work this ?=0A> =0A> Thanks=0A> =0A> Hiroki Mori= =0A> _______________________________________________=0A> freebsd-mips@freeb= sd.org mailing list=0A> https://lists.freebsd.org/mailman/listinfo/freebsd-= mips=0A> To unsubscribe, send any mail to =0A> "freebsd-mips-unsubscribe@fr= eebsd.org"=0A> From owner-freebsd-mips@freebsd.org Wed Oct 17 02:55:20 2018 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 27260108BB8D for ; Wed, 17 Oct 2018 02:55:20 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh505-vm13.bullet.mail.kks.yahoo.co.jp (nh505-vm13.bullet.mail.kks.yahoo.co.jp [183.79.57.115]) by mx1.freebsd.org (Postfix) with SMTP id 0E1E18C7F5 for ; Wed, 17 Oct 2018 02:55:18 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh505.bullet.mail.kks.yahoo.co.jp with NNFMP; 17 Oct 2018 02:52:44 -0000 Received: from [183.79.101.123] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 17 Oct 2018 02:52:43 -0000 Received: from [127.0.0.1] by omp510.mail.kks.yahoo.co.jp with NNFMP; 17 Oct 2018 02:52:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 775640.79411.bm@omp510.mail.kks.yahoo.co.jp Received: (qmail 6807 invoked by uid 60001); 17 Oct 2018 02:52:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1539744763; bh=IW+BbEuEB1Au8aZRgUAc8bZaue5SSnHYdT9awOqpQ+A=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=om+3XSM49Lvuc138L/sjluCyn7Tigq+gQO0LaaoILYtlEbkPOy1IcWqDoymKvsFJ2Mm6iGgqKco59T0fXLLiBX6+xDduqShrZyfa6C5/6zFNOsbR5+CZxgxNc1R0MScyP2XKqh5n5mDDNGMBnWfm1/pho/0uyJktnIcgyD+7Cvw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=jND8UoUtglgTGDoIr/sQ9SeiUClj9qBruYA0UR1VyBPvlfInVz1vswIhLuN5KfIiDjL7xnkKftHcGRCKtTs5ZKrGLlkgNDZzaWgmY/KhAxyypICFoOVeiuizkXk16UIni9SaZSLTw/BNcm2PNPj3w+5/qjTDa+hmmMMb7BQWj2E=; Message-ID: <530507.76366.qm@web103901.mail.ssk.yahoo.co.jp> X-YMail-OSG: cJlUewwVM1lY5ufHlqaKNvm1uxKgUZ3fzbgp0dV98JFtfZm1iz.3NIDbWZUIBnCdE0J0z6pic_JS9tXN16da6SMEMX3HoUDuSV6OzriSgiGgTj89R7k.ulgghnyf.ll3pSTsSKRXmTAwglw7JwGqZ8aQiqPACc696JMh.FzQBvydyruaS0q7QGvZLKCSpjC9My8MYHP3YMq2jrMzhQxidNjPHbOPwIo.6mzsaistB2hJOeFiALx8fKXOM1oy8AYPjRO0XCJhQuup0CYjOkb9WtQbaNpCtFrJxnqjqA.s7lnhWNVB9X7HSsybZHlthhE4MFiib2gsA1N066vqMi3NZT.mvamOBLHKasuo.YEtqnsBwIa23tiRIP8sTP19xab0uparpVVVnxbo8iEH.FWnJL2MyZBW_ltc67tzFF_ApcAc2KuN7EKC3G_zAvSn0z1zGgVU0gvwiuoZhZnT.C5tnjRhqXmfDXDlRrWXAhLWlD5G8vybS8VQm8P9.GnnYiLMSx8YGbw92FF8x9wrX2vw1NRVps4O8lIcu5A.37i8G8hiSJ2qZKFLYpFhQzZ_sSW3D_GCsfi3nYGHWjZRjb2QpQamNhOKPjDwy9DgRCxDaNzCctcRfwCbPvV3K8CO4XgB Received: from [203.165.243.65] by web103901.mail.ssk.yahoo.co.jp via HTTP; Wed, 17 Oct 2018 11:52:42 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: pv5xeYkVM1misNEGK6x_qIY9g1gLP7ghGzx6PzGU_jiBRtK5pnwM82R1GIaUg3tcAZenzE3D7PQaUtUJWSglxfnA5cUncSfz8vw6g_.iaklv1R0NrE60upGoou_KpyVcMLUR References: <897817.7763.qm@web103915.mail.ssk.yahoo.co.jp> Date: Wed, 17 Oct 2018 11:52:42 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: mips boot message To: Warner Losh Cc: "freebsd-mips@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2018 02:55:20 -0000 Hi=0A=0AI was modify mips/mips source.=0A=0Ahttps://gist.github.com/yamori8= 13/aad6abc78b68a9e19a8563944d32033b=0A=0A=0Adiff --git a/sys/mips/mips/cpu.= c b/sys/mips/mips/cpu.c=0Aindex 0f8583d..c490f09 100644=0A--- a/sys/mips/mi= ps/cpu.c=0A+++ b/sys/mips/mips/cpu.c=0A@@ -61,7 +61,7 @@ __FBSDID("$FreeBSD= $");=0A=A0#include =0A=A0#endif=0A=A0=0A= -static void cpu_identify(void);=0A+void cpu_identify(void);=0A=A0=0A=A0str= uct mips_cpuinfo cpuinfo;=0A=A0=0A@@ -341,11 +341,9 @@ mips_cpu_init(void)= =0A=A0=0A=A0mips_icache_sync_all();=0A=A0mips_dcache_wbinv_all();=0A-/* Pri= nt some info about CPU */=0A-cpu_identify();=0A=A0}=0A=A0=0A-static void=0A= +void=0A=A0cpu_identify(void)=0A=A0{=0A=A0uint32_t cfg0, cfg1, cfg2, cfg3;= =0Adiff --git a/sys/mips/mips/machdep.c b/sys/mips/mips/machdep.c=0Aindex e= fd604a..cf8aaeb 100644=0A--- a/sys/mips/mips/machdep.c=0A+++ b/sys/mips/mip= s/machdep.c=0A@@ -179,6 +179,8 @@ struct bootinfo bootinfo;=0A=A0 */=0A=A0v= m_offset_t kernel_kseg0_end =3D (vm_offset_t)&end;=0A=A0=0A+void cpu_identi= fy(void);=0A+=0A=A0static void=0A=A0cpu_startup(void *dummy)=0A=A0{=0A@@ -1= 86,6 +188,10 @@ cpu_startup(void *dummy)=0A=A0if (boothowto & RB_VERBOSE)= =0A=A0bootverbose++;=0A=A0=0A+printf("CPU model: %s\n", cpu_model);=0A+=0A+= cpu_identify();=0A+=0A=A0printf("real memory=A0 =3D %ju (%juK bytes)\n", pt= oa((uintmax_t)realmem),=0A=A0=A0 =A0 ptoa((uintmax_t)realmem) / 1024);=0A= =A0=0A=0A=0A=0A----- Original Message -----=0A>From: Warner Losh =0A>To: Mori Hiroki =0A>Cc: freebsd-mips@free= bsd.org=0A>Date: 2018/10/13, Sat 00:22=0A>Subject: Re: mips boot message=0A= > =0A>=0A>=0A>=0A>=0A>On Fri, Oct 12, 2018, 1:50 AM Mori Hiroki wrote:=0A>=0A>Hi=0A>>=0A>>FreeBSD/mips cpu information is befo= re dmesg.=0A>>=0A>>I think good that is cpu information is after this.=0A>>= =0A>>---<>---=0A>>=0A>>=0A>>How about this ?=0A>>=0A>>Thanks=0A>>=0A>= >Hiroki Mori=0A>>=0A>>=0A>>Starting kernel ...=0A>>=0A>>CPU platform: Ather= os AR7241 rev 1=0A>>CPU Frequency=3D400 MHz=0A>>CPU DDR Frequency=3D400 MHz= =0A>>CPU AHB Frequency=3D200 MHz=0A>>platform frequency: 400 MHz=0A>>CPU re= ference clock: 5 MHz=0A>>CPU MDIO clock: 5 MHz=0A>>arguments:=A0=0A>>=A0 a0= =3D 00000007=0A>>=A0 a1 =3D a3f6bfb0=0A>>=A0 a2 =3D a3f6c460=0A>>=A0 a3 = =3D 00000004=0A>>Cmd line:argv is invalid=0A>>Environment:=0A>>envp is inva= lid=0A>>Cache info:=0A>>=A0 picache_stride=A0 =A0 =3D 4096=0A>>=A0 picache_= loopcount =3D 16=0A>>=A0 pdcache_stride=A0 =A0 =3D 4096=0A>>=A0 pdcache_loo= pcount =3D 8=0A>>=A0 max line size =A0 =A0 =3D 32=0A>>cpu0: MIPS Technologi= es processor v116.147=0A>>=A0 MMU: Standard TLB, 16 entries (4K 16K 64K 256= K 1M 16M 64M 256M pg sizes)=0A>>=A0 L1 i-cache: 4 ways of 512 sets, 32 byte= s per line=0A>>=A0 L1 d-cache: 4 ways of 256 sets, 32 bytes per line=0A>>= =A0 L2 cache: disabled=0A>>=A0 Config1=3D0x9ee3519e=0A>>=A0 Config2=3D0x80000000=0A>>=A0 Config3=3D0x20=0A>>Physical= memory chunk(s):=0A>>0x373000 - 0x3ffffff, 63492096 bytes (15501 pages)=0A= >>Maxmem is 0x4000000=0A>>---<>---=0A>>Copyright (c) 1992-2018 The Fr= eeBSD Project.=0A>>Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, = 1992, 1993, 1994=0A>>The Regents of the University of California. All right= s reserved.=0A>>FreeBSD is a registered trademark of The FreeBSD Foundation= .=0A>>FreeBSD 12.0-ALPHA8 #0 fd45ead(zrouter)-dirty: Fri Oct 12 16:32:39 JS= T 2018=0A>>=A0 =A0 hiroki@microserver:/storage/home/hiroki/zorg/obj/storage= /home/hiroki/zorg/ZRouter/tmp/storage/home/hiroki/freebsd/mips.mips/sys/Nec= _WR8170N mips=0A>>gcc version 4.2.1 20070831 patched [FreeBSD]=0A>>Preloade= d elf kernel "kernel" at 0x8036d370.=0A>>real memory=A0 =3D 67108864 (65536= K bytes)=0A>>Physical memory chunk(s):=0A>>=0A>=0A>=0A>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?=0A>=0A>=0A>Warner=A0=0A>=0A> From owner-freebsd-mips@freebsd.org Wed Oct 17 03:09:39 2018 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 67F5910C110D for ; Wed, 17 Oct 2018 03:09:39 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vs1-xe36.google.com (mail-vs1-xe36.google.com [IPv6:2607:f8b0:4864:20::e36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0170B8D13C for ; Wed, 17 Oct 2018 03:09:39 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vs1-xe36.google.com with SMTP id e206so19892233vsd.0 for ; Tue, 16 Oct 2018 20:09:38 -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=MdAwLDI1yYrZk3ydEEsqkPiVEoFdiY4NC1rrVUP5qHQ=; b=0s3daP1/rz4d7PsaR28E+3Hym9o0sXQrPYU7QtohOLgYqOAe2Kxk88ShjPsTQYqShV jZuHGA2v9byhf0rbz2qj1Embave9S2C4EpAF1YaLDToXi5YOi1RKHCTwqNuT0eIpd7Eo DIxl2P27MmRS1nRWL1JSnfPq8silBwMqZGbFK/TPsDIGT+4/GhuVrJmsME3cVxl8L+S9 DnUmxE/fLIIlnERQqqhsCt2pXoryb+JI8yPq5k0BowfniTISRCbxkwFSFE7fZNCQyQ6M 5zWi8NLfWnMtanqZeN0kb+5XBo/1FFwzGu0Hs5ssTHt+WodC3+iXas00vrX2QtymIKBA xHwA== 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=MdAwLDI1yYrZk3ydEEsqkPiVEoFdiY4NC1rrVUP5qHQ=; b=oryxcstT2hVPxzjdvl1n7zX+iqGBU8lXck3IFUI96vQGFAofTFAEl4wTB37EWAUUjG Mj9f090dV7aFAxF5/5cYjIuec6NzPHntZYt9c/upKSQBtYF//9kDe218OAIZRZ+/Z90i atb+7mg1RvuPbQ7NfuS53dRIW1VZ6CMEB8zk4+lE/kKPQLT9JulujqCzk0dGivFhLghg P6XNO5bqFQDDq/kOJmY0TikxopxbuenM/a4BOjaeasY+xeQYeMNhTrS0/+uaMm3Vr481 n4rdWxms34a/GHPfU8mUZQ9R7hX+lHf1z5HH7nIsNwjFx4HWBXwK5h5AK+b60Ow85yC7 mGsA== X-Gm-Message-State: ABuFfoidrNFvab40YvuIcRiilDmdUaVfbKtFL7N7rkxCPaLtl9rCrYv/ IDsNMMMz//4XExVjS/h+OByMRmMxDblcI5DqVXUqj8Fd X-Google-Smtp-Source: ACcGV61DxNxamFJlcpdAWSdIxZVuwzBkfSrfMM8kEq1X+qdvtboYNhpEEX78+jyFNMnks1mFZgD4SDgHwBTR3lSUkqE= X-Received: by 2002:a67:4988:: with SMTP id d8mr9520384vsg.41.1539745778380; Tue, 16 Oct 2018 20:09:38 -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: Warner Losh Date: Tue, 16 Oct 2018 21:09:27 -0600 Message-ID: Subject: Re: mips boot message To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2018 03:09:39 -0000 On Tue, Oct 16, 2018 at 8:52 PM 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); > On first blush, that looks better. Thank you! What's the output look like now? Warner ----- 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 > > > >