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>