* Why get_fs_names return NULL?
@ 2009-09-26 9:19 wilbur.chan
0 siblings, 0 replies; only message in thread
From: wilbur.chan @ 2009-09-26 9:19 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-26 9:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-26 9:19 Why get_fs_names return NULL? wilbur.chan
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®