Date: Mon, 14 Apr 2014 15:08:45 +0200 From: Troyax <troyax@pholos.eu> To: Haowu Ge <ghw@7axu.com> Cc: freebsd-stable@freebsd.org, freebsd-amd64@freebsd.org, Matthieu Volat <mazhe@alkumuna.eu> Subject: Re: Freebsd 10 install kernel not booting. Message-ID: <20140414130845.GA43154@yggdrasil.alkumuna.eu> In-Reply-To: <CAKrd9eXRQ0k5w823ZAo_F6as9zFm=6TqXSMOjX7Fugu3t2Z3CQ@mail.gmail.com> References: <20140328160019.GA93913@yggdrasil.alkumuna.eu> <20140404214900.6ff7681e@freedom.alkumuna.eu> <20140411135453.GA19755@yggdrasil.alkumuna.eu> <CAKrd9eXRQ0k5w823ZAo_F6as9zFm=6TqXSMOjX7Fugu3t2Z3CQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the follow-up Haowu, it didn't work in itself but helped me find a work-around. I ran the following (slightly different) commands on my USB image: gpart bootcode -b /boot/boot0 da0 gpart bootcode -p /boot/boot1 -i 1 da0 gpart set -a active -i 1 da0 (with a warning message "gpart: attrib 'active': Device not configured") But it ended up with the same behaviour: the bootstrap stops (and reboot the machine) right before the "loading /boot/defaults/loader.conf" output message, which got me thinking that the problem may be in the stage 3. So I tried with a fresh fbsd10 USB image with only the /boot/loader from my fbsd9.2 (I mounted the USB stick and cp-ed the file) and voila, it works. I took a very quick look at the /sys/boot/i386/loader code, and the major (only?) difference I found there was the NANDFS support. But I don't know if it is used for the USB image and there are probably lots of other possible cause - it needs a more expert look I think. Troyax. On Sun, Apr 13, 2014 at 10:43:31AM +0800, Haowu Ge wrote: > Try this? > gpart bootcode -b /mnt2/boot/boot0 da0 > gpart bootcode -b /mnt2/boot/boot1 /dev/da0s1 > gpart set -a active -i 1 da0 > > > 2014-04-11 21:54 GMT+08:00 Troyax <troyax@pholos.eu>: > > > > Hello, since there's no answer yet, and it seems to be a bootloader > > related problem, would you try the following? > > > * Create a 10.0 memory stick > > > * From your 9.2 environment, copy the bootcode to the memory stick: > > > # gpart bootcode -b /boot/boot da0 > > > * Try and see if it boots > > > > I have just tried your suggestion, but the result is the same. To be more > > precise, BTX loader 1.02 seems to launch the loader correctly; but it stops > > (and reboots the machine) very early on loading the kernel.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140414130845.GA43154>