DragonFly kernel List (threaded) for 2007-04
Re: Strange vkernel crash
Matthew Dillon <email@example.com> writes:
> That was supposed to be appended to the standard /etc/ttys, not
> replace it!
Yes, well I copied exactly what was in the man page. :) Perhaps the
man page should be changed to reflect this new information?
> However, when I do that on my test box, it still seems to work just
> fine, so that doesn't appear to be the cause.
Both 1.8.1_Slip and HEAD exhibit the same crash now. I'm at a loss
here, mostly because I cannot "see" what's wrong.
Here's the script I use to generate the vkernel root image:
# mkvkernel - Make a vkernel filesystem image per man page
# 1) cd to your src directory
# 2) use "mkvkernel <identifier>"
# 3) You should be dropped into a directory with an already built kernel
if [ "x$ID" = "x" ]; then
ID=`pwd | sed -e 's/\//_/g;'`
echo "Making vkernel at $VKIMG"
rm -rf $VKIMG >/dev/null 2>&1
dd if=/dev/zero of=$VKIMG bs=1m count=2048
vnconfig -c -s labels vn0 $VKIMG
disklabel -r -w vn0 auto
disklabel -R vn0 /home/dave/dfltlabel
mount /dev/vn0a /mnt
trap "umount /mnt ; vnconfig -u vn0; echo 'cleaned up'" 2
make installworld DESTDIR=/mnt
make distribution DESTDIR=/mnt
echo '/dev/vkd0a / ufs rw 1 1' >/mnt/etc/fstab
echo 'console "/usr/libexec/getty Pc" cons25 on secure' >>/mnt/etc/ttys
vnconfig -u vn0
make depend && make
echo "Vkernel make done ... to test:"
echo " cd `pwd`"
echo " ./kernel.debug -m 64m -r $VKIMG "
In /home/dave/dfltlabel we have:
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
# size offset fstype [fsize bsize bps/cpg]
a: 4194304 0 4.2BSD 0 0 # (Cyl. 0 - 2047)
c: 4194304 0 unused 0 0 # (Cyl. 0 - 2047)
If I missed something, let me know. This could just as easily be my
naivete as a real bug.
Dave Hayes - Consultant - Altadena CA, USA - firstname.lastname@example.org
>>> The opinions expressed above are entirely my own <<<
Nasrudin was sitting talking with a friend as dusk
fell. "Light a candle", the man said, "because it is dark
now. There is one just by your left side." "How can I tell
my right from my left in the dark, you fool?" came the