All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael D. Crawford" <crawford@goingware.com>
To: linux-kernel@vger.kernel.org
Subject: cramfs: wrong magic when loading ramdisk from floppy
Date: Thu, 26 Sep 2002 22:39:08 -0400	[thread overview]
Message-ID: <3D93C4CC.7070505@goingware.com> (raw)

I'm trying to load a cramfs filesystem as a ramdisk from a floppy.  After I am 
prompted to insert the floppy with the ramdisk image, and the kernel 
acknowledges that it found a compressed image, I get the message:

cramfs: wrong magic

and then the kernel panics.

What I am trying to do is to use a regular PC to estimate the amount of RAM and 
flash ROM an embedded project will require, so I'm loading a cramfs image from 
floppy that will be similar to the cramfs image that will be loaded into flash. 
  I'm also booting a kernel with only enough options selected to boot and use 
the console, ramdisk, cramfs and floppy disk.  It's otherwise a stock 2.4.19 kernel.

I added a line to fs/cramfs/inode.c to print out the magic that it's seeing, and 
it is 0xf6f6f6f6, which is not correct.

I'm using syslinux on a FAT floppy for my bootloader.  The contents of 
syslinux.cfg are:

DEFAULT linux root=/dev/fd0 init=/bin/sh load_ramdisk=1 prompt_ramdisk=1

Thanks for any help you can give me.

Mike

-- 
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
http://www.goingware.com/
crawford@goingware.com

      Tilting at Windmills for a Better Tomorrow.


                 reply	other threads:[~2002-09-26 18:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D93C4CC.7070505@goingware.com \
    --to=crawford@goingware.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.