Date: Fri, 10 Feb 2017 12:35:20 +0900 (JST) From: Mori Hiroki <yamori813@yahoo.co.jp> To: Adrian Chadd <adrian.chadd@gmail.com> Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: kld problem at Atheros AR9132 Message-ID: <623774.68843.qm@web101719.mail.ssk.yahoo.co.jp> In-Reply-To: <CAJ-Vmo=t=S15GqzdHnDj7vrSv4yy=fiRNYQBb14Z8NzBTF6nFg@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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <adrian.chadd@gmail.com>=0A> To: Mori Hiroki <yamori813@yahoo.co= .jp>=0A> Cc: "freebsd-mips@freebsd.org" <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 <yamori813@yahoo.co.jp> 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 <yamori813@yahoo.co.jp>=0A>>> To: "freebsd-= mips@freebsd.org" =0A> <freebsd-mips@freebsd.org>=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 <yamori813@yahoo.co.jp>=0A>>>> To: "freebsd-mips@freebsd.org" =0A> <fr= eebsd-mips@freebsd.org>=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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?623774.68843.qm>