編好核心後就卡在開機,救救我吧
以下是自編核心的開機時的錯誤代碼
- 代碼: 選擇全部
RAMDISK: Couldn′t find valid RAM disk image starting at 0.
Freeing initrd memory: 1236k freed
VFS: Cannot open root device "0303" or unknown-block(3,3)
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(3,3)
我的fs是reiserfs,有把reiserfs編進核心,以下是.config的reiserfs部分
- 代碼: 選擇全部
CONFIG_REISERFS_FS=y
CONFIG_REISERFS_CHECK=y
CONFIG_REISERFS_PROC_INFO=y
gcc是用unstable版的3.2.3
- 代碼: 選擇全部
debian:~# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.3 (Debian)
debian:~#