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>

index | next in thread | previous in thread | raw e-mail

Hi

This is not boot issue. This is objcopy in elftoolchain issue.

Now objcopy is broken on big endian because of elftoolchain
objcopy is not same binutil objcopy.

Hiroki Mori


----- Original Message -----
> From: Adrian Chadd <adrian.chadd@gmail.com>
> To: Mori Hiroki <yamori813@yahoo.co.jp>
> Cc: Alexander Kabaev <kabaev@gmail.com>; "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
> Date: 2017/6/18, Sun 12:52
> Subject: Re: kld problem at Atheros AR9132
> 
> 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 <yamori813@yahoo.co.jp> 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 <kabaev@gmail.com>
>>> To: Adrian Chadd <adrian.chadd@gmail.com>
>>> Cc: Mori Hiroki <yamori813@yahoo.co.jp>; 
> "freebsd-mips@freebsd.org" <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 <adrian.chadd@gmail.com> 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
>>> 
>>> 
>>> 
>


home | help

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