Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jan 2018 22:28:13 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        freebsd-current@freebsd.org
Cc:        sgk@troutmask.apl.washington.edu
Subject:   Re: kldxref: ...: Bad address.
Message-ID:  <20180126222813.a7f446eb253e8b4fc14c3b81@dec.sakura.ne.jp>
In-Reply-To: <20180126010411.GA59487@troutmask.apl.washington.edu>
References:  <20180126010411.GA59487@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi.
Try `make install` in /usr/src/usr.sbin/kldxref BEFORE
`make installkernel`. (Backup kldxref for safety.)

I had kldxref problem a while ago and it helped.
Possibly running
  /usr/obj/usr/src/usr.sbin/kldxref/(amd64.amd64/)kldxref /boot/kernel
after installkernel can do the last job correctly.

 *Maybe old (currently installed) kldxref was used and it cannot
  handle new kernel and modules.

 *Some point AFTER r328071 broke installkernel but not bi-sected.
  Last non-style update for kldxref was r328052 ATM, but I've built
  world at r328071 with -DNO_CLEAN at the rev, so not shure kldxref was
  on the safe state. The finally-successful build was at r328163, with
  kldxref installed before installkernel.

If it also helps for you, kldxref should be considered as toolchain
(kernel-toolchain?) and forcibly used for installkernel.

 *If (kernel-)toolchains are used for build* only, new
  target would be needed.


On Thu, 25 Jan 2018 17:04:11 -0800
Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:

> This can't be good.
> 
> make buildworld
> make buildkernel
> make installkernel
> ...
> ===> zlib (install)
> install -T release -o root -g wheel -m 555   zlib.ko /boot/kernel/
> install -T debug -o root -g wheel -m 555   zlib.ko.debug /usr/lib/debug/boot/kernel/
> kldxref /boot/kernel
> kldxref: error while reading /boot/kernel/accf_data.ko: Bad address
> kldxref: error while reading /boot/kernel/amr_linux.ko: Bad address
> kldxref: error while reading /boot/kernel/chacha20.ko: Bad address
> kldxref: error while reading /boot/kernel/cxgb_t3fw.ko: Bad address
> kldxref: error while reading /boot/kernel/if_cc.ko: Bad address
> kldxref: error while reading /boot/kernel/if_ccv.ko: Bad address
> kldxref: error while reading /boot/kernel/if_cxl.ko: Bad address
> kldxref: error while reading /boot/kernel/if_cxlv.ko: Bad address
> kldxref: error while reading /boot/kernel/ipmi_linux.ko: Bad address
> kldxref: error while reading /boot/kernel/nfslock.ko: Bad address
> kldxref: error while reading /boot/kernel/nfssvc.ko: Bad address
> kldxref: error while reading /boot/kernel/ng_nat.ko: Bad address
> kldxref: error while reading /boot/kernel/pflog.ko: Bad address
> kldxref: error while reading /boot/kernel/plip.ko: Bad address
> kldxref: error while reading /boot/kernel/pty.ko: Bad address
> kldxref: error while reading /boot/kernel/rc4.ko: Bad address
> kldxref: error while reading /boot/kernel/rdrand_rng.ko: Bad address
> kldxref: error while reading /boot/kernel/udf_iconv.ko: Bad address
> 
> -- 
> Steve
> 20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
> 20161221 https://www.youtube.com/watch?v=IbCHE-hONow
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
> 


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>



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