//begin .config
#
# Automatically generated by make menuconfig: don't edit
#
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
#
# Machine selection
#
# CONFIG_ACER_PICA_61 is not set
# CONFIG_ALGOR_P4032 is not set
# CONFIG_BAGET_MIPS is not set
# CONFIG_DECSTATION is not set
CONFIG_IDTS381=y
# CONFIG_MIPS_MAGNUM_4000 is not set
# CONFIG_OLIVETTI_M700 is not set
# CONFIG_SGI is not set
# CONFIG_SNI_RM200_PCI is not set
#
# CPU selection
#
CONFIG_CPU_R3000=y
# CONFIG_CPU_R6000 is not set
# CONFIG_CPU_R4300 is not set
# CONFIG_CPU_R4X00 is not set
# CONFIG_CPU_R5000 is not set
# CONFIG_CPU_NEVADA is not set
# CONFIG_CPU_R8000 is not set
# CONFIG_CPU_R10000 is not set
#
# General setup
#
CONFIG_CPU_LITTLE_ENDIAN=y
CONFIG_CPU_LITTLE_ENDIAN=y
CONFIG_ELF_KERNEL=y
# CONFIG_BINFMT_AOUT is not set
CONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
# CONFIG_BINFMT_JAVA is not set
CONFIG_NET=y
# CONFIG_SYSVIPC is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_SYSCTL is not set
# CONFIG_PARPORT is not set
#
# Loadable module support
#
# CONFIG_MODULES is not set
#
# Frame Buffer support
#
# CONFIG_FB is not set
#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_IDE is not set
# CONFIG_BLK_DEV_HD_ONLY is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_MD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_INITRD=y
# CONFIG_BLK_DEV_XD is not set
CONFIG_PARIDE_PARPORT=y
# CONFIG_PARIDE is not set
# CONFIG_BLK_DEV_HD is not set
#
# Networking options
#
# CONFIG_PACKET is not set
# CONFIG_NETLINK is not set
# CONFIG_FIREWALL is not set
# CONFIG_NET_ALIAS is not set
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_IP_ROUTER is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_ALIAS is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_RARP is not set
CONFIG_IP_NOSR=y
# CONFIG_SKB_LARGE is not set
# CONFIG_IPV6 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_BRIDGE is not set
# CONFIG_LLC is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set
# CONFIG_CPU_IS_SLOW is not set
# CONFIG_NET_SCHED is not set
#
# SCSI support
#
# CONFIG_SCSI is not set
#
# Network device support
#
CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_SLIP is not set
# CONFIG_PPP is not set
# CONFIG_DECLANCE is not set
#
# DECstation/idt Character devices
#
# CONFIG_VT is not set
CONFIG_SERIAL=y
# CONFIG_DZ is not set
CONFIG_SERIAL_CONSOLE=y
CONFIG_PROM_CONSOLE=y
# CONFIG_UNIX98_PTYS is not set
# CONFIG_KEYBOARD is not set
# CONFIG_MOUSE is not set
# CONFIG_RTC is not set
#
# Filesystems
#
# CONFIG_QUOTA is not set
# CONFIG_MINIX_FS is not set
CONFIG_EXT2_FS=y
# CONFIG_ISO9660_FS is not set
# CONFIG_FAT_FS is not set
# CONFIG_MSDOS_FS is not set
# CONFIG_UMSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_PROC_FS is not set
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set
# CONFIG_SUNRPC is not set
# CONFIG_LOCKD is not set
# CONFIG_CODA_FS is not set
# CONFIG_SMB_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_MAC_PARTITION is not set
# CONFIG_NLS is not set
#
# Sound
#
# CONFIG_SOUND is not set
#
# Kernel hacking
#
CONFIG_CROSSCOMPILE=y
# CONFIG_REMOTE_DEBUG is not set
# CONFIG_MAGIC_SYSRQ is not set
//end.config
//begin mkimg
dd if=/dev/zero of=/dev/ram1 bs=1k count=123
mke2fs -vm0 /dev/ram1 123
mount /dev/ram1 /mnt
cp /tftpboot/hello7 /mnt
umount /mnt
dd if=/dev/ram1 bs=1k count=123 >ram_image
mipsel-linux-ld -EL -Tld.script -b binary -o ramdisk.img ram_image
//end mkimg
//begin gdb-result
GNU gdb 4.17-ecosSWtools-981021
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions. This version of GDB is
supported
for customers of Cygnus Solutions. Type "show warranty" for details.
This GDB was configured as "--host=i586-pc-linux-gnulibc1
--target=mips-tx39-elf"...
(gdb) target mips /dev/ttyS1
Remote MIPS debugging using /dev/ttyS1
0x80020000 in genexcept_early ()
Current language: auto; currently asm
(gdb) load
Exiting remote debug\r
.text : 0x80020000 .. 0x 0
##################################################
'#':repeat #45 lines
############################################################
.fixup : 0x800cb800 .. 0x 0 ##############
__ex_table : 0x800cc230 .. 0x 0
###################################
.text.init : 0x800ce000 .. 0x 0
#######################################################################
#######################################################################
###
.data.init : 0x800d50b0 .. 0x 0 ##
.reginfo : 0x800d6000 .. 0x 0 #
.data : 0x800d6020 .. 0x 0
#######################################################################
'#':repeat #10 lines
######################################################################
.sdata : 0x801031d0 .. 0x 0
(gdb) r
Starting program: /usr/src/linux-2.1.121-r3000/vmlinux
Linux/MIPS idt/DECstation Boot\r
This idt/DECStation is a DS2100/3100 with 16384kB RAM\r
Launching Kernel ...\r
\r
Linux version 2.1.121 (root@jmt) (gcc version 2.7.2) #98 Thu Jun 24
17:56:38 CST 1999\r
setup_arch\r
idt/decstation_setup\r
initrd_start:800e45d0\r
initrd size:1ec00\r
initrd_end:801031d0\r
paging_init\r
trap_init\r
init_IRQ\r
sched_init\r
time_init\r
...bypass CMOS_READ(...):p\r
init_cycle_counter\r
...bypass board_time_init():d\r
parse_options\r
console_init\r
kmem_cache_init\r
calibrate_delay\r
...bypass Calibrating delay loop... 0.82 BogoMIPS:q\r
...bypass disable initrd:p\r
mem_init\r
kmem_cache_sizes_init\r
uidcache_init\r
filescache_init\r
dcache_init\r
vma_init\r
...bypass filesystem: buffer_init:p\r
signals_init\r
inode_init\r
file_table_init\r
check_bugs\r
POSIX conformance testing by UNIFIX\r
smp_init\r
do_basic_setup...sock_init\r
bdflush\r
kswapd_setup\r
kswapd\r
mount_initrd:1\r
...bypass (net)device_setup:p\r
binfmt_setup\r
filesystem_setup\r
mount_root\r
VFS: Cannot open root device 00:00\r
VFS: Unable to mount root fs on 00:00
//end gdb-result
----------
寄件者: Janos Farkas
傳送日期: 1999年6月24日 PM 07:16
收件者 jmt
主旨: Re: [?]failed at mount_root:(initial file system,linux-kernel-mips-r3k,no extra boot loader)
On 1999-06-24 at 18:46:55, jmt wrote:
> Thx,I have followed the instructions to make a ramdisk image & linked
> it with linux-kernel Now the problem is it failed at "mount_root"
> Msg: VFS: Cannot open root device 00:00
> VFS: Unable to mount root fs on 00:00
> Where the possible problem is? & how to fix it?
Have you enabled the rest of the initrd with CONFIG_INITRD (or something
like that?); is the filesystem code compiled into the kernel? Is the
ramdisk code compiled into the kernel?
(I write this privately because these are too "trivial" problems for
linux-kernel, IMHO; but it would be nice if you wrote something about
how you did it in the end, what caused the errors..)
Janos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/