From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <006201c0cda6$19cdd940$9bca8a89@cern.ch> From: "Shoudong Xu" To: "linuxppc-embedded" Subject: Question about linuxppc_2_5 Date: Wed, 25 Apr 2001 18:38:03 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Sender: owner-linuxppc-embedded@lists.linuxppc.org List-Id: Hi, I try to run linuxppc_2_5 (ramdisk size = 4096KB and initrd supported) with a root fs (build by myself) on a Force powerCore 6750 board with the following configuration : root =/dev/ram Here , I can not pass commond string the kernel , so I have to modify the file arch/ppc/kernel/setup.c direct - sprintf(cmd_line,/*"nfsroot=10.0.0.69:/opt/hardhat/devkit/ppc/4xx/target */"ip=autoconf"); + sprintf(cmd_line,"root=/dev/ram") Then make zImage.initrd to get a kernel image -- zImage.initrd.pcore and I burn it to user_flash1 But - the start-info shows as follows: =========================================================================== Init serial 1 at address: 0xFE0003F8 Init serial 2 at address: 0xFE0002F8 Init CIO at address: 0xFE000300 Init Ethernet Controller at address: 0xFE850000 Init UNIVERSE VMEbus device at address: 0xFE810000 PowerCore is VMEbus System Controller (SYSCON=1) Found CPU740/750, PVR=00088202, CPU clock: 376MHz, Bus clock: 83MHz SDRAM mode enabled, Parity disabled Onboard DRAM : none Init DRAM Module 1: 4MB----- 64MB, 0x00000000..0x03FFFFFF Init DRAM Module 2: none Init DTLB/ITLB for block translation, enable MMU Init L1-Icache Init L1-Dcache Init L2-Cache, found 1024 kByte cache, 125MHz Init exception vectors starting at address: 0x00000100 Read NVRAM...identify board Read DEC SROM...done - CRC is OK Autoboot enabled...02s01s00s..USER_FLASH Memory 1 Start execution at address 0xFFE00000loaded at: FFE00000 FFE0A1B8 relocated to: 00800000 0080A1B8 zimage at: FFE07000 FFE46E41 initrd at: FFE46E41 FFF14F63 avail ram: 00400000 00800000 Linux/PPC load: console=ttyS0,9600 console=tty0 root=/dev/ram initrd_start located > 16M Uncompressing Linux...done. Now booting the kernel Total memory = 64MB; using 256kB for hash table (at c00c0000) Linux version 2.4.2 (Shoudong@macl3tw1) (gcc version 2.95.2 19991024 (release/franzo)) #5 Wed Apr 25 19:32:20 CEST 2001 Boot arguments: root=/dev/ram On node 0 totalpages: 16384 zone(0): 16384 pages. zone(1): 0 pages. zone(2): 0 pages. Kernel command line: root=/dev/ram time_init: decrementer frequency = 20.623975 MHz Calibrating delay loop... 742.19 BogoMIPS Memory: 63344k available (472k kernel code, 244k data, 48k init, 0k highmem) Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes) Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 4096 (order: 3, 32768 bytes) POSIX conformance testing by UNIFIX PCI: Probing PCI hardware Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Starting kswapd v1.8 block: queued sectors max/low 42048kB/14016kB, 128 slots per queue RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A ttyS01 at 0x02f8 (irq = 3) is a 16550A VFS: Cannot open root device "ram" or 01:00 Please append a correct "root=" boot option Kernel panic: VFS: Unable to mount root fs on 01:00 Rebooting in 180 seconds.. =========================================================================== following configuration : # # Automatically generated by make menuconfig: don't edit # # CONFIG_UID16 is not set # # Code maturity level options # # CONFIG_EXPERIMENTAL is not set # # Loadable module support # # CONFIG_MODULES is not set # # Platform support # CONFIG_PPC=y CONFIG_CPU_PPC_6xx=y # CONFIG_CPU_PPC_4xx is not set # CONFIG_CPU_PPC_POWER3 is not set # CONFIG_CPU_PPC_POWER4 is not set # CONFIG_CPU_PPC_8xx is not set # CONFIG_CPU_PPC_8260 is not set # CONFIG_WORKSTATION_PPC is not set # CONFIG_APUS is not set CONFIG_PCORE=y # CONFIG_SPRUCE is not set # CONFIG_MENF1 is not set # CONFIG_MCPN765 is not set # CONFIG_MVME5100 is not set # CONFIG_PRPMC750 is not set # CONFIG_SANDPOINT is not set # CONFIG_K2 is not set # CONFIG_GEMINI is not set # CONFIG_ZX4500 is not set # CONFIG_PPC601_SYNC_FIX is not set # CONFIG_SMP is not set # CONFIG_ALTIVEC is not set # CONFIG_TAU is not set # CONFIG_OPENFIRMWARE is not set # # General setup # # CONFIG_HIGHMEM is not set # CONFIG_MOL is not set # CONFIG_ISA is not set # CONFIG_EISA is not set # CONFIG_SBUS is not set # CONFIG_MCA is not set CONFIG_PCI=y # CONFIG_NET is not set # CONFIG_SYSCTL is not set # CONFIG_SYSVIPC is not set # CONFIG_BSD_PROCESS_ACCT is not set CONFIG_BINFMT_ELF=y CONFIG_KERNEL_ELF=y # CONFIG_BINFMT_MISC is not set # CONFIG_PCI_NAMES is not set # CONFIG_HOTPLUG is not set # CONFIG_PCMCIA is not set # # Parallel port support # # CONFIG_PARPORT is not set # CONFIG_PPC_RTC is not set CONFIG_CMDLINE_BOOL=y CONFIG_CMDLINE="console=ttyS0,9600 console=tty0 root=/dev/ram" # # Memory Technology Devices (MTD) # # CONFIG_MTD is not set # # Plug and Play configuration # # CONFIG_PNP is not set # CONFIG_ISAPNP is not set # # Block devices # # CONFIG_BLK_DEV_FD is not set # CONFIG_BLK_DEV_XD is not set # CONFIG_PARIDE is not set # CONFIG_BLK_CPQ_DA is not set # CONFIG_BLK_CPQ_CISS_DA is not set # CONFIG_BLK_DEV_DAC960 is not set # CONFIG_BLK_DEV_LOOP is not set # CONFIG_BLK_DEV_NBD is not set CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_BLK_DEV_INITRD=y # # Multi-device support (RAID and LVM) # # CONFIG_MD is not set # CONFIG_BLK_DEV_MD is not set # CONFIG_MD_LINEAR is not set # CONFIG_MD_RAID0 is not set # CONFIG_MD_RAID1 is not set # CONFIG_MD_RAID5 is not set # CONFIG_BLK_DEV_LVM is not set # # ATA/IDE/MFM/RLL support # # CONFIG_IDE is not set # CONFIG_BLK_DEV_IDE_MODES is not set # CONFIG_BLK_DEV_HD is not set # # SCSI support # # CONFIG_SCSI is not set # # Amateur Radio support # # CONFIG_HAMRADIO is not set # # ISDN subsystem # # CONFIG_ISDN is not set # # Old CD-ROM drivers (not SCSI, not IDE) # # CONFIG_CD_NO_IDESCSI is not set # # Console drivers # # CONFIG_VGA_CONSOLE is not set # # Frame-buffer support # # CONFIG_FB is not set # # Input core support # # CONFIG_INPUT is not set # # Macintosh device drivers # CONFIG_MACINTOSH_DRIVERS=y # CONFIG_ADB is not set # CONFIG_ADB_PMU is not set # CONFIG_ADB_CUDA is not set # # Character devices # # CONFIG_VT is not set CONFIG_SERIAL=y CONFIG_SERIAL_CONSOLE=y # CONFIG_SERIAL_EXTENDED is not set # CONFIG_SERIAL_NONSTANDARD is not set # CONFIG_UNIX98_PTYS is not set # # I2C support # # CONFIG_I2C is not set # # Mice # # CONFIG_BUSMOUSE is not set # CONFIG_MOUSE is not set # # Joysticks # # CONFIG_JOYSTICK is not set # CONFIG_QIC02_TAPE is not set # # Watchdog Cards # # CONFIG_WATCHDOG is not set # CONFIG_INTEL_RNG is not set # CONFIG_NVRAM is not set # CONFIG_RTC is not set # CONFIG_DTLK is not set # CONFIG_R3964 is not set # CONFIG_APPLICOM is not set # # Ftape, the floppy tape device driver # # CONFIG_FTAPE is not set # CONFIG_AGP is not set # CONFIG_DRM is not set # # Multimedia devices # # CONFIG_VIDEO_DEV is not set # # File systems # # CONFIG_QUOTA is not set # CONFIG_AUTOFS_FS is not set # CONFIG_AUTOFS4_FS is not set # CONFIG_REISERFS_FS is not set # CONFIG_REISERFS_CHECK is not set # CONFIG_ADFS_FS is not set # CONFIG_ADFS_FS_RW is not set # CONFIG_AFFS_FS is not set # CONFIG_HFS_FS is not set # CONFIG_BFS_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_EFS_FS is not set # CONFIG_JFFS_FS is not set # CONFIG_CRAMFS is not set # CONFIG_RAMFS is not set # CONFIG_ISO9660_FS is not set # CONFIG_JOLIET is not set # CONFIG_MINIX_FS is not set # CONFIG_NTFS_FS is not set # CONFIG_NTFS_RW is not set # CONFIG_HPFS_FS is not set # CONFIG_PROC_FS is not set # CONFIG_DEVFS_FS is not set # CONFIG_DEVFS_MOUNT is not set # CONFIG_DEVFS_DEBUG is not set # CONFIG_DEVPTS_FS is not set # CONFIG_QNX4FS_FS is not set # CONFIG_QNX4FS_RW is not set # CONFIG_ROMFS_FS is not set CONFIG_EXT2_FS=y # CONFIG_SYSV_FS is not set # CONFIG_SYSV_FS_WRITE is not set # CONFIG_UDF_FS is not set # CONFIG_UDF_RW is not set # CONFIG_UFS_FS is not set # CONFIG_UFS_FS_WRITE is not set # CONFIG_NCPFS_NLS is not set # CONFIG_SMB_FS is not set # # Partition Types # # CONFIG_PARTITION_ADVANCED is not set CONFIG_MSDOS_PARTITION=y # CONFIG_SMB_NLS is not set # CONFIG_NLS is not set # # Sound # # CONFIG_SOUND is not set # # USB support # # CONFIG_USB is not set # # Kernel hacking # # CONFIG_MAGIC_SYSRQ is not set # CONFIG_KGDB is not set # CONFIG_XMON is not set ====================================================================== Questions: 1)Why can't linux mount the root filessystem? How to mount ? 2)Can linux mount the flash as it's root filesystem direct? Best Regards Shoudong XU ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/