Hi all,
I am using DVRRDK V4.0 on my own 8168 board, and the NAND is MS320DM8168BCYG2 (the same as used in rdk4.0), after the board can be booted by SDCard, here comes the problem:
it's OK to r/w NAND(or even boot from NAND) in uboot, but FAIL to read NAND ID(should be "0x2c, 0xca", but it read out "0xff, 0xff" actually) during or after booting kernel
So I dump register related with NAND(e.g: GPMC, PINMUX) to try to find out anything changed by the kernel, and it turn out to be nothing
Can you please advise why would that happen? And how do I fix it??
Urgent! Appreciate for any advise.
ps: the logs:
log1: (the original, simple log)
[ 1.000000] omap2-nand driver initializing
[ 1.110000] No NAND device found.
log2: (with my debuging info)
[ 1.000000] omap2-nand driver initializing
[ 1.010000] nand_command(), line554
[ 1.010000] gpmc_cs_write_byte(): data 0xff write to addr 0xd080407c //reset
[ 1.020000] gpmc_cs_write_byte(): data 0x70 write to addr 0xd080407c
[ 1.020000] nand_command(), line554
[ 1.030000] gpmc_cs_write_byte(): data 0x90 write to addr 0xd080407c //read NAND ID, get "0xff, 0xff"
[ 1.030000] gpmc_cs_write_byte(): data 0x0 write to addr 0xd0804080
[ 1.040000] nand_command(), line554
[ 1.040000] gpmc_cs_write_byte(): data 0x90 write to addr 0xd080407c //read ID agian, and get "0xff, 0xff" again
[ 1.050000] gpmc_cs_write_byte(): data 0x0 write to addr 0xd0804080
[ 1.070000] nand_command(), line554
[ 1.070000] gpmc_cs_write_byte(): data 0x90 write to addr 0xd080407c
[ 1.080000] gpmc_cs_write_byte(): data 0x20 write to addr 0xd0804080
[ 1.080000] nand_command(), line554
[ 1.090000] gpmc_cs_write_byte(): data 0x90 write to addr 0xd080407c
[ 1.090000] gpmc_cs_write_byte(): data 0x0 write to addr 0xd0804080
[ 1.100000] nand_get_flash_type: NAND ID:
[ 1.110000] No NAND device found.
log3: (the "should be" log)
[ 3.290000] omap2-nand driver initializing
[ 3.300000] ONFI param page 0 valid
[ 3.300000] ONFI flash detected
[ 3.310000] NAND device: Maf ID: 0x2c, Chip ID: 0xca (Micron, NAND 256MiB 3,3V 16-bit)
[ 3.310000] erasesize: 0x20000, writesize: 2048, oobsize: 64
[ 3.320000] omap2-nand: detected x16 NAND flash
[ 3.330000] Creating 6 MTD partitions on "omap2-nand.0":
[ 3.330000] 0x000000000000-0x000000260000 : "U-Boot"
[ 3.350000] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 3.360000] 0x000000280000-0x000000580000 : "U-Boot Logo"
[ 3.370000] 0x000000580000-0x0000009c0000 : "Kernel"
[ 3.370000] 0x0000009c0000-0x00000d1e0000 : "File System"
[ 3.460000] 0x00000d1e0000-0x000010000000 : "Reserved"
