2010-01-29 03:38:06 jffs2 problem
尔文 罗 (CHINA)
Message: 85317
hello everyone.
i use jffs2 on my board with a 4M size nor flash. After boot success, it print "Write clean marker to block at 0x........." like below about 15 times, and i found that rootfs Use come from 69% to 100%.
## Booting image at 20040000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 909862 Bytes = 888.5 kB
Load Address: 00100000
Entry Point: 00290ac8
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 290ac8
Linux version 2.6.28.10-ADI-2009R1.1 (roll@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #85 Fri Jan 29 15:48:07 CST 2010
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00100000-0x0020dea0
rodata = 0x0020dea0-0x002635d0
bss = 0x00264000-0x00275314
data = 0x00275320-0x00286000
stack = 0x00284000-0x00286000
init = 0x00286000-0x0029f000
available = 0x0029f000-0x01bff000
DMA Zone = 0x01c00000-0x02000000
Hardware Trace Active and Enabled
Boot Mode: 1
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.1
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 600 MHz core clock and 120 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
Data Cache Enabled for CPU0 (write-back)
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 7111
Kernel command line: console=ttyBF0,57600 root=/dev/mtdblock2 rw rootfstype=jffs2
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
console [ttyBF0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 25696k/32768k RAM, (100k init code, 1079k kernel code, 481k data, 4096k dma, 1312k reserved)
Calibrating delay loop... 1196.03 BogoMIPS (lpj=2392064)
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 32 KB (32 KB free)
Blackfin L1 Instruction SRAM: 48 KB (44 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
ezkit_init(): registering device resources
SCSI subsystem initialized
cfg80211: Calling CRDA to update world regulatory domain
cfg80211: Failed calling CRDA
cfg80211: calling CRDA failed - unable to update world regulatory domain, using static definition
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
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
msgmni has been set to 50
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
simple-gpio: now handling 48 GPIOs: 0 - 47
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART
PPP generic driver version 2.4.2
NET: Registered protocol family 24
bfin_mii_bus: probed
bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, irq=-1, mdc_clk=2500000Hz(mdc_div=23)@sclk=120MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Linux video capture interface: v2.00
Driver 'sd' needs updating - please use bus_type methods
physmap platform flash device: 00400000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0035
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
RedBoot partition parsing not available
Using physmap partition information
Creating 8 MTD partitions on "physmap-flash.0":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00140000 : "Kernel"
0x00140000-0x003f0000 : "RootFS"
0x003f0000-0x003f8000 : "Log"
0x003f8000-0x003fa000 : "User_Config"
0x003fa000-0x003fc000 : "User_Config0"
0x003fc000-0x003fe000 : "Upgrade_Config"
0x003fe000-0x00400000 : "System_config"
physmap-flash.0: failed to claim resource 0
bfin-wdt: initialized: timeout=20 sec (nowayout=1)
TCP cubic registered
NET: Registered protocol family 17
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 100k freed
dma_alloc_init: dma_page @ 0x0029c000 - 1024 pages at 0x01c00000
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
8`._.' Y8. \ | |__ | | | | | |_| | / \ |
d/ `8b. \ \____||_|_| |_|\____|/_/\_\ |
dP . Y8b. \ For embedded processors including |
d8:' " `::88b \ the Analog Devices Blackfin /
d8" 'Y88b \___________________________________/
:8P ' :888
8a. : _a88P For further information, check out:
._/"Yaa_: .| 88P| - blackfin.uclinux.org/
\ YP" `| 8P `. - docs.blackfin.uclinux.org/
/ \.___.d| .' - www.uclinux.org/
`--..__)8888P`._.' jgs/a:f - www.analog.com/blackfin
Have a lot of fun...
BusyBox v1.13.4 (2010-01-20 18:23:46 CST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2752 1900 852 69% /
root:/> Write clean marker to block at 0x00240000 failed: -30
Write clean marker to block at 0x00230000 failed: -30
Write clean marker to block at 0x00220000 failed: -30
Write clean marker to block at 0x00210000 failed: -30
Write clean marker to block at 0x00200000 failed: -30
dfWrite clean marker to block at 0x001f0000 failed: -30
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2752 2348 404 85% /
root:/> Write clean marker to block at 0x001e0000 failed: -30
Write clean marker to block at 0x001d0000 failed: -30
Write clean marker to block at 0x001c0000 failed: -30
Write clean marker to block at 0x001b0000 failed: -30
Write clean marker to block at 0x002a0000 failed: -30
Write clean marker to block at 0x00290000 failed: -30
Write clean marker to block at 0x00280000 failed: -30
dfWrite clean marker to block at 0x00270000 failed: -30
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2752 2752 0 100% /
root:/> Write clean marker to block at 0x00260000 failed: -30
Write clean marker to block at 0x00250000 failed: -30
root:/>
i don't know reason why. who can help me?
QuoteReplyEditDelete
2010-01-29 16:06:54 Re: jffs2 problem
Mike Frysinger (UNITED STATES)
Message: 85340
please read the documentation first:
https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:jffs#troubleshooting
you should also figure out where this error is coming from:
physmap-flash.0: failed to claim resource 0
QuoteReplyEditDelete
2010-01-30 21:00:03 Re: jffs2 problem
尔文 罗 (CHINA)
Message: 85364
I have readed that document, and i cat /pro/mtd info, my flash erasesize is just 64kiB.
i don't know what does "physmap-flash.0: failed to claim resource 0" mean, and what should i do to deal with it.
QuoteReplyEditDelete
2010-01-31 02:10:19 Re: jffs2 problem
尔文 罗 (CHINA)
Message: 85366
Error info of "physmap-flash.0: failed to claim resource 0" is printed form file /drivers/base/platform.c, i chosed "Phymap compat support" option and the value of "Physical length of flash mapping" was 0 case this error.
After i set FORCE_WORD_WRITE to 1 in file /drivers/mtd/chips/cfi_cmdset_0001.c, error of "Write clean marker to block at 0x00240000 failed: -30" also disappear.
QuoteReplyEditDelete
2010-02-02 19:15:12 Re: jffs2 problem
Mike Frysinger (UNITED STATES)
Message: 85488
i dont know why you picked "Phymap compat support". dont enable that option. any problems while trying to use that are on your head to figure out/debug.