Date: Sat, 28 Oct 2017 10:26:17 +0900 (JST) From: Mori Hiroki <yamori813@yahoo.co.jp> To: Ed Maste <emaste@freebsd.org> Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: kld problem at Atheros AR9132 Message-ID: <926431.68621.qm@web101711.mail.ssk.yahoo.co.jp> In-Reply-To: <839292.84048.qm@web101712.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> <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> <CAPyFy2AfxBqYW0bzcgQ6Xw2RSioHUtpH6c%2BamsXKviJ_zvXN5A@mail.gmail.com> <839292.84048.qm@web101712.mail.ssk.yahoo.co.jp>
index | next in thread | previous in thread | raw e-mail
Hi I have still problem. I do debug elfcopy. microserver % readelf -S Onion_Omega_kernel There are 30 section headers, starting at offset 0x464c60: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .text PROGBITS 80050120 000120 2b0c90 00 AX 0 0 16 [ 2] .MIPS.stubs PROGBITS 80300db0 2b0db0 000010 00 AX 0 0 4 [ 3] .rodata PROGBITS 80300dc0 2b0dc0 03c820 00 A 0 0 16 [ 4] set_sysctl_set PROGBITS 8033d5e0 2ed5e0 0010d4 00 A 0 0 4 [ 5] set_sysuninit_set PROGBITS 8033e6b4 2ee6b4 0004ac 00 A 0 0 4 [ 6] set_sysinit_set PROGBITS 8033eb60 2eeb60 0008ec 00 A 0 0 4 [ 7] set_cam_xpt_xport PROGBITS 8033f44c 2ef44c 000028 00 A 0 0 4 [ 8] set_modmetadata_s PROGBITS 8033f474 2ef474 000464 00 A 0 0 4 [ 9] set_cam_xpt_proto PROGBITS 8033f8d8 2ef8d8 000010 00 A 0 0 4 [10] set_kdb_dbbe_set PROGBITS 8033f8e8 2ef8e8 000008 00 A 0 0 4 [11] set_cons_set PROGBITS 8033f8f0 2ef8f0 000008 00 A 0 0 4 [12] usb_host_id PROGBITS 8033f900 2ef900 000040 00 A 0 0 32 [13] set_kbddriver_set PROGBITS 8033f940 2ef940 000004 00 A 0 0 4 [14] .interp PROGBITS 8033f944 2ef944 00000d 00 A 0 0 1 [15] .hash HASH 8033f954 2ef954 00a9a8 04 A 16 0 4 [16] .dynsym DYNSYM 8034a2fc 2fa2fc 01a650 10 A 17 1 4 [17] .dynstr STRTAB 8036494c 31494c 01a1f5 00 A 0 0 1 [18] .reginfo MIPS_REGINFO 8037eb44 32eb44 000018 18 A 0 0 4 [19] .data PROGBITS 80382000 332000 039700 00 WA 0 0 8192 [20] .rld_map PROGBITS 803bb700 36b700 000004 00 WA 0 0 4 [21] set_pcpu PROGBITS 803bb740 36b740 000d04 00 WA 0 0 64 [22] .got PROGBITS 803bc450 36c450 001668 04 WAp 0 0 16 [23] .dynamic DYNAMIC 803bdab8 36dab8 0000c8 08 A 17 0 4 [24] .bss NOBITS 803bdb80 36db80 028e10 00 WA 0 0 64 [25] .comment PROGBITS 00000000 36db80 007b58 00 0 0 1 [26] .pdr PROGBITS 00000000 3756d8 048ec0 00 0 0 4 [27] .shstrtab STRTAB 00000000 3be598 000142 00 0 0 1 [28] .symtab SYMTAB 00000000 3be6dc 046400 10 29 11229 4 [29] .strtab STRTAB 00000000 404adc 060184 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) I check binary by binutils objcopy and elfcopy. 15, 16, 23 section missing swap copy by elfcopy. Thanks Hiroki Mori ----- Original Message ----- > From: Mori Hiroki <yamori813@yahoo.co.jp> > To: Ed Maste <emaste@freebsd.org> > Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> > Date: 2017/6/18, Sun 20:10 > Subject: Re: kld problem at Atheros AR9132 > > Hi > > I do convert by objcopy as this. > > % /foo/opjcopy -O binary Onion_Omega_kernel Onion_Omega_kernel.ng > % /bar/opjcopy -O binary Onion_Omega_kernel Onion_Omega_kernel.ok > > This is file. > > https://www.dropbox.com/sh/p0dw40q9ihjfwxx/AABgpY9XINYkCPe6Up1mWKeDa?dl=0 > > > Onion_Omega_kernel is original elf kernel. > > > Onion_Omega_kernel.ok is used binutil objcopy. > > > Onion_Omega_kernel.ng is used elftoolchain objcopy. > > > > Regards. > > Hiroki Mori > > > ----- Original Message ----- >> From: Ed Maste <emaste@freebsd.org> >> To: Mori Hiroki <yamori813@yahoo.co.jp> >> Cc: Alexander Kabaev <kabaev@gmail.com>; Adrian Chadd > <adrian.chadd@gmail.com>; "freebsd-mips@freebsd.org" > <freebsd-mips@freebsd.org> >> Date: 2017/6/18, Sun 19:15 >> Subject: Re: kld problem at Atheros AR9132 >> >> On 15 June 2017 at 09: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 >> >> Can you extract and share the elfcopy/objcopy invocation? If you can >> also make the ELF input file available I will investigate. >> > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to > "freebsd-mips-unsubscribe@freebsd.org" >help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?926431.68621.qm>
