From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hima.com (mail.hima.com [80.146.244.10]) by ozlabs.org (Postfix) with SMTP id 7ABA767CDB for ; Thu, 21 Jul 2005 17:32:32 +1000 (EST) Received: from SN7606 ([192.168.100.10]) by hima.com (mail.hima.com [212.116.4.129]) (MDaemon.PRO.v8.0.3.R) with ESMTP id md50000058399.msg for ; Thu, 21 Jul 2005 09:32:31 +0200 From: "David Grab" To: "'T Ziomek'" , Date: Thu, 21 Jul 2005 09:30:56 +0200 Message-ID: <000501c58dc6$22246a20$f201a8c0@SN7606> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-reply-to: Subject: AW: AW: AW: initrd rootfs ramdisk List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> i solved my problem with u-boot and linux. Now i have my rootfs ramdisk >> mounted and functioning. But one output is weird. >Can I ask what what you had to change to get your initrd RAM disk working? >I'm having a very similar problem. Sure! :) 1. I used the ramdisk provided by ELDK from www.denx.de. A good description is here http://www.denx.de/twiki/bin/view/DULG/RootFileSystemDesignAndBuilding 2. Write ramdisk into flash at any address. 3. Configuring u-boot for command line parameters in /u-boot/include/configs/. These definitions i have made. BOOTARGS are the command line parameters which u-boot passes to linux. BOOTCOMMAND is not really necessary, but you only type bootd and not "bootm ". So you don?t spend much time for typing. ;) BOOTDELAY is disabled, because i actually don?t want an autoboot of the linux kernel. #define CONFIG_BOOTARGS "console=ttyS1,115200 root=/dev/ram rw" #define CONFIG_BOOTCOMMAND "bootm ff000000 ff800000" /* autoboot command */ #define CONFIG_BOOTDELAY -1 /* disable autoboot?? */ 4. Now configuring linux kernel for ramdisk support. Following options are needed. CONFIG_CMDLINE_BOOL=y CONFIG_CMDLINE="" Enables command line parameters in linux kernel. I also set following options to enable ramdisk support. Maybe there are some more options which don?t concerns to ramdisk support. # # Block devices # # CONFIG_BLK_DEV_FD 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_UMEM is not set # CONFIG_BLK_DEV_COW_COMMON is not set CONFIG_BLK_DEV_LOOP=y # CONFIG_BLK_DEV_CRYPTOLOOP is not set # CONFIG_BLK_DEV_NBD is not set # CONFIG_BLK_DEV_SX8 is not set # CONFIG_BLK_DEV_UB is not set CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE="" # CONFIG_LBD is not set # CONFIG_CDROM_PKTCDVD is not set # # File systems # CONFIG_EXT2_FS=y # CONFIG_EXT2_FS_XATTR is not set CONFIG_EXT3_FS=y CONFIG_EXT3_FS_XATTR=y # CONFIG_EXT3_FS_POSIX_ACL is not set # CONFIG_EXT3_FS_SECURITY is not set CONFIG_JBD=y # CONFIG_JBD_DEBUG is not set CONFIG_FS_MBCACHE=y # CONFIG_REISERFS_FS is not set # CONFIG_JFS_FS is not set # # Pseudo filesystems # CONFIG_PROC_FS=y CONFIG_PROC_KCORE=y CONFIG_SYSFS=y # CONFIG_DEVFS_FS is not set # CONFIG_DEVPTS_FS_XATTR is not set # CONFIG_TMPFS is not set # CONFIG_HUGETLB_PAGE is not set CONFIG_RAMFS=y That?s all i think. Best regards, David