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"