mips boot message

Mori Hiroki yamori813 at yahoo.co.jp
Thu May 23 07:39:29 UTC 2019


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 <adrian at freebsd.org>
> To: Mori Hiroki <yamori813 at yahoo.co.jp>; "freebsd-mips at freebsd.org. Robert Pera" <freebsd-mips at freebsd.org>
> 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 <yamori813 at yahoo.co.jp> 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 <contrib/octeon-sdk/octeon-model.h>
>>   #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 <imp at bsdimp.com>
>>  >To: Mori Hiroki <yamori813 at yahoo.co.jp>
>>  >Cc: freebsd-mips at freebsd.org
>>  >Date: 2018/10/13, Sat 00:22
>>  >Subject: Re: mips boot message
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >On Fri, Oct 12, 2018, 1:50 AM Mori Hiroki <yamori813 at yahoo.co.jp> 
> wrote:
>>  >
>>  >Hi
>>  >>
>>  >>FreeBSD/mips cpu information is before dmesg.
>>  >>
>>  >>I think good that is cpu information is after this.
>>  >>
>>  >>---<<BOOT>>---
>>  >>
>>  >>
>>  >>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<PerfCount,WatchRegs,MIPS16,EJTAG>
>>  >>  Config2=0x80000000
>>  >>  Config3=0x20
>>  >>Physical memory chunk(s):
>>  >>0x373000 - 0x3ffffff, 63492096 bytes (15501 pages)
>>  >>Maxmem is 0x4000000
>>  >>---<<BOOT>>---
>>  >>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 at 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 at freebsd.org mailing list
>>  https://lists.freebsd.org/mailman/listinfo/freebsd-mips
>>  To unsubscribe, send any mail to 
> "freebsd-mips-unsubscribe at freebsd.org"
> 



More information about the freebsd-mips mailing list