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 >> >> >>