[OpenWrt-Tickets] [OpenWrt] #3407: JFFS problems on WG302v2 (IXP4XX)
OpenWrt
openwrt-devel at lists.openwrt.org
Tue May 13 10:11:28 CEST 2008
#3407: JFFS problems on WG302v2 (IXP4XX)
----------------------+-----------------------------------------------------
Reporter: oshcraft | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone: 7.10?
Component: kernel | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by rwhitby):
I have the same problem on an NSLU2 running r11129:
{{{
+Ethernet eth0: MAC address 00:0f:66:7f:3a:15
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0
RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb 3 2004
Platform: IXDP425 Development Platform (XScale)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 2.000 seconds - enter ^C to abort
RedBoot> boot;exec 0x01d00000
have eRcOmM
copy kernel code from flash to RAM
copy ramdisk file from flash to RAM
run kernel
Using base address 0x01d00000 and length 0x0000b854
Ans
APEX Boot Loader 1.5.13 -- Copyright (c) 2004,2005,2006,2007 Marc Singer
compiled for OpenWRT NSLU2 (8MiB Flash)
APEX comes with ABSOLUTELY NO WARRANTY. It is free software and
you are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.
apex => mem:0x00200000+0xb854 (47188 bytes)
env => nor:0x7f8000+16k (empty)
Use the command 'help help' to get started.
# sdram-init
1 bank of 2 128Mib chips
# memscan -u 0+256m
0x0 0x02000000 (32 MiB)
# copy $kernelsrc $bootaddr
# copy fis://kernel 0x00008000
1048544 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
# boot
ATAG_HEADER
ATAG_MEM: start 0x00000000 size 0x02000000
ATAG_CMDLINE: (94 bytes) 'root=/dev/mtdblock4 rootfstype=squashfs,jffs2
console'
ATAG_END
Booting kernel at 0x00008000...
Uncompressing
Linux.............................................................
Linux version 2.6.25.1 (rwhitby at take) (gcc version 4.1.2) #2 Tue May 13
15:19:28
CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=000039ff
Machine: Linksys NSLU2
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 in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: root=/dev/mtdblock4 rootfstype=squashfs,jffs2
console=ttySd
PID hash table entries: 128 (order: 7, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 30340KB available (1840K code, 170K data, 96K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 440 bytes
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
NSLU2: Using MAC address 00:0f:66:7f:3a:15 for port 0
PCI: IXP4xx is host
PCI: IXP4xx Using direct access for memory space
PCI: bus0: Fast back to back transfers disabled
dmabounce: registered device 0000:00:01.0 on pci bus
dmabounce: registered device 0000:00:01.1 on pci bus
dmabounce: registered device 0000:00:01.2 on pci bus
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
IXP4xx Queue Manager initialized.
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
eth0: MII PHY 1 on NPE-B
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
6 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 6 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00040000 : "RedBoot"
0x00040000-0x00060000 : "SysConf"
0x00060000-0x00080000 : "Loader"
0x00080000-0x00180000 : "Kernel"
0x00180000-0x007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=2C0000, len=520000
0x002c0000-0x007e0000 : "rootfs_data"
0x007e0000-0x00800000 : "FIS directory"
i2c /dev entries driver
rtc-x1205 0-006f: chip found, driver version 1.0.8
rtc-x1205 0-006f: rtc core: registered rtc-x1205 as rtc0
i2c-gpio i2c-gpio.0: using pins 7 (SDA) and 6 (SCL)
IXP4xx Watchdog Timer: heartbeat 60 sec
Registered led device: nslu2:green:ready
Registered led device: nslu2:red:status
Registered led device: nslu2:green:disk-1
Registered led device: nslu2:green:disk-2
nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP westwood registered
NET: Registered protocol family 1
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb at candelatech.com>
All bugs added by David S. Miller <davem at redhat.com>
XScale DSP coprocessor detected.
rtc-x1205 0-006f: setting system clock to 2008-05-13 17:37:24 UTC
(1210700244)
VFS: Mounted root (squashfs filesystem) readonly.
Freeing init memory: 96K
Please be patient, while OpenWrt loads ...
- preinit -
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -
Please press Enter to activate this console. NPE-B: firmware's license can
be fL
NPE-B: firmware functionality 0x2, revision 0x2:1
eth0: link down
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PPP generic driver version 2.4.2
Driver 'sd' needs updating - please use bus_type methods
wlan: trunk
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.30.13 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112,
RF2413, RF5)
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
wlan: mac acl policy registered
ath_pci: trunk
USB Universal Host Controller Interface driver v3.0
PCI: enabling device 0000:00:01.2 (0140 -> 0142)
ehci_hcd 0000:00:01.2: EHCI Host Controller
ehci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:01.2: irq 26, io mem 0x48002000
ehci_hcd 0000:00:01.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
jffs2_build_filesystem(): unlocking the mtd device... done.
jffs2_build_filesystem(): erasing all blocks after the end marker... done.
mini_fo: using base directory: /
mini_fo: using storage directory: /jffs
BusyBox v1.8.2 (2008-05-13 14:15:17 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (bleeding edge, r11129) -------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root at OpenWrt:/# ps -ef
PID Uid VSZ Stat Command
1 root 1280 S init
2 root SW< [kthreadd]
3 root SW< [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
39 root SW< [kblockd/0]
66 root SW [pdflush]
67 root SW [pdflush]
68 root SW< [kswapd0]
69 root SW< [aio/0]
597 root SW< [mtdblockd]
1835 root 1280 S logger -s -p 6 -t
1837 root 1284 S /bin/ash --login
1853 root 1292 S syslogd -C16
1855 root 1272 S klogd
1865 root 588 S /sbin/hotplug2 --override --persistent --max-
children
1947 root SW< [khubd]
1954 root SW< [ata/0]
1957 root SW< [ata_aux]
2057 root 1292 S udhcpc -t 0 -i eth0 -r 192.168.1.1 -b -p
/var/run/eth
2162 root 1276 S /usr/sbin/httpd -p 80 -h /www -r OpenWrt
2166 root 1276 S telnetd -l /bin/login
2177 root 708 S /usr/sbin/dnsmasq -K -D -y -Z -b -E -s lan -S
/lan/ -
2193 root SWN [jffs2_gcd_mtd5]
2217 root 1272 S watchdog -t 5 /dev/watchdog
2226 root 888 S /usr/sbin/dropbear -p 22
2228 root 1280 R ps -ef
root at OpenWrt:/# df
Filesystem 1k-blocks Used Available Use% Mounted on
mini_fo:/tmp/root 1280 1280 0 100% /tmp/root
/dev/mtdblock5 5248 392 4856 7% /jffs
mini_fo:/jffs 1280 1280 0 100% /
root at OpenWrt:/# ipkg update
Downloading
http://downloads.openwrt.org/snapshots/ixp4xx/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/snapshots
Done.
root at OpenWrt:/# ipkg install webif
Installing webif (0.3-10) to root...
Downloading
http://downloads.openwrt.org/snapshots/ixp4xx/packages/./webif_0.3-k
Installing haserl (0.8.0-2) to root...
Downloading
http://downloads.openwrt.org/snapshots/ixp4xx/packages/./haserl_0.8k
Configuring haserl
Configuring webif
Processor : XScale-IXP42x Family rev 1 (v5b)
Downloading
http://downloads.openwrt.org/snapshots/ixp4xx/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/snapshots
Downloading
http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/ixp4xx-2.6/packas
Updated list of available packages in /usr/lib/ipkg/lists/X-Wrt
Done.
Hardware : Linksys NSLU2
Committing new firmware id ...
Device: Linksys NSLU2
Committing new device id ...
SUCCESS! Webif^2 installation appears OK. Welcome to X-Wrt!
You may need to do a hard REFRESH to clear old CSS style from your
browser.
Reinitializing httpd ...
dentry_open called with NULL vfsmount
Function entered at [<c00248ac>] from [<c00741c4>]
Function entered at [<c0074194>] from [<c00b62a4>]
r7:00000006 r6:00000006 r5:c191f43c r4:c192fdcc
Function entered at [<c00b61fc>] from [<c00b6440>]
Function entered at [<c00b6410>] from [<c00b83b4>]
r7:c19121c4 r6:00000000 r5:c191f154 r4:c19847fc
Function entered at [<c00b82a8>] from [<c00b8df4>]
Function entered at [<c00b8dc8>] from [<c007ce80>]
Function entered at [<c007cc64>] from [<c007e92c>]
Function entered at [<c007e7bc>] from [<c007e9c0>]
Function entered at [<c007e99c>] from [<c0020960>]
mini_fo: meta_write_d_entry: ERROR
opening me.
Done.
root at OpenWrt:/#
root at OpenWrt:/#
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/3407#comment:5>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
More information about the openwrt-tickets
mailing list