Where to change the jffs2 erase block size and page size in the freescale yocto SDK?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where to change the jffs2 erase block size and page size in the freescale yocto SDK?

Jump to solution
4,260 Views
alfonsokame
Contributor III

Hi,

Im struggling to find a way to change the jffs2 erase block size and page size in the freescale yocto SDK.

I have to do that because when I boot the kernel image from nand Flash, i get :

jffs2_scan_eraseblock(): magic bitmask 0x1985...


Any idea?


Many thanks

Labels (1)
Tags (2)
1 Solution
1,934 Views
soojinlee
Contributor I

I'm solved

I changed 

./ltib -m config

Target Image Generation > Options > selected Target image: jffs2

(128) jffs2 erase block size in KB (org : (512)  jffs2 erase block size in KB )

(2) Page size (max data node size)(Kbytes) (org: (4) Page size (max data node size)(Kbytes) )

My Nand driver setting checked

> mtdinfo -a

..

Eraseblock size:                131072 bytes, 128.0 KiB

....

Sub-page size:                  2048 bytes

good bye

View solution in original post

0 Kudos
3 Replies
1,935 Views
soojinlee
Contributor I

I'm solved

I changed 

./ltib -m config

Target Image Generation > Options > selected Target image: jffs2

(128) jffs2 erase block size in KB (org : (512)  jffs2 erase block size in KB )

(2) Page size (max data node size)(Kbytes) (org: (4) Page size (max data node size)(Kbytes) )

My Nand driver setting checked

> mtdinfo -a

..

Eraseblock size:                131072 bytes, 128.0 KiB

....

Sub-page size:                  2048 bytes

good bye

0 Kudos
1,933 Views
lunminliang
NXP Employee
NXP Employee

Try to change the "JFFS2_ERASEBLOCK = "0x..."" in meta-fsl-ppc/conf/machine/p2020rdb(your board).conf.

1,933 Views
alfonsokame
Contributor III

Thanks!

0 Kudos