From owner-freebsd-mips@freebsd.org Wed Aug 24 17:30:42 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72A31BC5A6D for ; Wed, 24 Aug 2016 17:30:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3017215E1 for ; Wed, 24 Aug 2016 17:30:42 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x233.google.com with SMTP id e63so223584676ith.1 for ; Wed, 24 Aug 2016 10:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+73n4iPEFu0Jf9IYQATWc1LuyMvg6QCbBD6ls1DQUNA=; b=nGhOp/AFPAgUPpwismZ2XSIU6Pap2GqPFH8fvSc+D6puhavwJax7qqiq2RPof7aZFE yJUPvS2CRLqGArNRBh/xyRSDq7kBdIUplahxGu1gFq3Ype+oV5sOfTzxwV0MPTMu25SD Hlwn7xdVpS8qXXs0fjB3DKfujY1eRE/NTsnXB7R67mJTQbZoFNFHnFkrEUAD+23Vr8J/ VkuzAj66RT1GRz2ugzUaYlJBtlJxko6u32kOfUOwJnvrjuVM/1NyL0Lutw4WIhetjZ2c sYRuQLYEy09bOGxxoq+sW1Dk1Y5c7PXjGywQiJTgJ5e0kh7BNF+yRoK+HiunIo4c+GE3 HLCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+73n4iPEFu0Jf9IYQATWc1LuyMvg6QCbBD6ls1DQUNA=; b=SDXCMzgBfOF71vkkhARrBqHn7pqypJa/2VD1HyauCw0SBoIw4GAn/6KCfNDSLdwu7u TeTGtDU4V0GH8G1ERGJ5IHk1apI2z7r4HPsYUQrGftcxTlXg2i5XopCSO+U34YDquVEz iO2alcOBbr092n6gocYmCeqVBajFPmeSI/t0n0OZ1iMAlY5e1kzKqEKVCTcmP6uYrBPr jRhqME7V6J5SIe+hVJN5qx4pior/F0DyCle3jPJ3cFhWvgU4aAufomnKi0PH1bVB7gyS TGj9e52u7CnZ35DcDeyIk0edCwappOdtTzOMz6SaIbtPfbYbb5BznWDSvHOv5dOg9gEk pDhA== X-Gm-Message-State: AEkooussvZlziC/GwROMq+ti/5008YhwH9vXYEb4Hxxh5R4NJp1P3RdLyMK+EyHKhU47xG0C9JMF7ZDiDizxrw== X-Received: by 10.107.53.163 with SMTP id k35mr5520975ioo.75.1472059841474; Wed, 24 Aug 2016 10:30:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Wed, 24 Aug 2016 10:30:40 -0700 (PDT) In-Reply-To: <715256.26756.qm@web101708.mail.ssk.yahoo.co.jp> References: <715256.26756.qm@web101708.mail.ssk.yahoo.co.jp> From: Adrian Chadd Date: Wed, 24 Aug 2016 10:30:40 -0700 Message-ID: Subject: Re: kernel using gcc-5.3 fails to boot right To: Mori Hiroki Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2016 17:30:42 -0000 On 24 August 2016 at 04:53, Mori Hiroki wrote: > Hi > > I have question that is why don't use clang ? clang/mips32 is still coming along. :) Hopefully gcc-5.3 (and gcc-6) can generate mips16 code that isn't broken? -adrian > > I think 4k is use gcc 4.2 continue and 24k and > 74k to change to clang because of FreeBSD other > arch move it. > > I want use MIPS16 instruction because it make > small binary. Current build is almost 4Mbyte. > If use MIPS16 instruction we get more space > at 4M flash. But gcc 4.2 and binutil not correctsupport > . I hope clang support correct MIPS16 > instruction. > > Hiroki Mori > > > ----- Original Message ----- >> From: Adrian Chadd >> To: "freebsd-mips@freebsd.org" >> Cc: >> Date: 2016/8/15, Mon 14:21 >> Subject: kernel using gcc-5.3 fails to boot right >> >> 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 >> _______________________________________________ >> 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" >> > _______________________________________________ > 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"