From owner-freebsd-mips@freebsd.org Wed Aug 24 11:54:54 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 81BF0BC471B for ; Wed, 24 Aug 2016 11:54:54 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh605-vm7.bullet.mail.ssk.yahoo.co.jp (nh605-vm7.bullet.mail.ssk.yahoo.co.jp [182.22.90.80]) by mx1.freebsd.org (Postfix) with SMTP id 2E7A21BF7 for ; Wed, 24 Aug 2016 11:54:53 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.105] by nh605.bullet.mail.ssk.yahoo.co.jp with NNFMP; 24 Aug 2016 11:53:03 -0000 Received: from [182.22.91.132] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 24 Aug 2016 11:53:02 -0000 Received: from [127.0.0.1] by omp605.mail.ssk.yahoo.co.jp with NNFMP; 24 Aug 2016 11:53:02 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 985384.54053.bm@omp605.mail.ssk.yahoo.co.jp Received: (qmail 34794 invoked by uid 60001); 24 Aug 2016 11:53:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1472039582; bh=ah+ID/2S0ESpkRrLAwtpzuGgqgsqjCuquNf8TRXr4mM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fijy2uLpxW5IP5PnpQfUJzKYu/Ye1mNPwI1vsb/mK0qK/LTId1/L7z6TYOxmXAxTlAZ/AmKKRmMm1VQQW10GxIy5zBbGU1SHWX7v3eCjJe2ls6u5VHPpQLXv/TfPmBO4XNnto8FqTAczEIcWYn2b/X1wSFPb/zRtLDOQ44B1yII= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=fNPkUHKCP/YDMbxzajQElTtiRyctxFv7odkFKQIFCPQvGTzK+Yp617xWGZuxSkj0HhMAxJV4Q/6GImnrUPUri+ZkkX4iwSA2IGGRstv9t0qUTO5s0jMSqGg69+khlULCF01ugZ6AycYeLrYoFewmWY2obnVyvAU0r8PoL3Rn3JE=; Message-ID: <715256.26756.qm@web101708.mail.ssk.yahoo.co.jp> X-YMail-OSG: 95NcyjMVM1ns4wZ1hA8sFl.KEU8JjgpHHzBtjhCAQDPc8_5MNPB3e8q1Hh1rlLDprmehR__W25iWvQ39tMdp9VgA18XSZq2owqyQNEB5Z_WE2Bu2SQeMmZLf78xxXqjqt7zE1q5EmiIu2mbj59vtdaVPRqYkYj5Dn0V4O3Ic7TvQZo9G1RBvpylcMpUFGhOW1gc5YxfAMIoRPu8DP9hRjBNt9V1P0FI9KAvhU9CSD80J7g7j0EtcfW2t14KGCqGYic9f5xzg9pQRlgGv2APf9syVA6Rti0.FJx5WKmvGK40_9YmKEvi.4ga8Hae.G6DI3iNi48_wUxbSlEMsS1CW6ddGhN.Y7E6dSmovMDpzapUfeiiWsm_j0eCPVaLzTpeDGRr6Xvk_5j9bBhUW7aDZYYSeAFlErvXz.sz.KFLxMAQ696NTB80oi1qK9f5eZ1GkhkPdSYRYi1Z4AJKbqaBGIG739e6UiURcX24lQ8kgafSvUofRVzmjTNAAB1is0fxvYuxnqSnAdDGEyMs5nqNH5aPupf3hL6SEVAlQmTFRV9EQw52KJLM33i0JDwbEk1VJU01d0QGDWlMyf5sIhx1eVzuEmsux0aDnG7k3ugWg Received: from [110.134.196.53] by web101708.mail.ssk.yahoo.co.jp via HTTP; Wed, 24 Aug 2016 20:53:02 JST X-Mailer: YahooMailWebService/0.8.111_69 X-YMail-JAS: kfvaG7MVM1lkdWrLT30KLP3ADWViTd2azo.iGRVQl5vdAuBHWWPzZH5_uItCQO6jlW.id1GskZJEIqXTNveOlNFMxpKsmPWAsgOihRHEX6NON8UiHLR0Bo48jR5LYszVIDih References: Date: Wed, 24 Aug 2016 20:53:02 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: kernel using gcc-5.3 fails to boot right To: "freebsd-mips@freebsd.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 11:54:54 -0000 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 =0A> To: "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> 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" From owner-freebsd-mips@freebsd.org Thu Aug 25 01:13:44 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 8D877BC481A for ; Thu, 25 Aug 2016 01:13:44 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh503-vm7.bullet.mail.kks.yahoo.co.jp (nh503-vm7.bullet.mail.kks.yahoo.co.jp [183.79.56.193]) by mx1.freebsd.org (Postfix) with SMTP id EDC181A6D for ; Thu, 25 Aug 2016 01:13:43 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh503.bullet.mail.kks.yahoo.co.jp with NNFMP; 25 Aug 2016 01:11:19 -0000 Received: from [183.79.100.136] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 25 Aug 2016 01:11:19 -0000 Received: from [127.0.0.1] by omp505.mail.kks.yahoo.co.jp with NNFMP; 25 Aug 2016 01:11:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 396626.21580.bm@omp505.mail.kks.yahoo.co.jp Received: (qmail 25986 invoked by uid 60001); 25 Aug 2016 01:11:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1472087478; bh=WIyrjRQm/kTuXKNr6P7whU6qVvu2zIzUPNDr01NZ/lY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=p1fbvXZRNF35S8Sg/V9IxxVBw83KxJRU/5QvrrWiKL6NiUwfDAe0chHfT3t9cR4xGM9HlDTmGSoRUQ++6VGWhlai64JHfI06ULJs/HqwYeHoPd39vkW4h2KRGc2O5lhqn2AxbD8YsT4DJRLBE/S7DrrbpIs7XjWwTmyR+BaPHkk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OZJsL07Cks/rlZIpHeiT3TwsZ25Q4d7d2f7TlnOxisNOrMvBdRSVnpL65fQZU+BQ92A0l2H7Qqbek7hBRbtpjNSPc0PkqFUZnnDohQoTBJWoI/duwN7fQDNS7jnJ/aGAKeEeYn+dYrRVtnfa2l9tyxz3vIl8pVTxC9UWllkkb9E=; Message-ID: <705503.18629.qm@web101707.mail.ssk.yahoo.co.jp> X-YMail-OSG: qb.guwQVM1kPwzf2Kh.EOfHChvlJa_Fy_4DPKTTPR81TBzkGno.9pOGnP5_9OF2d3V.D4kPc2KVWx0KK_FSkU7KbrzkpbtEsXm1OUKJlajac9EsQo.Uk6amI9MJUXdnzzA.9p9tH84Rhw6zVs47V3yHtxJ9oay1gIqKwVyy08JMBrUgK.n9F7lhkNmhLqC5C967V0Gd6zEX2N8nELkCmlRghyQPrM94.o8n4bM3VSx_uHVOrvByaejPbe_3NjwGklfYDaztLSdbg0r9oSXRIdL6pg8xvnuPucAeyCJjMdkhemireouwgzq5UtpXjlfJcrbKvSq.MsTD2klet.m994JrWqe6UWJUtJqwz23ADXqDZxnIgnmsFrP9tkXbqhzGmOtvdeMnRmimCnr1syOYIm32SbSbuqnebUHCOgdpaFfQLzmSkE7CH.T2xzDs1IQ4FDppgkqowcSD8VfDu423vJ.guP4fLd14D5ZKHHwpj2wMRWXowZD11BZkmQmSerw0fs8pHZzVGoV2BoMR_Yfyva5vAqag6AVEj9SEbyS8jNu7e.NABLMTKr6jUJbvbROyC6Qo0fQUIYXOtmfy8luPQaFGQ19V8GLY7Ar0V2M30 Received: from [110.134.196.53] by web101707.mail.ssk.yahoo.co.jp via HTTP; Thu, 25 Aug 2016 10:11:18 JST X-Mailer: YahooMailWebService/0.8.111_69 X-YMail-JAS: ByLzkb8VM1lt9lq3bo4p0DrZRyTU41LDk9ByAc8fs1dsaLkzHKDYz24WnaGzjv89BGPMYeAfxNm3X.o9EeAZOGJrWHXvBOmj2HvnDXnPuabcpUQ2XcJA5Yi1zi3dW2y7NdlD References: Date: Thu, 25 Aug 2016 10:11:18 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: sys/mips/mediatek kernel crash on RT3050 To: "freebsd-mips@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Thu, 25 Aug 2016 01:13:44 -0000 Hi=0A=0AI build sys/mips/mediatek for RT3050 box at few days before head.= =0A=0AThis kernel crash.=0A=0AThis build based on=A0rt3050.dtsi.=A0=0A=0ASo= me one know this problem ?=0A=0AThanks.=0A=0AStarting kernel ...=0A=0AFDT D= TB=A0 at: 0x802ce6f0=0ACPU =A0 clock:=A0 320MHz=0ATimer clock:=A0 160MHz=0A= UART=A0 clock:=A0 106MHz=0A=0AU-Boot args (from 0 args):=0A=A0 =A0 =A0 =A0 = None=0AEnvironment:=0Aentry: mips_init()=0ARAM size: 32MB (assumed)=0ACache= info:=0A=A0 picache_stride=A0 =A0 =3D 4096=0A=A0 picache_loopcount =3D 8= =0A=A0 pdcache_stride=A0 =A0 =3D 4096=0A=A0 pdcache_loopcount =3D 4=0Acpu0:= MIPS Technologies processor v76.150=0A=A0 MMU: Standard TLB, 32 entries (4= K 16K 64K 256K 1M 16M 64M 256M pg sizes)=0A=A0 L1 i-cache: 4 ways of 256 se= ts, 32 bytes per line=0A=A0 L1 d-cache: 4 ways of 128 sets, 32 bytes per li= ne=0A=A0 L2 cache: disabled=0A=A0 Config1=3D0xbea3319e=0A=A0 Config2=3D0x80000000=0A=A0 Config3=3D0x420=0APhysical m= emory chunk(s):=0A0x334000 - 0x1ffffff, 30195712 bytes (7372 pages)=0AMaxme= m is 0x2000000=0ACopyright (c) 1992-2016 The FreeBSD Project.=0ACopyright (= c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994=0A=A0 =A0 =A0= =A0 The Regents of the University of California. All rights reserved.=0AFr= eeBSD is a registered trademark of The FreeBSD Foundation.=0AFreeBSD 12.0-C= URRENT #1 ed1832a(zrouter): Sun Aug 21 12:19:54 JST 2016=0A=A0 =A0 hiroki@m= icroserver:/storage/home/hiroki/obj/storage/home/hiroki/zrouter/tmp/=0Amips= .mipsel/storage/home/hiroki/freebsd/sys/Fon_FON2305E_FDT mips=0Agcc version= 4.2.1 20070831 patched [FreeBSD]=0APreloaded elf kernel "kernel" at 0x8032= afb0.=0Areal memory=A0 =3D 33554432 (32768K bytes)=0APhysical memory chunk(= s):=0A0x003c0000 - 0x01f3efff, 28831744 bytes (7039 pages)=0Aavail memory = =3D 28397568 (27MB)=0AULE: setup cpu 0=0Arandom: entropy device external in= terface=0Afirmware: 'rt2860fw' version 0: 8192 bytes loaded at 0x802d86d0= =0Afirmware: 'rt2561fw' version 0: 8192 bytes loaded at 0x802d2550=0Afirmwa= re: 'rt2561sfw' version 0: 8192 bytes loaded at 0x802d45d0=0Awlan: <802.11 = Link Layer>=0Afirmware: 'rt2661fw' version 0: 8192 bytes loaded at 0x802d66= 50=0Anull: =0Aopenfirm: =0Amem: =0Anexus0: =0Arandom: = harvesting attach, 8 bytes (4 bits) from nexus0=0Aofwbus0: on nexus0=0Apalmbus0: mem 0x10000000-0x101fffff o= n ofwbus0=0Arandom: harvesting attach, 8 bytes (4 bits) from palmbus0=0Aran= dom: harvesting attach, 8 bytes (4 bits) from ofwbus0=0Acpupic0: on ofwbus0=0Arandom: harvesting attach, 8 bytes (4 bits= ) from cpupic0=0Asysc0: mem 0-0xff on palmbus0=0Ara= ndom: harvesting attach, 8 bytes (4 bits) from sysc0=0Apinctrl0: on ofwbus0=0Apinctrl0: GPIO mode start: 0x0000029d=0AProcessing = 1 pin-config node(s) in pinctrl-0 for spi@b00=0AProcessing 1 pin-config nod= e(s) in pinctrl-0 for uartlite@c00=0AProcessing 1 pin-config node(s) in pin= ctrl-0 for pinctrl=0Apinctrl0: GPIO mode end=A0 : 0x0000005d=0Arandom: harv= esting attach, 8 bytes (4 bits) from pinctrl0=0Arstctrl0: on ofwbus0=0Arandom: harvesting attach, 8 bytes (4 bits) from rstctrl= 0=0Aclkctrl0: on ofwbus0=0Arandom: harvesting attach= , 8 bytes (4 bits) from clkctrl0=0Aintc0: m= em 0x200-0x2ff irq 6 on palmbus0=0Arandom: harvesting attach, 8 bytes (4 bi= ts) from intc0=0Agpio0: mem 0x600-0x633 irq 9 on= palmbus0=0Agpiobus0: on gpio0=0Arandom: harvesting attach, = 8 bytes (4 bits) from gpiobus0=0Arandom: harvesting attach, 8 bytes (4 bits= ) from gpio0=0Apalmbus0: mem 0x100-0x11f irq 4 compat ralink,rt= 3050-timer (no drive=0Ar attached)=0Apalmbus0: mem 0x120-0x1= 2f irq 5 compat ralink,rt3050-wdt (no driv=0Aer attached)=0Apalmbus0: mem 0x300-0x3ff irq 7 compat ralink,rt3050-memc (no driver=A0=0Aattac= hed)=0Apalmbus0: mem 0x500-0x5ff irq 8 disabled compat ralink,rt= 3050-uart (n=0Ao driver attached)=0Agpioled0: at pin 14 on gpiob= us0=0Arandom: harvesting attach, 8 bytes (4 bits) from gpioled0=0Agpioled1:= at pin 11 on gpiobus0=0Arandom: harvesting attach, 8 bytes (4 b= its) from gpioled1=0Agpioled2: at pin 9 on gpiobus0=0Arandom: ha= rvesting attach, 8 bytes (4 bits) from gpioled2=0Agpioled3: at p= in 12 on gpiobus0=0Arandom: harvesting attach, 8 bytes (4 bits) from gpiole= d3=0Agpioc0: on gpio0=0Arandom: harvesting attach, 8 byte= s (4 bits) from gpioc0=0Apalmbus0: mem 0x638-0x65b disabled comp= at ralink,rt3050-gpio (no driv=0Aer attached)=0Apalmbus0: mem 0x= 660-0x683 disabled compat ralink,rt3050-gpio (no driv=0Aer attached)=0Aspi0= : mem 0xb00-0xbff on palmbus0=0Aspibus0: on spi0=0Amx25l0: at cs 0 mode 0 on spibus0=0Am= x25l0: mx25ll64, sector 65536 bytes, 128 sectors=0Arandom: harvesting attac= h, 8 bytes (4 bits) from mx25l0=0Arandom: harvesting attach, 8 bytes (4 bit= s) from spibus0=0Arandom: harvesting attach, 8 bytes (4 bits) from spi0=0Au= art0: mem 0xc00-0xcff irq 10 on palmbus0=0Auart0: con= sole (57971,n,8,1)=0Auart0: fast interrupt=0Auart0: PPS capture mode: DCDin= valid=0Arandom: harvesting attach, 8 bytes (4 bits) from uart0=0Aofwbus0: <= usbphy> compat ralink,rt3050-usbphy (no driver attached)=0Art0: mem 0x10100000-0x1010ffff irq 0 on o=0Afwbus0= =0Art0: RT305XF Ethernet MAC (rev 0x00000000)=0Art0: use hardcoded 00:18:e7= :d5:83:90 macaddr=0Art0: bpf attached=0Art0: Ethernet address: 00:18:e7:d5:= 83:90=0Arandom: harvesting attach, 8 bytes (4 bits) from rt0=0Amtkswitch0: = mem 0x10110000-0x10117fff irq 1 on ofwbus0=0Amiibus0: <= MII bus> on mtkswitch0=0Aukphy0: PHY = 0 on miibus0=0Aukphy0: OUI 0x000c43, model 0x0001, rev. 7=0Aukphy0:=A0 none= , 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto=0Arandom: harvesting= attach, 8 bytes (4 bits) from ukphy0=0Arandom: harvesting attach, 8 bytes = (4 bits) from miibus0=0Amiibus1: on mtkswitch0=0Aukphy1: PHY 1 on miibus1=0Aukphy1: OUI 0x000c43, mode= l 0x0001, rev. 7=0Aukphy1:=A0 none, 10baseT, 10baseT-FDX, 100baseTX, 100bas= eTX-FDX, auto=0Arandom: harvesting attach, 8 bytes (4 bits) from ukphy1=0Ar= andom: harvesting attach, 8 bytes (4 bits) from miibus1=0Amiibus2: on mtkswitch0=0Aukphy2: PHY 2 on mi= ibus2=0Aukphy2: OUI 0x000c43, model 0x0001, rev. 7=0Aukphy2:=A0 none, 10bas= eT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto=0Arandom: harvesting attach= , 8 bytes (4 bits) from ukphy2=0Arandom: harvesting attach, 8 bytes (4 bits= ) from miibus2=0Amiibus3: on mtkswitch0=0Aukphy3: PHY 3 on miibus3=0Aukphy3: OUI 0x000c43, model 0x000= 1, rev. 7=0Aukphy3:=A0 none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX= , auto=0Arandom: harvesting attach, 8 bytes (4 bits) from ukphy3=0Arandom: = harvesting attach, 8 bytes (4 bits) from miibus3=0Amiibus4: on mt= kswitch0=0Aukphy4: PHY 4 on miibus4= =0Aukphy4: OUI 0x000c43, model 0x0001, rev. 7=0Aukphy4:=A0 none, 10baseT, 1= 0baseT-FDX, 100baseTX, 100baseTX-FDX, auto=0Arandom: harvesting attach, 8 b= ytes (4 bits) from ukphy4=0Arandom: harvesting attach, 8 bytes (4 bits) fro= m miibus4=0Aetherswitch0: on mtkswitch0=0Arandom: harve= sting attach, 8 bytes (4 bits) from etherswitch0=0Amdio0: on mtkswit= ch0=0Arandom: harvesting attach, 8 bytes (4 bits) from mdio0=0Arandom: harv= esting attach, 8 bytes (4 bits) from mtkswitch0=0Aofwbus0: = mem 0x10180000-0x101bffff irq 2 compat ralink,rt3050-wm=0Aac (no driver att= ached)=0Aofwbus0: mem 0x101c0000-0x101fffff irq 3 disabled c= ompat ralink,r=0At3050-otg (no driver attached)=0Aofwbus0: comp= at gpio-leds (no driver attached)=0Aofwbus0: compat gpio= -keys-polled (no driver attached)=0Aclock0: on nexu= s0=0Apanic: Unable to add hard IRQ 7 handler=0AUptime: 1s=0AAutomatic reboo= t in 15 seconds - press a key on the console to abort=0ARebooting... From owner-freebsd-mips@freebsd.org Thu Aug 25 15:25:47 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 DA28CBC65B0 for ; Thu, 25 Aug 2016 15:25:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x242.google.com (mail-it0-x242.google.com [IPv6:2607:f8b0:4001:c0b::242]) (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 A56D31F34 for ; Thu, 25 Aug 2016 15:25:47 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x242.google.com with SMTP id d65so6335176ith.0 for ; Thu, 25 Aug 2016 08:25:47 -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=b2KGIN8gOS3hD1NKt15aRaGG9o1VrpTBspfnS4YBURQ=; b=ZTfIHhzqhwvZoC7cCQz27JL0xviA5+KcaTLjmD8/U8fYOeYNLcnORsbB8aPNpPZ3V0 BZF0hb/OyXEM056XlYoDJrqXNTPmys6jr/ldsYzRPdp0F0a8yFvAi2oMV30yLIun8cbC UEB/oJZvoybjkCkqIW2GbwcDFINCG+RAUWrsLfw9d6SVKAjKUEmj3JZ8WS85mey8wwhr 9ncxeapkizJ4S8C3/Jixx9qimThaHQoA+Bd2pnpOGSqQCF+y67YdHWoPcSKS76Tg7vDr FHC3YCltEqIckNO3VmzuvQ+2EvQrk0Gobbn7EAfW/BY7ePMkbG07vOnQdJaHjsphxF3w IP/Q== 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=b2KGIN8gOS3hD1NKt15aRaGG9o1VrpTBspfnS4YBURQ=; b=jnEJh6vH3/xkeTeLoVklsh9JtjayEa3ubt8DyTQxNs77avYOKTYz9EeZWdocckCNQ/ yA8KBfORe5CM2z+VCx5GYuEfuGZqlid36Oxoytd9QPzAGLUuXbnGKKYeerHRJVbPS7fJ vYVvHrZZdEqfFqFUkuUyeCWYJAZOw5Q3aejSazeClbuSRr8ueFjGfi1vRdye/FkIbr1w zq1z+G97ZqJt0QGExZv+/bOPTrJNorSAAAK+O78W+QOymwfQ4k5blhP4OHk6chG342zh kjxEAgV972g0oF0PSG21gyvl/OEBAvn5C2RT33f8Suizfk4pqvuNMPeWZIlz/mDtrE6Z wU1Q== X-Gm-Message-State: AEkooutzeYdvxGJQ9qzTeQ4tGM4Sve/mwcZJzybWpoWtliyMdiryRrC/nfLuDgocXp/1iKectGubD+VCTsfmgQ== X-Received: by 10.107.53.163 with SMTP id k35mr11268599ioo.75.1472138747010; Thu, 25 Aug 2016 08:25:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Thu, 25 Aug 2016 08:25:46 -0700 (PDT) In-Reply-To: <705503.18629.qm@web101707.mail.ssk.yahoo.co.jp> References: <705503.18629.qm@web101707.mail.ssk.yahoo.co.jp> From: Adrian Chadd Date: Thu, 25 Aug 2016 08:25:46 -0700 Message-ID: Subject: Re: sys/mips/mediatek kernel crash on RT3050 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: Thu, 25 Aug 2016 15:25:47 -0000 Hm, does it require INTRNG these days? -a On 24 August 2016 at 18:11, Mori Hiroki wrote: > Hi > > I build sys/mips/mediatek for RT3050 box at few days before head. > > This kernel crash. > > This build based on rt3050.dtsi. > > Some one know this problem ? > > Thanks. > > Starting kernel ... > > FDT DTB at: 0x802ce6f0 > CPU clock: 320MHz > Timer clock: 160MHz > UART clock: 106MHz > > U-Boot args (from 0 args): > None > Environment: > entry: mips_init() > RAM size: 32MB (assumed) > Cache info: > picache_stride = 4096 > picache_loopcount = 8 > pdcache_stride = 4096 > pdcache_loopcount = 4 > cpu0: MIPS Technologies processor v76.150 > MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes) > L1 i-cache: 4 ways of 256 sets, 32 bytes per line > L1 d-cache: 4 ways of 128 sets, 32 bytes per line > L2 cache: disabled > Config1=0xbea3319e > Config2=0x80000000 > Config3=0x420 > Physical memory chunk(s): > 0x334000 - 0x1ffffff, 30195712 bytes (7372 pages) > Maxmem is 0x2000000 > Copyright (c) 1992-2016 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-CURRENT #1 ed1832a(zrouter): Sun Aug 21 12:19:54 JST 2016 > hiroki@microserver:/storage/home/hiroki/obj/storage/home/hiroki/zrouter/tmp/ > mips.mipsel/storage/home/hiroki/freebsd/sys/Fon_FON2305E_FDT mips > gcc version 4.2.1 20070831 patched [FreeBSD] > Preloaded elf kernel "kernel" at 0x8032afb0. > real memory = 33554432 (32768K bytes) > Physical memory chunk(s): > 0x003c0000 - 0x01f3efff, 28831744 bytes (7039 pages) > avail memory = 28397568 (27MB) > ULE: setup cpu 0 > random: entropy device external interface > firmware: 'rt2860fw' version 0: 8192 bytes loaded at 0x802d86d0 > firmware: 'rt2561fw' version 0: 8192 bytes loaded at 0x802d2550 > firmware: 'rt2561sfw' version 0: 8192 bytes loaded at 0x802d45d0 > wlan: <802.11 Link Layer> > firmware: 'rt2661fw' version 0: 8192 bytes loaded at 0x802d6650 > null: > openfirm: > mem: > nexus0: > random: harvesting attach, 8 bytes (4 bits) from nexus0 > ofwbus0: on nexus0 > palmbus0: mem 0x10000000-0x101fffff on ofwbus0 > random: harvesting attach, 8 bytes (4 bits) from palmbus0 > random: harvesting attach, 8 bytes (4 bits) from ofwbus0 > cpupic0: on ofwbus0 > random: harvesting attach, 8 bytes (4 bits) from cpupic0 > sysc0: mem 0-0xff on palmbus0 > random: harvesting attach, 8 bytes (4 bits) from sysc0 > pinctrl0: on ofwbus0 > pinctrl0: GPIO mode start: 0x0000029d > Processing 1 pin-config node(s) in pinctrl-0 for spi@b00 > Processing 1 pin-config node(s) in pinctrl-0 for uartlite@c00 > Processing 1 pin-config node(s) in pinctrl-0 for pinctrl > pinctrl0: GPIO mode end : 0x0000005d > random: harvesting attach, 8 bytes (4 bits) from pinctrl0 > rstctrl0: on ofwbus0 > random: harvesting attach, 8 bytes (4 bits) from rstctrl0 > clkctrl0: on ofwbus0 > random: harvesting attach, 8 bytes (4 bits) from clkctrl0 > intc0: mem 0x200-0x2ff irq 6 on palmbus0 > random: harvesting attach, 8 bytes (4 bits) from intc0 > gpio0: mem 0x600-0x633 irq 9 on palmbus0 > gpiobus0: on gpio0 > random: harvesting attach, 8 bytes (4 bits) from gpiobus0 > random: harvesting attach, 8 bytes (4 bits) from gpio0 > palmbus0: mem 0x100-0x11f irq 4 compat ralink,rt3050-timer (no drive > r attached) > palmbus0: mem 0x120-0x12f irq 5 compat ralink,rt3050-wdt (no driv > er attached) > palmbus0: mem 0x300-0x3ff irq 7 compat ralink,rt3050-memc (no driver > attached) > palmbus0: mem 0x500-0x5ff irq 8 disabled compat ralink,rt3050-uart (n > o driver attached) > gpioled0: at pin 14 on gpiobus0 > random: harvesting attach, 8 bytes (4 bits) from gpioled0 > gpioled1: at pin 11 on gpiobus0 > random: harvesting attach, 8 bytes (4 bits) from gpioled1 > gpioled2: at pin 9 on gpiobus0 > random: harvesting attach, 8 bytes (4 bits) from gpioled2 > gpioled3: at pin 12 on gpiobus0 > random: harvesting attach, 8 bytes (4 bits) from gpioled3 > gpioc0: on gpio0 > random: harvesting attach, 8 bytes (4 bits) from gpioc0 > palmbus0: mem 0x638-0x65b disabled compat ralink,rt3050-gpio (no driv > er attached) > palmbus0: mem 0x660-0x683 disabled compat ralink,rt3050-gpio (no driv > er attached) > spi0: mem 0xb00-0xbff on palmbus0 > spibus0: on spi0 > mx25l0: at cs 0 mode 0 on spibus0 > mx25l0: mx25ll64, sector 65536 bytes, 128 sectors > random: harvesting attach, 8 bytes (4 bits) from mx25l0 > random: harvesting attach, 8 bytes (4 bits) from spibus0 > random: harvesting attach, 8 bytes (4 bits) from spi0 > uart0: mem 0xc00-0xcff irq 10 on palmbus0 > uart0: console (57971,n,8,1) > uart0: fast interrupt > uart0: PPS capture mode: DCDinvalid > random: harvesting attach, 8 bytes (4 bits) from uart0 > ofwbus0: compat ralink,rt3050-usbphy (no driver attached) > rt0: mem 0x10100000-0x1010ffff irq 0 on o > fwbus0 > rt0: RT305XF Ethernet MAC (rev 0x00000000) > rt0: use hardcoded 00:18:e7:d5:83:90 macaddr > rt0: bpf attached > rt0: Ethernet address: 00:18:e7:d5:83:90 > random: harvesting attach, 8 bytes (4 bits) from rt0 > mtkswitch0: mem 0x10110000-0x10117fff irq 1 on ofwbus0 > miibus0: on mtkswitch0 > ukphy0: PHY 0 on miibus0 > ukphy0: OUI 0x000c43, model 0x0001, rev. 7 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > random: harvesting attach, 8 bytes (4 bits) from ukphy0 > random: harvesting attach, 8 bytes (4 bits) from miibus0 > miibus1: on mtkswitch0 > ukphy1: PHY 1 on miibus1 > ukphy1: OUI 0x000c43, model 0x0001, rev. 7 > ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > random: harvesting attach, 8 bytes (4 bits) from ukphy1 > random: harvesting attach, 8 bytes (4 bits) from miibus1 > miibus2: on mtkswitch0 > ukphy2: PHY 2 on miibus2 > ukphy2: OUI 0x000c43, model 0x0001, rev. 7 > ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > random: harvesting attach, 8 bytes (4 bits) from ukphy2 > random: harvesting attach, 8 bytes (4 bits) from miibus2 > miibus3: on mtkswitch0 > ukphy3: PHY 3 on miibus3 > ukphy3: OUI 0x000c43, model 0x0001, rev. 7 > ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > random: harvesting attach, 8 bytes (4 bits) from ukphy3 > random: harvesting attach, 8 bytes (4 bits) from miibus3 > miibus4: on mtkswitch0 > ukphy4: PHY 4 on miibus4 > ukphy4: OUI 0x000c43, model 0x0001, rev. 7 > ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > random: harvesting attach, 8 bytes (4 bits) from ukphy4 > random: harvesting attach, 8 bytes (4 bits) from miibus4 > etherswitch0: on mtkswitch0 > random: harvesting attach, 8 bytes (4 bits) from etherswitch0 > mdio0: on mtkswitch0 > random: harvesting attach, 8 bytes (4 bits) from mdio0 > random: harvesting attach, 8 bytes (4 bits) from mtkswitch0 > ofwbus0: mem 0x10180000-0x101bffff irq 2 compat ralink,rt3050-wm > ac (no driver attached) > ofwbus0: mem 0x101c0000-0x101fffff irq 3 disabled compat ralink,r > t3050-otg (no driver attached) > ofwbus0: compat gpio-leds (no driver attached) > ofwbus0: compat gpio-keys-polled (no driver attached) > clock0: on nexus0 > panic: Unable to add hard IRQ 7 handler > Uptime: 1s > Automatic reboot in 15 seconds - press a key on the console to abort > Rebooting... > _______________________________________________ > 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" From owner-freebsd-mips@freebsd.org Thu Aug 25 16:31:29 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 50ECDBC55F0 for ; Thu, 25 Aug 2016 16:31:29 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 D2E45155B for ; Thu, 25 Aug 2016 16:31:28 +0000 (UTC) (envelope-from sgalabov@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id q128so246454040wma.1 for ; Thu, 25 Aug 2016 09:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7NnULaWYmgR9Czdwc1oq/PKSUJOoBpi2RnXUFPGMzBI=; b=IMHpy/C4UPuHO6n/JfoPijznROoLGmr6orr+d6i7imfkYaEmyn6k2zLqbhErnXQo7U ET5GMwlCXTPPckNSG7QY3OiOwiysXsbCwlNIdwcR9bZgIOFjBIBZOKpVznBL10I+245s qzQ8GJDpnfJnpS1iR0Lr5pfpXVbGAd6U1y1sKTIXnwmBRVGcsTDJV1yV6lgdewZ3HPZI hwRWp5kEnYr6o69KY1vbX9txI5oATq8yH5OX7vc4WOuuOaHsd1YKC3OxAmEUc07lfSw7 Zbx13lmPn2c0SP1nIBwLaiJfVLxTSY9gq4mfc/MsiOHDp665T6hHbsNy2VIgJ2QdmprG QWUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7NnULaWYmgR9Czdwc1oq/PKSUJOoBpi2RnXUFPGMzBI=; b=msBz/b+tOaEetmrPfv3Qf21FdP+CdVYzpN3m7rOc5sRqKifqZIQ9KSq34x+zBpeoLz omUcyW+NZdK9HxC3z4+ymPXckqIFKcICjdFa5NG3c8sm0Ti8HkSxaPpnLiFw+Zo2oCas TlJOUAC68t7uWXsANYoYYjczuYvu1GWjGiHe7kH0wsilTVZ4e29wyly2usk5BLePE8DY r42YDjKqndZMP7LhhOsSpqb6uujspsXFP6hA3W09o0nRQIB8digfgHNyHUKIrqqWrkur NY6z+tp6Ft3DpY8f/mj7GsWdvPdt1Jo6PccK368/eV0CZ1+AzjBKg3uUrkb3pdhmL3cA AQ9g== X-Gm-Message-State: AEkooushXGIQx8WR15y8zFqfor8SFxA3jG51tSyhCfvxt77o6DtbE55urm3hrQJyivVDSg== X-Received: by 10.28.27.143 with SMTP id b137mr31331145wmb.12.1472142686379; Thu, 25 Aug 2016 09:31:26 -0700 (PDT) Received: from [10.178.69.145] (85-118-92-24.mtel.net. [85.118.92.24]) by smtp.gmail.com with ESMTPSA id n2sm15932944wjd.1.2016.08.25.09.31.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 09:31:25 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: sys/mips/mediatek kernel crash on RT3050 From: Stanislav Galabov X-Mailer: iPhone Mail (12B440) In-Reply-To: Date: Thu, 25 Aug 2016 19:31:21 +0300 Cc: Mori Hiroki , "freebsd-mips@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <81B9B540-B1CB-406F-9F51-FDBDB451B4FC@gmail.com> References: <705503.18629.qm@web101707.mail.ssk.yahoo.co.jp> To: Adrian Chadd 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: Thu, 25 Aug 2016 16:31:29 -0000 Hi all, I am currently on vacation and will be back next week. I guess I'll find som= e time to look at this then if needed. Best wishes, Stanislav > On Aug 25, 2016, at 18:25, Adrian Chadd wrote: >=20 > Hm, does it require INTRNG these days? >=20 >=20 > -a >=20 >=20 >> On 24 August 2016 at 18:11, Mori Hiroki wrote: >> Hi >>=20 >> I build sys/mips/mediatek for RT3050 box at few days before head. >>=20 >> This kernel crash. >>=20 >> This build based on rt3050.dtsi. >>=20 >> Some one know this problem ? >>=20 >> Thanks. >>=20 >> Starting kernel ... >>=20 >> FDT DTB at: 0x802ce6f0 >> CPU clock: 320MHz >> Timer clock: 160MHz >> UART clock: 106MHz >>=20 >> U-Boot args (from 0 args): >> None >> Environment: >> entry: mips_init() >> RAM size: 32MB (assumed) >> Cache info: >> picache_stride =3D 4096 >> picache_loopcount =3D 8 >> pdcache_stride =3D 4096 >> pdcache_loopcount =3D 4 >> cpu0: MIPS Technologies processor v76.150 >> MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg sizes)= >> L1 i-cache: 4 ways of 256 sets, 32 bytes per line >> L1 d-cache: 4 ways of 128 sets, 32 bytes per line >> L2 cache: disabled >> Config1=3D0xbea3319e >> Config2=3D0x80000000 >> Config3=3D0x420 >> Physical memory chunk(s): >> 0x334000 - 0x1ffffff, 30195712 bytes (7372 pages) >> Maxmem is 0x2000000 >> Copyright (c) 1992-2016 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-CURRENT #1 ed1832a(zrouter): Sun Aug 21 12:19:54 JST 2016 >> hiroki@microserver:/storage/home/hiroki/obj/storage/home/hiroki/zroute= r/tmp/ >> mips.mipsel/storage/home/hiroki/freebsd/sys/Fon_FON2305E_FDT mips >> gcc version 4.2.1 20070831 patched [FreeBSD] >> Preloaded elf kernel "kernel" at 0x8032afb0. >> real memory =3D 33554432 (32768K bytes) >> Physical memory chunk(s): >> 0x003c0000 - 0x01f3efff, 28831744 bytes (7039 pages) >> avail memory =3D 28397568 (27MB) >> ULE: setup cpu 0 >> random: entropy device external interface >> firmware: 'rt2860fw' version 0: 8192 bytes loaded at 0x802d86d0 >> firmware: 'rt2561fw' version 0: 8192 bytes loaded at 0x802d2550 >> firmware: 'rt2561sfw' version 0: 8192 bytes loaded at 0x802d45d0 >> wlan: <802.11 Link Layer> >> firmware: 'rt2661fw' version 0: 8192 bytes loaded at 0x802d6650 >> null: >> openfirm: >> mem: >> nexus0: >> random: harvesting attach, 8 bytes (4 bits) from nexus0 >> ofwbus0: on nexus0 >> palmbus0: mem 0x10000000-0x101fffff on ofwbus0 >> random: harvesting attach, 8 bytes (4 bits) from palmbus0 >> random: harvesting attach, 8 bytes (4 bits) from ofwbus0 >> cpupic0: on ofwbus0 >> random: harvesting attach, 8 bytes (4 bits) from cpupic0 >> sysc0: mem 0-0xff on palmbus0 >> random: harvesting attach, 8 bytes (4 bits) from sysc0 >> pinctrl0: on ofwbus0 >> pinctrl0: GPIO mode start: 0x0000029d >> Processing 1 pin-config node(s) in pinctrl-0 for spi@b00 >> Processing 1 pin-config node(s) in pinctrl-0 for uartlite@c00 >> Processing 1 pin-config node(s) in pinctrl-0 for pinctrl >> pinctrl0: GPIO mode end : 0x0000005d >> random: harvesting attach, 8 bytes (4 bits) from pinctrl0 >> rstctrl0: on ofwbus0 >> random: harvesting attach, 8 bytes (4 bits) from rstctrl0 >> clkctrl0: on ofwbus0 >> random: harvesting attach, 8 bytes (4 bits) from clkctrl0 >> intc0: mem 0x200-0x2ff irq 6 on palmbus0 >> random: harvesting attach, 8 bytes (4 bits) from intc0 >> gpio0: mem 0x600-0x633 irq 9 on palmbus0 >> gpiobus0: on gpio0 >> random: harvesting attach, 8 bytes (4 bits) from gpiobus0 >> random: harvesting attach, 8 bytes (4 bits) from gpio0 >> palmbus0: mem 0x100-0x11f irq 4 compat ralink,rt3050-timer (n= o drive >> r attached) >> palmbus0: mem 0x120-0x12f irq 5 compat ralink,rt3050-wdt (= no driv >> er attached) >> palmbus0: mem 0x300-0x3ff irq 7 compat ralink,rt3050-memc (no d= river >> attached) >> palmbus0: mem 0x500-0x5ff irq 8 disabled compat ralink,rt3050-= uart (n >> o driver attached) >> gpioled0: at pin 14 on gpiobus0 >> random: harvesting attach, 8 bytes (4 bits) from gpioled0 >> gpioled1: at pin 11 on gpiobus0 >> random: harvesting attach, 8 bytes (4 bits) from gpioled1 >> gpioled2: at pin 9 on gpiobus0 >> random: harvesting attach, 8 bytes (4 bits) from gpioled2 >> gpioled3: at pin 12 on gpiobus0 >> random: harvesting attach, 8 bytes (4 bits) from gpioled3 >> gpioc0: on gpio0 >> random: harvesting attach, 8 bytes (4 bits) from gpioc0 >> palmbus0: mem 0x638-0x65b disabled compat ralink,rt3050-gpio (= no driv >> er attached) >> palmbus0: mem 0x660-0x683 disabled compat ralink,rt3050-gpio (= no driv >> er attached) >> spi0: mem 0xb00-0xbff on palmbus0 >> spibus0: on spi0 >> mx25l0: at cs 0 mode 0 on spibus0 >> mx25l0: mx25ll64, sector 65536 bytes, 128 sectors >> random: harvesting attach, 8 bytes (4 bits) from mx25l0 >> random: harvesting attach, 8 bytes (4 bits) from spibus0 >> random: harvesting attach, 8 bytes (4 bits) from spi0 >> uart0: mem 0xc00-0xcff irq 10 on palmbus0 >> uart0: console (57971,n,8,1) >> uart0: fast interrupt >> uart0: PPS capture mode: DCDinvalid >> random: harvesting attach, 8 bytes (4 bits) from uart0 >> ofwbus0: compat ralink,rt3050-usbphy (no driver attached) >> rt0: mem 0x10100000-0x1010ffff irq= 0 on o >> fwbus0 >> rt0: RT305XF Ethernet MAC (rev 0x00000000) >> rt0: use hardcoded 00:18:e7:d5:83:90 macaddr >> rt0: bpf attached >> rt0: Ethernet address: 00:18:e7:d5:83:90 >> random: harvesting attach, 8 bytes (4 bits) from rt0 >> mtkswitch0: mem 0x10110000-0x10117fff irq 1 on ofwbus= 0 >> miibus0: on mtkswitch0 >> ukphy0: PHY 0 on miibus0 >> ukphy0: OUI 0x000c43, model 0x0001, rev. 7 >> ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> random: harvesting attach, 8 bytes (4 bits) from ukphy0 >> random: harvesting attach, 8 bytes (4 bits) from miibus0 >> miibus1: on mtkswitch0 >> ukphy1: PHY 1 on miibus1 >> ukphy1: OUI 0x000c43, model 0x0001, rev. 7 >> ukphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> random: harvesting attach, 8 bytes (4 bits) from ukphy1 >> random: harvesting attach, 8 bytes (4 bits) from miibus1 >> miibus2: on mtkswitch0 >> ukphy2: PHY 2 on miibus2 >> ukphy2: OUI 0x000c43, model 0x0001, rev. 7 >> ukphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> random: harvesting attach, 8 bytes (4 bits) from ukphy2 >> random: harvesting attach, 8 bytes (4 bits) from miibus2 >> miibus3: on mtkswitch0 >> ukphy3: PHY 3 on miibus3 >> ukphy3: OUI 0x000c43, model 0x0001, rev. 7 >> ukphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> random: harvesting attach, 8 bytes (4 bits) from ukphy3 >> random: harvesting attach, 8 bytes (4 bits) from miibus3 >> miibus4: on mtkswitch0 >> ukphy4: PHY 4 on miibus4 >> ukphy4: OUI 0x000c43, model 0x0001, rev. 7 >> ukphy4: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto >> random: harvesting attach, 8 bytes (4 bits) from ukphy4 >> random: harvesting attach, 8 bytes (4 bits) from miibus4 >> etherswitch0: on mtkswitch0 >> random: harvesting attach, 8 bytes (4 bits) from etherswitch0 >> mdio0: on mtkswitch0 >> random: harvesting attach, 8 bytes (4 bits) from mdio0 >> random: harvesting attach, 8 bytes (4 bits) from mtkswitch0 >> ofwbus0: mem 0x10180000-0x101bffff irq 2 compat ralink,rt= 3050-wm >> ac (no driver attached) >> ofwbus0: mem 0x101c0000-0x101fffff irq 3 disabled compat r= alink,r >> t3050-otg (no driver attached) >> ofwbus0: compat gpio-leds (no driver attached) >> ofwbus0: compat gpio-keys-polled (no driver attached) >> clock0: on nexus0 >> panic: Unable to add hard IRQ 7 handler >> Uptime: 1s >> Automatic reboot in 15 seconds - press a key on the console to abort >> Rebooting... >> _______________________________________________ >> 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"