Hello, I have a problem with loader. I recently upgraded from 6_rel to 7_rel. Now when I install world there is a problem booting. Here is what I do: cd /usr/src make buildworld make buildkernel KERNCONF=BLACK make installkernel KERNCONF=BLACK At this point I can reboot and all is good. After boot I install the new world: cd /usr/src mergemaster -p reboot into single user mode cd /usr/src make installworld mergemaster Now when I reboot there is a problem. I get an error that the system cannot boot. Part of it looks like this: Can't work out which disk we are booting from. Guessed BIOS device 0xffffffff not found by probes, defaulting to disk0: If I boot from a live disk and replace /boot/loader with /boot/loader.old it boots up fine and everything looks good. A new world and a new kernel. I would be grateful for any help or any pointers. Sincerely, Kel PS I do not do anything special with my loader config files: $ cat loader.conf snd_ich_load="YES" $ cat loader.rc \ Loader.rc \ $FreeBSD: src/sys/boot/i386/loader/loader.rc,v 1.4 2005/10/30 05:41:42 scottl Exp $ \ \ Includes additional commands include /boot/loader.4th \ Reads and processes loader.conf variables start \ Tests for password -- executes autoboot first if a password was defined check-password \ Load in the boot menu include /boot/beastie.4th \ Start the boot menu beastie-start -- _______________________________________________________ Kelly Black Phone: (518) 388-8727 Department of Mathematics FAX: (603) 388-6005 Union College e-mail: kelly.black@union.edu Schenectady NY 12308 (USA) WWW: http://blackk.union.edu/~black
On Wed, Jun 25, 2008 at 7:38 AM, Kelly Black <kjblack@gmail.com> wrote:> I have a problem with loader. I recently upgraded from 6_rel to 7_rel. > Now when I install world there is a problem booting. > > Here is what I do:[snip]> Now when I reboot there is a problem. I get an error that the system > cannot boot. Part of it looks like this: > Can't work out which disk we are booting from. > Guessed BIOS device 0xffffffff not found by probes, defaulting to disk0: > > If I boot from a live disk and replace /boot/loader with > /boot/loader.old it boots up fine and everything looks good. A new > world and a new kernel. I would be grateful for any help or any > pointers.What do you have in /etc/make.conf? I recall there being a point in time where incorrect CFLAGS options could build a broken loader. Try renaming /etc/make.conf (or just commenting out all CFLAGS/CXXFLAGS options) and rebuilding either just the loader or the whole world, and see if that makes a difference. -- Freddie Cash fjwcash@gmail.com
> >On Wed, Jun 25, 2008 at 7:38 AM, Kelly Black <kjblack@gmail.com> wrote: >> I have a problem with loader. I recently upgraded from 6_rel to 7_rel. >> Now when I install world there is a problem booting. >> >> Here is what I do: >[snip] >> Now when I reboot there is a problem. I get an error that the system >> cannot boot. Part of it looks like this: >> Can't work out which disk we are booting from. >> Guessed BIOS device 0xffffffff not found by probes, defaulting to disk0: >> >> If I boot from a live disk and replace /boot/loader with >> /boot/loader.old it boots up fine and everything looks good. A new >> world and a new kernel. I would be grateful for any help or any >> pointers. > >What do you have in /etc/make.conf? I recall there being a point in >time where incorrect CFLAGS options could build a broken loader. > >Try renaming /etc/make.conf (or just commenting out all >CFLAGS/CXXFLAGS options) and rebuilding either just the loader or the >whole world, and see if that makes a difference. > >-- >Freddie Cash >fjwcash@gmail.com >Hello, Thank you for the reply. I put my make.conf file back to its default when I first did the upgrade to avoid other kinds of problems: make.conf # added by use.perl 2008-04-07 11:54:35 PERL_VER=5.8.8 PERL_VERSION=5.8.8 And it still produced the loader that does not load. Sincerely, Kel -- _______________________________________________________ Kelly Black Phone: (518) 388-8727 Department of Mathematics FAX: (603) 388-6005 Union College e-mail: kelly.black@union.edu Schenectady NY 12308 (USA) WWW: http://blackk.union.edu/~black
On 12/23/-58 20:59, Kelly Black wrote:> Hello, > > I have a problem with loader. I recently upgraded from 6_rel to 7_rel. > Now when I install world there is a problem booting. > > Here is what I do: > cd /usr/src > make buildworld > make buildkernel KERNCONF=BLACK > make installkernel KERNCONF=BLACK > > At this point I can reboot and all is good. After boot I install the new world: > > cd /usr/src > mergemaster -p > reboot into single user mode > cd /usr/src > make installworld > mergemaster > > Now when I reboot there is a problem. I get an error that the system > cannot boot. Part of it looks like this: > Can't work out which disk we are booting from. > Guessed BIOS device 0xffffffff not found by probes, defaulting to disk0: > > If I boot from a live disk and replace /boot/loader with > /boot/loader.old it boots up fine and everything looks good. A new > world and a new kernel. I would be grateful for any help or any > pointers. > > Sincerely, > Kel > > PS I do not do anything special with my loader config files: > > $ cat loader.conf >...Kelly, the /boot/loader.conf file does not come into play at that stage. Early in the loader code, loader needs to figure out, which disk (BIOS device) has been booted from. Until loader knows which device was booted up, it's unable to access any files (even loader.conf) on your boot device. As I've never seen such a problem while upgrading any system, I suspect your problem must be settings specific. Can you show me your kernel config or are you using a plain vanilla GENERIC? Which arch are we talking about? As I'm currently investigating another boot problem (but earlier in the boot chain), I'll check boot logic in the source code and may check for your issue, too, at that time, so it's just one effort. But please stay patient for some days, as I'm currently too busy. Volker