Date: Mon, 17 Jul 2000 20:37:15 -0500 From: Jim Manley <jmanley@metronet.com> To: freebsd-questions@freebsd.org Cc: jmanley@metronet.com Subject: 4.1-RC hangs on boot Message-ID: <00071721060100.00422@darkstar.metronet.com>
next in thread | raw e-mail | index | archive | help
Okay. After gleaning the mail archives of the last two weeks, I managed to
sort out what was required to get a kernel built to with the post 7/6 sources.
I cvsup'd my 4.0-stable sources on 7/11 and used the following procedure
to build sources and kernel:
# make buildworld (no problems encountered here)
# make buildkernel KERNEL=MYKERNEL (no problems)
# make installkernel KERNEL=MYKERNEL (Now I had a kernel called "MYKERNEL" in /)
# cd /
# chflags noschg kernel
# mv kernel kernel.old
# chflags noschg MYKERNEL
# mv MYKERNEL kernel
# chflags schg kernel
# shutdown now
# make installworld (no problems here)
# mergemaster (basically installed all the updated files except /etc/rc.conf,
/etc/hosts, and a few others that I had previously modified)
# reboot
Here's where things went to hell in a handbasket. The system loads the new
kernel and starts to boot. On the screen, I get to
'Doing inital network setup: hostname ."
and it hangs up. Won't respond to the keyboard. I have to reset the hardware
to recover.
I've gone through the rc.network script and, by placing a judicious number of
"echo" commands, found that I'm getting to the portion of the script that deals
with DHCP:
dhcp_interfaces=""
for ifn in ${network_interfaces}; do
if [ -r /etc/start_if.${ifn} ]; then
. /etc/start_if.${ifn}
eval showstat_$ifn=1
fi
# Do the primary ifconfig if specified
#
eval ifconfig_args=\$ifconfig_${ifn}
echo $ifconfig_args #jim added
I know I'm getting this far since the echo statement I added spews out values
for $ifconfig_args.
case ${ifconfig_args} in
'')
;;
[Dd][Hh][Cc][Pp])
# DHCP inits are done all in one go below
dhcp_interfaces="$dhcp_interfaces $ifn"
eval showstat_$ifn=1
;;
Don't use DHCP so it's not set in either /etc/defaults/rc.conf or /etc/rc.conf.
*)
ifconfig ${ifn} ${ifconfig_args}
Here's where things die since I never get the output of the ifconfig command
that I do when I boot the old (pre 7/6 4.0-stable) kernel file.
eval showstat_$ifn=1
;;
esac
done
If I reboot the machine and load /kernel.old, everything works just fine (well,
I did have to turn off the linux emulation).
I've gone through the email archives since 7/1 and haven't found where anyone
else has reported a similar problem.
If anybody has any ideas, I'd appreciate the help.
Regards,
Jim
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00071721060100.00422>
