From owner-freebsd-mips@freebsd.org Sun Jun 18 03:52:51 2017 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 4AB83D88033 for ; Sun, 18 Jun 2017 03:52:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::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 CC70582392 for ; Sun, 18 Jun 2017 03:52:50 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id x70so53407868wme.0 for ; Sat, 17 Jun 2017 20:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6Ap4yu0RHm4kBlaBvfJKgoseNL63zGb1V9leacngfbk=; b=nKg8Ku22JrK3UlucVYV7MEbHa1ihh4hUS1NN3dpIHdx9xdST7VuFDZPUl71kG6v20j 8oSA937n0IJD3AH/b3gFEmn3LnvCTwyyfJblI09swSgdh652D+yl7HZRmPdKCjCZbqTp nemZYdNDRjhrycW/k+/721Gl60lirzXErwU6gWPY4itaIkWUzppD/nN3FaI+bfF3FyFN 8ztzzh2R+U/K399d1/FSMZkaa0G9LaKNtInL+Ysn3DXZ75u7WqAJ0EpGv3gJq+W3y81D cILwb3hfQhUKFLGKQuhBO2CxcZKr9QuaRaBoKzkD8K/HklhTu1YtoGvVsZG8LOJT8/ob hW2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6Ap4yu0RHm4kBlaBvfJKgoseNL63zGb1V9leacngfbk=; b=ntdvS80GyKVwonZawiDiaicikEIg0mJ5K4SzcLICXbR9+Onv1JdXBJB3z4nVCCu3eR l2QY/idfj6oP2/KxhC+rGx/4PNJl/5GRfjOjFcyU7qv8hDyL/56VIdJhgi/rULgzCk0M 5lKonlqp3oh9NGMoOuWpKXs2ZaBZFo9C1M3sJCrj3YYMvYl1IywdjA6PhMKWDJhAl8Mt o0pRS6wEKcZ0z1rGnIZMqKb/Am3Lfdf3tdIzUf8r2+KV7mar/lrS6+2bH5+H/U9dvKLb YwBJnd0mDOootJb7GyIgvwFOl6pJM+FSipH+MOwHnsX7B770mhygCtLYIOdYxjjW3tj7 HNKA== X-Gm-Message-State: AKS2vOxgPYcnzjj6OuUcjTL/imMk4PL/t95hx1irz05w5IADyB+aZgt8 TIZzoYI9z6RApyp44u1GnRIMaZ8gsA== X-Received: by 10.28.10.6 with SMTP id 6mr11642817wmk.5.1497757969240; Sat, 17 Jun 2017 20:52:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.183.138 with HTTP; Sat, 17 Jun 2017 20:52:48 -0700 (PDT) In-Reply-To: <551993.21971.qm@web101703.mail.ssk.yahoo.co.jp> References: <632017.92175.qm@web101706.mail.ssk.yahoo.co.jp> <805328.90571.qm@web101707.mail.ssk.yahoo.co.jp> <108182.74391.qm@web101702.mail.ssk.yahoo.co.jp> <623774.68843.qm@web101719.mail.ssk.yahoo.co.jp> <20170214214631.27afb824@kan> <551993.21971.qm@web101703.mail.ssk.yahoo.co.jp> From: Adrian Chadd Date: Sat, 17 Jun 2017 20:52:48 -0700 Message-ID: Subject: Re: kld problem at Atheros AR9132 To: Mori Hiroki Cc: Alexander Kabaev , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2017 03:52:51 -0000 hiya, you're not booting an elf kernel, right? You're booting a binary only kernel with none of the elf bits included (ie, the header, other sections), etc? Right? You can't do kldload if you're not booting an elf kernel because the kernel elf linker doesn't know how to handle it. This is why freebsd-wifi-build boots elf kernels. :-) -a On 15 June 2017 at 06:15, Mori Hiroki wrote: > Hi. > > I still have this problem. I seem this is endian problem. > > microserver % cmp -l Onion_Omega_kernel.binutil.ok Onion_Omega_kernel.elfcopy.ng > | head > 3055349 0 3 > 3055350 0 20 > 3055351 20 0 > 3055352 3 0 > 3055353 0 111 > 3055354 0 32 > 3055355 32 0 > 3055356 111 0 > 3055357 0 21 > 3055358 0 24 > > Onion_Omega_kernel.binutil.ok made by objcopy(GNU objcopy 2.17.50 [FreeBSD] 2007-07-03) > > > Onion_Omega_kernel.elfcopy.ng made by objcopy (elftoolchain r3520M). > > > Regards > > Hiroki Mori > ----- Original Message ----- >>From: Alexander Kabaev >>To: Adrian Chadd >>Cc: Mori Hiroki ; "freebsd-mips@freebsd.org" >>Date: 2017/2/15, Wed 11:46 >>Subject: Re: kld problem at Atheros AR9132 >> >>On Tue, 14 Feb 2017 17:02:52 -0800 >>Adrian Chadd wrote: >> >>> Hiya, >>> >>> ok. why can't it boot ELF? Just set entry point to after the ELF >>> header. >>> >>> -adrian >>> >> >>We provide support support for wrapping the kernel and relevant >>metadata into a trampoline binary. Maybe it should be used here? >> >>-- >>Alexander Kabaev >> >> >> From owner-freebsd-mips@freebsd.org Sun Jun 18 05:50:50 2017 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 2D485D899D4 for ; Sun, 18 Jun 2017 05:50:50 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh601-vm0.bullet.mail.ssk.yahoo.co.jp (nh601-vm0.bullet.mail.ssk.yahoo.co.jp [182.22.90.9]) by mx1.freebsd.org (Postfix) with SMTP id C110D847B0 for ; Sun, 18 Jun 2017 05:50:49 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.105] by nh601.bullet.mail.ssk.yahoo.co.jp with NNFMP; 18 Jun 2017 05:48:14 -0000 Received: from [182.22.91.130] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 18 Jun 2017 05:48:14 -0000 Received: from [127.0.0.1] by omp603.mail.ssk.yahoo.co.jp with NNFMP; 18 Jun 2017 05:48:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 431252.30903.bm@omp603.mail.ssk.yahoo.co.jp Received: (qmail 77367 invoked by uid 60001); 18 Jun 2017 05:48:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1497764894; bh=U1n7Zb0tWvKdlwvY6FVfEls2zLpz2o76B+syB3+wD3g=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=UXCt8SGlPwjeXqNGIjBHSf5B/VvCG3u72xps8qTUbrnSSNy2EDZS716QLcolMJMKn+SCtFPGxAdsPhqtesBNhq5ysqcdIimeYF3EEV+O8wEgdsCJjGU2gTn+iFrH+5BJ7C+nkwmad2AaA2XzVtvXbj9nHPQ+xZTPVBRQUbg5Fb4= 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:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=R9O9ExF3KqpEo3Syn1bhUlleGgxFme/gU+2cXmnPTqBkSOu3st+la+ROnNvARf0kqtQjTNxGMo0TGm3vwsyyEhSxho2GJRHIbYLH2ZfiPC7Q0HtrT6cSuI1b+V190jUnK/EPcUUlGX4B+d59SIOg5fv6dCSXV/7q8JHq2gdHrbw=; Message-ID: <260635.74721.qm@web101709.mail.ssk.yahoo.co.jp> X-YMail-OSG: bQdMUxMVM1mCaa5Q2l5fsQ7NMIiPrBShiqYD3J3XwD5Fd8KgZY63yVKQufLnL82bED9arXA8C152QReWQ_87r4AaXEfHYQ_5.UQtVrxjToJKwSG34f73p52bQCqCZf_mtO5ijc8W2sJX5W.f7sE7CbgbhPaSmL5qXsdD5WpqH1u0VYarcPDRMQ7LupyM.V8MFQkfriKARcMXH4oJQGcmVBC_2rvVnL0B3N7qsW15ZabZqR3L03zIYZR0RhJt2HneTSkgeSrHupQRKAM6jgnAtGvvIuwKLAfWcplhpj5A8Iq_5DnF36g6lO6aaVYyUi7BY9_GB3x5abum5Ht1daeVDrsPa8mYniNoo2QsVz49o0Dmjh5uf_.W.n4e0FspMsGR5YeYl6dKnpFUD04gW8jSqr2eI8Xl10ZxNt0OeJGxSOhtJrud6lOLhHhB6mIfFe3_cAZFeU54220JDJoApx2M8lH6jASZzQ9vKJpaX8ia_lTPnFoFlW7zXXiHQ6pY7vMkCqI3g4yCZL9aSo_fEIa0egU5kmpYydqHEJLc7_NCJc2Iu4OAZWuhsrM_y7TaHf8NIFH0cp_LmLY95DZu_673F8osme7D00ce5m3qqHlvWxAl2w-- Received: from [61.24.128.67] by web101709.mail.ssk.yahoo.co.jp via HTTP; Sun, 18 Jun 2017 14:48:13 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: MmT8gQ0VM1mnlJJYq5Hj5tixVIEW09YdSsVxTF.0DxRsICxfLA8Xo6Ipqmhq.m9XXO_VaiPRsvALTVHxKJob3f..S5MagVtnAangTjFkTIzrsXT2jt2QwtTP.2s0fL4VtWeC References: <632017.92175.qm@web101706.mail.ssk.yahoo.co.jp> <805328.90571.qm@web101707.mail.ssk.yahoo.co.jp> <108182.74391.qm@web101702.mail.ssk.yahoo.co.jp> <623774.68843.qm@web101719.mail.ssk.yahoo.co.jp> <20170214214631.27afb824@kan> <551993.21971.qm@web101703.mail.ssk.yahoo.co.jp> Date: Sun, 18 Jun 2017 14:48:13 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: kld problem at Atheros AR9132 To: Adrian Chadd Cc: Alexander Kabaev , "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.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2017 05:50:50 -0000 Hi=0A=0AThis is not boot issue. This is objcopy in elftoolchain issue.=0A= =0ANow objcopy is broken on big endian because of elftoolchain=0Aobjcopy is= not same binutil objcopy.=0A=0AHiroki Mori=0A=0A=0A----- Original Message = -----=0A> From: Adrian Chadd =0A> To: Mori Hiroki <= yamori813@yahoo.co.jp>=0A> Cc: Alexander Kabaev ; "freebs= d-mips@freebsd.org" =0A> Date: 2017/6/18, Sun 12:= 52=0A> Subject: Re: kld problem at Atheros AR9132=0A> =0A> hiya,=0A> =0A> y= ou're not booting an elf kernel, right? You're booting a binary only=0A> ke= rnel with none of the elf bits included (ie, the header, other=0A> sections= ), etc? Right?=0A> =0A> You can't do kldload if you're not booting an elf k= ernel because the=0A> kernel elf linker doesn't know how to handle it.=0A> = =0A> This is why freebsd-wifi-build boots elf kernels. :-)=0A> =0A> =0A> -a= =0A> =0A> =0A> On 15 June 2017 at 06:15, Mori Hiroki wrote:=0A>> Hi.=0A>> =0A>> I still have this problem. I seem this is en= dian problem.=0A>> =0A>> microserver % cmp -l Onion_Omega_kernel.binutil.o= k =0A> Onion_Omega_kernel.elfcopy.ng=0A>> =A0 | head=0A>> 3055349=A0 0=A0= 3=0A>> 3055350=A0 0=A0 20=0A>> 3055351=A0 20=A0 0=0A>> 3055352=A0 3= =A0 0=0A>> 3055353=A0 0 111=0A>> 3055354=A0 0=A0 32=0A>> 3055355=A0 3= 2=A0 0=0A>> 3055356 111=A0 0=0A>> 3055357=A0 0=A0 21=0A>> 3055358=A0 = 0=A0 24=0A>> =0A>> Onion_Omega_kernel.binutil.ok made by objcopy(GNU objc= opy 2.17.50 [FreeBSD] =0A> 2007-07-03)=0A>> =0A>> =0A>> Onion_Omega_kernel= .elfcopy.ng made by objcopy (elftoolchain r3520M).=0A>> =0A>> =0A>> Regard= s=0A>> =0A>> Hiroki Mori=0A>> ----- Original Message -----=0A>>> From: Al= exander Kabaev =0A>>> To: Adrian Chadd =0A>>> Cc: Mori Hiroki ; =0A> "freebsd-mips@fr= eebsd.org" =0A>>> Date: 2017/2/15, Wed 11:46=0A>>= > Subject: Re: kld problem at Atheros AR9132=0A>>> =0A>>> On Tue, 14 Feb 20= 17 17:02:52 -0800=0A>>> Adrian Chadd wrote:=0A>>> = =0A>>>> Hiya,=0A>>>> =0A>>>> ok. why can't it boot ELF? Just set entry po= int to after the =0A> ELF=0A>>>> header.=0A>>>> =0A>>>> -adrian=0A>>>> = =0A>>> =0A>>> We provide support support for wrapping the kernel and releva= nt=0A>>> metadata into a trampoline binary. Maybe it should be used here?= =0A>>> =0A>>> --=0A>>> Alexander Kabaev=0A>>> =0A>>> =0A>>> =0A> From owner-freebsd-mips@freebsd.org Sun Jun 18 10:15:33 2017 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 54B1CD8DE25 for ; Sun, 18 Jun 2017 10:15:33 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::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 197F466D0E for ; Sun, 18 Jun 2017 10:15:33 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x234.google.com with SMTP id m47so44806289iti.0 for ; Sun, 18 Jun 2017 03:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=WJcdWpX/dJEBO2VgC4c0j/IWM1lKsER6EX7pNFvWUfA=; b=LW820B2Kx1rPqTSqnmTWY/pzM5Zq6HfCC70Cge8Bwpn9IA85awfg8ML8+8uLvrvYMV gRy8uIHg6oufnn+zyJ6Z66qHCgnFWgoMWAusVk6j6h4/L+M6M82iU2aaFDgHKhZMAepa 4+mPsoWBNj+PutmrtX537wjztuhpdianoHpbKmMHBl745I2Rkd1cMT1ljP/8WynmTlMZ 83NTzCL8P8N01nruCj65iCojtBr7ADd8yh1Eg//KNuoOzw9nGOr9F8T5v0JXoD5TpFTQ LvNCs3N7fE7+s6I1kwT33g13WP0FxHgGM1slan6C1RPH9wJqy4tqp94pEwvnRQUuALSo 2nMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=WJcdWpX/dJEBO2VgC4c0j/IWM1lKsER6EX7pNFvWUfA=; b=f56MvxLaxQTon3OnHHCDGAt3AQZvrbPzFG1PXvMBiy9w1YvG2SxckI4JL7z7F9A3zI 2YexIT+LcGyn25nKPWFAjRNBim1mGs/55Kw4iqMhYhqy2TFZcTvGCpQ3+/T97PRm9eWf 95bL1RFAmzhflww4HyrAKu4OOTCkmAVYZyxn+VwCn5mFO7dF24M7Tzo6z9b8UEEpMmg/ kFcT8HUNmoqRrz1mltgbrG4TcHE9RxdGfwaTTdxeWT/XoX4qiInn1ZQ25mw1e6AAvpq5 7iv0bX5KlaR+epVm7QDP9zFWy9W3aOr3BHcsmpQL8vdme7kLZXOoGnJ0Lt9JONlXwTFf sueA== X-Gm-Message-State: AKS2vOzb6U3oKZd8wKeIp27fO/XmrAzEArr0qahoibQLIaulQtU521RA KYyNBfRKqD2ZGSQo5mpv6jKP5LpcIA== X-Received: by 10.36.65.18 with SMTP id x18mr18322324ita.88.1497780931497; Sun, 18 Jun 2017 03:15:31 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.10.86 with HTTP; Sun, 18 Jun 2017 03:15:11 -0700 (PDT) In-Reply-To: <551993.21971.qm@web101703.mail.ssk.yahoo.co.jp> References: <632017.92175.qm@web101706.mail.ssk.yahoo.co.jp> <805328.90571.qm@web101707.mail.ssk.yahoo.co.jp> <108182.74391.qm@web101702.mail.ssk.yahoo.co.jp> <623774.68843.qm@web101719.mail.ssk.yahoo.co.jp> <20170214214631.27afb824@kan> <551993.21971.qm@web101703.mail.ssk.yahoo.co.jp> From: Ed Maste Date: Sun, 18 Jun 2017 06:15:11 -0400 X-Google-Sender-Auth: LYNZGLrdcnjt1eMQYoDQyN4qWCw Message-ID: Subject: Re: kld problem at Atheros AR9132 To: Mori Hiroki Cc: Alexander Kabaev , Adrian Chadd , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2017 10:15:33 -0000 On 15 June 2017 at 09:15, Mori Hiroki wrote: > Hi. > > I still have this problem. I seem this is endian problem. > > microserver % cmp -l Onion_Omega_kernel.binutil.ok Onion_Omega_kernel.elfcopy.ng > | head > 3055349 0 3 > 3055350 0 20 > 3055351 20 0 > 3055352 3 0 Can you extract and share the elfcopy/objcopy invocation? If you can also make the ELF input file available I will investigate. From owner-freebsd-mips@freebsd.org Sun Jun 18 11:10:49 2017 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 92E2FD8E662 for ; Sun, 18 Jun 2017 11:10:49 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh503-vm1.bullet.mail.kks.yahoo.co.jp (nh503-vm1.bullet.mail.kks.yahoo.co.jp [183.79.56.187]) by mx1.freebsd.org (Postfix) with SMTP id 2591A67BC5 for ; Sun, 18 Jun 2017 11:10:48 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.140] by nh503.bullet.mail.kks.yahoo.co.jp with NNFMP; 18 Jun 2017 11:10:42 -0000 Received: from [183.79.101.63] by t503.bullet.mail.kks.yahoo.co.jp with NNFMP; 18 Jun 2017 11:10:42 -0000 Received: from [127.0.0.1] by omp507.mail.kks.yahoo.co.jp with NNFMP; 18 Jun 2017 11:10:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 186477.32202.bm@omp507.mail.kks.yahoo.co.jp Received: (qmail 1292 invoked by uid 60001); 18 Jun 2017 11:10:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1497784241; bh=B2Oju9oHbo802oNcma+GUsvJpkmxUSTb9128ftrzh/k=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Vk5Ug5aDop4ZgvDIEiA9BR8PfWXsn2uNwZtvYSTUUp0OpY/lqWlcL+Hb3J3HQ0rZF0KJRddAVvic+UEOISmJcnqEF+COFlZQpx9ha2e+UVLk0rq7jS4+mU2FPHpAFXOedjxqmu2qqNYquQx0m15sMsNNWcvAZE+Hi+DjUIabF48= 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:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RN/di9KIbGpPpnArkvTugKoqyE4wXnpBOcQqkryBKK3eejR1lEYsCN/MvBbYyEl7cpGEjiwz0I0oayAt6oFeujz921cW3To8tMBrcD9WkPLQb1hjMK8sXeUGxxkUH6R48WmtShIK+I11zQUgaRzUc7LU3nPsP3gw4hLSRiD4mio=; Message-ID: <839292.84048.qm@web101712.mail.ssk.yahoo.co.jp> X-YMail-OSG: f.jyQ5EVM1nEPn071u6MSDD2URA4bEpmhjQNSVx965wEHFnrYyZN09eXFZBQ3Kjbz_3fY6DFnpv.mqEmzu7WOZWeHrhuILgvnBuTsHlOD4QvXKaNU2CPfVvnS.1oPZEOrOasINuX1LxuKdVHoAv8892aB0MDFIGsr.Q6elpV_YIj4M9MpBoO42qK0pUdf66x.IELO1GfofCSUqU4P34Jg0tlaeoIglhIfTw2SeyXsBV0xtC8SOrKnMRlbLnwWBOhW.IMiOucX3Xjd0QL8QUVqR.y6CymY8hiacLbzKMJYEKbUGcyDkUvuWH4jM24lPnyN6tfaEP942eAeXK6KgPSjpXViFlsU8IrcMdPdf2uJZmBJY4m5Mqfe.fZtBzkWvu.9oEQJsA_Q3hSl5tZa3d3dg6uKbmb7sECAwaYHMhwMl5o3_C0oT9NHVXX85NsO_FkGBxZO7zi6wRggH_UvGoDELZey1JjGHYm27gsfPGjEmK9SPY_Ej3qxjEgHvXaDQU5lDWPkyJRVuHcTKQYqKrLcjtTT28BdM83TzPw_tDj.4tIAgegLs13GqBve7NoRsnVRwGseXAGx_3JD98.Rblqb_lYS6jxPvPkk2DPjAsD4l34Lw-- Received: from [61.24.128.67] by web101712.mail.ssk.yahoo.co.jp via HTTP; Sun, 18 Jun 2017 20:10:41 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: 3H0WmNYVM1kPz89GiQE1zDlrJGgyR1t1bOyqSsdQNT.2lkT6LXjzD61o9NBPJugZBgFQriAyUclBQSrC_VeQcG8eO.kM5vWPyWT0WXocpVoL1lRqMf3kLfrClrsn7ZDwF9RE References: <632017.92175.qm@web101706.mail.ssk.yahoo.co.jp> <805328.90571.qm@web101707.mail.ssk.yahoo.co.jp> <108182.74391.qm@web101702.mail.ssk.yahoo.co.jp> <623774.68843.qm@web101719.mail.ssk.yahoo.co.jp> <20170214214631.27afb824@kan> <551993.21971.qm@web101703.mail.ssk.yahoo.co.jp> Date: Sun, 18 Jun 2017 20:10:41 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: kld problem at Atheros AR9132 To: Ed Maste Cc: "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.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2017 11:10:49 -0000 Hi=0A=0AI do convert by objcopy as this.=0A=0A% /foo/opjcopy -O binary=A0On= ion_Omega_kernel=A0Onion_Omega_kernel.ng=0A% /bar/opjcopy -O=A0binary=A0Oni= on_Omega_kernel Onion_Omega_kernel.ok=0A=0AThis is file.=0A=0Ahttps://www.d= ropbox.com/sh/p0dw40q9ihjfwxx/AABgpY9XINYkCPe6Up1mWKeDa?dl=3D0=0A=0A=0AOnio= n_Omega_kernel is original elf kernel.=0A=0A=0AOnion_Omega_kernel.ok is use= d binutil objcopy.=0A=0A=0AOnion_Omega_kernel.ng is used elftoolchain objco= py.=0A=0A=0A=0ARegards.=0A=0AHiroki Mori=0A=0A=0A----- Original Message ---= --=0A> From: Ed Maste =0A> To: Mori Hiroki =0A> Cc: Alexander Kabaev ; Adrian Chadd ; "freebsd-mips@freebsd.org" = =0A> Date: 2017/6/18, Sun 19:15=0A> Subject: Re: kld problem at Atheros AR9= 132=0A> =0A> On 15 June 2017 at 09:15, Mori Hiroki = wrote:=0A>> Hi.=0A>> =0A>> I still have this problem. I seem this is endi= an problem.=0A>> =0A>> microserver % cmp -l Onion_Omega_kernel.binutil.ok = =0A> Onion_Omega_kernel.elfcopy.ng=0A>> =A0 | head=0A>> 3055349=A0 0=A0 = 3=0A>> 3055350=A0 0=A0 20=0A>> 3055351=A0 20=A0 0=0A>> 3055352=A0 3= =A0 0=0A> =0A> Can you extract and share the elfcopy/objcopy invocation? I= f you can=0A> also make the ELF input file available I will investigate.=0A= > From owner-freebsd-mips@freebsd.org Tue Jun 20 00:23:11 2017 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 0D5BBDA788D for ; Tue, 20 Jun 2017 00:23:11 +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 A10C165102 for ; Tue, 20 Jun 2017 00:23:10 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.139] by nh503.bullet.mail.kks.yahoo.co.jp with NNFMP; 20 Jun 2017 00:21:24 -0000 Received: from [183.79.101.63] by t502.bullet.mail.kks.yahoo.co.jp with NNFMP; 20 Jun 2017 00:21:24 -0000 Received: from [127.0.0.1] by omp507.mail.kks.yahoo.co.jp with NNFMP; 20 Jun 2017 00:21:24 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 219407.38385.bm@omp507.mail.kks.yahoo.co.jp Received: (qmail 99179 invoked by uid 60001); 20 Jun 2017 00:21:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1497918083; bh=Ctc9vfT93fBuPAxTKmhQFKWl20UVm9OE1ahYAtoInYw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uDHE35vJingBaOq7TpM77EffGOp8YzFLKAXSWwh7BZaxELHRqCQtPylJXV+NHP7i7sCsp3KAWOfLMYxl9dq+mxqfIWuqGpsF++HD+rkj7tJ60HlstYTySxEMofNQFBX9ValdCU689AL8pn0oLlrwrcfM4BTj5iW4YXKvIz3bZdY= 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:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Zb4HFex++siOhawbNDiQGT0DaYC42Wzl/Z1xgvOUKYn5K0BHry9z+AQKjA03VhjzEndOXhQ5GwEiM7/SJ2XAjVpsZAgSkUk30fnDa5ylCnaqNnnoSbHHF1vgtnYIEa1t9ljlEzTli2MGRPvZYXb8CbThgc92kfQQDTIrOohiKi0=; Message-ID: <880451.93445.qm@web101705.mail.ssk.yahoo.co.jp> X-YMail-OSG: _i4ESEoVM1nDvY_iUFeSPOqcQmn.BJaJnyyk.0sOZ0z13UzG5bYxXATUlv4YCjnYyBRqIKnd4Sc8j.E7VJHFnRVcNVgEYRW_8c_XuOeHr9WkmvGj66efiqjvIJGn3ZDJn3H30UZ8s2B_wGwE6HKPFAHa9hdVd8K7DojVFpzRkCCTuds7keranTK5pguwdDS5Wo7WsQ6h3RKgd6xu5QxoUUb6zuOznWRTBipOwCXuWEuyMZ3TT6Wsc8LhbsK7lTUcAv_iRPq596v3SPMKgoKh4r9ZvLuu2lytcIZ_mxSoBY_AmQbJP_8sFzDRnwCrTreBJhdMnYdWcwjliHujByM_Uxm088rzZFb5E_6XZiS7RgS6ahLcgeSHJQlDbSuNn0MJWh0Xs5crzrFB7qjh1mFyrs79wrjV1bgqfIlvSUCPGXLi3phgE5tUQC.DA2TJWLaW.Aa2TJJbpxYu.ZpR3jdt.CRlqNVf_5zCNOKYIUWwybWWS.nxtM58UetJ5nAdd7gal_SC9WCyKt.wIvLLfdjiwohnGgb0iiuwkPK.dbAFESWSBrvjTuFAuhe7QJHnap5bjLPapvzVgtw2W8Tx9K58U2S8MUa1K01tTZVsQdA07Sks Received: from [61.24.128.67] by web101705.mail.ssk.yahoo.co.jp via HTTP; Tue, 20 Jun 2017 09:21:23 JST X-Mailer: YahooMailWebService/0.8.111_71 X-YMail-JAS: KWxKK9IVM1mpOCKm6nhwEpKUG6sJdLloBUjG_r9nDkpo2JWqwTAp0I3x.TvDcWNKM0FKGlQLEyyETdwUBjpPTNY2uknt3ouG3D7WDIXeePBNgi6zEPl9emx0mPSPKVh4IiOP Date: Tue, 20 Jun 2017 09:21:23 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: crash on connect 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.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 00:23:11 -0000 Hi.=0A=0AI am try to today head code. Now head code is crash on=0Aconnect f= rom other host. This is occur on armv5t same.=0A=0AOnion Omega(AR9330) log.= =0A=0AThu Jan=A0 1 00:00:47 UTC 1970=0Alogin: Trap cause =3D 2 (TLB miss (l= oad or instr. fetch) - kernel mode)=0A[ thread pid 11 tid 100018 ]=0AStoppe= d at=A0 =A0 =A0 0=0Adb> where=0ATracing pid 11 tid 100018 td 0x805453c0=0A0= x81435230 (?,?,?,?) ra 2f83d5 sp c067fb08 sz 80=0APC 0x2f83d5: not in kerne= l=0A0x2f83d5 (?,?,?,?) ra 0 sp c067fb58 sz 0=0Adb> show reg=0Aat=A0 =A0 =A0= =A0 =A0 0xffffffe0=0Av0=A0 =A0 =A0 =A0 =A0 0x81435230=0Av1=A0 =A0 =A0 =A0 = =A0 0x805453c0=0Aa0=A0 =A0 =A0 =A0 =A0 0x81435218=0Aa1 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 0=0Aa2 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x1=A0 _DYNAMIC_LINK= ING=0Aa3 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0=0At0=A0 =A0 =A0 =A0 =A0 0xc0= 67fb40=0At1 =A0 =A0 =A0 =A0 =A0 =A0 0xf4240=0At2 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 0x4=A0 _DYNAMIC_LINKING+0x3=0At3=A0 =A0 =A0 =A0 =A0 0x94b9dd5f=0At4= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x4=A0 _DYNAMIC_LINKING+0x3=0At5=A0 =A0 = =A0 =A0 =A0 0xaffffa94=0At6 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0=0At7=A0 = =A0 =A0 =A0 =A0 0x80100410=A0 devfs_allocv+0x254=0As0=A0 =A0 =A0 =A0 =A0 0x= 81435218=0As1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0=0As2=A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 0x10=A0 _DYNAMIC_LINKING+0xf=0As3=A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 0x10=A0 _DYNAMIC_LINKING+0xf=0As4=A0 =A0 =A0 =A0 =A0 0x81805aa0=0As5=A0= =A0 =A0 =A0 =A0 0x81434d50=0As6=A0 =A0 =A0 =A0 =A0 0x814f8024=0As7=A0 =A0 = =A0 =A0 =A0 0x81477800=0At8 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0x4=A0 _DYNAMIC= _LINKING+0x3=0At9 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0=0Ak0=A0 =A0 =A0 =A0= =A0 0x8052f9d0=0Ak1=A0 =A0 =A0 =A0 =A0 0x81820000=0Agp =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 0=0Asp=A0 =A0 =A0 =A0 =A0 0xc067fb08=0As8=A0 =A0 =A0 =A0 = =A0 0x81802d24=0Ara=A0 =A0 =A0 =A0 =A0 0x801f64c4=A0 solisten_wakeup+0x24= =0Asr=A0 =A0 =A0 =A0 =A0 =A0 =A0 0xe803=A0 _DYNAMIC_LINKING+0xe802=0Alo =A0= =A0 =A0 =A0 =A0 =A0 0x105b8=0Ahi =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 0=0Ab= ad=A0 =A0 =A0 =A0 =A0 =A0 =A0 0xec4=A0 _DYNAMIC_LINKING+0xec3=0Acs =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 0x8=A0 _DYNAMIC_LINKING+0x7=0Apc=A0 =A0 =A0 =A0 =A0= 0x81435230=0A0=0Adb> =A0=0A=0A801f64a0 :=0A801f64a0: =A0 = =A0 =A0 27bdffe8=A0 =A0 =A0 =A0 addiu =A0 sp,sp,-24=0A801f64a4: =A0 =A0 =A0= afb00010=A0 =A0 =A0 =A0 sw=A0 =A0 =A0 s0,16(sp)=0A801f64a8: =A0 =A0 =A0 af= bf0014=A0 =A0 =A0 =A0 sw=A0 =A0 =A0 ra,20(sp)=0A801f64ac: =A0 =A0 =A0 8c820= 0e8=A0 =A0 =A0 =A0 lw=A0 =A0 =A0 v0,232(a0)=0A801f64b0: =A0 =A0 =A0 1040000= e=A0 =A0 =A0 =A0 beqz=A0 =A0 v0,801f64ec =0A801f64b4:= =A0 =A0 =A0 00808021=A0 =A0 =A0 =A0 move=A0 =A0 s0,a0=0A801f64b8: =A0 =A0 = =A0 8c8500ec=A0 =A0 =A0 =A0 lw=A0 =A0 =A0 a1,236(a0)=0A801f64bc: =A0 =A0 = =A0 0040f809=A0 =A0 =A0 =A0 jalr=A0 =A0 v0=0A801f64c0: =A0 =A0 =A0 24060001= =A0 =A0 =A0 =A0 li=A0 =A0 =A0 a2,1=0A801f64c4: =A0 =A0 =A0 26040010=A0 =A0 = =A0 =A0 addiu =A0 a0,s0,16=0A801f64c8: =A0 =A0 =A0 00002821=A0 =A0 =A0 =A0 = move=A0 =A0 a1,zero=0A801f64cc: =A0 =A0 =A0 00003021=A0 =A0 =A0 =A0 move=A0= =A0 a2,zero=0A801f64d0: =A0 =A0 =A0 0c05af4a=A0 =A0 =A0 =A0 jal =A0 =A0 80= 16bd28 <__mtx_unlock_flags>=0A