2011-04-18 21:47:42     关于parallel flash空间和rootfs.jffs2文件大小问题

Document created by Aaronwu Employee on Aug 26, 2013
Version 1Show Document
  • View in full screen mode

2011-04-18 21:47:42     关于parallel flash空间和rootfs.jffs2文件大小问题

Bingo Cui (CHINA)

Message: 99950   

 

有两个问题寻求支持:

一、4M的parallel flash为什么不能完全访问?

我的开发板是bf518f-ezbrd,通过UBOOT命令烧写parallel flash时经常出现Flash not Erased提示,但根据测算,我写入的内容长度没有超出4M,并且要写入的区域我已经erase成功。

有些现象我补充说明一下:

1、通过VDSP++和Emulator能正常写入数据,数据范围可达4M,通过verify校验数据也是正常的;

2、在通过Emulator成功写入后,开发板在启动uImage时出现bad CRC提示,我猜测应该是部分数据不能读;

3、通过UBOOT命令我烧写了很多次,有不同结果,有些时候能正常烧写4M范围的区域,但有时只能烧写至0x20300000,有时却只能烧写至0x20200000,多一个字节都不能成功。

4、最近一次我只能烧写至0x20300000,并且uImage启动时提示

Creating 3 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000040000 : "bootloader(nor)"

0x000000040000-0x000000200000 : "linux kernel(nor)"

0x000000200000-0x000000300000 : "file system(nor)"

根据上述情况,我怀疑是地址线连接有问题,而parallel flash本身是完好的。但我检查了sw3,4个跳线都是设置成ON状态。

 

U-Boot 2010.06 (ADI-2010R1-RC2) (Apr 07 2011 - 12:52:04)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF518F EZ-Board board

       Support:   blackfin.uclinux.org/

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> tftp uImage

Using bfin_mac device

TFTP from server 192.168.0.2; our IP address is 192.168.0.15

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

done

Bytes transferred = 3802336 (3a04e0 hex)

bfin> protect off all

Un-Protect Flash Bank # 1

....................................................................... done

bfin> erase 0x20040000 0x203fffff

 

............................................................ done

Erased 60 sectors

bfin> cp.b 0x1000000 0x20040000 $(filesize)

Copy to Flash... Flash not Erased

bfin> erase 0x20040000 0x203fffff        

 

............................................................ done

Erased 60 sectors

bfin> cp.b 0x1000000 0x20040000 0x1c0000

Copy to Flash... done

bfin> cp.b 0x1000000 0x20040000 0x2c0000

Copy to Flash... done

bfin> cp.b 0x1000000 0x20040000 0x2c0001

Copy to Flash... Flash not Erased

bfin>

 

 

 

U-Boot 2010.06 (ADI-2010R1-RC2) (Apr 07 2011 - 12:52:04)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF518F EZ-Board board

       Support:   blackfin.uclinux.org/

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

## Booting kernel from Legacy Image at 20040000 ...

   Image Name:   bf518-2.6.34.7-ADI-2010R1

   Created:      2011-04-18  14:15:51 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3802272 Bytes = 3.6 MiB

   Load Address: 00001000

   Entry Point:  00195900

   Verifying Checksum ... Bad Data CRC

ERROR: can't get kernel image!

bfin>

 

 

 

二、如何编译出更小的rootfs.jffs2文件

在make menuconfig时,我反复选择了不同的选项,但rootfs.jffs2文件总是比较大,一般都在3M左右。

在  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:jffs说明到:

Check on host to ensure rootfs.jffs2 is less than 3M, and will fit into mtd flash partition:

rgetz@test:~/uClinux-dist>  ls -lh ./images/rootfs.jffs2

-rw-r--r--  1 rgetz users 961K 2005-08-09 17:12 ./images/rootfs.jffs2

This images is 961k, so it meets our requirement.

 

 

请问如何才能做到编译出的rootfs.jffs2文件小于1M?

 

TranslateQuoteReplyEditDelete

 

 

2011-04-18 22:16:21     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Mike Frysinger (UNITED STATES)

Message: 99951   

 

please read the documentation:

  docs.blackfin.uclinux.org/doku.php?id=hw:boards:bf518f-ezbrd

 

you cannot use the last async bank with 0.0 boards

QuoteReplyEditDelete

 

 

2011-04-19 02:06:42     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Bingo Cui (CHINA)

Message: 99959   

 

0.0版的板子不支持the last async bank吗?

可是我确信通过Emulator能读写4M区域。因为我将uImage文件(Data Size: 3802272 Bytes = 3.6 MiB)通过Emulator能边Verify边Program到flash中,并且再次从flash中读出来存储为文件,该文件数据正确。

由此也应该能说明不是硬件跳线问题。

并且我还清楚的记得曾经正确的通过uboot命令写过超过3M区域,也就是说 0x2030 0000 - 0x203F FFFF ASYNC BANK 3能访问。

TranslateQuoteReplyEditDelete

 

 

2011-04-19 02:16:04     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Bingo Cui (CHINA)

Message: 99963   

 

第二个问题我自己解决了。

TranslateQuoteReplyEditDelete

 

 

2011-04-19 02:16:17     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Mike Frysinger (UNITED STATES)

Message: 99964   

 

please read the documentation i already pointed you to

QuoteReplyEditDelete

 

 

2011-04-19 02:31:55     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Aaron Wu (CHINA)

Message: 99966   

 

As Mike said, the last bank can not be supported on this version of BF518 board, as the AMS3 PIN is shared with the SPI flash to work as the SPI0_SEL2 signal. More details can be found on the "ADSP-BF518 EZ-Board Evaluation System Manual", schematic on page 86 and description on page 55. If on the hardware board, the the sub-jumper 4 for SW3 is enabled. In environment other than the default uboot/Linux distribution, there is a chance for the last bank to work correctly if no contention with SPI Flash, for example the SPI Flash is not enabled or it's not in use.

 

One solution is, for test 4M on Parallel Flash, you could disable the SPI flash in u-boot and Linux kernel. and setting all the SW3 sub-switch to ON.

QuoteReplyEditDelete

 

 

2011-04-19 03:08:17     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Mike Frysinger (UNITED STATES)

Message: 99971   

 

SPI flash isnt the only thing that gets in the way.  on the original BF518F-EZBRD's, there was a KSZ switch that is controlled via SPI.  so if your board has two ports, you cant easily use the network and the 4th bank.

QuoteReplyEditDelete

 

 

2011-04-19 20:57:04     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Bingo Cui (CHINA)

Message: 100011   

 

bfin> md 0x20140000

20140000: 20031985 0000000c e41eb0b1 e0011985    ... ............

20140010: 0000002b 7d266ee6 00000001 00000000    +....n&}........

20140020: 00000002 4dad927d 00000403 d603df77    ....}..M....w...

20140030: 556683ff ff6e6962 e0021985 00000044    ..fUbin.....D...

20140040: 98f7fb1d 00000002 00000001 000041ed    .............A..

20140050: 03e803e8 00000000 4dad927d 4dad927d    ........}..M}..M

20140060: 4dad927d 00000000 00000000 00000000    }..M............

20140070: 00000000 00000000 732f3a38 e0011985    ........8:/s....

20140080: 0000002b 7d266ee6 00000001 00000001    +....n&}........

20140090: 00000003 4dad9820 00000403 899dbbd0    .... ..M........

201400a0: d1f485db ff637465 e0021985 00000044    ....etc.....D...

201400b0: 98f7fb1d 00000003 00000001 000041ed    .............A..

201400c0: 03e803e8 00000000 4dad9820 4dad9820    ........ ..M ..M

201400d0: 4dad9820 00000000 00000000 00000000     ..M............

201400e0: 00000000 00000000 bd258596 e0011985    ..........%.....

201400f0: 0000002c e0f1565f 00000001 00000002    ,..._V..........

TranslateQuoteReplyEditDelete

 

 

2011-04-19 20:57:34     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Bingo Cui (CHINA)

Message: 100012   

 

Hi,Mike and Aaron,thanks a lot for your support.

 

I met another problem as the below information.

 

U-Boot 2010.06 (ADI-2010R1-RC2) (Oct 20 2010 - 04:36:48)

 

CPU:   ADSP bf518-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF518F EZ-Board board

       Support:   blackfin.uclinux.org/

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MiB

Flash: 4 MiB

MMC:  Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   bfin_mac

Hit any key to stop autoboot:  0

bfin> protect off all

Un-Protect Flash Bank # 1

....................................................................... done

bfin> erase 0x20040000 0x203fffff

 

............................................................ done

Erased 60 sectors

bfin> tftpboot vmImage

Using bfin_mac device

TFTP from server 192.168.0.2; our IP address is 192.168.0.15

Filename 'vmImage'.

Load address: 0x1000000

Loading: #################################################################

done

Bytes transferred = 952599 (e8917 hex)

bfin> cp.b 0x1000000 0x20040000 $(filesize)

Copy to Flash... done

bfin> tftpboot rootfs.jffs2

Using bfin_mac device

TFTP from server 192.168.0.2; our IP address is 192.168.0.15

Filename 'rootfs.jffs2'.

Load address: 0x1000000

Loading: #################################################################

         ######################################

done

Bytes transferred = 1507328 (170000 hex)

bfin> cp.b 0x1000000 0x20140000 $(filesize)

Copy to Flash... done

bfin> md 0x20140000

20140000: 20031985 0000000c e41eb0b1 e0011985    ... ............

20140010: 0000002b 7d266ee6 00000001 00000000    +....n&}........

20140020: 00000002 4dad927d 00000403 d603df77    ....}..M....w...

20140030: 556683ff ff6e6962 e0021985 00000044    ..fUbin.....D...

20140040: 98f7fb1d 00000002 00000001 000041ed    .............A..

20140050: 03e803e8 00000000 4dad927d 4dad927d    ........}..M}..M

20140060: 4dad927d 00000000 00000000 00000000    }..M............

20140070: 00000000 00000000 732f3a38 e0011985    ........8:/s....

20140080: 0000002b 7d266ee6 00000001 00000001    +....n&}........

20140090: 00000003 4dad9820 00000403 899dbbd0    .... ..M........

201400a0: d1f485db ff637465 e0021985 00000044    ....etc.....D...

201400b0: 98f7fb1d 00000003 00000001 000041ed    .............A..

201400c0: 03e803e8 00000000 4dad9820 4dad9820    ........ ..M ..M

201400d0: 4dad9820 00000000 00000000 00000000     ..M............

201400e0: 00000000 00000000 bd258596 e0011985    ..........%.....

201400f0: 0000002c e0f1565f 00000001 00000002    ,..._V..........

bfin> ls

Scanning JFFS2 FS: . done.

drwxr-xr-x        0 Tue Apr 19 13:47:41 2011 bin

drwxr-xr-x        0 Tue Apr 19 14:11:44 2011 etc

drwxr-xr-x        0 Tue Apr 19 13:47:41 2011 home

drwxr-xr-x        0 Tue Apr 19 14:11:44 2011 lib

drwxr-xr-x        0 Tue Apr 19 13:47:41 2011 mnt

drwxr-xr-x        0 Tue Apr 19 13:47:41 2011 proc

drwxr-xr-x        0 Tue Apr 19 13:47:42 2011 root

lrwxrwxrwx        3 Tue Apr 19 14:11:40 2011 sbin -> bin

drwxr-xr-x        0 Tue Apr 19 13:47:41 2011 sys

drwxrwxrwt        0 Tue Apr 19 13:47:41 2011 tmp

drwxr-xr-x        0 Tue Apr 19 13:47:41 2011 usr

drwxr-xr-x        0 Tue Apr 19 13:47:41 2011 var

drwxr-xr-x        0 Tue Apr 19 14:11:46 2011 dev

bfin> imls

Legacy Image at 20040000:

   Image Name:   bf518-2.6.34.7-ADI-2010R1

   Created:      2011-04-19  14:11:32 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    952535 Bytes = 930.2 KiB

   Load Address: 00001000

   Entry Point:  001a39a4

   Verifying Checksum ... OK

bfin> print

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

hostname=bf518f-ezbrd

loadaddr=0x1000000

nc=set ncip ${serverip};set stdin nc;set stdout nc

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 +$(filesize);erase 0x20000000 +$(filesize);cp.b $(loadaddr) 0x20000000 $(filesize)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramfile=uImage

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) $(ramfile);run ramargs;run addip;bootm

nfsfile=vmImage

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) $(nfsfile);run nfsargs;run addip;bootm

ethaddr=9e:b1:a6:f2:e0:e2

ethact=bfin_mac

bootargs=root=/dev/mtdblock2 rw rootfstype=jffs2

flashboot=bootm 0x20040000

bootcmd=run flashboot

stdin=serial

stdout=serial

stderr=serial

serveraddr=00:24:7e:6e:53:06

filesize=170000

fileaddr=1000000

gatewayip=192.168.0.1

netmask=255.255.255.0

ipaddr=192.168.0.15

serverip=192.168.0.2

 

Environment size: 1110/8188 bytes

bfin> run bootcmd

## Booting kernel from Legacy Image at 20040000 ...

   Image Name:   bf518-2.6.34.7-ADI-2010R1

   Created:      2011-04-19  14:11:32 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    952535 Bytes = 930.2 KiB

   Load Address: 00001000

   Entry Point:  001a39a4

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001a39a4

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

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: 32 KB (26 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_init(): registering device resources

bio: create slab <bio-0> at 0

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 121

io scheduler noop registered (default)

bfin-otp: initialized

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

brd: module loaded

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

Amd/Fujitsu Extended Query Table at 0x0040

number of CFI chips: 1

cmdlinepart partition parsing not available

RedBoot partition parsing not available

Using physmap partition information

Creating 3 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000040000 : "bootloader(nor)"

0x000000040000-0x000000140000 : "linux kernel(nor)"

0x000000140000-0x000000400000 : "file system(nor)"

uclinux[mtd]: RAM probe address=0x1792b4 size=0x84e000

Creating 1 MTD partitions on "RAM":

0x000000000000-0x00000084e000 : "ROMfs"

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

dma_alloc_init: dma_page @ 0x02182000 - 256 pages at 0x03f00000

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 2011-09-28 14:46:03 UTC (1317221163)

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c0000: 0x7ad1 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c0004: 0xf4aa instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c0008: 0x9c9e instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c000c: 0x92c6 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c0010: 0x68d0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c0014: 0xd7a7 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c0018: 0xc99c instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c001c: 0x084e instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c0020: 0x4e49 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001c0024: 0x15af instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d0000: 0x00c5 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d0004: 0xc3da instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d0008: 0x0413 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d000c: 0x5046 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d0010: 0x06da instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d0014: 0xaa03 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d0018: 0xf70a instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d001c: 0xb03d instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d0020: 0xa009 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001d0024: 0x1b54 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0000: 0x6a8f instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0004: 0xc7a3 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0008: 0xf462 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e000c: 0x4a4d instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0010: 0xea83 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0014: 0x8f63 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0018: 0x91f4 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e001c: 0xc3f4 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0020: 0x1ca4 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001e0024: 0x4c6b instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0000: 0x84b4 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0004: 0x0173 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0008: 0x59e8 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f000c: 0xa511 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0010: 0x3945 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0014: 0x3fd3 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0018: 0x2fb1 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f001c: 0xdc00 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0020: 0xee30 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x001f0024: 0x017c instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00200000: 0x90ac instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00200004: 0x7be0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00200008: 0x1bb0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0020000c: 0x6718 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00200010: 0x9569 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00200014: 0x5623 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00200018: 0x2152 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0020001c: 0x6c12 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00200020: 0x20c4 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00200024: 0x19b7 instead

Further such events for this erase block will not be printed

Old JFFS2 bitmask found at 0x0020fa80

You cannot use older JFFS2 filesystems with newer kernels

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00210000: 0x9cc6 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00210004: 0x054a instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00210008: 0x67e6 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0021000c: 0xaffd instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00210010: 0x564f instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00210014: 0x0cd3 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00210018: 0xbd19 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0021001c: 0x51f4 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00210020: 0xa39d instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00210024: 0x42e1 instead

Further such events for this erase block will not be printed

Old JFFS2 bitmask found at 0x0021fee4

You cannot use older JFFS2 filesystems with newer kernels

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00220000: 0x9680 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00220004: 0x4633 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00220008: 0x1d9e instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0022000c: 0x999d instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00220010: 0xe996 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00220014: 0xe933 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00220018: 0x2ed1 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0022001c: 0x4fae instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00220020: 0x6bae instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00220024: 0xefd2 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00230000: 0x7dbd instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00230004: 0xe058 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00230008: 0x3112 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0023000c: 0x1feb instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00230010: 0xa5eb instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00230014: 0x2f2e instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00230018: 0xe70a instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0023001c: 0x3906 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00230020: 0xdf62 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00230024: 0xc5e9 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00240000: 0x38f4 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00240004: 0xefb5 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00240008: 0xcf7e instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0024000c: 0xe346 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00240010: 0xe5cf instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00240014: 0x81d7 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00240018: 0xd6e0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0024001c: 0xd183 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00240020: 0x6f11 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00240024: 0x92e6 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00250000: 0xd33f instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00250004: 0xd792 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00250008: 0x92bf instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0025000c: 0xe0c1 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00250010: 0xdb7f instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00250014: 0xd90a instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00250018: 0x100a instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0025001c: 0xfbc3 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00250020: 0xee13 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00250024: 0xeeac instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260000: 0x3938 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260004: 0x577a instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260008: 0xc71a instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0026000c: 0x8013 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260010: 0x6fae instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260014: 0x10f0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260018: 0xfc29 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0026001c: 0xaf70 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260020: 0x8f8d instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00260024: 0x2b40 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270000: 0xc2e3 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270004: 0xb36a instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270008: 0x7527 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0027000c: 0xad3d instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270010: 0x0bb8 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270014: 0x2343 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270018: 0xf5c2 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0027001c: 0xedcf instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270020: 0x1bef instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00270024: 0xfd7b instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280000: 0x1d79 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280004: 0xfdc9 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280008: 0xb7e2 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0028000c: 0xf51b instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280010: 0x7cba instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280014: 0xdac5 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280018: 0xea92 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0028001c: 0xd750 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280020: 0x9754 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00280024: 0xe5d5 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290000: 0xc844 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290004: 0x0ff1 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290008: 0x37b3 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0029000c: 0xcccd instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290010: 0x8aff instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290014: 0x8c78 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290018: 0xc0a5 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0029001c: 0x658f instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290020: 0x435f instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00290024: 0xa9c1 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0000: 0xf750 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0004: 0xf5d2 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0008: 0xeea0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a000c: 0x5ba4 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0010: 0xeea2 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0014: 0x3748 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0018: 0xf751 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a001c: 0xeee9 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0020: 0xf751 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002a0024: 0xaba4 instead

Further such events for this erase block will not be printed

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0000: 0x4441 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0004: 0x6100 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0008: 0x0008 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0010: 0x3835 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0014: 0x3635 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0018: 0x27e0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b001c: 0x10a0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0020: 0xf4d0 instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0024: 0xf4cc instead

jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x002b0028: 0xd000 instead

Further such events for this erase block will not be printed

VFS: Mounted root (jffs2 filesystem) on device 31:2.

Freeing unused kernel memory: 108k freed

Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.

Hardware Trace:

   0 Target : <0x0011d2dc> { _dump_stack + 0x0 }

     Source : <0x0011d356> { _panic + 0x42 } CALL pcrel

   1 Target : <0x0011d356> { _panic + 0x42 }

     Source : <0x0011d3e0> { _printk + 0x14 } RTS

   2 Target : <0x0011d3dc> { _printk + 0x10 }

     Source : <0x00010bd6> { _vprintk + 0x16a } RTS

   3 Target : <0x00010bca> { _vprintk + 0x15e }

     Source : <0xffa00cc8> { __common_int_entry + 0xcc } RTI

   4 Target : <0xffa00c66> { __common_int_entry + 0x6a }

     Source : <0xffa00ab0> { _return_from_int + 0x58 } RTS

   5 Target : <0xffa00ab0> { _return_from_int + 0x58 }

     Source : <0xffa00a86> { _return_from_int + 0x2e } IF !CC JUMP pcrel

   6 Target : <0xffa00a58> { _return_from_int + 0x0 }

     Source : <0xffa00c62> { __common_int_entry + 0x66 } JUMP.L

   7 Target : <0xffa00c60> { __common_int_entry + 0x64 }

     Source : <0xffa00360> { _asm_do_IRQ + 0x60 } RTS

   8 Target : <0xffa00358> { _asm_do_IRQ + 0x58 }

     Source : <0x000141f2> { __local_bh_enable + 0x3a } RTS

   9 Target : <0x000141b8> { __local_bh_enable + 0x0 }

     Source : <0x0001482c> { ___do_softirq + 0xa4 } JUMP.L

  10 Target : <0x00014824> { ___do_softirq + 0x9c }

     Source : <0x00014818> { ___do_softirq + 0x90 } IF CC JUMP pcrel

  11 Target : <0x0001480a> { ___do_softirq + 0x82 }

     Source : <0x0002fe1c> { _rcu_bh_qs + 0x14 } RTS

  12 Target : <0x0002fe08> { _rcu_bh_qs + 0x0 }

     Source : <0x00014806> { ___do_softirq + 0x7e } CALL pcrel

  13 Target : <0x000147fe> { ___do_softirq + 0x76 }

     Source : <0x000306b0> { _rcu_process_callbacks + 0x30 } RTS

  14 Target : <0x000306ac> { _rcu_process_callbacks + 0x2c }

     Source : <0x00030548> { _rcu_do_batch + 0x130 } RTS

  15 Target : <0x00030540> { _rcu_do_batch + 0x128 }

     Source : <0x0003042a> { _rcu_do_batch + 0x12 } IF CC JUMP pcrel

Stack info:

SP: [0x0201bf98] <0x0201bf98> /* kernel dynamic memory (maybe user-space) */

FP: (0x0201bfe4)

Memory from 0x0201bf90 to 0201c000

0201bf90: 0201bf98  00000000 [00147cd0] 0011d35a  00189cf4  00147cd0  0017e4be  0017e4be

0201bfb0: 0017e4be  0201bfc8  0000126a  00189cf4  00000000  0201bfc8  001f8fe0  00000008

0201bfd0: 0019a1e2  001b1f50  001b1f50  00000000  00000000 (00000000)<000014ae> 00000000

0201bff0: 00000000  00000000  ffffffff  00000006

Return addresses in stack:

   frame  1 : <0x000014ae> { _kernel_thread_helper + 0x6 }

TranslateQuoteReplyEditDelete

 

 

2011-04-19 22:20:21     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

Aaron Wu (CHINA)

Message: 100013   

 

Please create a new topic for help for new problems, one topic for one problem please. For this one, you may do some further check according the general suggestion for   blackfin.uclinux.org/gf/project/uclinux-dist/forum/?_forum_action=MessageReply&action=ForumBrowse&message_id=99256. If have problem please comeback to us with a new topic.

QuoteReplyEditDelete

 

 

2011-05-10 20:18:05     Re: 关于parallel flash空间和rootfs.jffs2文件大小问题

macgrady tracy (CHINA)

Message: 100557   

 

you can cut off some unused program in userspace, the roorfs.jffs2 can reach 300-400k at last!

 

the question of some address can't be erased while using uboot is something wrong in the driver of uboot.

QuoteReplyEditDelete

Attachments

    Outcomes