This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPMC_CONFIG1~7_0 value change problem

Hi everyone~

I use AM3358BZCZ with TI SDK 8.0 Linux(Kernel 3.14.26).

And my board have nVRAM using CS0. (So, I changed u-boot & kernel DTS.)

I check the configuration about CS0 at u-boot and it's ok

U-Boot# md.l 50000060 7
50000060: 00000010 00101000 00000000 10041004 ................
50000070: 000c1010 08000000 00000f41                 ........A...

But it's value change while kernel boot sequence.

I add some debug message to gpmc_probe() function in /kernel /arch/arm/mach-omap2/gpmc.c

static int gpmc_probe(struct platform_device *pdev)

{...

gpmc_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(gpmc_base))
return PTR_ERR(gpmc_base);

// add for debug
printk(KERN_ERR "---gpmc_probe---\n");
for(i=0; i<7; i++)
{
ll[i] = gpmc_read_reg(0x60+i*4);
}
printk(KERN_ERR "0060: %08x %08x %08x %08x %08x %08x %08x\n", ll[0], ll[1], ll[2], ll[3], ll[4], ll[5], ll[6]); 

 

Kernel message

[ 0.626623] ---gpmc_probe--- ?
[ 0.629677] 0060: 00000000 00101001 22060514 10057016 010f1111 8f070000 00000f40

Why change the GPMC_CONFIGx0 value?? If you more information about this problem, please let me know.

Thank you and have a nice day.

  • Hi Sewoong,

    Yes, I checked and agree with you. I don't know where the changed are made, but I suppose that there are some other devices connected through GPMC (see in TRM all external memory devices) and changed your settings from u-boot. If you want you can looking for this places, but for me it's better to re-initialize your nand in a gpmc driver.

    BR
    Ivan
  • Hi Ivan.
    Thank you for your response.

    I give more information about my problem.
    I used kernel v3.14.17 before TI SDK 8.0 release.
    And there is no problem with GPMC config at kernel 3.14.17.

    So, I try u-boot (from TI SDK 8.0) & kernel 3.14.17. Test result is ok.
    And kernel 3.14.26(from TI SDK8.0) configuration is almost same with kernel3.14.17.
    But there is problem with GPMC config at kernel 3.14.26.

    My board use only 1 nVRAM, no other devices and no NAND with GPMC.

    Any idea is ok, please response. Thank you all.

    Best regards.
    Sewoong.