Booting issue

General discussion about Visopsys. We'll create more specific forums if the number of posts justifies that.
User avatar
osmiumusa
Posts: 36
Joined: Sat Jan 15, 2011 8:06 pm

Re: Booting issue

Post by osmiumusa » Thu Jan 20, 2011 2:28 am

Absolutely. I've attached the ones with the edits you've told me to make.

~osmiumusa :mrgreen:
Lemons. :) Nobody doesn't like lemons!

User avatar
osmiumusa
Posts: 36
Joined: Sat Jan 15, 2011 8:06 pm

Re: Booting issue

Post by osmiumusa » Thu Jan 20, 2011 2:31 am

I don't know if it attatched properly... Oh, wait. The extension "sh" is not allowed...

Here it is.


#!/bin/sh
##
## Visopsys
## Copyright (C) 1998-2008 J. Andrew McLaughlin
##
## image-cd.sh
##

# Installs the Visopsys system into a zipped CD-ROM ISO image file

set -x

IMAGEFLOPPYLOG=./image-floppy.log
MKISOFSLOG=./mkisofs.log
ZIPLOG=./zip.log

echo ""
echo "Making Visopsys CD-ROM IMAGE file"

# Are we doing a release version? If the argument is "-r" then we use
# the release number in the destination directory name. Otherwise, we
# assume an interim package and use the date instead
if [ "$1" == "-r" ] ; then
# What is the current release version?
RELEASE=`./release.sh`
echo " - doing RELEASE version $RELEASE"
RELFLAG=-r
else
# What is the date?
RELEASE=`date +%Y-%m-%d`
echo " - doing INTERIM version $RELEASE (use -r flag for RELEASES)"
fi
echo ""

BUILDDIR=../build
ISOBOOT=-isoboot
NAME=visopsys-$RELEASE
FLOPPYZIP="$NAME""$ISOBOOT"-img.zip
FLOPPYIMAGE="$NAME""$ISOBOOT".img
ISOIMAGE=$NAME.iso
ZIPFILE=$NAME-iso.zip

TMPDIR=/tmp/iso$$.tmp
rm -Rf $TMPDIR
mkdir -p $TMPDIR

echo -n "Making/copying boot floppy image... "
echo $RELFLAG $ISOBOOT $IMAGEFLOPPYLOG
./image-floppy.sh $RELFLAG $ISOBOOT >& $IMAGEFLOPPYLOG
if [ $? -ne 0 ] ; then
echo ""
echo -n "Not able to create floppy image $FLOPPYZIP. "
echo "See $IMAGEFLOPPYLOG. Terminating."
echo ""
exit 1
fi
rm -f $IMAGEFLOPPYLOG
unzip $FLOPPYZIP >& /dev/null
rm -f $FLOPPYZIP
mv $FLOPPYIMAGE $TMPDIR
echo Done

# Copy all of the files from the build directory
echo -n "Copying build files... "
(cd $BUILDDIR ; tar cf - * ) | (cd $TMPDIR; tar xf - )
echo Done

echo -n "Copying doc files... "
(cd .. ; tar cf - docs ) | (cd $TMPDIR; tar xf - )
find $TMPDIR/docs -name CVS -exec rm -R {} \; >& /dev/null
echo Done

echo -n "Creating ISO image... "
rm -f $ISOIMAGE
mkisofs -U -D -floppy-boot -b $FLOPPYIMAGE -c boot.catalog -hide $FLOPPYIMAGE -hide boot.catalog -V "Visopsys $RELEASE" -iso-level 3 -L -o $ISOIMAGE $TMPDIR >& $MKISOFSLOG
if [ $? -ne 0 ] ; then
echo ""
echo -n "Not able to create ISO image $ISOIMAGE. "
echo "See $MKISOFSLOG. Terminating."
echo ""
exit 1
fi
rm -f $MKISOFSLOG
echo Done

echo -n "Archiving... "
echo "Visopsys $RELEASE CD-ROM Release" > /tmp/comment
echo "Copyright (C) 1998-2008 J. Andrew McLaughlin" >> /tmp/comment
rm -f $ZIPFILE
zip -9 -z -r $ZIPFILE $ISOIMAGE < /tmp/comment >& $ZIPLOG
if [ $? -ne 0 ] ; then
echo ""
echo -n "Not able to create zip file $ZIPFILE. "
echo "See $ZIPLOG. Terminating."
echo ""
exit 1
fi
rm -f /tmp/comment $ZIPLOG
echo Done

rm -f $FLOPPYIMAGE
rm -f $ISOIMAGE
rm -Rf $TMPDIR

echo ""
echo "File is: $ZIPFILE"
echo ""

exit 0
Lemons. :) Nobody doesn't like lemons!

User avatar
andymc
Posts: 476
Joined: Tue Nov 16, 2010 7:20 pm

Re: Booting issue

Post by andymc » Thu Jan 20, 2011 2:39 am

Looks normal. I just had a small hunch... you didn't by any chance use a Windows program like WinZip to unzip the Visopsys source file, did you? I'm wondering if there are DOS/Windows linefeed characters added to the script. If you load it up in a program like emacs, you'd see stuff like ^m (I think) at the end of each line..

User avatar
osmiumusa
Posts: 36
Joined: Sat Jan 15, 2011 8:06 pm

Re: Booting issue

Post by osmiumusa » Thu Jan 20, 2011 1:14 pm

I am using Ubuntu to access files on my windows host (back in my initial post where I said Linux was in a VirtualBox) But the script doesn't work on the Linux unzipped version either...
Lemons. :) Nobody doesn't like lemons!

User avatar
andymc
Posts: 476
Joined: Tue Nov 16, 2010 7:20 pm

Re: Booting issue

Post by andymc » Thu Jan 20, 2011 1:18 pm

:? Well I really can't see what the problem might be here. I guess I need to install a Ubuntu VM and give it a try. If you didn't already mention it upthread, can you say which version of Ubuntu you're using?

User avatar
osmiumusa
Posts: 36
Joined: Sat Jan 15, 2011 8:06 pm

Re: Booting issue

Post by osmiumusa » Thu Jan 20, 2011 2:12 pm

Ubuntu 10.04 LTS - the Lucid Lynx
Oracle VirtualBox 3.2.10 r66523

Thank you so much for helping me out. What version of Linux do you use?

~osmiumusa :mrgreen:
Lemons. :) Nobody doesn't like lemons!

User avatar
andymc
Posts: 476
Joined: Tue Nov 16, 2010 7:20 pm

Re: Booting issue

Post by andymc » Thu Jan 20, 2011 3:52 pm

Cheers, I'll try to get that running somewhere, perhaps this weekend. I've had a few people trying to develop using Ubuntu, and running into little problems (such as compiler errors/warnings) that don't occur on my system.

I use CentOS (RedHat) 4.3 and 4.4

User avatar
osmiumusa
Posts: 36
Joined: Sat Jan 15, 2011 8:06 pm

Re: Booting issue

Post by osmiumusa » Thu Jan 20, 2011 4:16 pm

To get around the make file errors, I took Makefile.include and took out the -Werror option so warnings wouldn't stop it. It seems to work until it starts to load... maybe this is the problem? Does it sound logical?

~osmiumusa :mrgreen:
Lemons. :) Nobody doesn't like lemons!

User avatar
osmiumusa
Posts: 36
Joined: Sat Jan 15, 2011 8:06 pm

Re: Booting issue

Post by osmiumusa » Sat Jan 22, 2011 2:57 pm

Progress! Used IMGBurn and tried it with a DVD setting and a UDF filesystem and i now can get to the splash screen! But after the spash screen I get another kernel panic! I attached a screen shot.
Attachments
krnlerror.GIF
This is the error
krnlerror.GIF (3.76 KiB) Viewed 8675 times
Lemons. :) Nobody doesn't like lemons!

User avatar
osmiumusa
Posts: 36
Joined: Sat Jan 15, 2011 8:06 pm

Re: Booting issue

Post by osmiumusa » Wed Feb 02, 2011 7:44 pm

Hello? Anybody?
Lemons. :) Nobody doesn't like lemons!

Post Reply