Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2016 20:53:02 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: kernel using gcc-5.3 fails to boot right
Message-ID:  <715256.26756.qm@web101708.mail.ssk.yahoo.co.jp>
In-Reply-To: <CAJ-VmomVS_fmYo2pvTm85x9tqfRnbcggWW9NLa28BJpfjaFozg@mail.gmail.com>
References:  <CAJ-VmomVS_fmYo2pvTm85x9tqfRnbcggWW9NLa28BJpfjaFozg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi=0A=0AI have question that is why don't use clang ?=0A=0AI think 4k is us=
e gcc 4.2 continue and 24k and=0A74k to change to=A0clang because of FreeBS=
D other=0Aarch move it.=0A=0AI want use MIPS16 instruction because it make=
=0Asmall binary. Current build is almost 4Mbyte.=0AIf use MIPS16 instructio=
n we get more space=0Aat 4M flash. But gcc 4.2 and binutil not=A0correctsup=
port=0A. I hope clang support=A0correct MIPS16=A0=0Ainstruction.=0A=0AHirok=
i Mori=0A=0A=0A----- Original Message -----=0A> From: Adrian Chadd <adrian@=
freebsd.org>=0A> To: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>=
=0A> Cc: =0A> Date: 2016/8/15, Mon 14:21=0A> Subject: kernel using gcc-5.3 =
fails to boot right=0A> =0A> hiya,=0A> =0A> A freebsd-head kernel compiled =
with gcc-5.3 for a mips32 kernel (eg=0A> TL-WDR3600, mips74k) doesn't seem =
to work right.=0A> =0A> eg, loading a bunch of kernel modules at startup le=
ads to a hang in kmem_arena:=0A> =0A> kldload: can't load random: No such f=
ile or directory=0A> =A0 .. ipfw=0A> ipfw2 initialized, divert loadable, na=
t loadable, default to deny,=0A> logging disabled=0A> load: 1.79=A0 cmd: kl=
dload 56 [kmem arena] 8.90r 0.00u 0.03s 0% 1708k=0A> ...=0A> load: 1.67=A0 =
cmd: kldload 56 [kmem arena] 19.99r 0.00u 0.03s 0% 1708k=0A> =0A> .. howeve=
r, there's definitely enough space in the arena in question:=0A> =0A> db> s=
how vmem 0x80593bc0=0A> vmem 0x80593bc0 'kmem arena'=0A> =A0 =A0 =A0 =A0 qu=
antum:=A0 =A0 =A0 =A0 4096=0A> =A0 =A0 =A0 =A0 size:=A0  41730048=0A> =A0 =
=A0 =A0 =A0 inuse:=A0 1523712=0A> =A0 =A0 =A0 =A0 free:=A0  40206336=0A> =
=A0 =A0 =A0 =A0 busy tags:=A0 =A0 =A0 37=0A> =A0 =A0 =A0 =A0 free tags:=A0 =
=A0 =A0 4=0A> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 inuse=A0  siz=
e=A0 =A0 =A0 =A0 =A0 =A0 free=A0 =A0 size=0A> =A0 =A0 =A0 =A0 8192=A0 =A0 =
=A0 =A0 =A0 =A0 9=A0 =A0 =A0  73728=A0 =A0 =A0 =A0 =A0  0=A0 =A0 =A0  0=0A>=
 =A0 =A0 =A0 =A0 12288=A0 =A0 =A0 =A0 =A0  4=A0 =A0 =A0  49152=A0 =A0 =A0 =
=A0 =A0  0=A0 =A0 =A0  0=0A> =A0 =A0 =A0 =A0 16384=A0 =A0 =A0 =A0 =A0  9=A0=
 =A0 =A0  147456=A0 =A0 =A0 =A0 =A0 0=A0 =A0 =A0  0=0A> =A0 =A0 =A0 =A0 204=
80=A0 =A0 =A0 =A0 =A0  1=A0 =A0 =A0  20480=A0 =A0 =A0 =A0 =A0  0=A0 =A0 =A0=
  0=0A> =A0 =A0 =A0 =A0 28672=A0 =A0 =A0 =A0 =A0  1=A0 =A0 =A0  28672=A0 =
=A0 =A0 =A0 =A0  0=A0 =A0 =A0  0=0A> =A0 =A0 =A0 =A0 32768=A0 =A0 =A0 =A0 =
=A0  1=A0 =A0 =A0  32768=A0 =A0 =A0 =A0 =A0  0=A0 =A0 =A0  0=0A> =A0 =A0 =
=A0 =A0 40960=A0 =A0 =A0 =A0 =A0  1=A0 =A0 =A0  40960=A0 =A0 =A0 =A0 =A0  0=
=A0 =A0 =A0  0=0A> =A0 =A0 =A0 =A0 45056=A0 =A0 =A0 =A0 =A0  1=A0 =A0 =A0  =
45056=A0 =A0 =A0 =A0 =A0  0=A0 =A0 =A0  0=0A> =A0 =A0 =A0 =A0 49152=A0 =A0 =
=A0 =A0 =A0  4=A0 =A0 =A0  196608=A0 =A0 =A0 =A0 =A0 0=A0 =A0 =A0  0=0A> =
=A0 =A0 =A0 =A0 65536=A0 =A0 =A0 =A0 =A0  1=A0 =A0 =A0  65536=A0 =A0 =A0 =
=A0 =A0  0=A0 =A0 =A0  0=0A> =A0 =A0 =A0 =A0 131072=A0 =A0 =A0 =A0 =A0 5=A0=
 =A0 =A0  823296=A0 =A0 =A0 =A0 =A0 0=A0 =A0 =A0  0=0A> =A0 =A0 =A0 =A0 335=
54432=A0 =A0 =A0 =A0 0=A0 =A0 =A0  0=A0 =A0 =A0 =A0 =A0 =A0 =A0  1=A0 =A0 =
=A0  40206336=0A> =0A> .. so, I'm not sure yet what's going on, but somethi=
ng fishy is=0A> definitely going on.=0A> =0A> Any ideas?=0A> =0A> I'd like =
to flip on building/running freebsd-wifi mips32/mips64 images=0A> 100% usin=
g external gcc toolchain, and this worked fine with the=0A> gcc-4.9 toolcha=
in. :(=0A> =0A> (On the plus side, userland seems to be okay when compiled =
with gcc-5.3.)=0A> =0A> =0A> =0A> -adrian=0A> _____________________________=
__________________=0A> freebsd-mips@freebsd.org mailing list=0A> https://li=
sts.freebsd.org/mailman/listinfo/freebsd-mips=0A> To unsubscribe, send any =
mail to =0A> "freebsd-mips-unsubscribe@freebsd.org"=0A> 



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