Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Aug 2001 01:45:39 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        tlambert2@mindspring.com
Cc:        Wilko Bulte <wkb@freebie.xs4all.nl>, John Baldwin <jhb@FreeBSD.org>, freebsd-alpha@FreeBSD.org
Subject:   Re: problems creating 4.4-alpha test/release cdrom 
Message-ID:  <200108070845.f778jei09077@mass.dis.org>
In-Reply-To: Your message of "Tue, 07 Aug 2001 01:17:18 PDT." <3B6FA40E.A2E374EB@mindspring.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Wilko Bulte wrote:
> > > Can you do 'load /kernel' (Note the /) and then boot?
> > 
> > k load kernel
> > don't know how to load module '/kernel.ko'
> > ok load /kernel
> > don't know how to load module '/kernel.ko'
> > 
> > > If so, does 'boot /kernel' work as well?
> > 
> > ok boot /kernel
> > don't know how to load module '/kernel.ko'
> 
> You are running the evil boot loader.
> 
> Your kernel needs to be installed as /boot/kernel/kernel.ko,
> I think.

Stop thinking, Terry.  It's not only bad for you, it's bad for the rest 
of us.

The error message "don't know how to load module 'foo'" is printed when 
the loader has successfully found and tried to load the module, but 
file_load() has returned EFTYPE.

Since the only file format the Alpha loader supports is ELF, and since it 
uses the common ELF loader in sys/boot/common/load_elf.c, and since the 
diagnostic above is only printed when the file loader returns EFTYPE or when 
no file loader is found, you can get a very short list of why the file 
might be being rejected:

 - the filename is NULL (not possible, since it's printed in the 
   diagnostic)
 - the file is too small
 - the file header fails IS_ELF()
 - the file header fails sanity checks
 - the file is not a kernel or a KLD

Most of this looks like either a cd9660 filesystem bug (quite likely) or 
a burn error (less likely but not impossible).

I'd consider starting by seeing what "ls -l" in the loader says about the 
size of the file.

> I also think you might want to add rock-ridge to the
> ISOFS image.

Stop thinking, Terry.  The loader's cd9660 filesystem:

/*
 * Stand-alone ISO9660 file reading package.
 *
 * Note: This doesn't support Rock Ridge extensions, extended attributes,
 * blocksizes other than 2048 bytes, multi-extent files, etc.
 */

> I think the problem you are seeing is due
> to the Alpha boot not doing the same thing that the x86
> boot does (fake up a RAM-disk floppy image, from which
> the /kernel in the image is loaded, and the resulting
> system then understands rock-ridge).

Stop thinking, again. 8)  As long as the loader that's being loaded is 
'cdboot', it ought to read the CDROM filesystem.  It doesn't have 
anything to do with this.

Regards,
Mike

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108070845.f778jei09077>