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.

Ethernet Memory Allocation with GPMC in AM335x in Kernel

HI

 

I'v been designing a board using AM335x.

By the way, my board are using 2 ethernet port by the smsc 9220.

 

It is ok at uboot.

But Ethernet memory allocation was failed, it was no detected in cs2 and cs3!

 

cs 2,  start 0x02000000

config1 : 0x00001000

config2 : 0x00101001

config3 : 0x22060514

config4 : 0x10057016

config5 : 0x010f1111

config6 : 0x8f070000

config7 : 0x00000f42

 

These value is same with uboot, and  kernel.

 

But Kernel was not detect the ethernet phy.

 

I've already set the pinmux in non-multiple mode in gpmc.

 

So sram(cs1) is O.K.

 

What can I do to detect in smsc9220 memory?

 

and I have one more question.

I connected to SMSC LAN9220 phy chip's FIFO_SEL pin to gpam_a11. no problem?

it's different from the reference.

 

Thank you in Advance.

  • Hi,

    If you don't have kernel drivers for this chip, I don't see how you can detect it.
  • Hi,

     

    I have a smsc9220 chip driver for kernel.

    And this driver was not working on the kernel because of no gpmc memory detecting of the cs2!

    My kernel log is below.

    Thank you in advance.

    [ 1.047668] omap-gpmc omap-gpmc: GPMC revision 6.0
    [ 1.047698] [gpmc_cs_mem_enabled:0] config1 0x00000800, config2 0x001e1e00,
    [ 1.047698] config4 0x001e1e00, config3 0x16051807,
    [ 1.047698] config5 0x00151e1e, config6 0x16000f80,config7 0x00000048
    [ 1.047698] [gpmc_cs_get_memconf:0] base addr 0x08000000, size 0x10000000
    [ 1.047729] [gpmc_mem_init] cs 0, base 0x08000000, size 0x10000000
    [ 1.047729]
    [ 1.047729] [gpmc_cs_insert_mem:0] start addr 0x08000000, end addr 0x17ffffff, request resource result : 0
    [ 1.047760] [gpmc_cs_mem_enabled:1] config1 0x00001000, config2 0x00101001,
    [ 1.047760] config4 0x22060514, config3 0x10057016,
    [ 1.047790] config5 0x010f1111, config6 0x8f070000,config7 0x00000f00
    [ 1.047790] [gpmc_mem_init] gpmc_cs_mem_disabled cs 1!
    [ 1.047790] [gpmc_cs_mem_enabled:2] config1 0x00001000, config2 0x00080701,
    [ 1.047821] config4 0x00020201, config3 0x08010701,
    [ 1.047821] config5 0x00061d1d, config6 0x9d030000,config7 0x00000f00
    [ 1.047821] [gpmc_mem_init] gpmc_cs_mem_disabled cs 2!
    [ 1.047851] [gpmc_cs_mem_enabled:3] config1 0x00001000, config2 0x00080701,
    [ 1.047851] config4 0x00020201, config3 0x08010701,
    [ 1.047851] config5 0x00061d1d, config6 0x9d030000,config7 0x00000f00
    [ 1.047851] [gpmc_mem_init] gpmc_cs_mem_disabled cs 3!
    [ 1.047882] [gpmc_cs_mem_enabled:4] config1 0x00001000, config2 0x00101001,
    [ 1.047882] config4 0x22060514, config3 0x10057016,

    [ 1.049255] Registering SMSC911x on CS2
    [ 1.049285] [gpmc_cs_mem_enabled:2] config1 0x00001000, config2 0x00080701,
    [ 1.049285] config4 0x00020201, config3 0x08010701,
    [ 1.049285] config5 0x00061d1d, config6 0x9d030000,config7 0x00000f00
    [ 1.049316] [gpmc_cs_request] r 0, cs 2, start 0x00100000, size 0x01000000
    [ 1.049316]
    [ 1.049316]
    [ 1.049316] cs 2, GPMC_CS_CONFIG1: 0x1000
    [ 1.049316]
    [ 1.049346]
    [ 1.049346]
    [ 1.049346] [CS2] CS_CONFIG1: 0x00001000, CS_CONFIG7: 0x00000f42
    [ 1.049346]
    [ 1.049346]
    [ 1.049346] gpmc_smsc911x_init: [gpmc_smsc911x_init] cs 2, start 0x02000000
    [ 1.049682] gpmc_smsc911x_init: [gpmc_smsc911x_init] config1 : 0x00001000
    [ 1.049682] gpmc_smsc911x_init: [gpmc_smsc911x_init] config2 : 0x00080701
    [ 1.049682] gpmc_smsc911x_init: [gpmc_smsc911x_init] config3 : 0x00020201
    [ 1.049713] gpmc_smsc911x_init: [gpmc_smsc911x_init] config4 : 0x08010701
    [ 1.049713] gpmc_smsc911x_init: [gpmc_smsc911x_init] config5 : 0x00061d1d
    [ 1.049743] gpmc_smsc911x_init: [gpmc_smsc911x_init] config6 : 0x9d030000
    [ 1.049743] gpmc_smsc911x_init: [gpmc_smsc911x_init] config7 : 0x00000f42
    [ 1.049743] [gpmc_probe] 128

    [ 5.552032] smsc911x: Driver version 2008-10-21
    [ 5.552032] smsc911x: Could not allocate resource, smsc911x
    [ 5.552062] smsc911x: [smsc911x_drv_probe] start addr 0x02000000
    [ 5.552154] smsc911x: smsc911x base start address 0xd085a000, size : 0x00000100, test 0xd085a064
    [ 5.552185] smsc911x smsc911x.0: (unregistered net_device): Driver Parameters:
    [ 5.552185] smsc911x smsc911x.0: (unregistered net_device): LAN base: 0xD085A000
    [ 5.552215] smsc911x smsc911x.0: (unregistered net_device): IRQ: 211
    [ 5.552215] smsc911x smsc911x.0: (unregistered net_device): PHY will be autodetected.
    [ 6.551727] [smsc911x_init] ptm reg date 0x00000000, addr 0x00000000
    [ 6.551727] smsc911x: Device not READY in 100ms aborting

     

     

  • What SDK version is this?
  • Thank you for ur reply.
    My SDK version is "linux-3.2-psp04.06.00.07.sdk"

  • Can you please clarify what processor you are using? Your first post is about AM335X, now it's about AM35X. These are two different devices.
  • Sorry. I've confused my sdk version.
    It's "linux-3.2-psp04.06.00.07.sdk" and I'm using AM335x.
  • This is a very old version and no longer supported. Can you switch to the latest kernel: software-dl.ti.com/.../index_FDS.html ?