Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2017 19:30:11 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Warner Losh <imp@bsdimp.com>
Cc:        "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, src-committers <src-committers@freebsd.org>
Subject:   Re: svn commit: r326809 - head/sys/dev/cardbus
Message-ID:  <5A33C053.6000409@grosbein.net>
In-Reply-To: <CANCZdfpxZsFTSst9m7gO5A5%2BnRKy_ikzY-Er=s%2B=yjE3TPHvYg@mail.gmail.com>
References:  <201712131338.vBDDcHCM091865@pdx.rh.CN85.dnsmgr.net> <5A3167E1.2000201@grosbein.net> <20171213180801.GA28514@FreeBSD.org> <5A316E7B.8030504@grosbein.net> <20171213182452.GA51526@FreeBSD.org> <5A318150.1000601@grosbein.net> <20171214133854.GB51526@FreeBSD.org> <5A328C81.4040501@grosbein.net> <CANCZdfoYTL1h_eDbWqjR16jqLxiwmmRAjrxz3_o3XHkPK6BZrw@mail.gmail.com> <5A32AE29.9090300@grosbein.net> <CANCZdfov6tq-7NGZSA32GVuXFcsM4Bo5W=xohSQm=cG8WWy8BQ@mail.gmail.com> <5A33655A.8030502@grosbein.net> <CANCZdfpxZsFTSst9m7gO5A5%2BnRKy_ikzY-Er=s%2B=yjE3TPHvYg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15.12.2017 13:42, Warner Losh wrote:
> 
> 
> On Thu, Dec 14, 2017 at 11:02 PM, Eugene Grosbein <eugen@grosbein.net <mailto:eugen@grosbein.net>> wrote:
> 
>     15.12.2017 6:50, Warner Losh wrote:
>     >
>     >
>     > On Thu, Dec 14, 2017 at 5:00 PM, Eugene Grosbein <eugen@grosbein.net <mailto:eugen@grosbein.net> <mailto:eugen@grosbein.net <mailto:eugen@grosbein.net>>> wrote:
>     >
>     >     14.12.2017 23:27, Warner Losh wrote:
>     >
>     >     >     - zfsloader(8) failing to find any ZFS pool after zfsboot(8) successfully
>     >     >     loaded and started zfsload(8) from zpool (PR pending, need to collect more info)
>     >     >
>     >     >
>     >     > GPT or MBR?
>     >
>     >     MBR, no GELI used.
>     > when you update, you're updating both halves of the loader, right?
> 
>     I do not get it, what are "halves of the loader"?
>     I know zfsboot should be installed in parts but it finds boot pool just fine
>     and I do not update it. As for zfsloader, I install it with to /boot/zfsloader
>     with simple "make install" command.
> 
> 
> So you are using the old zfsboot then?
> 
> And if you didn't do something like:
> 
>     dd if=${dst}/boot/zfsboot of=/tmp/zfsboot1 count=1
>     gpart bootcode -b /tmp/zfsboo1 ${dev}s${s}
>     sysctl kern.geom.debugflags=0x10
>     dd if=${dst}/boot/zfsboot iseek=1 seek=1024 of=/dev/${dev}s${s}
>     sysctl kern.geom.debugflags=0x0
> 
> then you're using the new zfsloader with old zfsboot blocks. Which should work just fine, but is apparently failing.

In fact, I'v just started using ZFS recently and I've not updates my working tree since then,
so zfsboot and zfsloader were built using same sources, amd64 stable/11 r322531.

My previous debugging (using added printf's) shows that's zio_checksum_verify()
from src/sys/cddl/boot/zfs/zfssubr.c always fails when zfsloader reads ZFS.
Meantime, zpool scrub finds no errors on this pool when I boot using USB flash/UFS.

I've just added LOADER_NO_GELI_SUPPORT= to my /etc/src.conf, reverted all local
(debugging) changes to /usr/src/sys/boot, did "make clean all install" there
and tried to boot using rebuilt zfsloader again (it it 44KB less now than zfsloader.old).
No changes, still fails same way. And I do not have r326583.




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