Re: unknown command at bootstrap on 7-STABLE



On Fri, Feb 29 2008, Jason Bourne wrote:

Peter Wu wrote:

Greetings,

I updated my system to 7.0 and noticed that when booting, there is an
error as follows.

,----
| FreeBSD/i386 bootstrap loader, Revision 1.1
| (peterwu@xxxxxxxxxxxxxxx, datetime)
| > \
| \: unknown command
| -
| /boot/kernel/kernel text=... data=... syms=[...]
| Hit [Enter] to boot immediately, or any other key for command prompt.
| Booting [/boot/kernel/kernel] in 10 seconds ...
`----

If I let it boot the kernel, the system doesn't show all the booting
details, such as hardware information. I'll be presented with the
login and I am able to log in without any problem.

When I type reboot to reboot the machine, no output from the screen
but the machine will be rebooted without any system messages.

Here is the uname output.
,----
| tulip:/home/peterwu>uname -a
| FreeBSD tulip.whu.ca 7.0-STABLE FreeBSD 7.0-STABLE #6: Thu Feb 28
| 14:34:44 EST 2008
`----

I googled for a while but couldn't find any related information as to
why this happens and how to correct it. Thanks in advance for any
ideas!



When there is a major ABI change I install from scratch, rebuild my apps,
and move the data over from backups. This is infrequent, as in when I went
from 4.11 to 5.2.1, then again to 6.2, and lately with 7.0. I just don't
fully trust cvsup/csup upgrades between major ABI changes. I'm sure many
don't do this and have had no problems, I'm just wonky this way.

Yes, I rebuilt everything from source including all the ports and
their dependencies.I

I seem to recall something loader related in the list traffic some time
back, but since I've had no troubles in this area didn't pay much
attention. I currently have two machines on 7.0-Release, installed from
7.0-RC1, csup'd to RC3, and then again to Release without incident.

Did you try upgrading from RELENG_6?

One thing I would look at is the use of any optimizations in /etc/make.conf.
Particularly -Os -pipe or -O2 -pipe. If you have any optimizations such as
these, or CFLAGS/COPTFLAGS, try removing them and rebuilding world/kernel,
etc.

I wouldn't worry about the kernel as the kernel hasn't been loaded the
moment the error occurs.

As pointed out by Martin, it seems to me that something may be carried
over from 6-STABLE and is not compatible with the new 7-STABLE loader.

I don't think I use aggressive compiler options but anyways, this is
what I have in my /etc/make.conf. Thanks!!!!

,----
| tulip# cat /etc/make.conf
| PERL_VER=5.8.8
| PERL_VERSION=5.8.8
| CPUTYPE?=pentium4
| CFLAGS+= -O2 -pipe -funroll-loops -ffast-math
| CXXFLAGS+= -fconserve-space
| COPTFLAGS= -O2 -pipe -funroll-loops -ffast-math
| INSTALL=install -C
|
| SUP_UPDATE=YES
| SUP= /usr/bin/csup
| SUPFLAGS= -g -L 2
| SUPHOST= cvsup1.ca.FreeBSD.org
| SUPFILE= /usr/share/examples/cvsup/stable-supfile
| PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile
| DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile
|
| WITHOUT_X11=YES
`----


--
Peter Wu
.



Relevant Pages

  • Re: FreeBSD kernel Debugging tools for Virtual Memory Module
    ... But you have not rebuild all other files all the time. ... Running a new kernel with old modules is a great way to shoot ... ports) to speedup your development cycle even more: install the system ... with the system installed into VM and reboot it only. ...
    (freebsd-hackers)
  • Re: FreeBSD kernel Debugging tools for Virtual Memory Module
    ... But you have not rebuild all other files all the time. ... Running a new kernel with old modules is a great way to shoot ... ports) to speedup your development cycle even more: install the system ... with the system installed into VM and reboot it only. ...
    (freebsd-questions)
  • Re: Synaptics Touchpad xfree driver hack :)
    ... > Rebuild your kernel and reboot. ...
    (freebsd-current)
  • Newbie creates "Kernel Panic"
    ... The error on reboot: ... Unable to initialize codec #1 ... I still have the original kernel booting. ...
    (Fedora)
  • Re: 2.6.24.3-34 Crashes
    ... If I put acpi=off in menu-lst, as such rhgb quite acpi=off and I ... reboot, when it gets to "Uncompressing Linux ..OK Booting the kernel" I ... it completes booting and goes into Desktop. ...
    (Fedora)