2011-03-25 08:23:30 JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99256
Hi ,
Why do i get the following error "jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001004: 0x5041 instead"
Procedure i'm following :
U-Boot 2008.10-svn2598 (ADI-2009R1.1-rc1) (Mar 23 2011 - 17:06:38)
CPU: ADSP bf537-0.3 (Detected Rev: 0.3) (spi flash boot)
Board: ADI BF537 stamp board
Support: blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM: 64 MB
Flash: 4 MB
SF: Got idcode ef 40 17
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 42:7A:55:13:0D:78
Hit any key to stop autoboot: 0
bfin>
bfin>
bfin>
bfin> tftpboot 0x1000000 jffs2
Using Blackfin EMAC device
TFTP from server 121.242.232.181; our IP address is 10.7.143.80; sending through gateway 10.200.1.1
Filename 'jffs2'.
Load address: 0x1000000
Loading: ### ICMP Host Redirect to 121.242.232.181 ##### ICMP Host Redirect to 121.242.232.181 ########## ICMP Host Redirect to 121.242.232.181 ######################
################# ICMP Host Redirect to 121.242.232.181 ################################################
#################################### ICMP Host Redirect to 121.242.232.181 #
done
Bytes transferred = 2449408 (256000 hex)
bfin> sf write 0x1000000 0x170000 0x256000
No SPI flash selected. Please run `sf probe'
bfin> sf probe 1
SF: Got idcode ef 40 17
8192 KiB W25Q64 at 0:1 is now current device
bfin> sf write 0x1000000 0x170000 0x256000
bfin> sf read 0x2000000 0x170000 0x2
bfin> md.b 0x2000000 0x2
02000000: 85 19 ..
bfin> tftpboot 0x1000000 vmimage
Using Blackfin EMAC device
TFTP from server 121.242.232.181; our IP address is 10.7.143.80; sending through gateway 10.200.1.1
Filename 'vmimage'.
Load address: 0x1000000
Loading: ### ICMP Host Redirect to 121.242.232.181 ##### ICMP Host Redirect to 121.242.232.181 ########### ICMP Host Redirect to 121.242.232.181 #####################
done
Bytes transferred = 860095 (d1fbf hex)
bfin> setenv bootargs root=/dev/mtdblock2 rw rootfstype=jffs2
bfin> save
Saving Environment to SPI Flash...
Erasing SPI flash...Erase: 20 01 00 00
Erase: 20 01 10 00
Erase: 20 01 20 00
Erase: 20 01 30 00
Erase: 20 01 40 00
Erase: 20 01 50 00
Erase: 20 01 60 00
Erase: 20 01 70 00
Erase: 20 01 80 00
Erase: 20 01 90 00
Erase: 20 01 a0 00
Erase: 20 01 b0 00
Erase: 20 01 c0 00
Erase: 20 01 d0 00
Erase: 20 01 e0 00
Erase: 20 01 f0 00
Writing to SPI flash...done
bfin> printenv
bootdelay=5
baudrate=57600
loads_echo=1
autoload=no
rootpath=/romfs
hostname=bf537-stamp
loadaddr=0x1000000
ubootfile=u-boot.ldr
update=tftp $(loadaddr) $(ubootfile);eeprom write $(loadaddr) 0x0 $(filesize)
addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off
ramargs=set bootargs root=/dev/mtdblock2 rw clkin_hz=25000000 rootfstype=jffs2 earlyprintk=serial,uart0,57600 console=ttyBF0,57600
ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm
nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3
nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm
ethact=Blackfin EMAC
ethaddr=42:7A:55:13:0D:78
sfbootsf=probe 1;sf read 0x1000000 0x40000 0xccffa;bootm 0x1000000
flashboot=sf read 0x1000000 0x40000 0xd1fbf;bootm 0x1000000
sfboot=sf probe 1;sf read 0x1000000 0x40000 0xd1fbf;bootm 0x1000000
bootcmd=run sfboot
filesize=D1FBF
fileaddr=1000000
gatewayip=10.200.1.1
netmask=255.255.255.0
ipaddr=10.7.143.80
serverip=121.242.232.181
bootargs=root=/dev/mtdblock2 rw rootfstype=jffs2
stdin=serial
stdout=serial
stderr=serial
Environment size: 1114/8188 bytes
bfin> bootm
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2011-03-25 9:11:58 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 860031 Bytes = 839.9 kB
Load Address: 00001000
Entry Point: 00183f50
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 00183f50
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 62320k/65536k RAM, (124k init code, 1017k kernel code, 475k data, 1024k dma, 572k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (37 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
Hardware Trace:
0 Target : <0x000047c0> { _dump_stack + 0x0 }
Source : <0x0000640a> { _bfin_gpio_request + 0xc2 } CALL pcrel
1 Target : <0x000063e8> { _bfin_gpio_request + 0xa0 }
Source : <0x00006392> { _bfin_gpio_request + 0x4a } IF CC JUMP
2 Target : <0x00006372> { _bfin_gpio_request + 0x2a }
Source : <0x000064ce> { _bfin_gpio_request + 0x186 } JUMP.S
3 Target : <0x000064ca> { _bfin_gpio_request + 0x182 }
Source : <0x00005c88> { _cmp_label + 0x44 } RTS
4 Target : <0x00005c80> { _cmp_label + 0x3c }
Source : <0x00005c78> { _cmp_label + 0x34 } IF !CC JUMP
5 Target : <0x00005c73> { _cmp_label + 0x2f }
Source : <0x00005c7c> { _cmp_label + 0x38 } IF CC JUMP
6 Target : <0x00005c62> { _cmp_label + 0x1e }
Source : <0x00005c4c> { _cmp_label + 0x8 } IF CC JUMP
7 Target : <0x00005c44> { _cmp_label + 0x0 }
Source : <0x000064c6> { _bfin_gpio_request + 0x17e } CALL pcrel
8 Target : <0x000064bc> { _bfin_gpio_request + 0x174 }
Source : <0x00006356> { _bfin_gpio_request + 0xe } IF CC JUMP
9 Target : <0x00006348> { _bfin_gpio_request + 0x0 }
Source : <0x00184316> { _stamp_init + 0x22 } CALL pcrel
10 Target : <0x0018430c> { _stamp_init + 0x18 }
Source : <0x0000f30a> { _printk + 0x16 } RTS
11 Target : <0x0000f306> { _printk + 0x12 }
Source : <0x0000fc62> { _vprintk + 0x276 } RTS
12 Target : <0x0000fc56> { _vprintk + 0x26a }
Source : <0x0000fc4a> { _vprintk + 0x25e } JUMP.S
13 Target : <0x0000fc4a> { _vprintk + 0x25e }
Source : <0xffa00bf0> { __common_int_entry + 0xcc } RTI
14 Target : <0xffa00b8e> { __common_int_entry + 0x6a }
Source : <0xffa009e0> { _return_from_int + 0x58 } RTS
15 Target : <0xffa009e0> { _return_from_int + 0x58 }
Source : <0xffa009b6> { _return_from_int + 0x2e } IF !CC JUMP
Stack info:
SP: [0x03ee1e28] <0x03ee1e28> /* kernel dynamic memory */
FP: (0x03ee1e28)
Memory from 0x03ee1e20 to 03ee2000
03ee1e20: 03ee1e28 0017c284 [00000000]<0000640e> 00000000 00000003 00000000 00000000
03ee1e40: 00000000 <0018431a> 00153024 001842f4 00000000 00000000 00000000 00000000
03ee1e60: 00153024 000ffd90 00000001 <0000104a> 83ee1fa3 ffffffff 001727d0 001727d0
03ee1e80: 00000000 <0002f3d6> 0022cbc0 001731b4 00000000 00000008 000040d0 03efd220
03ee1ea0: 000000d0 000240d0 00000000 00000000 001731b4 00000001 00000044 000240d0
03ee1ec0: 00000010 00000001 00000000 00000000 00000000 00000000 <00037de8> 00000000
03ee1ee0: 00000000 ffffffff 03ee1f6c <00085e9a> 0023a4a0 00239300 0016049c <00085f8a>
03ee1f00: 03efb6a0 00000000 000000d2 000000d1 <00038028> 03ee1f18 0022be10 00000000
03ee1f20: 00004000 00000000 00000000 <00038002><00038002> 00000000 <000613aa> 0023a4a0
03ee1f40: 00239300 00000000 0023a4a0 00004000 00000000 00000000 00000000 <00131400>
03ee1f60:<00061594> 0016a5b0 0015f9a8 000000d2 <000615a2> 0016a5b0 0015f9a8 0015f9a8
03ee1f80: 03ee1fa4 7fffff00 00000001 <0002a352> 03ee1fa4 00000061 001917b8 0000000e
03ee1fa0: 00239300 00003739 00000000 00000000 <0002a3a2> 001917b8 001917b8 00000061
03ee1fc0: 0016a5b0 <00176384> 00000000 0019180c 001917b8 00000000 00000000 00000000
03ee1fe0: 00000000 00000000 <00001426> 00000000 00000000 00000000 ffffffff 00000006
Return addresses in stack:
frame 1 : <0x0000640e> { _bfin_gpio_request + 0xc6 }
address : <0x0018431a> { _stamp_init + 0x26 }
address : <0x0000104a> { _do_one_initcall + 0x4a }
address : <0x0002f3d6> { ___alloc_pages_internal + 0x8a }
address : <0x00037de8> { _cache_alloc_refill + 0x250 }
address : <0x00085e9a> { _ida_get_new_above + 0x42 }
address : <0x00085f8a> { _ida_get_new_above + 0x132 }
address : <0x00038028> { ___kmalloc + 0x68 }
address : <0x00038002> { ___kmalloc + 0x42 }
address : <0x00038002> { ___kmalloc + 0x42 }
address : <0x000613aa> { _proc_register + 0x2e }
address : <0x00131400> /* kernel dynamic memory */
address : <0x00061594> { _create_proc_entry + 0x5c }
address : <0x000615a2> { _create_proc_entry + 0x6a }
address : <0x0002a352> { _register_irq_proc + 0x66 }
address : <0x0002a3a2> { _init_irq_proc + 0x36 }
address : <0x00176384> { _kernel_init + 0x68 }
address : <0x00001426> { _kernel_thread_helper + 0x6 }
bfin-gpio: GPIO 3 is already reserved as Peripheral by bfin-uart !
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
Hardware Trace:
0 Target : <0x000047c0> { _dump_stack + 0x0 }
Source : <0x0000640a> { _bfin_gpio_request + 0xc2 } CALL pcrel
1 Target : <0x000063e8> { _bfin_gpio_request + 0xa0 }
Source : <0x00006392> { _bfin_gpio_request + 0x4a } IF CC JUMP
2 Target : <0x00006372> { _bfin_gpio_request + 0x2a }
Source : <0x000064ce> { _bfin_gpio_request + 0x186 } JUMP.S
3 Target : <0x000064ca> { _bfin_gpio_request + 0x182 }
Source : <0x00005c88> { _cmp_label + 0x44 } RTS
4 Target : <0x00005c80> { _cmp_label + 0x3c }
Source : <0x00005c78> { _cmp_label + 0x34 } IF !CC JUMP
5 Target : <0x00005c73> { _cmp_label + 0x2f }
Source : <0x00005c7c> { _cmp_label + 0x38 } IF CC JUMP
6 Target : <0x00005c62> { _cmp_label + 0x1e }
Source : <0x00005c4c> { _cmp_label + 0x8 } IF CC JUMP
7 Target : <0x00005c44> { _cmp_label + 0x0 }
Source : <0x000064c6> { _bfin_gpio_request + 0x17e } CALL pcrel
8 Target : <0x000064bc> { _bfin_gpio_request + 0x174 }
Source : <0x00006356> { _bfin_gpio_request + 0xe } IF CC JUMP
9 Target : <0x00006348> { _bfin_gpio_request + 0x0 }
Source : <0x0018a18a> { _bfin_nand_init + 0x6a } CALL pcrel
10 Target : <0x0018a174> { _bfin_nand_init + 0x54 }
Source : <0xffa0161a> { _memset + 0x2e } RTS
11 Target : <0xffa015ec> { _memset + 0x0 }
Source : <0x0018a170> { _bfin_nand_init + 0x50 } CALL pcrel
12 Target : <0x0018a168> { _bfin_nand_init + 0x48 }
Source : <0xffa0161a> { _memset + 0x2e } RTS
13 Target : <0xffa015ec> { _memset + 0x0 }
Source : <0x0018a164> { _bfin_nand_init + 0x44 } CALL pcrel
14 Target : <0x0018a15a> { _bfin_nand_init + 0x3a }
Source : <0x0018a148> { _bfin_nand_init + 0x28 } IF CC JUMP
15 Target : <0x0018a13a> { _bfin_nand_init + 0x1a }
Source : <0x00037b94> { _kmem_cache_alloc + 0x68 } RTS
Stack info:
SP: [0x03ee1e1c] <0x03ee1e1c> /* kernel dynamic memory */
FP: (0x03ee1e1c)
Memory from 0x03ee1e10 to 03ee2000
03ee1e10: 00000000 03ee1e1c 0015952c [00000000]<0000640e> 00000000 00000003 00000000
03ee1e30:<00037b3e> 00153024 <0018a18e> 03e484c4 03e48400 00000000 00000000 00000000
03ee1e50: 00000000 00000000 <0000104a> 00153024 <0000104a> 00153024 0018a120 00000000
03ee1e70: 83ee1fa3 ffffffff 001727d0 001727d0 00000000 <0002f3d6> 0022cbc0 001731b4
03ee1e90: 00000000 00000008 000040d0 03efd220 000000d0 000240d0 00000000 00000000
03ee1eb0: 001731b4 00000001 00000044 000240d0 00000010 00000001 00000000 00000000
03ee1ed0: 00000000 00000000 <00037de8> 00000000 00000000 ffffffff 03ee1f6c <00085e9a>
03ee1ef0: 0023a4a0 00239300 0016049c <00085f8a> 03efb6a0 00000000 000000d2 000000d1
03ee1f10:<00038028> 03ee1f18 0022be10 00000000 00004000 00000000 00000000 <00038002>
03ee1f30:<00038002> 00000000 <000613aa> 0023a4a0 00239300 00000000 0023a4a0 00004000
03ee1f50: 00000000 00000000 00000000 <00131400><00061594> 0016a5b0 0015f9a8 000000d2
03ee1f70:<000615a2> 0016a5b0 0015f9a8 0015f9a8 03ee1fa4 7fffff00 00000001 <0002a352>
03ee1f90: 03ee1fa4 00000061 001917b8 0000000e 00239300 00003739 00000000 00000000
03ee1fb0:<0002a3a2> 001917b8 001917b8 00000061 0016a5b0 <00176384> 00000000 0019197c
03ee1fd0: 001917b8 00000000 00000000 00000000 00000000 00000000 <00001426> 00000000
03ee1ff0: 00000000 00000000 ffffffff 00000006
Return addresses in stack:
frame 1 : <0x0000640e> { _bfin_gpio_request + 0xc6 }
address : <0x00037b3e> { _kmem_cache_alloc + 0x12 }
address : <0x0018a18e> { _bfin_nand_init + 0x6e }
address : <0x0000104a> { _do_one_initcall + 0x4a }
address : <0x0000104a> { _do_one_initcall + 0x4a }
address : <0x0002f3d6> { ___alloc_pages_internal + 0x8a }
address : <0x00037de8> { _cache_alloc_refill + 0x250 }
address : <0x00085e9a> { _ida_get_new_above + 0x42 }
address : <0x00085f8a> { _ida_get_new_above + 0x132 }
address : <0x00038028> { ___kmalloc + 0x68 }
address : <0x00038002> { ___kmalloc + 0x42 }
address : <0x00038002> { ___kmalloc + 0x42 }
address : <0x000613aa> { _proc_register + 0x2e }
address : <0x00131400> /* kernel dynamic memory */
address : <0x00061594> { _create_proc_entry + 0x5c }
address : <0x000615a2> { _create_proc_entry + 0x6a }
address : <0x0002a352> { _register_irq_proc + 0x66 }
address : <0x0002a3a2> { _init_irq_proc + 0x36 }
address : <0x00176384> { _kernel_init + 0x68 }
address : <0x00001426> { _kernel_thread_helper + 0x6 }
bfin-gpio: GPIO 3 is already reserved as Peripheral by bfin-uart !
Requesting NAND Ready GPIO 3 faild
bfin-gpio: GPIO 3 wasn't requested!
No NAND device found!!!
No NAND device found!!!
m25p80 spi0.1: w25Q64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00040000 : "bootloader(spi)"
0x00040000-0x00170000 : "linux kernel(spi)"
0x00170000-0x00800000 : "file system(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
jffs2_scan_eraseblock(): Node at 0x0000000c {0x1985, 0xe000, 0x00000000) has invalid CRC 0x04000284 (calculated 0xc149957c)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x0284 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x00a8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000028: 0x0400 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000002c: 0x0082 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000030: 0x0083 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000034: 0x4802 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000038: 0x1000 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000003c: 0x0004 instead
Further such events for this erase block will not be printed
Old JFFS2 bitmask found at 0x0000031c
You cannot use older JFFS2 filesystems with newer kernels
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001000: 0x2b03 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001004: 0x5041 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001008: 0x00c0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000100c: 0x0818 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001010: 0x8809 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001014: 0xc009 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001018: 0x5220 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000101c: 0x2000 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001020: 0x0201 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001024: 0xa000 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002000: 0x0885 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002004: 0x0004 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002008: 0x1021 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000200c: 0x0805 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002010: 0x0020 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002014: 0x1100 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000201c: 0x0004 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002020: 0x0069 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002024: 0x0160 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002028: 0x8040 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003000: 0x8011 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003004: 0x0640 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003008: 0x0c00 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000300c: 0x1000 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003010: 0x2400 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003014: 0x2030 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003018: 0x2804 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000301c: 0x0408 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003020: 0x8404 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003024: 0x0020 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004000: 0x1901 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004004: 0x000c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004008: 0xa011 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000400c: 0x1101 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004010: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004014: 0x0c04 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004018: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000401c: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004020: 0x0060 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004024: 0x02a8 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005000: 0x1801 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005004: 0x1082 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000500c: 0x000c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005010: 0x0240 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005014: 0x4200 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005018: 0x2040 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000501c: 0x8205 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005020: 0x0028 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005024: 0x0040 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005028: 0x20c8 instead
Setting in kernel Build:
Memory Technology Devices (MTD) --->
<*> Memory Technology Device (MTD) support
[*] Direct char device access to MTD devices
[*] Caching block device access to MTD devices
Mapping drivers for chip access --->
[*] Support non-linear mappings of flash chips
< > Generic uClinux RAM/ROM filesystem support (disable this option)
Self-contained MTD device drivers --->
<*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...)
<*> Journalling Flash File System v2 (JFFS2) support
(0) JFFS2 debugging verbosity (0 = quiet, 2 = noisy)
[*] JFFS2 write-buffering support
In stamp.c :
#if defined(CONFIG_MTD_M25P80) \
|| defined(CONFIG_MTD_M25P80_MODULE)
static struct mtd_partition bfin_spi_flash_partitions[] = {
{
.name = "bootloader(spi)",
.size = 0x00040000,
.offset = 0,
.mask_flags = MTD_CAP_ROM
}, {
.name = "linux kernel(spi)",
.size = 0x130000,
.offset = MTDPART_OFS_APPEND,
}, {
.name = "file system(spi)",
.size = MTDPART_SIZ_FULL,
.offset = MTDPART_OFS_APPEND,
}
};
static struct flash_platform_data bfin_spi_flash_data = {
.name = "m25p80",
.parts = bfin_spi_flash_partitions,
.nr_parts = ARRAY_SIZE(bfin_spi_flash_partitions),
/* .type = "m25p64", */
};
/* SPI flash chip (m25p64) */
static struct bfin5xx_spi_chip spi_flash_chip_info = {
.enable_dma = 0, /* use dma transfer with this chip*/
.bits_per_word = 8,
};
#endif
Even i tried ,
bfin> tftpboot 0x1000000 uImage.initramfs
bfin> bootm 0x1000000
&
root:~> mount -t jffs2 /dev/mtdblock2 /mnt
Same error !!!
When I booted the kernel using uImage.initramfs and gave the command :
root:/proc> cat mtd
dev: size erasesize name
mtd0: 00040000 00001000 "bootloader(spi)"
mtd1: 00130000 00001000 "linux kernel(spi)"
mtd2: 00690000 00001000 "file system(spi)"
Do i need to change this erase size?
MKFS_JFFS2_FLAGS also set in board's uclinux-dist Makefile : : No change Same error occured !!!
QuoteReplyEditDelete
2011-03-25 18:49:11 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99270
you should try reading the entire fs out of the spi flash and comparing it to the original in memory to make sure they match. or doing a crc on it.
if you start at the *first* error instead of the last (which is almost always the important one), it indicates there is an issue:
jffs2_scan_eraseblock(): Node at 0x0000000c {0x1985, 0xe000, 0x00000000) has invalid CRC 0x04000284 (calculated 0xc149957c)
you're also using 2009R1.1 ... you should upgrade your stamp board (u-boot and kernel) to 2010R1
QuoteReplyEditDelete
2011-03-28 01:37:53 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99323
Hi Mike,
Result of comparison :
bfin> tftpboot 0x1000000 jffs2
Using Blackfin EMAC device
TFTP from server 121.242.232.181; our IP address is 10.7.143.80; sending through gateway 10.200.1.1
Filename 'jffs2'.
Load address: 0x1000000
Loading: ## ICMP Host Redirect to 121.242.232.181 ##### ICMP Host Redirect to 121.242.232.181 ########## ICMP Host Redirect to 121.242.232.181 ##################### #
############### ICMP Host Redirect to 121.242.232.181 ##################################################
################################### ICMP Host Redirect to 121.242.232.181 ##
done
Bytes transferred = 2449408 (256000 hex)
bfin> sf probe 1
SF: Got idcode ef 40 17
8192 KiB W25Q64 at 0:1 is now current device
bfin> sf write 0x1000000 0x170000 0x256000
bfin> sf read 0x1a00000 0x170000 0x256000
bfin> cmp.b 0x1000000 0x1a00000 0x256000
Total of 2449408 bytes were the same
QuoteReplyEditDelete
2011-03-28 01:46:40 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99324
check the SPI clock you're using in Linux and try slowing it down
QuoteReplyEditDelete
2011-03-28 02:50:42 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99326
As U said i changed the SPI clock in Linux(stamp.c) from 25Mhz to 3Mhz ........ But same thing happening !!!!!!!!
NET: Registered protocol family 17
Node at 0x00000dc8 with length 0x000007b8 would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dcc: 0x07b8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dd0: 0x4487 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dd4: 0x0013 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dd8: 0x0002 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ddc: 0x81ed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000de0: 0x03e8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000de4: 0xba4c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000de8: 0x2a2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dec: 0x2a2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000df0: 0x2a2e instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001000: 0xef07 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001004: 0xf871 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001008: 0x10cf instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000100c: 0x7818 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001010: 0xebcd instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001014: 0xed9f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001018: 0x7fb8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000101c: 0x22ef instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001020: 0x6243 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001024: 0xe2fc instead
Further such events for this erase block will not be printed
Node at 0x00002dfc with length 0x00000906 would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e00: 0x0906 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e04: 0x5024 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e08: 0x0013 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e0c: 0x0007 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e10: 0x81ed instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e14: 0x03e8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e18: 0xba4c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e1c: 0x2a2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e20: 0x2a2e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002e24: 0x2a2e instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003000: 0xfe11 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003004: 0x7761 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003008: 0x7d8d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000300c: 0x37d4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003010: 0xe780 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003014: 0xf437 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003018: 0xfd1e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000301c: 0xf70c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003020: 0xa70d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003024: 0x8663 instead
Further such events for this erase block will not be printed
Node at 0x00004b04 with length 0x00000b11 would run over the end of the erase block
QuoteReplyEditDelete
2011-03-28 02:55:56 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99327
boot up with your rootfs in ram and do raw dumps of the partitions via /dev/mtdblock# and make sure the data in there matches what you flashed from u-boot
QuoteReplyEditDelete
2011-03-28 04:52:04 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99359
I'm adding the jffs2 flags in my Makefile ,whether this is proper .....
MKFS_JFFS2_FLAGS = -l -p -e 64
QuoteReplyEditDelete
2011-03-28 07:36:03 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99360
I enabled the nanddump feature in the mtd utility.
But got the following result
nanddump -f dump -n -l 5000 /dev/mtd2
MTD_open
MTD_ioctl
Unknown flash (not normal NAND)MTD_close
QuoteReplyEditDelete
2011-03-28 11:18:31 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99364
you said it was a SPI flash, so why would you think NAND utils would work ?
QuoteReplyEditDelete
2011-03-29 00:55:05 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99387
what utility can make use to dumb ??
QuoteReplyEditDelete
2011-03-29 01:15:26 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99388
One more observation is being made by me.When vmImage is used to boot the kernel and after it starts giving the error messages, I tried to do a hardware reset but the u-bootloader didnt work. Is the Uboot section being corrupted by the kernel image?
QuoteReplyEditDelete
2011-03-29 01:56:16 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99390
just use `cat` or `dd` to read the device nodes directly
QuoteReplyEditDelete
2011-03-29 01:56:58 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99391
if the device driver is broken, or your partition layout is incorrect, then it's possible
QuoteReplyEditDelete
2011-03-29 06:37:02 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99426
When I use the uimage for booting,I am able to mount the jffs2 partition and use it as a storage medium
But when I want to use the jffs2 as a root file system using the vmimage, its not working.
bfin> tftpboot 0x1000000 jffs2
Using Blackfin EMAC device
TFTP from server 10.7.143.13; our IP address is 10.7.143.81
Filename 'jffs2'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
####################################
done
Bytes transferred = 2424832 (250000 hex)
bfin> sf write 0x1000000 0x1c0000 0x250000
bfin> tftpboot 0x1000000 vmimage
Using Blackfin EMAC device
TFTP from server 10.7.143.13; our IP address is 10.7.143.81
Filename 'vmimage'.
Load address: 0x1000000
Loading: ##########################################################
done
Bytes transferred = 840020 (cd154 hex)
bfin> setenv bootargs root=/dev/mtdblock2 rw rootfstype=jffs2
bfin> bootm
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2011-03-29 10:01:32 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 839956 Bytes = 820.3 kB
Load Address: 00001000
Entry Point: 0017bf50
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0017bf50
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 62352k/65536k RAM, (124k init code, 993k kernel code, 467k data, 1024k dma, 572k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (37 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) (SUMMARY) 2001-2006 Red Hat, Inc.
msgmni has been set to 121
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
m25p80 spi0.1: w25Q64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00040000 : "bootloader(spi)"
0x00040000-0x001c0000 : "linux kernel(spi)"
0x001c0000-0x00800000 : "file system(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
Node at 0x00000dc8 with length 0x000007b8 would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dcc: 0x07b8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dd0: 0x4487 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dd4: 0x0013 instead
QuoteReplyEditDelete
2011-03-29 14:26:31 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99437
the partition info you've shown between these two boots are not the same. verify the partition map displayed while booting matches what you're actually using in u-boot.
QuoteReplyEditDelete
2011-03-29 18:52:10 Re: JFFS2_eraseblock_ERROR
Robert Cochran (UNITED STATES)
Message: 99438
"Why do i get the following error "jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001004: 0x5041 instead""
The JFFS2 FAQ on the MTD site addreses this issue:
www.linux-mtd.infradead.org/faq/jffs2.html#L_magicnfound
Maybe it will help you out.
QuoteReplyEditDelete
2011-03-30 00:42:44 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99442
In the stamp.c , I have configured the partition as below
#if defined(CONFIG_MTD_M25P80) \
|| defined(CONFIG_MTD_M25P80_MODULE)
static struct mtd_partition bfin_spi_flash_partitions[] = {
{
.name = "bootloader(spi)",
.size = 0x00040000,
.offset = 0,
.mask_flags = MTD_CAP_ROM
}, {
.name = "linux kernel(spi)",
.size = 0x180000,
.offset = MTDPART_OFS_APPEND,
}, {
.name = "file system(spi)",
.size = MTDPART_SIZ_FULL,
.offset = MTDPART_OFS_APPEND,
}
};
In the earlier post I had configured the kernel size area for 1.1875MB
Later as seen from the above config, I reserved 1.5MB for the kernel
With this config, accessing the flash area for storage with booting being done using uImage works fine.
The size of vmImage comes around 900kB
@Robert: I have already gone through that line
QuoteReplyEditDelete
2011-03-30 00:45:56 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99443
I do use a 8MB flash
QuoteReplyEditDelete
2011-04-01 07:37:20 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99497
Do I need to specify anything in the config files in the uboot section?
I tried using 2010R version of the uclinux.
But nothing is working
QuoteReplyEditDelete
2011-04-01 07:59:58 Re: JFFS2_eraseblock_ERROR
Aaron Wu (CHINA)
Message: 99498
Could you follow Mike's advice, first flash your jffs2 image into SPI flash according to our wiki page: docs.blackfin.uclinux.org/doku.php?id=linux-kernel:jffs&s[]=jffs2. Then boot your board from RAM, by tftp load the uImage instead of from your SPI Flash, then use dd or cat to raw read your SPI flash jffs2 partition into ram, and compare it with the jffs2 image you flashed into the Flash?
QuoteReplyEditDelete
2011-04-01 09:03:37 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99501
I tried ur advice , the following result :
bfin> tftpboot 0x1000000 jffs2
Using Blackfin EMAC device
TFTP from server 10.7.143.13; our IP address is 10.7.143.81
Filename 'jffs2'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
####################################
done
Bytes transferred = 2424832 (250000 hex)
bfin> sf write 0x1000000 0x340000 0x250000
bfin> tftpboot 0x1000000 uimage
Using Blackfin EMAC device
TFTP from server 10.7.143.13; our IP address is 10.7.143.81
Filename 'uimage'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#############################################################
done
Bytes transferred = 2790577 (2a94b1 hex)
bfin> setenv bootargs root=/dev/mtdblock3 rw
bfin> bootm
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2011-03-30 5:15:36 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 2790513 Bytes = 2.7 MB
Load Address: 00001000
Entry Point: 0017bf50
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0017bf50
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 58252k/65536k RAM, (4224k init code, 993k kernel code, 467k data, 1024k dma, 572k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (37 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) (SUMMARY) 2001-2006 Red Hat, Inc.
msgmni has been set to 113
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
m25p80 spi0.1: w25Q64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00040000 : "bootloader(spi)"
0x00040000-0x00340000 : "linux kernel(spi)"
0x00340000-0x00800000 : "file system(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
Freeing unused kernel memory: 4224k freed
dma_alloc_init: dma_page @ 0x0058a000 - 256 pages at 0x03f00000
_____________________________________
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 (2011-03-30 10:44:33 IST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> dd if = /dev/mtdblock2 of = /home/ count = 1
BusyBox v1.13.4 (2011-03-30 10:44:33 IST) multi-call binary
Usage: dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N]
�� �� �+�n&} o䅼�M � 3���fUbin�� �D ��� �A� � o��Mo��Mo��M9… �+�n&} q��M ���ۅ��etc�� �D ��� �A� � q��Mq��Mq��M ��b� �,_V�� m��M ߡ\5�ӒPhome� �D � 4
Minicom2.4Minicom2.4: not found
root:/>
QuoteReplyEditDelete
2011-04-01 18:59:40 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99505
you didnt use `dd` correctly. if you read the output, it told you that it was run wrong.
do not put spaces around the =
QuoteReplyEditDelete
2011-04-04 02:41:05 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99558
Even after giving the proper command, I do get the following error!
I gave the command dd if=/dev/mtdblock2 count=1 bs=512
bfin> tftpboot 0x1000000 uimagenew
Using Blackfin EMAC device
TFTP from server 10.7.143.13; our IP address is 10.7.143.81
Filename 'uimagenew'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
############################################################
done
Bytes transferred = 2788115 (2a8b13 hex)
bfin> bootm
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2011-04-04 5:44:09 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 2788051 Bytes = 2.7 MB
Load Address: 00001000
Entry Point: 00179f50
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 00179f50
Linux version 2.6.28.10-ADI-2009R1.1 (ganeshn@ganeshn-desktop) (gcc version 4.1.2 (ADI svn)) #244 Mon Apr 4 11:14:04 IST 2011
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x000f8330
rodata = 0x000f8330-0x001496a0
bss = 0x0014a000-0x0015c074
data = 0x0015c074-0x0016c000
stack = 0x0016a000-0x0016c000
init = 0x0016c000-0x0058c000
available = 0x0058c000-0x03eff000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Blackfin support (C) 2004-2009 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.3
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 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: 16001
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 58260k/65536k RAM, (4224k init code, 988k kernel code, 464k data, 1024k dma, 572k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (37 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) � 2001-2006 Red Hat, Inc.
msgmni has been set to 113
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
m25p80 spi0.1: w25Q64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00040000 : "bootloader(spi)"
0x00040000-0x00340000 : "linux kernel(spi)"
0x00340000-0x00800000 : "file system(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
Freeing unused kernel memory: 4224k freed
dma_alloc_init: dma_page @ 0x00588000 - 256 pages at 0x03f00000
_____________________________________
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:
�� �� �+�n&} �Z�M <i�w��fUbin�� �D ��� �A� � �Z�M�Z�M�Z�M�8 � �+�n&} �Z�M �� ۅ��etc�� �D ��� �A� � �Z�M�Z�M�Z�M'���� �,_V�� �Y�M �TWӒPhome� �D � n
1+0 records out
root:/home> Minicom2.4Minicom2.4
QuoteReplyEditDelete
2011-04-04 08:27:10 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99566
PLEASE anyone tell me where i'm going wrong !!!!!!!!!!!!
QuoteReplyEditDelete
2011-04-04 11:16:15 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99570
you clearly are still not using the right command. if you did, there would be no garbage output like you keep showing.
if you cant figure out `dd`, then use `cat` and redirect it into a file which you can then offload and compare elsewhere.
QuoteReplyEditDelete
2011-04-05 06:27:13 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99593
Below is the result,what i read from the mtdblock when booted with uimage.
The initial read made tallies with the image that was being written.
When I gave the following command
mount -t jffs2 /dev/mtdblock2 /mnt
I still got the same error
Node at 0x00000dc8 with length 0x000007b8 would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dcc: 0x07b8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dd0: 0x4487 instead
bfin> tftpboot 0x1000000 jffs2new
Using Blackfin EMAC device
TFTP from server 10.7.143.13; our IP address is 10.7.143.81
Filename 'jffs2new'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
####################################
done
Bytes transferred = 2424832 (250000 hex)
bfin> sf write 0x1000000 0x340000 0x250000
bfin> tftpboot 0x1000000 uimagenew
Using Blackfin EMAC device
TFTP from server 10.7.143.13; our IP address is 10.7.143.81
Filename 'uimagenew'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#############################################################
done
Bytes transferred = 2790165 (2a9315 hex)
bfin> setenv bootargs root=/dev/mtdblock3 rw
bfin>
bfin> bootm
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2011-04-05 7:08:22 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 2790101 Bytes = 2.7 MB
Load Address: 00001000
Entry Point: 0017bf50
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0017bf50
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 58252k/65536k RAM, (4224k init code, 991k kernel code, 469k data, 1024k dma, 572k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (37 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
msgmni has been set to 113
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
m25p80 spi0.1: w25Q64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00040000 : "bootloader(spi)"
0x00040000-0x00340000 : "linux kernel(spi)"
0x00340000-0x00800000 : "file system(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
Freeing unused kernel memory: 4224k freed
dma_alloc_init: dma_page @ 0x00589000 - 256 pages at 0x03f00000
_____________________________________
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 (2011-04-04 11:09:26 IST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00001000 "bootloader(spi)"
mtd1: 00300000 00001000 "linux kernel(spi)"
mtd2: 004c0000 00001000 "file system(spi)"
root:/> cat /proc/partitions
major minor #blocks name
31 0 256 mtdblock0
31 1 3072 mtdblock1
31 2 4864 mtdblock2
root:/> dd if=/dev/mtdblock2 of=/image_read bs=64k count=2356
76+0 records in
76+0 records out
root:/> hexdump image_read > image_file
root:/> cat image_file | more
0000000 1985 2003 000c 0000 b0b1 e41e 1985 e001
0000010 002b 0000 6ee6 7d26 0001 0000 0000 0000
0000020 0002 0000 bfdd 4d9a 0403 0000 57b2 cb5b
0000030 83ff 5566 6962 ff6e 1985 e002 0044 0000
0000040 fb1d 98f7 0002 0000 0001 0000 41ed 0000
0000050 03e8 03e8 0000 0000 bfdd 4d9a bfdd 4d9a
0000060 bfdd 4d9a 0000 0000 0000 0000 0000 0000
0000070 0000 0000 0000 0000 86b8 8f48 1985 e001
0000080 002b 0000 6ee6 7d26 0001 0000 0001 0000
0000090 0003 0000 bfdf 4d9a 0403 0000 8d31 bcb3
00000a0 85db d1f4 7465 ff63 1985 e002 0044 0000
00000b0 fb1d 98f7 0003 0000 0001 0000 41ed 0000
00000c0 03e8 03e8 0000 0000 bfdf 4d9a bfdf 4d9a
00000d0 bfdf 4d9a 0000 0000 0000 0000 0000 0000
00000e0 0000 0000 0000 0000 2add a267 1985 e001
00000f0 002c 0000 565f e0f1 0001 0000 0002 0000
0000100 0004 0000 59eb 4d99 0404 0000 54f1 9b57
0000110 d3cc 5092 6f68 656d 1985 e002 0044 0000
0000120 fb1d 98f7 0004 0000 0001 0000 41ed 0000
0000130 03e8 03e8 0000 0000 59eb 4d99 59eb 4d99
0000140 59eb 4d99 0000 0000 0000 0000 0000 0000
0000150 0000 0000 0000 0000 54a6 f595 1985 e001
0000160 002b 0000 6ee6 7d26 0001 0000 0003 0000
--More--
QuoteReplyEditDelete
2011-04-05 06:30:40 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99594
I tried copying the jffs2 image created in to the mtdblock0 using the dd command.
When i tried to mount that image i got the following error again
U-Boot 2008.10-svn2598 (ADI-2009R1.1-rc1) (Mar 29 2011 - 15:45:06)
CPU: ADSP bf537-0.3 (Detected Rev: 0.3) (spi flash boot)
Board: ADI BF537 stamp board
Support: blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM: 64 MB
Flash: 4 MB
SF: Got idcode ef 40 17
In: serial
Out: serial
Err: serial
Net: Blackfin EMAC
MAC: 8A:B0:AF:C9:C7:38
Hit any key to stop autoboot: 0
bfin> tftpboot 0x1000000 uimagenew
Using Blackfin EMAC device
TFTP from server 10.7.143.13; our IP address is 10.7.143.81
Filename 'uimagenew'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#############################################################
done
Bytes transferred = 2790165 (2a9315 hex)
bfin> bootm
## Booting kernel from Legacy Image at 01000000 ...
Image Name: Linux-2.6.28.10-ADI-2009R1.1
Created: 2011-04-05 7:08:22 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 2790101 Bytes = 2.7 MB
Load Address: 00001000
Entry Point: 0017bf50
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 0017bf50
console [ttyBF0] enabled, bootconsole disabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 58252k/65536k RAM, (4224k init code, 991k kernel code, 469k data, 1024k dma, 572k reserved)
Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)
Security Framework initialized
Mount-cache hash table entries: 512
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (15 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (37 KB free)
net_namespace: 288 bytes
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
msgmni has been set to 113
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
m25p80 spi0.1: w25Q64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x00000000-0x00040000 : "bootloader(spi)"
0x00040000-0x00340000 : "linux kernel(spi)"
0x00340000-0x00800000 : "file system(spi)"
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
Freeing unused kernel memory: 4224k freed
dma_alloc_init: dma_page @ 0x00589000 - 256 pages at 0x03f00000
_____________________________________
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 (2011-04-04 11:09:26 IST) built-in shell (msh)
Enter 'help' for a list of built-in commands.
root:/> flash_eraseall -j /dev/mtd2
Erasing 4 Kibyte @ 4c0000 -- 100 % complete.Cleanmarker written at 4bf000.
root:/> mount -t jffs2 /dev/mtdblock2 /mnt
root:/> ls /mnt/
root:/> touch /mnt/hi
root:/> ls /mnt/
hi
root:/> umount /mnt/
root:/> ls /mnt/
root:/> flash_eraseall -j /dev/mtd2
Erasing 4 Kibyte @ 4c0000 -- 100 % complete.Cleanmarker written at 4bf000.
root:/> cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00001000 "bootloader(spi)"
mtd1: 00300000 00001000 "linux kernel(spi)"
mtd2: 004c0000 00001000 "file system(spi)"
root:/> cat /proc/partitions
major minor #blocks name
31 0 256 mtdblock0
31 1 3072 mtdblock1
31 2 4864 mtdblock2
root:/> dd if=jffs2new of=/dev/mtdblock2 bs=4k count=2356
592+0 records in
592+0 records out
root:/> mount -t jffs2 /dev/mtdblock2 /mnt
Node at 0x00000dc8 with length 0x000007b8 would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dcc: 0x07b8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dd0: 0x4487 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000dd4: 0x0013 instead
QuoteReplyEditDelete
2011-04-05 10:59:46 Re: JFFS2_eraseblock_ERROR
Mike Frysinger (UNITED STATES)
Message: 99603
have you addressed the actual error it is showing you ?
"Perhaps the file system was created with the wrong erase size?"
if your erase block size is 4KiB, why are you creating an image with an erase block size of 64KiB ?
QuoteReplyEditDelete
2011-04-06 03:29:40 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99618
Even if i create my image with 4KB as erase block size by MKFS_JFFS2_FLAGS = -l -p -e 0x1000
Same ERROR is happening
QuoteReplyEditDelete
2011-04-06 05:03:54 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99622
Is there any other way of specifying the erase block size ??????
QuoteReplyEditDelete
2011-04-06 05:35:37 Re: JFFS2_eraseblock_ERROR
Aaron Wu (CHINA)
Message: 99623
Hi Krish,
I am trying to duplicate your problem on my board. I have an ADI BF518 ezboard on hand and the SPI Nor flash on it is of 2MB, so it's not able to hold the default uboot and jffs2 file system together on it however I managed to flash a random jffs2 filesystem on it and do the mount, read, write for test, it turn out to be fine. Following is what I did and this should also make sense for you. You may take it as reference and have a try on your board to see if it works and give us the feedback before finding the solution for your problem:
1) Trim the romfs under the Linux-dist, remove some thing so it's thinner enough to be hold on my 2MB flash
2) Then using the default way our distribution use to make the jff2 image: 2010R1/user/mtd-utils/mkfs.jffs2 -l -p -2010R1/romfs -D device_table-min.txt -o 2010R1/images/rootfs.jffs2
3)use the u-boot, tftpboot and sf utils to flash the rootfs.jffs2 to the SPI Flash
a)tftpboot 0x1000000 rootfs.jffs2
b)sf probe X
c)sf erase 0x40000 0x1c0000 (note that in the bf518 ezbrd.c by default there is only two MTD partition on SPI flash, I am using the second one starting for physical addr 0x40000 for this test)
d)sf write 0x1000000 0x40000 0x20000 (0x20000 is the rootfs.jffs2 image size after trimming down)
e)read the spi out and confirmed that the 0x19 0x85 is there at the head as expected
4)reboot to Linux, mount -t jffs2 /dev/mtdblock1 /mnt
5)next read/write test works fine.
Maybe you can try this on your board first.
QuoteReplyEditDelete
2011-04-08 08:32:52 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99697
Hi aaron ,
Sorry , I cant able to get Ur second step (make) .... can U brief it please !!!!!!!!!!!!!!!!!
QuoteReplyEditDelete
2011-04-10 22:19:06 Re: JFFS2_eraseblock_ERROR
Aaron Wu (CHINA)
Message: 99730
By step two I was showing an example of how we did in the distribution to build jffs2 image, it's simply a command like "2010R1/user/mtd-utils/mkfs.jffs2 -l -p -2010R1/romfs -D device_table-min.txt -o 2010R1/images/rootfs.jffs2", using the mkfs.jffs2 with proper options. Actually if you check the output log for the distribution make you will see it.
QuoteReplyEditDelete
2011-04-12 04:03:46 Re: JFFS2_eraseblock_ERROR
Ganesh krish (INDIA)
Message: 99776
Hi Aaron ,
I tried according to Ur reference , but again the same error occured ...
Command given to make jffs2 image :
ganeshn@ganeshn-desktop:~/uc-linux-2010R1/uclinuxdist-2010R1/user/mtd-utils$ mkfs.jffs2 -l -e 0x10000 -p /home/ganeshn/uc-linux-2010R1/uclinuxdist-2010R1/romfs -D /home/ganeshn/uc-linux-2010R1/uclinuxdist-2010R1/vendors/AnalogDevices/BF537-STAMP/device_table-min.txt -o /home/ganeshn/uc-linux-2010R1/uclinuxdist-2010R1/images/rootfs.jffs2
Procedure Followed :
bfin> tftpboot 0x1000000 jffs2fs
Using bfin_mac device
TFTP from server 10.7.143.13; our IP address is 10.7.143.82
Filename 'jffs2fs'.
Load address: 0x1000000
Loading: #################################################################
########################################################
done
Bytes transferred = 1769472 (1b0000 hex)
bfin> sf write 0x1000000 0x340000 0x1b0000
bfin> sf read 0x2000000 0x340000 0x2
bfin> md.b 0x2000000 0x2
02000000: 85 19 ..
bfin> tftpboot 0x1000000 uimage10
Using bfin_mac device
TFTP from server 10.7.143.13; our IP address is 10.7.143.82
Filename 'uimage10'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
##
done
Bytes transferred = 2891568 (2c1f30 hex)
bfin> bootm
## Booting kernel from Legacy Image at 01000000 ...
Image Name: bf537-2.6.34.7-ADI-2010R1-svn958
Created: 2011-04-08 9:28:18 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 2891504 Bytes = 2.8 MiB
Load Address: 00001000
Entry Point: 001b3714
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 001b3714
Linux version 2.6.34.7-ADI-2010R1-svn9581 (ganeshn@ganeshn-desktop) (gcc version 4.1.2 (ADI svn)) #6 Fri Apr 8 14:58:14 IST 2011
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
fixedcode = 0x00000400-0x00000490
text = 0x00001000-0x00122890
rodata = 0x00122890-0x001844c0
bss = 0x00185000-0x00195e48
data = 0x00195e48-0x001a8000
stack = 0x001a6000-0x001a8000
init = 0x001a8000-0x005d4000
available = 0x005d4000-0x03f00000
DMA Zone = 0x03f00000-0x04000000
Hardware Trace Active and Enabled
Boot Mode: 3
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.3
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 125 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 16002
Kernel command line: root=/dev/mtdblock2 rw rootfstype=jffs2 clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 57976k/65536k RAM, (4272k init code, 1158k kernel code, 534k data, 1024k dma, 572k reserved)
Hierarchical RCU implementation.
NR_IRQS:138
Configuring Blackfin Priority Driven Interrupts
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
Security Framework initialized
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: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (36 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab <bio-0> at 0
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
msgmni has been set to 113
io scheduler noop registered
io scheduler cfq registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
m25p80 spi0.1: found w25Q64, expected m25p80
m25p80 spi0.1: w25Q64 (8192 Kbytes)
Creating 3 MTD partitions on "m25p80":
0x000000000000-0x000000040000 : "bootloader(spi)"
0x000000040000-0x000000340000 : "linux kernel(spi)"
0x000000340000-0x000000800000 : "file system(spi)"
bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=24)@sclk=125MHz)
bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
TCP cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 2020-03-06 07:54:06 UTC (1583481246)
dma_alloc_init: dma_page @ 0x025f5000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 4272k freed
_____________________________________
a8888b. / Welcome to the uClinux distribution \
d888888b. / _ _ \
8P"YP"Y88 / | | |_| __ __ (TM) |
8|o||o|88 _____/ | | _ ____ _ _ \ \/ / |
8' .88 \ | | | | _ \| | | | \ / |
@�������ၹ}���e��ṁ������q����������}}�� ����� ���}��� ���q���������5)�� ��������������ቹ�������q������q}}}}��}�}���}�q}}}}��} q}q��������5)�� ���A��������e��ቹ�����́ᅹٕ͡�sh: can't execute 'Minicom2.4': No such file or directory
root:/>
root:/>
root:/>
root:/> cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00001000 "bootloader(spi)"
mtd1: 00300000 00001000 "linux kernel(spi)"
mtd2: 004c0000 00001000 "file system(spi)"
root:/>
root:/> mount -t jffs2 /dev/mtd
/dev/mtd0 /dev/mtd1 /dev/mtd2 /dev/mtdblock0 /dev/mtdblock2
/dev/mtd0ro /dev/mtd1ro /dev/mtd2ro /dev/mtdblock1
root:/> mount -t jffs2 /dev/mtdblock2 /mnt/
Node at 0x00000e74 with length 0x000004ec would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e78: 0x04ec instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e7c: 0x622b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e80: 0x0010 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e84: 0x0001 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e88: 0x8124 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e8c: 0x03e8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e90: 0x1285 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e94: 0xc5f3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e98: 0xc5f3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000e9c: 0xc5f3 instead
Further such events for this erase block will not be printed
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001000: 0xd0d3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001004: 0xbcf8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001008: 0xeb9c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000100c: 0xb16c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001010: 0x8fd2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001014: 0xcf49 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001018: 0xc0dc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000101c: 0xaf30 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001020: 0xf5d3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001024: 0x99d6 instead
Further such events for this erase block will not be printed
Node at 0x00001e28 with length 0x000006da would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002000: 0x4956 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002004: 0x0680 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002008: 0x24e7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000200c: 0x80c6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002010: 0x8514 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002014: 0xcd6a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002018: 0x927c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000201c: 0x8ef1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002020: 0x22af instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002024: 0x7909 instead
Further such events for this erase block will not be printed
Node at 0x00002c38 with length 0x000007fc would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003000: 0x6c84 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003004: 0x3c47 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003008: 0x06f2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000300c: 0xc897 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003010: 0x2a60 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003014: 0xb970 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003018: 0x2ce9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000301c: 0x1f38 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003020: 0x3726 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003024: 0x7784 instead
Further such events for this erase block will not be printed
Node at 0x00003cfc with length 0x000003bd would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004000: 0xe02a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004004: 0x5fe5 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004008: 0x876c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000400c: 0xb669 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004010: 0xd7d6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004014: 0x5ad3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004018: 0x0a6b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000401c: 0xb517 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004020: 0xddd9 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004024: 0xa6a9 instead
Further such events for this erase block will not be printed
Node at 0x00004d10 with length 0x0000053f would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005000: 0x8c19 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005004: 0x61e0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005008: 0x506a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000500c: 0x8c79 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005010: 0xfb1c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005014: 0x14bc instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005018: 0x02b7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000501c: 0xd977 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005020: 0x15c4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00005024: 0xd131 instead
Further such events for this erase block will not be printed
Node at 0x00005b08 with length 0x00000584 would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00006000: 0xfc08 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00006004: 0xd8e3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00006008: 0xdf12 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000600c: 0x8de1 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00006010: 0xd051 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00006014: 0x71df instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00006018: 0x62bb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000601c: 0x2f14 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00006020: 0x1a81 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00006024: 0xba9b instead
Further such events for this erase block will not be printed
Node at 0x00006c7c with length 0x0000085d would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007000: 0x7f9c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007004: 0x7acb instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007008: 0x803e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000700c: 0x863c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007010: 0xb3b2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007014: 0x5bd6 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007018: 0x8195 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000701c: 0x9150 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007020: 0x1f34 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00007024: 0xf7cb instead
Further such events for this erase block will not be printed
Node at 0x00007fdc with length 0x000004d0 would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008000: 0xc5f3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008004: 0xc5f3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000800c: 0x048c instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008010: 0x0cc0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008014: 0x0006 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008018: 0x44da instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000801c: 0x6718 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008020: 0x5e78 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008024: 0x6f6d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00008028: 0xfe10 instead
Further such events for this erase block will not be printed
Node at 0x00008b8c with length 0x0000067b would run over the end of the erase block
Perhaps the file system was created with the wrong erase size?
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00009000: 0x695e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00009004: 0xc340 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00009008: 0x1718 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000900c: 0x2c05 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00009010: 0x6199 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00009014: 0xc0f7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00009018: 0xd156 instead
jffs2_scan_eraseblock(): Ma�
QuoteReplyEditDelete
2011-04-12 07:10:03 Re: JFFS2_eraseblock_ERROR
Aaron Wu (CHINA)
Message: 99784
No idea for your case since everything works fine on my side, just some general advice for your reference. Does the MTD partition offset match 0x340000 in your code? Does the SPI Nor flash pass the read/write test in all it's address space in uboot? Is the jffs2 image read out from SPI Nor matches the one write to it well? have you dig more following the error reported by jffs2 in the log? If none of these work it's time for you to debug. www.linux-mtd.infradead.org/faq/jffs2.html may help.