Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2017 14:48:13 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        Adrian Chadd <adrian.chadd@gmail.com>
Cc:        Alexander Kabaev <kabaev@gmail.com>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: kld problem at Atheros AR9132
Message-ID:  <260635.74721.qm@web101709.mail.ssk.yahoo.co.jp>
In-Reply-To: <CAJ-VmokWy0hR%2Bpmcr5ZrSq7XzugqKUm7n-FVskhr%2B3ygqchHww@mail.gmail.com>
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> <CAJ-Vmo=t=S15GqzdHnDj7vrSv4yy=fiRNYQBb14Z8NzBTF6nFg@mail.gmail.com> <623774.68843.qm@web101719.mail.ssk.yahoo.co.jp> <CAJ-Vmo=ZXsFOv_a8Aa7SwAYNp_QHDO2WOAunapLcjb=Je8ED8w@mail.gmail.com> <20170214214631.27afb824@kan> <551993.21971.qm@web101703.mail.ssk.yahoo.co.jp> <CAJ-VmokWy0hR%2Bpmcr5ZrSq7XzugqKUm7n-FVskhr%2B3ygqchHww@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <adrian.chadd@gmail.com>=0A> To: Mori Hiroki <=
yamori813@yahoo.co.jp>=0A> Cc: Alexander Kabaev <kabaev@gmail.com>; "freebs=
d-mips@freebsd.org" <freebsd-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 <yamori813@yahoo.co.jp=
> 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 <kabaev@gmail.com>=0A>>> To: Adrian Chadd <adrian.chadd@gmai=
l.com>=0A>>> Cc: Mori Hiroki <yamori813@yahoo.co.jp>; =0A> "freebsd-mips@fr=
eebsd.org" <freebsd-mips@freebsd.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 <adrian.chadd@gmail.com> 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> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?260635.74721.qm>