Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2019 16:37:31 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        Adrian Chadd <adrian@freebsd.org>,  "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: mips boot message
Message-ID:  <150518145.3964519.1558597051972.JavaMail.yahoo@jws700101.mail.ssk.yahoo.co.jp>
In-Reply-To: <CAJ-VmonN_L4CS6eyYLuzG7EZjrVQy8EPN2usvGL2xX=Mhi2i9A@mail.gmail.com>
References:  <897817.7763.qm@web103915.mail.ssk.yahoo.co.jp> <CANCZdfr2qTGfKU7jsSC0MCk7zPeRjbTQg_a3S4AiMMRdXKfrdQ@mail.gmail.com> <530507.76366.qm@web103901.mail.ssk.yahoo.co.jp> <CAJ-VmonN_L4CS6eyYLuzG7EZjrVQy8EPN2usvGL2xX=Mhi2i9A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <adrian@freebsd.org>
> To: Mori Hiroki <yamori813@yahoo.co.jp>; "freebsd-mips@freebsd.org. Rober=
t Pera" <freebsd-mips@freebsd.org>
> 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 <yamori813@yahoo.co.jp> 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 <contrib/octeon-sdk/octeon-model.h>
>> =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 <imp@bsdimp.com>
>>=C2=A0=C2=A0>To: Mori Hiroki <yamori813@yahoo.co.jp>
>>=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 <yamori813@yahoo.c=
o.jp>=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>>---<<BOOT>>---
>>=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<PerfCount,WatchRegs,MIPS16,EJTA=
G>
>>=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>>---<<BOOT>>---
>>=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?150518145.3964519.1558597051972.JavaMail.yahoo>