From: "wilbur.chan" <wilbur512@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Why get_fs_names return NULL?
Date: Sat, 26 Sep 2009 17:19:07 +0800 [thread overview]
Message-ID: <e997b7420909260219n17fcf421ke2e552e6311c66f6@mail.gmail.com> (raw)
I am going to start a kernel using ramdisk, but kernel panic when
mounting the ramdisk fs.
After traped the code , I found that , when kernel invoked
get_fs_names, it got a NULL list of existing file system names.
That is to say,
prepare_namespace--->mount_root-->mount_block_root-->get_fs_names-->get_filesystem_list
,
return a list of nothing...
I thought that , maybe module_init(init_ext2_fs) failed , but I don't
know why? and how to solve it ?
here is my ramdisk script:
mkdir initrd
dd if=/dev/zero of=initrd.img bs=1k count=4096
mke2fs -F -v -m0 initrd.img
mount -o loop initrd.img initrd
cp -av rootfs/* initrd
sync
umount initrd
sync
gzip -f -9 initrd.img
sync
./mkimage -T ramdisk -C gzip -n ' Ramdisk Image' -d initrd.img.gz
your.ramdisk.u-boot
reply other threads:[~2009-09-26 9:19 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=e997b7420909260219n17fcf421ke2e552e6311c66f6@mail.gmail.com \
--to=wilbur512@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®