mpc8308 large page nandflash problem

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

mpc8308 large page nandflash problem

514 Views
yintaozhu
Contributor I

HI!

   recently,i am trying to change nandflash of MPC8308 from 32MiB to 2GiB, my nand page size is 2KBytes, and the development tools is cw8.8 with codewarrior USB TAP。 i changed the cfg file 

pastedImage_1.png

pastedImage_2.png

and the nandflash driver came from uboot2009.11, i transfered it into the IDE with yaffs2 in the uboot. it works well on the MPC8308mITX REV2 Development board. and I made a board of my on. only changed the nand from 32MiB to 2GiB. i want to know if there are any other places I need to change, thanks a lot. if you have the 2kpage elbc nandflash driver for mpc83xx, please let me know, thanks a lot.

my program is attached below。

0 Kudos
Reply
1 Reply

420 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Yintao Zhu,

NAND flash is not memory map device, it is a block device such as hard disk, internal FCM buffer which acts as a temporary storage during read/write operations with NAND flash, which is configured in the system memory map.

Please refer to the following P2041ARDB elbc NAND configuration, which integrates NAND flash MT29F4G08ABADA.

    # LAW11 to eLBC (NAND) - 1M
    mem [CCSR 0xcB0] = 0x00000000
    mem [CCSR 0xcB4] = 0xF8200000    
    mem [CCSR 0xcB8] = 0x81F00013

    # define   1MB TLB entry 16 : 0xF8200000 - 0xF82FFFFF; for NAND   cache inhibited, guarded
    reg ${CAM_GROUP}L2MMU_CAM16 = 0x5000000A1C080000F8200000F8200001

    # CS1 - NAND,    addr at 0xF8200000,  8-bit, FCM, Valid
    # eLBC_BR1
    mem [CCSR 0x124008] = 0xf8200821
    # eLBC_ORg1
    mem [CCSR 0x12400c] = 0xfffc0796    

ELBC_OR[AM] is configured as 256K, for MT29F4G08B, 1block=(128K + 4K) bytes

Thanks,

Yiping

0 Kudos
Reply