From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from web51903.mail.yahoo.com ([206.190.48.66]) by canuck.infradead.org with smtp (Exim 4.63 #1 (Red Hat Linux)) id 1HDhke-00047h-9Z for linux-mtd@lists.infradead.org; Sun, 04 Feb 2007 08:49:56 -0500 Date: Sun, 4 Feb 2007 05:43:11 -0800 (PST) From: Doug Kehn Subject: Re: JFFS2 Root Filesystem and Linux 2.6.19 To: linux-mtd@lists.infradead.org In-Reply-To: <142644.61282.qm@web51907.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <53943.37121.qm@web51903.mail.yahoo.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi All, Some additional information/clarification. > --- Doug Kehn wrote: > > > Hi All, > > > > Target: ADI Coyote, Intel XScale IXP-425, > bigendian > > Source: uClinux-dist-test-20070108 > > Linux 2.6.19 > > uClibc 0.9.27 > > Busybox 1.0.0 > > Toolchain: arm-linux-tools-20061213 > > binutils-2.16 > > gcc-3.4.4 > > glibc-2.3.3 > > glibc-linuxthreads-2.3.3 > > > > When the kernel is configured for a jffs2 rootfs, > > some > > apps fail to load with either a Segment Fault or > > "'/lib' is not an ELF file" the first time they > are > > executed. The second and subsequent executions of > > the > > same app work properly. Attached is a sample boot > > log. MTD and JFFS2 debugging information has been > > enabled. > > > > If, on the other hand, the kernel is configured > for > > an > > initrd and the jffs2 partition is mounted with > > 'mount' > > after boot, this error does not occur. > > I should have said if the rootfs is a ramdisk, sorry. The stock kernel command line for ADI Coyote in uClinux is: CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/ram0 initrd=0x00800000,8M mem=64M@0x00000000" Then from the shell: # mount -n -t jffs2 -o rw,noatime /dev/mtdblock2 /mnt/jffs2 Then running /mnt/jffs2/bin/ does not produce the error. I then tried an initrd with a kernel command line of CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/ram0 init=/linuxrc rw initrd=0x03E00000,1M mem=64M@0x00000000" and a linuxrc of #!/bin/sh echo"initrd: mounting jffs2 rootfs mkdir /jffs2 mount -n -t jffs2 -o rw,noatime /dev/mtdblock2 /jffs2 echo "initrd: starting rootfs" cd /jffs2 [ -d initrd ] || mkdir initrd pivot_root . initrd exec chroot . /sbin/init dev/console 2>&1 The error still occurs with this scheme. > > I've posted to the uClibc group and the uClinux > > group. > > My posts to these groups contain additional > detail > > as > > well as additional traces (included as > attachments). > > > > I thought it easier to provide links (see below) > > than > > to include all the information here. If this is > not > > the case, I'll compile all the information in to > one > > big post here. > > > > The uClibc thread is -- Bummer: could not find! > > > http://www.uclibc.org/lists/uclibc/2007-January/017086.html > > > > The uClinux thread is -- > uClinux-dist-test-20070108: > > Problems with jffs2 rootfs > > > http://mailman.uclinux.org/pipermail/uclinux-dev/2007-January/041699.html > > > > Any assistance will be appreciated. > > > > Thanks, > > ...doug > > > > > > > ____________________________________________________________________________________ Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A. http://answers.yahoo.com/dir/?link=list&sid=396545367