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.

Issue with AM1808 + DP83848J PHY driver on linux

Other Parts Discussed in Thread: AM1808, DP83848J, OMAP-L138, DA8XX, PMP

Hi,

We are working on AM1808 platform with linux kernel version 2.6.33. We are having below ethernet driver issues:

1. As Our custom board is having Ethernet DP83848j phy chip, as driver for DP83848j phy is not supported in linux kernel version. Could you please share the driver for DP83848J phy?

2. We have below set-up for debugging Ethernet inteface:

 Once linux comes up on custom board, having Ethernet cable connection from board to laptop with static IP, we are not able to ping from board interface to laptop.

 Could you please help on the above problem?

  • Hi Gururaj,

     Once linux comes up on custom board, having Ethernet cable connection from board to laptop with static IP, we are not able to ping from board interface to laptop.

    Could you please share your complete bootup log ?

    Are you able to access the ethernet in u-boot like tftpboot etc., ?

  • Hi Titus S,

    Appriciate your quick response.

    We are able to access the ethernet in u-boot mode (using tftp).

    Its is not working from once linux boots.

    Please find the attached log below

    U-Boot >

    U-Boot > tftp 0xc0700000 uImage_saankhya

    Using  device

    TFTP from server 192.168.3.111; our IP address is 192.168.3.30

    Filename 'uImage_saankhya'.

    Load address: 0xc0700000

    Loading: #################################################################

             #################################################################

             #########################################

    done

    Bytes transferred = 2508844 (26482c hex)

    U-Boot > bootm 0xc0700000

    ## Booting kernel from Legacy Image at c0700000 ...

       Image Name:   Linux-2.6.33-rc4

       Image Type:   ARM Linux Kernel Image (uncompressed)

       Data Size:    2508780 Bytes =  2.4 MB

       Load Address: c0008000

       Entry Point:  c0008000

       Verifying Checksum ... OK

       Loading Kernel Image ... OK

    OK

     

    Starting kernel ...

     

    Uncompressing Linux... done, booting the kernel.

    Linux version 2.6.33-rc4 (root@linux-4qm4.site) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1091 PREEMPT Mon Oct 6 11:18:19 IST 2014

    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

    CPU: VIVT data cache, VIVT instruction cache

    Machine: DaVinci DA850/OMAP-L138/AM18xx EVM

    Memory policy: ECC disabled, Data cache writeback

    On node 0 totalpages: 32768

    free_area_init_node: node 0, pgdat c050291c, node_mem_map c0525000

      DMA zone: 256 pages used for memmap

      DMA zone: 0 pages reserved

      DMA zone: 32512 pages, LIFO batch:7

    DaVinci da850/omap-l138/am18xx variant 0x1

    before i2cid =        a

    before usbid =        0

    PLL1: input = 24 MHz [ ] --> 300 MHz output.

    / 1 * 25 / 2 PLL2: input = 24 MHz [ ] --> 264 MHz output.

    / 1 * 22 / 2

    after usbid =        0

    i2cid =        a

    psc = 44825a00

    cfgchip0 =      100

    i2cid =        a

    default CFGCHIP3_REG =     fe10

    after modifying CFGCHIP3_REG =     fe10

    syscfg0id = 4e840102

    uppid = 1143148800

    PLLCTL =       49

    fec11100       49

    fec11104       14

    fec11108    20000

    fec1110c        0

    fec11110       18

    fec11114     8000

    fec11118     8000

    fec1111c     8001

    fec11120     800b

    fec11124     8000

    fec11128     8001

    fec1112c        0

    fec11130        0

    fec11134        0

    fec11138        1

    fec1113c        6

    PLLCTL =       49

    fee1a100       49

    fee1a104       10

    fee1a108    20000

    fee1a10c        0

    fee1a110       15

    fee1a114     8000

    fee1a118     8000

    fee1a11c     8001

    fee1a120     8002

    fee1a124        0

    fee1a128     8001

    fee1a12c     8001

    fee1a130        0

    fee1a134        0

    fee1a138        1

    fee1a13c        6

     

    ..................cpsr = 600000d3

     

    ..................spsr =       10

    KICK0R =        0

    KICK1R =        0

    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512

    Kernel command line: console=ttyS2,115200n8 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs vpif_capture.ch0_bufsize=831488 vpif_display.ch2_bufsize=831488 sbc8018lcd=43

    PID hash table entries: 512 (order: -1, 2048 bytes)

    Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

    Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

    Memory: 128MB = 128MB total

    Memory: 124528KB available (4696K code, 375K data, 160K init, 0K highmem)

    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

    Hierarchical RCU implementation.

    NR_IRQS:245

    Console: colour dummy device 80x30

    Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)

    Mount-cache hash table entries: 512

    CPU: Testing write buffer coherency: ok

    DaVinci: 144 gpio irqs

    NET: Registered protocol family 16

    In spi_init......

    MUX: Setting register GPIO1_4

               PINMUX4 (0x00000010) = 0x00222288 -> 0x00228288

    MUX: Setting register GPIO1_5

               PINMUX4 (0x00000010) = 0x00228288 -> 0x00228888

    MUX: Setting register GPIO4_0

               PINMUX10 (0x00000028) = 0x00222222 -> 0x80222222

    MUX: Setting register GPIO4_1

               PINMUX10 (0x00000028) = 0x80222222 -> 0x88222222

    MUX: Setting register LCD_D_0

               PINMUX17 (0x00000044) = 0x00000000 -> 0x00000020

    MUX: Setting register LCD_D_1

               PINMUX17 (0x00000044) = 0x00000020 -> 0x00000022

    MUX: Setting register LCD_D_2

               PINMUX16 (0x00000040) = 0x00000000 -> 0x20000000

    MUX: Setting register LCD_D_3

               PINMUX16 (0x00000040) = 0x20000000 -> 0x22000000

    MUX: Setting register LCD_D_4

               PINMUX16 (0x00000040) = 0x22000000 -> 0x22200000

    MUX: Setting register LCD_D_5

               PINMUX16 (0x00000040) = 0x22200000 -> 0x22220000

    MUX: Setting register LCD_D_6

               PINMUX16 (0x00000040) = 0x22220000 -> 0x22222000

    MUX: Setting register LCD_D_7

               PINMUX16 (0x00000040) = 0x22222000 -> 0x22222200

    MUX: Setting register LCD_D_8

               PINMUX18 (0x00000048) = 0x00000000 -> 0x00000020

    MUX: Setting register LCD_D_9

               PINMUX18 (0x00000048) = 0x00000020 -> 0x00000022

    MUX: Setting register LCD_D_10

               PINMUX17 (0x00000044) = 0x00000022 -> 0x20000022

    MUX: Setting register LCD_D_11

               PINMUX17 (0x00000044) = 0x20000022 -> 0x22000022

    MUX: Setting register LCD_D_12

               PINMUX17 (0x00000044) = 0x22000022 -> 0x22200022

    MUX: Setting register LCD_D_13

               PINMUX17 (0x00000044) = 0x22200022 -> 0x22220022

    MUX: Setting register LCD_D_14

               PINMUX17 (0x00000044) = 0x22220022 -> 0x22222022

    MUX: Setting register LCD_D_15

               PINMUX17 (0x00000044) = 0x22222022 -> 0x22222222

    MUX: Setting register LCD_PCLK

               PINMUX18 (0x00000048) = 0x00000022 -> 0x02000022

    MUX: Setting register LCD_MCLK

               PINMUX18 (0x00000048) = 0x02000022 -> 0x22000022

    MUX: Setting register LCD_HSYNC

               PINMUX19 (0x0000004c) = 0x00000000 -> 0x00000002

    MUX: Setting register LCD_VSYNC

               PINMUX19 (0x0000004c) = 0x00000002 -> 0x00000022

    MUX: Setting register NLCD_AC_ENB_CS

               PINMUX19 (0x0000004c) = 0x00000022 -> 0x02000022

    MUX: Setting register GPIO2_8

               PINMUX5 (0x00000014) = 0x00110110 -> 0x80110110

    MUX: Setting register GPIO2_15

               PINMUX5 (0x00000014) = 0x80110110 -> 0x80110118

    sbc8018_lcd = 2b

    MUX: Setting register RTC_ALARM

               PINMUX0 (0x00000000) = 0x44080000 -> 0x24080000

    MUX: Setting register SPI1_CS_1

               PINMUX5 (0x00000014) = 0x80110118 -> 0x80110111

    MUX: Setting register GPIO2_4

               PINMUX6 (0x00000018) = 0x00000000 -> 0x00008000

    MUX: Setting register GPIO6_13

               PINMUX13 (0x00000034) = 0x00000000 -> 0x00000800

    No entry for the specified index

    da850_evm_init: vpif capture mux failed: -19

    MUX: Setting register NUART2_RTS

               PINMUX0 (0x00000000) = 0x24080000 -> 0x28080000

    MUX: Setting register NUART2_CTS

               PINMUX0 (0x00000000) = 0x28080000 -> 0x88080000

    after setting test pin value.....

    ret = 44231100

    bio: create slab <bio-0> at 0

    SCSI subsystem initialized

    libata version 3.00 loaded.

    usbcore: registered new interface driver usbfs

    usbcore: registered new interface driver hub

    usbcore: registered new device driver usb

    i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)

    vpif vpif: vpif probe success

    cfg80211: Calling CRDA to update world regulatory domain

    Switching to clocksource timer0_1

    musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0

    Waiting for USB PHY clock good...

    musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)

    musb_hdrc: MHDRC RTL version 1.800

    musb_hdrc: setup fifo_mode 2

    musb_hdrc: 8/9 max ep, 3904/4096 memory

    musb_hdrc: USB Host mode controller at fee00000 using DMA, IRQ 58

    musb_hdrc musb_hdrc: MUSB HDRC host driver

    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1

    musb_hdrc musb_hdrc: supports USB remote wakeup

    usb usb1: default language 0x0409

    usb usb1: udev 1, busnum 1, minor = 0

    usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

    usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

    usb usb1: Product: MUSB HDRC host driver

    usb usb1: Manufacturer: Linux 2.6.33-rc4 musb-hcd

    usb usb1: SerialNumber: musb_hdrc

    usb usb1: uevent

    usb usb1: usb_probe_device

    usb usb1: configuration #1 chosen from 1 choice

    usb usb1: adding 1-0:1.0 (config #1, interface 0)

    usb 1-0:1.0: uevent

    hub 1-0:1.0: usb_probe_interface

    hub 1-0:1.0: usb_probe_interface - got id

    hub 1-0:1.0: USB hub found

    hub 1-0:1.0: 1 port detected

    hub 1-0:1.0: standalone hub

    hub 1-0:1.0: individual port power switching

    hub 1-0:1.0: no over-current protection

    hub 1-0:1.0: power on to power good time: 10ms

    hub 1-0:1.0: local power source is good

    hub 1-0:1.0: enabling power on all ports

    NET: Registered protocol family 2

    IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

    TCP established hash table entries: 4096 (order: 3, 32768 bytes)

    TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

    TCP: Hash tables configured (established 4096 bind 4096)

    TCP reno registered

    UDP hash table entries: 256 (order: 0, 4096 bytes)

    UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

    NET: Registered protocol family 1

    RPC: Registered udp transport module.

    RPC: Registered tcp transport module.

    RPC: Registered tcp NFSv4.1 backchannel transport module.

    IN da850_evm_config_emac------------

    IN da850_evm_config_emac cfg_chip3_base val =     fe10

    EMAC: MII PHY configured, RMII PHY will not be functional

    IN da850_evm_config_emac cfg_chip3 after writting val =     fe10

    MUX: Setting register GPIO2_6

               PINMUX6 (0x00000018) = 0x00008000 -> 0x00008080

    IN da850_evm_config_emac cfg_chip3 after writting ret =        0

    hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000

    NTFS driver 2.1.29 [Flags: R/W DEBUG].

    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

    fuse init (API version 7.13)

    msgmni has been set to 243

    alg: No test for stdrng (krng)

    io scheduler noop registered (default)

    da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel

    Console: switching to colour frame buffer device 60x34

    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled

    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A

    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A

    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A

    console [ttyS2] enabled

    brd: module loaded

    loop: module loaded

    ahci ahci: version 3.0

    ahci ahci: forcing PORTS_IMPL to 0x1

    ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode

    ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc

    scsi0 : ahci

    ata1: SATA max UDMA/133 irq 67

    NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD NAND 128MiB 3,3V 8-bit)

    Bad block table not found for chip 0

    Bad block table not found for chip 0

    Scanning device for bad blocks

    Bad eraseblock 945 at 0x000007620000

    Bad block table written to 0x000007fe0000, version 0x01

    Bad block table written to 0x000007fc0000, version 0x01

    Creating 5 MTD partitions on "davinci_nand.1":

    0x000000000000-0x000000020000 : "u-boot env"

    0x000000020000-0x000000040000 : "UBL"

    0x000000040000-0x0000000c0000 : "u-boot"

    0x000000200000-0x000000600000 : "kernel"

    0x000000600000-0x000007fc0000 : "filesystem"

    davinci_nand davinci_nand.1: controller rev. 2.5

    UBI: attaching mtd4 to ubi0

    UBI: physical eraseblock size:   131072 bytes (128 KiB)

    UBI: logical eraseblock size:    129024 bytes

    UBI: smallest flash I/O unit:    2048

    UBI: sub-page size:              512

    UBI: VID header offset:          512 (aligned 512)

    UBI: data offset:                2048

    ata1: SATA link down (SStatus 0 SControl 300)

    UBI: attached mtd4 to ubi0

    UBI: MTD device name:            "filesystem"

    UBI: MTD device size:            121 MiB

    UBI: number of good PEBs:        971

    UBI: number of bad PEBs:         3

    UBI: max. allowed volumes:       128

    UBI: wear-leveling threshold:    4096

    UBI: number of internal volumes: 1

    UBI: number of user volumes:     1

    UBI: available PEBs:             0

    UBI: total number of reserved PEBs: 971

    UBI: number of PEBs reserved for bad PEB handling: 9

    UBI: max/mean erase counter: 2/0

    UBI: image sequence number: 485311716

    UBI: background thread "ubi_bgt0d" started, PID 470

    In davinci_spi_init..

    In spidev_init...

    PPP generic driver version 2.4.2

    PPP Deflate Compression module registered

    PPP BSD Compression module registered

    PPP MPPE Compression module registered

    NET: Registered protocol family 24

    PPPoL2TP kernel driver, V1.0

    console [netcon0] enabled

    netconsole: network logging started

    rf_driver: rf init module called

     

    rf_driver: rf init called

     

    Buffer Ptr Rx= c7c00000 Tx = c7000000

    Entering : hgw_device_init

    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

    ohci_hcd: block sizes: ed 64 td 64

    ohci ohci.0: DA8xx OHCI

    ohci ohci.0: new USB bus registered, assigned bus number 2

    ohci ohci.0: starting USB controller

    ohci ohci.0: created debug files

    ohci ohci.0: irq 59, io mem 0x01e25000

    ohci ohci.0: OHCI controller state

    ohci ohci.0: OHCI 1.0, NO legacy support registers

    ohci ohci.0: control 0x083 HCFS=operational CBSR=3

    ohci ohci.0: cmdstatus 0x00000 SOC=0

    ohci ohci.0: intrstatus 0x00000004 SF

    ohci ohci.0: intrenable 0x8000001a MIE UE RD WDH

    ohci ohci.0: hcca frame #001c

    ohci ohci.0: roothub.a 02000202 POTPGT=2 NPS NDP=2(1)

    ohci ohci.0: roothub.b 00000000 PPCM=0000 DR=0000

    ohci ohci.0: roothub.status 00008000 DRWE

    ohci ohci.0: roothub.portstatus [0] 0x00000100 PPS

    usb usb2: default language 0x0409

    usb usb2: udev 1, busnum 2, minor = 128

    usb usb2: New USB device found, idVendor=1d6b, idProduct=0001

    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

    usb usb2: Product: DA8xx OHCI

    usb usb2: Manufacturer: Linux 2.6.33-rc4 ohci_hcd

    usb usb2: SerialNumber: ohci.0

    usb usb2: uevent

    usb usb2: usb_probe_device

    usb usb2: configuration #1 chosen from 1 choice

    usb usb2: adding 2-0:1.0 (config #1, interface 0)

    usb 2-0:1.0: uevent

    hub 2-0:1.0: usb_probe_interface

    hub 2-0:1.0: usb_probe_interface - got id

    hub 2-0:1.0: USB hub found

    hub 2-0:1.0: 1 port detected

    hub 2-0:1.0: standalone hub

    hub 2-0:1.0: no power switching (usb 1.0)

    hub 2-0:1.0: global over-current protection

    hub 2-0:1.0: power on to power good time: 4ms

    hub 2-0:1.0: local power source is good

    hub 2-0:1.0: no over-current condition exists

    hub 2-0:1.0: trying to enable port power on non-switchable hub

    ohci ohci.0: SetPortFeature(1): POWER

    hub 1-0:1.0: hub_suspend

    usb usb1: bus auto-suspend

    Initializing USB Mass Storage driver...

    usbcore: registered new interface driver usb-storage

    USB Mass Storage support registered.

    SL10xxUSBnI2C: SL10xxUSBnI2CInitModule: ENTER

    usbcore: registered new interface driver SL10xxUSBnI2C

    SL10xxTransMod: SL10xxDemodInit: ENTER

    SL10xxTuner: SL10xxTunerInit: ENTER

    input: gpio-keys as /devices/platform/gpio-keys/input/input0

    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0

    omap_rtc: RTC power up reset detected

    omap_rtc: already running

    i2c /dev entries driver

    Linux video capture interface: v2.00

    tvp514x 1-005d: tvp514x 1-005d decoder driver registered !!

    vpif_capture vpif_capture: registered sub device tvp514x-0

    ohci ohci.0: GetPortStatus(1)

    hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000

    tvp514x 1-005c: tvp514x 1-005c decoder driver registered !!

    vpif_capture vpif_capture: registered sub device tvp514x-1

    vpif_capture vpif_capture: VPIF Capture driver initialized

    usbcore: registered new interface driver uvcvideo

    USB Video Class driver (v0.1.0)

    watchdog watchdog: heartbeat 60 sec

    cpuidle: using governor ladder

    cpuidle: using governor menu

    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode

    Registered led device: led1

    Registered led device: led2

    leds-gpio: probe of leds-gpio failed with error -16

    usbcore: registered new interface driver usbhid

    usbhid: USB HID core driver

    TCP cubic registered

    NET: Registered protocol family 17

    Clocks: disable unused emac

    davinci_emac_probe: using random MAC addr: d2:06:90:a0:3c:02

    emac-mii: probed

    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)

    ohci ohci.0: over-current indicator change on port 1

    hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002

    ohci ohci.0: GetPortStatus(1)

    hub 2-0:1.0: over-current change on port 1

    ohci ohci.0: ClearPortFeature(1): C_OVER_CURRENT

    hub 2-0:1.0: trying to enable port power on non-switchable hub

    ohci ohci.0: SetPortFeature(1): POWER

    UBIFS: recovery needed

    UBIFS: recovery completed

    UBIFS: mounted UBI device 0, volume 0, name "rootfs"

    UBIFS: file system size:   103348224 bytes (100926 KiB, 98 MiB, 801 LEBs)

    UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)

    UBIFS: media format:       w4/r0 (latest is w4/r0)

    UBIFS: default compressor: lzo

    UBIFS: reserved for root:  0 bytes (0 KiB)

    VFS: Mounted root (ubifs filesystem) on device 0:13.

    Freeing init memory: 160K

    ohci ohci.0: over-current indicator change on port 1

    hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002

    ohci ohci.0: GetPortStatus(1)

    hub 2-0:1.0: over-current change on port 1

    ohci ohci.0: ClearPortFeature(1): C_OVER_CURRENT

    hub 2-0:1.0: trying to enable port power on non-switchable hub

    ohci ohci.0: SetPortFeature(1): POWER

    INIT: version 2.86 booting

    ohci ohci.0: over-current indicator change on port 1

    hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002

    ohci ohci.0: GetPortStatus(1)

    hub 2-0:1.0: over-current change on port 1

    ohci ohci.0: ClearPortFeature(1): C_OVER_CURRENT

    hub 2-0:1.0: trying to enable port power on non-switchable hub

    ohci ohci.0: SetPortFeature(1): POWER

    ohci ohci.0: over-current indicator change on port 1

    hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002

    ohci ohci.0: GetPortStatus(1)

    hub 2-0:1.0: over-current change on port 1

    ohci ohci.0: ClearPortFeature(1): C_OVER_CURRENT

    hub 2-0:1.0: trying to enable port power on non-switchable hub

    ohci ohci.0: SetPortFeature(1): POWER

    ohci ohci.0: auto-stop root hub

    ohci ohci.0: over-current indicator change on port 1

    hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002

    Starting udevohci ohci.0: GetPortStatus(1)

    hub 2-0:1.0: over-current change on port 1

    ohci ohci.0: ClearPortFeature(1): C_OVER_CURRENT

    hub 2-0:1.0: trying to enable port power on non-switchable hub

    ohci ohci.0: SetPortFeature(1): POWER

    udevd version 124 started

    usb usb1: uevent

    usb 1-0:1.0: uevent

    usb usb2: uevent

    usb 2-0:1.0: uevent

    hub 2-0:1.0: hub_suspend

    usb usb2: bus auto-suspend

    ohci ohci.0: suspend root hub

     

    Remounting root file system...

    root: mount: mounting /dev/sda1 on /mnt/usb failed: No such file or directory

    Setting up IP spoofing protection: rp_filter.

    Configuring network interfaces... udhcpc (v1.13.2) started

    Sending discover...

    Sending discover...

    Sending discover...

    No lease, failing

    done.

    Tue Apr 14 20:24:00 UTC 2009

    /etc/init.d/rc: /etc/rcS.d/S90led.sh: line 3: /bin/led_acc: not found

    INIT: Entering runlevel: 5

    Starting telnet daemon.

    Starting syslogd/klogd: done

     

    .-------.

    |       |                  .-.

    |   |   |-----.-----.-----.| |   .----..-----.-----.

    |       |     | __  |  ---'| '--.|  .-'|     |     |

    |   |   |  |  |     |---  ||  --'|  |  |  '  | | | |

    '---'---'--'--'--.  |-----''----''--'  '-----'-'-'-'

                    -'  |

                    '---'

     

    The Angstrom Distribution 2011.09 sbc8018 ttyS2

     

    sbc8018 login: root

    root@sbc8018:~#

    root@sbc8018:~#

    root@sbc8018:~#

  • Hi Gururaj,

    Please don't text paste the logs in post but attach the logs.

    Have you enabled "MDIO" support in linux ?

    I'm not able to see any MDIO logs in your bootup log.

    Ex:

    davinci_nand davinci_nand.1: controller rev. 2.5
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
    davinci_mdio davinci_mdio.0: detected phy mask ffffff7f
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[7]: device davinci_mdio-0:07, driver SMSC LAN8710/LAN8720

    Have you changed board file for MDIO and EMAC support with pinmuxing ?

    Also please look into the below problem that EMAC PSC got power down due to not using the EMAC clocks.

    Clocks: disable unused emac


    We may need the below EMAC and MDIO configurations like below code snippet.

    static const short da850_evm_mii_pins[] = {
    	DA850_MII_TXEN, DA850_MII_TXCLK, DA850_MII_COL, DA850_MII_TXD_3,
    	DA850_MII_TXD_2, DA850_MII_TXD_1, DA850_MII_TXD_0, DA850_MII_RXER,
    	DA850_MII_CRS, DA850_MII_RXCLK, DA850_MII_RXDV, DA850_MII_RXD_3,
    	DA850_MII_RXD_2, DA850_MII_RXD_1, DA850_MII_RXD_0, DA850_MDIO_CLK,
    	DA850_MDIO_D,
    	-1
    };
    
    static const short da850_evm_rmii_pins[] = {
    	DA850_RMII_TXD_0, DA850_RMII_TXD_1, DA850_RMII_TXEN,
    	DA850_RMII_CRS_DV, DA850_RMII_RXD_0, DA850_RMII_RXD_1,
    	DA850_RMII_RXER, DA850_RMII_MHZ_50_CLK, DA850_MDIO_CLK,
    	DA850_MDIO_D,
    	-1
    };
    
    
    static int __init da850_evm_config_emac(void)
    {
    	void __iomem *cfg_chip3_base;
    	int ret;
    	u32 val;
    	struct davinci_soc_info *soc_info = &davinci_soc_info;
    	u8 rmii_en = soc_info->emac_pdata->rmii_en;
    
    	if (!machine_is_davinci_da850_evm())
    		return 0;
    
    	cfg_chip3_base = DA8XX_SYSCFG0_VIRT(DA8XX_CFGCHIP3_REG);
    
    	val = __raw_readl(cfg_chip3_base);
    
    	if (rmii_en) {
    		val |= BIT(8);
    		ret = davinci_cfg_reg_list(da850_evm_rmii_pins);
    		pr_info("EMAC: RMII PHY configured, MII PHY will not be"
    							" functional\n");
    	} else {
    		val &= ~BIT(8);
    		ret = davinci_cfg_reg_list(da850_evm_mii_pins);
    		pr_info("EMAC: MII PHY configured, RMII PHY will not be"
    							" functional\n");
    	}
    
    	if (ret)
    		pr_warning("da850_evm_init: cpgmac/rmii mux setup failed: %d\n",
    				ret);
    
    	/* configure the CFGCHIP3 register for RMII or MII */
    	__raw_writel(val, cfg_chip3_base);
    
    	ret = davinci_cfg_reg(DA850_GPIO2_6);
    	if (ret)
    		pr_warning("da850_evm_init:GPIO(2,6) mux setup "
    							"failed\n");
    
    	ret = gpio_request(DA850_MII_MDIO_CLKEN_PIN, "mdio_clk_en");
    	if (ret) {
    		pr_warning("Cannot open GPIO %d\n",
    					DA850_MII_MDIO_CLKEN_PIN);
    		return ret;
    	}
    
    	/* Enable/Disable MII MDIO clock */
    	gpio_direction_output(DA850_MII_MDIO_CLKEN_PIN, rmii_en);
    
    	soc_info->emac_pdata->phy_id = DA850_EVM_PHY_ID;
    
    	ret = da8xx_register_emac();
    	if (ret)
    		pr_warning("da850_evm_init: emac registration failed: %d\n",
    				ret);
    
    	return 0;
    }