QorIQ P2020: U-Boot nand write problem

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

QorIQ P2020: U-Boot nand write problem

2,125 Views
topo
Contributor II

Hello,

 

I try to write to my NAND flash and for this I tried different things. One is to use the U-Boot functionality and the other to use linux functionality (other thread). If I do it as described at the manual I always get an error and I do not know why. See the procedure here:

 

=> tftp 1000000 u-boot.bin

Speed: 1000, full duplex
Using eth0 device
TFTP from server 192.168.0.11; our IP address is 192.168.0.111
Filename 'u-boot.bin'.
Load address: 0x1000000
Loading: ##################################
done
Bytes transferred = 488468 (77414 hex)
=> nand erase 00000000 000fffff

NAND erase: device 0 offset 0x0, size 0xfffff
Bad block table found at page 65504, version 0x01
Bad block table found at page 65472, version 0x01
nand_read_bbt: Bad block at 0x000000ac4000
Erasing at 0xfc000 -- 100% complete.
OK
=> nand write 1000000 00000000 000fffff

NAND write: device 0 offset 0x0, size 0xfffff
NAND write to offset 0 failed -5
 0 bytes written: ERROR

 

NAND Flash memory map address:
MTD | Start offset |End offset | Description
MTD5    0x00000000    0x000fffff   NAND boot binary
MTD6    0x00100000    0x001fffff   DTB
MTD7    0x00200000    0x005fffff   uImage
MTD8    0x00600000    0x009fffff   Ramdisk
MTD9    0x00a00000    0x018fffff   Rootfs image
MTD10   0x01900000    0x01ffffff   User area

 

My system environment is :

- Ubuntu 11.04

- I use currently the Freescale toolchain with bitbake and built the images as described in "Freescale Mentor Embedded Linux Essential for QorIQ Processors, Rev 1.0.1"

- P2020RDB-PCA evaluation board

 

Does anyone know what the problem could be and how I can solve this?

 

Thank you very much for your help.

0 Kudos
0 Replies