kernel using gcc-5.3 fails to boot right
Adrian Chadd
adrian at freebsd.org
Mon Aug 15 05:21:09 UTC 2016
hiya,
A freebsd-head kernel compiled with gcc-5.3 for a mips32 kernel (eg
TL-WDR3600, mips74k) doesn't seem to work right.
eg, loading a bunch of kernel modules at startup leads to a hang in kmem_arena:
kldload: can't load random: No such file or directory
.. ipfw
ipfw2 initialized, divert loadable, nat loadable, default to deny,
logging disabled
load: 1.79 cmd: kldload 56 [kmem arena] 8.90r 0.00u 0.03s 0% 1708k
...
load: 1.67 cmd: kldload 56 [kmem arena] 19.99r 0.00u 0.03s 0% 1708k
.. however, there's definitely enough space in the arena in question:
db> show vmem 0x80593bc0
vmem 0x80593bc0 'kmem arena'
quantum: 4096
size: 41730048
inuse: 1523712
free: 40206336
busy tags: 37
free tags: 4
inuse size free size
8192 9 73728 0 0
12288 4 49152 0 0
16384 9 147456 0 0
20480 1 20480 0 0
28672 1 28672 0 0
32768 1 32768 0 0
40960 1 40960 0 0
45056 1 45056 0 0
49152 4 196608 0 0
65536 1 65536 0 0
131072 5 823296 0 0
33554432 0 0 1 40206336
.. so, I'm not sure yet what's going on, but something fishy is
definitely going on.
Any ideas?
I'd like to flip on building/running freebsd-wifi mips32/mips64 images
100% using external gcc toolchain, and this worked fine with the
gcc-4.9 toolchain. :(
(On the plus side, userland seems to be okay when compiled with gcc-5.3.)
-adrian
More information about the freebsd-mips
mailing list