JFFS2 Root Filesystem and Linux 2.6.19
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.3When 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'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
____________________________________________________________________________________
No need to miss a message. Get email on-the-go
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail
+Ethernet eth0: MAC address 00:0e:0c:5a:c9:12
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.2 Default server: 192.168.0.2, DNS server IP: 0.0.0.0
RedBoot(tm) bootstrap and debug environment [ROM]
Red Hat certified release, version 1.92 - built 13:56:07, Oct 20 2003
Platform: ADI Coyote (XScale)
IDE/Parallel Port CPLD Version: 1.0
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x00000000-0x04000000, 0x0001f960-0x03fd1000 available
FLASH: 0x50000000 - 0x51000000, 128 blocks of 0x00020000 bytes each.
== Executing boot script in 1.000 seconds - enter ^C to abort
RedBoot> fis load -b 0x00020000 zImage
RedBoot> go -n 0x00020000
Uncompressing Linux....................................................................... done, bo. Linux version 2.6.19-uc1 (guod@stone) (gcc version 3.4.4) #2 Tue Jan 23 20:12:16 EST 2007
CPU: XScale-IXP42x Family [690541c1] revision 1 (ARMv5TE), cr=000039ff
Machine: ADI Engineering Coyote
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists. Total pages: 16256
Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2 mem=64M@0x00000000 PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62652KB available (1772K code, 340K data, 104K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers enabled
dmabounce: registered device 0000:00:0f.0 on pci bus
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
JFFS2: default compression mode: priority
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xc8001000 (irq = 13) is a XScale
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.htmleepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <[email protected]> and ots
eth0: 0000:00:0f.0, 00:0E:0C:5A:C9:12, IRQ 28.
Board assembly 741462-017, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0x8b51f404).
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write methodcfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0xfe0000
5 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 5 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00060000 : "RedBoot"
mtd: Giving out device 0 to RedBoot
0x00080000-0x00280000 : "zImage"
mtd: Giving out device 1 to zImage
0x00280000-0x00fc0000 : "rootfs"
mtd: Giving out device 2 to rootfs
0x00fc0000-0x00fc1000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't end on an erase block -- force read-only
mtd: Giving out device 3 to RedBoot config
0x00fe0000-0x01000000 : "FIS directory"
mtd: Giving out device 4 to FIS directory
mice: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Time: OSTS clocksource has been installed.
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 104K
Welcome to
S n a p G e a r L i n u x
For further information check:
http://www.snapgear.org/
# ip link show
ip: '/lib/' is not an ELF file
ip: can't load library ''
#
# ip link show
1: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 00:0e:0c:5a:c9:12 brd ff:ff:ff:ff:ff:ff
2: lo: <LOOPBACK> mtu 16436 qdisc noop
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
#