From owner-freebsd-mips@freebsd.org Fri Feb 10 03:35:32 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 1DEC1CD9AA4 for ; Fri, 10 Feb 2017 03:35:32 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh604-vm8.bullet.mail.ssk.yahoo.co.jp (nh604-vm8.bullet.mail.ssk.yahoo.co.jp [182.22.90.65]) by mx1.freebsd.org (Postfix) with SMTP id 994871574 for ; Fri, 10 Feb 2017 03:35:30 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.104] by nh604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 10 Feb 2017 03:35:20 -0000 Received: from [182.22.91.129] by t602.bullet.mail.ssk.yahoo.co.jp with NNFMP; 10 Feb 2017 03:35:20 -0000 Received: from [127.0.0.1] by omp602.mail.ssk.yahoo.co.jp with NNFMP; 10 Feb 2017 03:35:20 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 811564.22536.bm@omp602.mail.ssk.yahoo.co.jp Received: (qmail 74277 invoked by uid 60001); 10 Feb 2017 03:35:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1486697720; bh=8lU+wE+J5jNX0EnHeP44h3coq1FK1uNt+3+BSwVMZMM=; 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=PQbozTOFrzOIKiYdwZ4E/6Tad22t/6REodElCLI+D8CtWlrqxfE2qMrYbDwQWKGTIbpIG3vvTPFFkIT62qe0DeyGI4LNhFnk9t2xf0E+OkDPqSm63zgi1wvinqooS0q4FuLAyO6x6dlkPqkrf9h8QzKBD1r795zq6okudeCQCzU= 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=mt6ecPIWI4r6u83cWP2hMK2vYspXXv7FdYq7KMZRzw9c05HGfwhyxymnCprYfFbeeeOnRPl7qOw2X62uwKJH1h2fySmqh1WXzOHmfzXgoJznikVHj8ourw74aiIIY4kisWvXlYpk05Sh5HMowgn+rIEgT4Pw3TB4oSDI0L8NaAk=; Message-ID: <623774.68843.qm@web101719.mail.ssk.yahoo.co.jp> X-YMail-OSG: F3.2psEVM1leVFkOwK25JXUqBKCW1pmLY5y7ae5SLUTNG1buKAKcvjY2Cb73VlwkZ7YGwIuGvXLUFXIi6OeYHD6hOwMNoNdxM44scPqlaqDzjeYIkrobDYQPd7hBjtwabtKjj4yEaWxj_cAuLeelXOcQ72icT6HizRmfQBK1jhiUd.TzZwqtSL9y7fQX6NwKmVTPVBEfg6jf0rN8yQtigY2iZf2ryQxIl1wneeIEZpIGMTKOFhDHncPYJ2lh8gWxVQY5PKvgNmxTli9gf25lIiA2jqPbAzRV244XikZk_29HE9uIn2ado.SricNEiGSZdEd0cy4g84AGBDIih3oE7Jox7AXZ0SK6Kx8EHa38vYyPWFKiL76q9meTu6mk9uAjvNpRP0BGXkUNIh4.a5HCINm3ra0M0NqZ.rs9EJUO_UTeO6it4Lg1Ff8tZfsDolrVoWSJjPIHQz4HDCEUAqej08PYbInMw8gelc1YxFzfJMcsoXS0G9XMirDBwtjAv6XPvjp4EJ6TDFhF0m5y8XiYE5b.YSLx1mRxCKzrD1vrb2EB.fzxY8vqg5Zv53uqRxM20pFws2Y7yG8rOOKjpzExntIdWMW3Zpe.EHRIwzMHVYYbTPIhsRnzGDmFp9hIkA-- Received: from [110.134.195.30] by web101719.mail.ssk.yahoo.co.jp via HTTP; Fri, 10 Feb 2017 12:35:20 JST X-Mailer: YahooMailWebService/0.8.111_70 X-YMail-JAS: EU3Ir.UVM1k4TuWikcYldJpw2PWdC4xE6UHiQw06eppivtez4VAe6eskqlp3HJ3.UB4ihAD2r6WhkmaeWZzg_9K1d2xtvuCMMrVqw_yXx1djV8qDGGhhbUDFYj6sz7pi2J5w 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> Date: Fri, 10 Feb 2017 12:35:20 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: kld problem at Atheros AR9132 To: Adrian Chadd 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: Fri, 10 Feb 2017 03:35:32 -0000 Hi.=0A=0AI use ZRouter build system. This tools build ELF kernel first by b= uildkernel.=0AThen ELF kernel convert to kbin by use objcopy command.=A0=0A= =0AELF -> kbin -> LZMA -> U-BOOT -> block pad=0A=0Amicroserver % file Buffa= lo_WZR-HP-G301NH_kernel*=0ABuffalo_WZR-HP-G301NH_kernel: =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ELF 32-bit MSB executable,=0A=A0MIPS, MIPS3= 2 version 1 (FreeBSD), dynamically linked, interpreter /red/herring,=0A=A0n= ot stripped=0ABuffalo_WZR-HP-G301NH_kernel.kbin:=A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 data=0ABuffalo_WZR-HP-G301NH_kernel.kbin.oldlzma:=A0 =A0 =A0 = =A0 =A0 =A0 LZMA compressed data, non-=0Astreamed, size 4127856=0ABuffalo_W= ZR-HP-G301NH_kernel.kbin.oldlzma.uboot:=A0 =A0 =A0 u-boot legacy uImage, Fr= ee=0ABSD Kernel Image, Linux/MIPS, OS Kernel Image (lzma), 1250861 bytes, W= ed Feb=A0 8=A0=0A02:46:30 2017, Load Address: 0x80001100, Entry Point: 0x80= 001100, Header CRC: 0x=0AB20327B9, Data CRC: 0x670E041D=0ABuffalo_WZR-HP-G3= 01NH_kernel.kbin.oldlzma.uboot.sync: u-boot legacy uImage, Free=0ABSD Kerne= l Image, Linux/MIPS, OS Kernel Image (lzma), 1250861 bytes, Wed Feb=A0 8=A0= =0A02:46:30 2017, Load Address: 0x80001100, Entry Point: 0x80001100, Header= CRC: 0x=0AB20327B9, Data CRC: 0x670E041D=0A=0AOld U-Boot can't boot ELF=A0= kernel dirctory.=0A=0AThis is good command.=0A=0Amicroserver % objcopy -V= =0AGNU objcopy 2.17.50 [FreeBSD] 2007-07-03=0ACopyright 2007 Free Software = Foundation, Inc.=0AThis program is free software; you may redistribute it u= nder the terms of=0Athe GNU General Public License.=A0=A0This program has a= bsolutely no warranty.=0A=0A=0A=0A----- Original Message -----=0A> From: Ad= rian Chadd =0A> To: Mori Hiroki =0A> Cc: "freebsd-mips@freebsd.org" =0A> Date= : 2017/2/9, Thu 07:02=0A> Subject: Re: kld problem at Atheros AR9132=0A> = =0A> How are you building that again? I know my way of doing it always=0A> = outputs elf kernels.=0A> =0A> =0A> -a=0A> =0A> =0A> On 7 February 2017 at 1= 5:28, Mori Hiroki wrote:=0A>>=A0=A0Hi=0A>> =0A>>=A0= =A0I still have this problem. I use workaround by old objcopy command.=0A>>= =A0=A0It's unconvenient.=0A>> =0A>>=A0=A0"link_elf_lookup_symbol: missing s= ymbol hash table" at boot log =0A> indicate=0A>>=A0=A0this problem.=0A>> = =0A>>=A0=A0Copyright (c) 1992-2017 The FreeBSD Project.=0A>>=A0=A0Copyright= (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994=0A>> =A0 = =A0 =A0 =A0=A0=A0The Regents of the University of California. All rights re= served.=0A>>=A0=A0FreeBSD is a registered trademark of The FreeBSD Foundati= on.=0A>>=A0=A0FreeBSD 12.0-CURRENT #2 50b7905(rt_patch)-dirty: Tue Feb=A0 7= 22:10:26 JST =0A> 2017=0A>> =A0 =A0 =0A> hiroki@microserver:/storage/home/= hiroki/obj/storage/home/hiroki/zrouter/tmp/=0A>>=A0=A0mips.mips/storage/hom= e/hiroki/freebsd/sys/Buffalo_WZR-HP-G301NH mips=0A>>=A0=A0gcc version 4.2.1= 20070831 patched [FreeBSD]=0A>>=A0=A0Preloaded elf kernel "kernel" at 0x80= 4332a0.=0A>>=A0=A0link_elf_lookup_symbol: missing symbol hash table=0A>>=A0= =A0link_elf_lookup_symbol: missing symbol hash table=0A>>=A0=A0real memory= =A0 =3D 67108864 (65536K bytes)=0A>> =0A>> =0A>>=A0=A0----- Original Messag= e -----=0A>>> From: Mori Hiroki =0A>>> To: "freebsd-= mips@freebsd.org" =0A> =0A>>> Date: 2016/9/23, Fr= i 22:52=0A>>> Subject: Re: kld problem at Atheros AR9132=0A>>> =0A>>> Hi.= =0A>>> =0A>>> Still I have this problem. Dose any one have this problem=0A>= >> process to kernel use by objcopy for u-boot.=0A>>> =0A>>> I doubt this i= s big endian issue.=0A>>> =0A>>> My AR231x port have no problem. Because of= redboot not need=0A>>> obycopy process.=0A>>> =0A>>> Regards.=0A>>> =0A>>>= Hiroki Mori=0A>>> =0A>>> ----- Original Message -----=0A>>>> From: Mori Hi= roki =0A>>>> To: "freebsd-mips@freebsd.org" =0A> =0A>>>> Date: 2016/4/25, Mon 17:41=0A>>>> Subject: k= ld problem at Atheros AR9132=0A>>>> =0A>>>> Hi=0A>>>> =0A>>>> I build Ather= os AR9132 kernel by head source. I have problem that is=0A>>>> can't load k= ld module. RT3050 have no problem same source. I do=0A>>>> delete old objec= t and full build but still have problem.=0A>>>> =0A>>>> # kldload -v ufs=0A= >>>> linker_load_file: trying to load /boot/kernel/ufs.ko=0A>>>> =0A>>>> li= nker_make_file: new file, filename=3D'ufs.ko' for =0A> pathname=3D'/boot/ke= rnel/ufs.ko'=0A>>>> linker_file_add_dependency: adding kernel as dependency= for ufs.ko=0A>>>> KLD ufs.ko: depends on kernel - not available or version= mismatch=0A>>>> =0A>>>> linker_file_unload: lf->refs=3D1=0A>>>> linker_fil= e_unload: file is unloading, informing modules=0A>>>> linker_file_unload: l= f->refs=3D2=0A>>>> linker_load_file: trying to load /boot/kernel/ufs.ko=0A>= >>> linker_load_file: Unsupported file type=0A>>>> kldload: an error occurr= ed while loading the module. Please check =0A> dmesg(8) for m=0A>>>> ore de= tails.=0A>>>> =0A>>>> If you have advice, please let me know.=0A>>>> =0A>>>= > Thanks=0A>>>> =0A>>>> Hiroki Mori=0A>>>> ________________________________= _______________=0A>>>> freebsd-mips@freebsd.org mailing list=0A>>>> https:/= /lists.freebsd.org/mailman/listinfo/freebsd-mips=0A>>>> To unsubscribe, sen= d any mail to =0A> "freebsd-mips-unsubscribe@freebsd.org"=0A>>>> =0A>>>> = =0A>>>> =0A>>> _______________________________________________=0A>>> freebs= d-mips@freebsd.org mailing list=0A>>> https://lists.freebsd.org/mailman/lis= tinfo/freebsd-mips=0A>>> To unsubscribe, send any mail to =0A> "freebsd-mip= s-unsubscribe@freebsd.org"=0A>>> =0A>>> =0A>>> =0A>>=A0=A0_________________= ______________________________=0A>>=A0=A0freebsd-mips@freebsd.org mailing l= ist=0A>>=A0=A0https://lists.freebsd.org/mailman/listinfo/freebsd-mips=0A>>= =A0=A0To unsubscribe, send any mail to =0A> "freebsd-mips-unsubscribe@freeb= sd.org"=0A>