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.

DM8168 audio

Other Parts Discussed in Thread: PMP

Hi,

I'm trying to get the audio working on our DM8168 custom board. Our board is very similiar to the EVM one. It uses AIC3200 codec component, McASP2 to communicate with it and it's controlled by I2C.

Following the instruction in the PSP user manual and the PSP audio driver manual, I changed the driver settings, recompiled the kernel and the audio devices are successfully detected:

asoc: HDMI-DAI-CODEC <-> hdmi-dai mapping ok
asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok

**** List of PLAYBACK Devices ****

card 0: EVM [TI81xx EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevices #0: subdevice #0
card 0: EVM [TI81xx EVM], device 1: hdmi HDMI-DAI-CODEC-1 []
Subdevices: 1/1
Subdevices #0: subdevice #0

But when I try arecord or aplay or minimal_capture/minimal_playback example from the EZSDK I get : segmentation fault.

The EVM is using I2C0 but I'm using I2C1. So I'm thinking that might be the problem. But I coudn't find where to change it in the source code.

I tried in board-ti8168.evm, to move:

{
    I2C_BORD_INFO("tlv320aic3x", 0x18)
}

from static struct i2c_board_info __initdata ti816x_i2c_boardinfo0

to from static struct i2c_board_info __initdata ti816x_i2c_boardinfo1

but this time I get "no sound card found"

Either it was a mistake to change the above structure or I need to change/add other line in the driver code?

PLease can you help me with this issue.

I have been also reading the following documentation:

http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#I2C_Driver

but I still can't make sense of this issue.

Regards,

Emilie

  • Hi Emilie,

    Which version of the EZSDK you are using? Is it 5.05.02.00? Please provide full boot log from the console output.

    You can check whether you can access (read/write) the I2C1 registers. If not, you should turn on the I2C1 clock from the PRCM registers.

    Other thing is to check if the Media Controller (M3 firmware) is using the I2C1:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/156452/623429.aspx#623429

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/195023.aspx

    Regards,

    Pavel

  • Hi Pavel,

    I'm using EZSDK 5.04.00.11

    Here is my log:

    U-Boot 2010.06-dirty (Nov 08 2012 - 17:42:21)

    DRAM:  2 GiB
    MMC:   OMAP SD/MMC: 0
    Using default environment

    Hit any key to stop autoboot:  0
    raise: Signal # 8 caught
    reading u-boot.bin

    209196 bytes read
    ## Starting application at 0x80800000 ...


    U-Boot 2010.06-dirty (Nov 22 2012 - 23:30:22)

    TI8168-GP rev 1.1

    ARM clk: 987MHz
    DDR clk: 675MHz

    I2C:   ready
    DRAM:  2 GiB
    NAND:  HW ECC BCH8 Selected
    256 MiB
    MMC:   OMAP SD/MMC: 0
    *** Warning - bad CRC or NAND, using default environment

    Net:   <ethaddr> not set. Reading from E-fuse
    Detected MACID:40:5f:c2:b:6e:c8
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    Hit any key to stop autoboot:  0
    raise: Signal # 8 caught
    reading boot.scr

    260 bytes read
    Running bootscript from MMC/SD to set the ENV...
    ## Executing script at 80900000
    reading uImage

    2928672 bytes read
    ## Booting kernel from Legacy Image at 80009000 ...
       Image Name:   Linux-2.6.37
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2928608 Bytes = 2.8 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Initializing cgroup subsys cpuset
    Linux version 2.6.37 (root@ubuntu) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #14 PREE3
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8168evm
    reserved size = 52428800 at 0x0
    FB: Reserving 52428800 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8168 1.1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 31904
    Kernel command line: console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=176M@0x80000000d
    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: 126MB = 126MB total
    Memory: 120772k/120772k available, 59452k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xcb800000 - 0xf8000000   ( 712 MB)
        lowmem  : 0xc0000000 - 0xcb000000   ( 176 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .init : 0xc0008000 - 0xc003e000   ( 216 kB)
          .text : 0xc003e000 - 0xc05ee000   (5824 kB)
          .data : 0xc05ee000 - 0xc064d700   ( 382 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:407
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    GPMC revision 6.0
    Trying to install interrupt handler for IRQ400
    Trying to install interrupt handler for IRQ401
    Trying to install interrupt handler for IRQ402
    Trying to install interrupt handler for IRQ403
    Trying to install interrupt handler for IRQ404
    Trying to install interrupt handler for IRQ405
    Trying to install interrupt handler for IRQ406
    Trying to install type control for IRQ407
    Trying to set irq flags for IRQ407
    OMAP clockevent source: GPTIMER1 at 27000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    Initializing cgroup subsys ns
    ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup.
    Initializing cgroup subsys cpuacct
    Initializing cgroup subsys devices
    Initializing cgroup subsys freezer
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    omap_voltage_early_init: voltage driver support not added
    regulator: core version 0.5
    regulator: dummy:
    NET: Registered protocol family 16
    omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
    omap_voltage_add_dev: VDD specified does not exist!
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    omap_mux_init: Add partition: #1: core, flags: 0
    _omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
    _omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
    NOR: Can't request GPMC CS
    registered ti816x_gpio_vr device
    clk get on i2c3 fck failed
    _omap_mux_get_by_name: Could not find signal dcan0_tx.dcan0_tx
    _omap_mux_get_by_name: Could not find signal dcan0_rx.dcan0_rx
    pm_dbg_init: only OMAP3 supported
    registered ti81xx_vpss device
    registered ti81xx_vidout device
    registered ti81xx on-chip HDMI device
    registered ti81xx_fb device
    registered ti81xx_vin device
    ti81xx_pcie: Invoking PCI BIOS...
    ti81xx_pcie: Setting up Host Controller...
    ti81xx_pcie: Register base mapped @0xcb820000
    ti81xx_pcie: Starting PCI scan...
    PCI: bus0: Fast back to back transfers enabled
    bio: create slab <bio-0> at 0
    regulator: VFB: 800 <--> 1025 mV at 800 mV
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    USBSS revision 4ea20808
    registerd cppi-dma Intr @ IRQ 17
    Cppi41 Init Done
    omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
    omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb-hdrc: version 6.0, host, debug=0
    musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    MUSB controller-0 revision 4ea20800
    musb-hdrc: kernel must blacklist external hubs
    musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    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.37 musb-hcd
    usb usb1: SerialNumber: musb-hdrc.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.0: USB Host mode controller at cb81e000 using DMA, IRQ 18
    musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    MUSB controller-1 revision 4ea20800
    musb-hdrc: kernel must blacklist external hubs
    musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: MUSB HDRC host driver
    usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb2: SerialNumber: musb-hdrc.1
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.1: USB Host mode controller at cb826800 using DMA, IRQ 19
    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.
    NetWinder Floating Point Emulator V0.97 (double precision)
    PMU: registered new PMU device of type 0
    omap-iommu omap-iommu.0: ducati registered
    omap-iommu omap-iommu.1: sys registered
    JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
    msgmni has been set to 235
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    console [ttyO2] enabled
    brd: module loaded
    loop: module loaded
    ahci ahci.0: forcing PORTS_IMPL to 0x3
    ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
    ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci_platform
    scsi1 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
    ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
    m25p80 spi1.0: found m25p05-nonjedec, expected m25p80
    m25p80 spi1.0: m25p05-nonjedec (64 Kbytes)
    Creating 4 MTD partitions on "spi_flash":
    0x000000000000-0x000000040000 : "U-Boot"
    mtd: partition "U-Boot" extends beyond the end of device "spi_flash" -- size truncated to 0x1000
    0x000000010000-0x000000012000 : "U-Boot Env"
    mtd: partition "U-Boot Env" is out of reach -- disabled
    0x000000000000-0x000000280000 : "Kernel"
    mtd: partition "Kernel" extends beyond the end of device "spi_flash" -- size truncated to 0x1000
    0x000000010000-0x000000010000 : "File System"
    mtd: partition "File System" is out of reach -- disabled
    omap2-nand driver initializing
    ONFI flash detected
    ONFI param page 0 valid
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit)
    Creating 5 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000260000 : "U-Boot"
    0x000000260000-0x000000280000 : "U-Boot Env"
    0x000000280000-0x0000006c0000 : "Kernel"
    0x0000006c0000-0x00000cee0000 : "File System"
    0x00000cee0000-0x000010000000 : "Reserved"
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    davinci_mdio davinci_mdio.0: detected phy mask fffffff9
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown
    CAN device driver interface
    CAN bus driver for Bosch D_CAN controller 1.0
    d_can d_can: dcan0_fck is not found
    d_can d_can: probe failed
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    usbcore: registered new interface driver cdc_acm
    cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    mice: PS/2 mouse device common for all mice
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    ata1: SATA link down (SStatus 0 SControl 300)
    ata2: SATA link down (SStatus 0 SControl 300)
    i2c /dev entries driver
    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v1.0.0)
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xbf900000
    usbcore: registered new interface driver snd-usb-audio
    Asahi Kasei AK4104 ALSA SoC Codec Driver
    Cirrus Logic CS4270 ALSA SoC Codec Driver
    hub 2-0:1.0: over-current change on port 1
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
    asoc: HDMI-DAI-CODEC <-> hdmi-dai mapping ok
    ALSA device list:
      #0: TI81XX EVM
    TCP cubic registered
    NET: Registered protocol family 17
    can: controller area network core (rev 20090105 abi 8)
    NET: Registered protocol family 29
    can: raw protocol (rev 20090105)
    can: broadcast manager protocol (rev 20090105 t)
    Registering the dns_resolver key type
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    omap_voltage_late_init: Voltage driver support not added
    Power Management for TI81XX.
    regulator_init_complete: disabling VFB
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    Waiting for root device /dev/mmcblk0p2...
    mmc0: new high speed SDHC card at address b368
    mmcblk0: mmc0:b368       7.45 GiB
     mmcblk0: p1 p2
    EXT3-fs: barriers not enabled
    EXT3-fs (mmcblk0p2):
    kjournald starting.  Commit interval 5 seconds
    warning: maximal mount count reached, running e2fsck is recommended
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): recovery complete
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    devtmpfs: mounted
    Freeing init memory: 216K
    <30>systemd[1]: systemd 196 running in system mode. (-PAM +LIBWRAP -AUDIT -SELINUX +IMA +SYSVIN)

    Welcome to Linux!

    <30>systemd[1]: Set hostname to <dm8148evm>.
    <30>systemd[1]: Expecting device dev-ttyO2.device...
             Expecting device dev-ttyO2.device...
    <30>systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    <30>systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    <30>systemd[1]: Starting Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    <30>systemd[1]: Reached target Remote File Systems.
    <30>systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    <30>systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    <30>systemd[1]: Starting Delayed Shutdown Socket.
    [  OK  ] Listening on Delayed Shutdown Socket.
    <30>systemd[1]: Listening on Delayed Shutdown Socket.
    <30>systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
    <30>systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    <30>systemd[1]: Starting udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    <30>systemd[1]: Listening on udev Kernel Socket.
    <30>systemd[1]: Starting udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    <30>systemd[1]: Listening on udev Control Socket.
    <30>systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
    [  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
    <30>systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
    <30>systemd[1]: Starting Swap.
    [  OK  ] Reached target Swap.
    <30>systemd[1]: Reached target Swap.
    <30>systemd[1]: Starting Journal Socket.
    [  OK  ] Listening on Journal Socket.
    <30>systemd[1]: Listening on Journal Socket.
    <30>systemd[1]: Mounting Temporary Directory...
             Mounting Temporary Directory...
    <30>systemd[1]: Starting Apply Kernel Variables...
             Starting Apply Kernel Variables...
    <30>systemd[1]: Mounted Huge Pages File System.
    <30>systemd[1]: Mounting POSIX Message Queue File System...
             Mounting POSIX Message Queue File System...
    <30>systemd[1]: Starting udev Kernel Device Manager...
             Starting udev Kernel Device Manager...
    <30>systemd[1]: Starting udev Coldplug all Devices...
             Starting udev Coldplug all Devices...
    <30>systemd[1]: Started Load Kernel Modules.<30>systemd-udevd[67]: starting version 196

    <30>systemd[1]: Mounted Configuration File System.
    <30>systemd[1]: Starting Setup Virtual Console...
             Starting Setup Virtual Console...
    <30>systemd[1]: Started Set Up Additional Binary Formats.
    <30>systemd[1]: Mounted FUSE Control File System.
    <30>systemd[1]: Started File System Check on Root Device.
    <30>systemd[1]: Mounting Debug File System...
             Mounting Debug File System...
    <30>systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [  OK  ] Started Journal Service.
    <30>systemd[1]: Started Journal Service.
    <30>systemd[1]: Started Remount Root and Kernel File Systems.
    <30>systemd[1]: Starting Local File Systems (Pre).
    [  OK  ] Reached target Local File Systems (Pre).
    <30>systemd[1]: Reached target Local File Systems (Pre).
    <30>systemd[1]: Starting Load Random Seed...
             Starting Load Random Seed...
    [  OK  ] Started udev Kernel Device Manager.
    <30>systemd[1]: Started udev Kernel Device Manager.
    [  OK  ] Mounted Temporary Directory.
    <30>systemd[1]: Mounted Temporary Directory.
    [  OK  ] Started Apply Kernel Variables.
    <30>systemd[1]: Started Apply Kernel Variables.
    [  OK  ] Mounted POSIX Message Queue File System.
    <30>systemd[1]: Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Debug File System.
    <30>systemd[1]: Mounted Debug File System.
    [  OK  ] Started Load Random Seed.
    <30>systemd[1]: Started Load Random Seed.
    <30>systemd[1]: Starting Local File Systems.
    [  OK  ] Reached target Local File Systems.
    <30>systemd[1]: Reached target Local File Systems.
    <30>systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
             Starting Trigger Flushing of Journal to Persistent Storage...
    <30>systemd[1]: Starting Recreate Volatile Files and Directories...
             Starting Recreate Volatile Files and Directories...
    [  OK  ] Started Setup Virtual Console.
    <30>systemd[1]: Started Setup Virtual Console.
    <46>systemd-journald[74]: Received SIGUSR1
    [  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
    <30>systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.
    [  OK  ] Started Recreate Volatile Files and Directories.
    <30>systemd[1]: Started Recreate Volatile Files and Directories.

    <30>systemd[1]: Starting System Initialization.
    [  OK  ] Reached target System Initialization.
    <30>systemd[1]: Reached target System Initialization.
    <30>systemd[1]: Starting Daily Cleanup of Temporary Directories.

    <30>systemd[1]: Started Daily Cleanup of Temporary Directories.
    <30>systemd[1]: Starting Restore Sound Card State...

             Starting Restore Sound Card State...
    <30>systemd[1]: Starting OpenSSH Socket.
    [  OK  ] Listening on OpenSSH Socket.
    <30>systemd[1]: Listening on OpenSSH Socket.
    <30>systemd[1]: Starting D-Bus System Message Bus Socket.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    <30>systemd[1]: Listening on D-Bus System Message Bus Socket.
    <30>systemd[1]: Starting Sockets.
    [  OK  ] Reached target Sockets.
    <30>systemd[1]: Reached target Sockets.
    <30>systemd[1]: Starting Basic System.
    [  OK  ] Reached target Basic System.
    <30>systemd[1]: Reached target Basic System.
    <30>systemd[1]: Starting Kernel Modules Dependency Update Service...
             Starting Kernel Modules Dependency Update Service...
    <30>systemd[1]: Started SSH Key Generation.
    <30>systemd[1]: Starting Connection Manager Service...
             Starting Connection Manager Service...
    <30>systemd[1]: Starting Permit User Sessions...
             Starting Permit User Sessions...
    <30>systemd[1]: Starting Login Service...
             Starting Login Service...
    <30>systemd[1]: Starting D-Bus System Message Bus...
             Starting D-Bus System Message Bus...
    [  OK  ] Started D-Bus System Message Bus.
    <30>systemd[1]: Started D-Bus System Message Bus.
    [  OK  ] Started udev Coldplug all Devices.
    <30>systemd[1]: Started udev Coldplug all Devices.
    [  OK  ] Started Restore Sound Card State.
    <30>systemd[1]: Started Restore Sound Card State.
    <29>systemd[1]: kmod-depmod.service: main process exited, code=exited, status=1/FAILURE
    [FAILED] Failed to start Kernel Modules Dependency Update Service.
    See 'systemctl status kmod-depmod.service' for details.
    <27>systemd[1]: Failed to start Kernel Modules Dependency Update Service.
    <29>systemd[1]: Unit kmod-depmod.service entered failed state
    [  OK  ] Started Permit User Sessions.
    <30>systemd[1]: Started Permit User Sessions.
    <30>systemd[1]: Starting Getty on tty1...
             Starting Getty on tty1...
    [  OK  ] Started Getty on tty1.
    <30>systemd[1]: Started Getty on tty1.
    [  OK  ] Found device /dev/ttyO2.
    <30>systemd[1]: Found device /dev/ttyO2.
    <30>systemd[1]: Starting Sound Card.
    [  OK  ] Reached target Sound Card.
    <30>systemd[1]: Reached target Sound Card.
    [  OK  ] Started Connection Manager Service.
    <30>systemd[1]: Started Connection Manager Service.
    <30>systemd[1]: Starting Network.
    [  OK  ] Reached target Network.
    <30>systemd[1]: Reached target Network.
    <30>systemd[1]: Starting Serial Getty on ttyO2...
             Starting Serial Getty on ttyO2...
    [  OK  ] Started Serial Getty on ttyO2.
    <30>systemd[1]: Started Serial Getty on ttyO2.
    <30>systemd[1]: Starting Login Prompts.
    [  OK  ] Reached target Login Prompts.
    <30>systemd[1]: Reached target Login Prompts.
    [  OK  ] Started Login Service.
    <30>systemd[1]: Started Login Service.
    <30>systemd[1]: Starting Multi-User.
    [  OK  ] Reached target Multi-User.
    <30>systemd[1]: Reached target Multi-User.
    <30>systemd[1]: Starting Update UTMP about System Runlevel Changes...
    <30>systemd[1]: Started Update UTMP about System Runlevel Changes.
    <30>systemd[1]: Startup finished in 3s 601ms 303us (kernel) + 3s 32ms 934us (userspace) = 6s 63.

    DM8148EVM Mini Distribution 1.0

    Emilie

  • Emilie,

    Your log looks strange for me. This is what I have with EZSDK 5.04.00.11 on 816X/389X EVM:

    U-Boot 2010.06 (Apr 29 2012 - 20:35:23)

    DRAM:  2 GiB
    MMC:   OMAP SD/MMC: 0
    Using default environment

    Hit any key to stop autoboot:  0
    raise: Signal # 8 caught
    reading u-boot.bin

    210312 bytes read
    ## Starting application at 0x80800000 ...


    U-Boot 2010.06 (Apr 29 2012 - 20:28:20)

    TI8168-GP rev 1.1

    ARM clk: 987MHz
    DDR clk: 796MHz

    I2C:   ready
    DRAM:  2 GiB
    NAND:  HW ECC BCH8 Selected
    256 MiB
    MMC:   OMAP SD/MMC: 0
    :,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
    ;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
    ;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
    ;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
    ;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
    r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
    ;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
    r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
    r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS   @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
    r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
    rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
    ;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
    ;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
    r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
    ;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
    ;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
    :,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
    ;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
    :.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
    :.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
    ,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
    : ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
    ,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,

    Net:   Detected MACID:40:5f:c2:63:a2:30
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    Hit any key to stop autoboot:  0
    raise: Signal # 8 caught
    reading boot.scr

    336 bytes read
    Running bootscript from MMC/SD to set the ENV...
    ## Executing script at 80900000
    reading ti_logo.bmp

    151674 bytes read
    reading uImage

    2563448 bytes read
    ## Booting kernel from Legacy Image at 80009000 ...
       Image Name:   Arago/2.6.37-psp04.04.00.01/dm81
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2563384 Bytes = 2.4 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.37 (x0029463@swubn01) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 Sun Apr 29 20:16:23 IST 2012
    CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
    Machine: ti8168evm
    reserved size = 52428800 at 0x0
    FB: Reserving 52428800 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    OMAP chip is TI8168 1.1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 79656
    Kernel command line: console=ttyO2,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=364M@0x80000000 324M@0x9F900000 notifyk.vpssm3_sva=0xBF900000 ip=off noinitrd
    PID hash table entries: 2048 (order: 1, 8192 bytes)
    Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Memory: 314MB = 314MB total
    Memory: 312700k/312700k available, 60036k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xd7000000 - 0xf8000000   ( 528 MB)
        lowmem  : 0xc0000000 - 0xd6c00000   ( 364 MB)
        pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
        modules : 0xbf000000 - 0xbfe00000   (  14 MB)
          .init : 0xc0008000 - 0xc003b000   ( 204 kB)
          .text : 0xc003b000 - 0xc04d8000   (4724 kB)
          .data : 0xc04d8000 - 0xc0520f00   ( 292 kB)
    SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    NR_IRQS:407
    IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    Total of 128 interrupts on 1 active controller
    GPMC revision 6.0
    Trying to install interrupt handler for IRQ400
    Trying to install interrupt handler for IRQ401
    Trying to install interrupt handler for IRQ402
    Trying to install interrupt handler for IRQ403
    Trying to install interrupt handler for IRQ404
    Trying to install interrupt handler for IRQ405
    Trying to install interrupt handler for IRQ406
    Trying to install type control for IRQ407
    Trying to set irq flags for IRQ407
    OMAP clockevent source: GPTIMER1 at 27000000 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 986.31 BogoMIPS (lpj=4931584)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    devtmpfs: initialized
    omap_voltage_early_init: voltage driver support not added
    regulator: core version 0.5
    regulator: dummy:
    NET: Registered protocol family 16
    omap_voltage_domain_lookup: Voltage driver init not yet happened.Faulting!
    omap_voltage_add_dev: VDD specified does not exist!
    OMAP GPIO hardware version 0.1
    OMAP GPIO hardware version 0.1
    omap_mux_init: Add partition: #1: core, flags: 0
    _omap_mux_get_by_name: Could not find signal i2c2_scl.i2c2_scl
    _omap_mux_get_by_name: Could not find signal i2c2_sda.i2c2_sda
    NOR: Can't request GPMC CS
    registered ti816x_gpio_vr device
    registered ti816x_sr device
    pm_dbg_init: only OMAP3 supported
    registered ti81xx_vpss device
    registered ti81xx_vidout device
    registered ti81xx on-chip HDMI device
    registered ti81xx_fb device
    registered ti81xx_vin device
    ti81xx_pcie: Invoking PCI BIOS...
    ti81xx_pcie: Setting up Host Controller...
    ti81xx_pcie: Register base mapped @0xd7020000
    ti81xx_pcie: Starting PCI scan...
    PCI: bus0: Fast back to back transfers enabled
    bio: create slab <bio-0> at 0
    regulator: VFB: 800 <--> 1025 mV at 1010 mV
    vgaarb: loaded
    SCSI subsystem initialized
    usbcore: registered new interface driver usbfs
    usbcore: registered new interface driver hub
    usbcore: registered new device driver usb
    USBSS revision 4ea20808
    registerd cppi-dma Intr @ IRQ 17
    Cppi41 Init Done
    omap_i2c omap_i2c.1: bus 1 rev4.0 at 100 kHz
    omap_i2c omap_i2c.2: bus 2 rev4.0 at 100 kHz
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource gp timer
    musb-hdrc: version 6.0, host, debug=0
    musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    MUSB controller-0 revision 4ea20800
    musb-hdrc: kernel must blacklist external hubs
    musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    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.37 musb-hcd
    usb usb1: SerialNumber: musb-hdrc.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.0: USB Host mode controller at d701e000 using DMA, IRQ 18
    musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    MUSB controller-1 revision 4ea20800
    musb-hdrc: kernel must blacklist external hubs
    musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: MUSB HDRC host driver
    usb usb2: Manufacturer: Linux 2.6.37 musb-hcd
    usb usb2: SerialNumber: musb-hdrc.1
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    musb-hdrc musb-hdrc.1: USB Host mode controller at d7026800 using DMA, IRQ 19
    NET: Registered protocol family 2
    IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    TCP: Hash tables configured (established 16384 bind 16384)
    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.
    NetWinder Floating Point Emulator V0.97 (double precision)
    PMU: registered new PMU device of type 0
    omap-iommu omap-iommu.0: ducati registered
    omap-iommu omap-iommu.1: sys registered
    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    msgmni has been set to 610
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    omap_uart.0: ttyO0 at MMIO 0x48020000 (irq = 72) is a OMAP UART0
    omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    console [ttyO2] enabled
    brd: module loaded
    loop: module loaded
    ahci ahci.0: forcing PORTS_IMPL to 0x3
    ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
    ahci ahci.0: flags: ncq sntf pm led clo only pmp pio slum part ccc
    scsi0 : ahci_platform
    scsi1 : ahci_platform
    ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x100 irq 16
    ata2: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a150fff] port 0x180 irq 16
    m25p80 spi1.0: found w25q32, expected m25p80
    m25p80 spi1.0: w25q32 (4096 Kbytes)
    Creating 4 MTD partitions on "spi_flash":
    0x000000000000-0x000000040000 : "U-Boot"
    0x000000040000-0x000000042000 : "U-Boot Env"
    0x000000042000-0x0000002c2000 : "Kernel"
    0x0000002c2000-0x000000400000 : "File System"
    omap2-nand driver initializing
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron )
    Creating 5 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000260000 : "U-Boot"
    0x000000260000-0x000000280000 : "U-Boot Env"
    0x000000280000-0x0000006c0000 : "Kernel"
    0x0000006c0000-0x00000cee0000 : "File System"
    0x00000cee0000-0x000010000000 : "Reserved"
    davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    davinci_mdio davinci_mdio.0: detected phy mask fffffff9
    davinci_mdio.0: probed
    davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
    davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    mice: PS/2 mouse device common for all mice
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    i2c /dev entries driver
    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v1.0.0)
    OMAP Watchdog Timer Rev 0x00: initial timeout 60 sec
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    notify_init : notify drivercreated  for  remote proc id 2 at physical Address 0xbf900000
    usbcore: registered new interface driver snd-usb-audio
    asoc: tlv320aic3x-hifi <-> davinci-mcasp.2 mapping ok
    ALSA device list:
      #0: TI81XX EVM
    TCP cubic registered
    NET: Registered protocol family 17
    VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    omap_voltage_late_init: Voltage driver support not added
    Power Management for TI81XX.
    smartreflex smartreflex: Driver initialized
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    ata1: SATA link down (SStatus 0 SControl 300)
    ata2: SATA link down (SStatus 0 SControl 300)
    Waiting for root device /dev/mmcblk0p2...
    mmc0: new high speed SDHC card at address 0002
    mmcblk0: mmc0:0002 00000 3.70 GiB
     mmcblk0: p1 p2
    EXT3-fs: barriers not enabled
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs (mmcblk0p2): using internal journal
    EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
    VFS: Mounted root (ext3 filesystem) on device 179:2.
    devtmpfs: mounted
    Freeing init memory: 204K
    INIT: version 2.86 booting
    Please wait: booting...
    Error opening /dev/fb0: No such file or directory
    Starting udev
    udevd (77): /proc/77/oom_adj is deprecated, please use /proc/77/oom_score_adj instead.
    Remounting root file system...
    Caching udev devnodes
    NET: Registered protocol family 10
    ALSA: Restoring mixer settings...
    Configuring network interfaces... davinci_mdio davinci_mdio.0: resetting idled controller
    net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=282f014)
    ADDRCONF(NETDEV_UP): eth0: link is not ready
    udhcpc (v1.13.2) started
    No state is present for card EVM
    Found hardware: "" "" "" "" ""
    Hardware is initialized using a generic method
    No state is present for card EVM
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, forking to background
    done.
    Setting up IP spoofing protection: rp_filter.
    Sun Apr 29 22:50:00 UTC 2012
    INIT: Entering runlevel: 5
    Loading HDVICP2 Firmware
    DM816X prcm_config_app version: 2.0.0.1
    Doing PRCM settings...
        PRCM for IVHD0 is in Progress, Please wait..... 
                BW Phy Addr : 0x48180600 Data : 0x00000002
                AW Phy Addr : 0x48180600 Data : 0x00000002
                Phy Addr : 0x48180c04 Data : 0x00000037
                BW Phy Addr : 0x48180620 Data : 0x00070000
                AW Phy Addr : 0x48180620 Data : 0x00070002
                BW Phy Addr : 0x48180624 Data : 0x00030000
                AW Phy Addr : 0x48180624 Data : 0x00010002
                Phy Addr : 0x48180600 Data : 0x00000102
                BW Phy Addr : 0x48180c10 Data : 0x00000007
                AW Phy Addr : 0x48180c10 Data : 0x00000003
                Phy Addr : 0x48180c14 Data : 0x00000004
                BW Phy Addr : 0x58088000 Data : 0xa4d3c1ae
                AW Phy Addr : 0x58088000 Data : 0xeafffffe
                BW Phy Addr : 0x58098000 Data : 0x3805fde6
                AW Phy Addr : 0x58098000 Data : 0xeafffffe
                BW Phy Addr : 0x48180c10 Data : 0x00000003
                AW Phy Addr : 0x48180c10 Data : 0x00000000
                Phy Addr : 0x48180c14 Data : 0x00000007
        PRCM for IVHD0 is Done Successfully 
        PRCM for IVHD1 is in Progress, Please wait..... 
                BW Phy Addr : 0x48180700 Data : 0x00000002
                AW Phy Addr : 0x48180700 Data : 0x00000002
                Phy Addr : 0x48180d04 Data : 0x00000037
                BW Phy Addr : 0x48180720 Data : 0x00070000
                AW Phy Addr : 0x48180720 Data : 0x00050002
                BW Phy Addr : 0x48180724 Data : 0x00030000
                AW Phy Addr : 0x48180724 Data : 0x00010002
                Phy Addr : 0x48180700 Data : 0x00000102
                BW Phy Addr : 0x48180d10 Data : 0x00000007
                AW Phy Addr : 0x48180d10 Data : 0x00000003
                Phy Addr : 0x48180d14 Data : 0x00000004
                BW Phy Addr : 0x5a088000 Data : 0x93791860
                AW Phy Addr : 0x5a088000 Data : 0xeafffffe
                BW Phy Addr : 0x5a098000 Data : 0xc42628da
                AW Phy Addr : 0x5a098000 Data : 0xeafffffe
                BW Phy Addr : 0x48180d10 Data : 0x00000003
                AW Phy Addr : 0x48180d10 Data : 0x00000000
                Phy Addr : 0x48180d14 Data : 0x00000007
        PRCM for IVHD1 is Done Successfully 
        PRCM for IVHD2 is in Progress, Please wait..... 
                BW Phy Addr : 0x48180800 Data : 0x00000002
                AW Phy Addr : 0x48180800 Data : 0x00000002
                Phy Addr : 0x48180e04 Data : 0x00000037
                BW Phy Addr : 0x48180820 Data : 0x00070000
                AW Phy Addr : 0x48180820 Data : 0x00050002
                BW Phy Addr : 0x48180824 Data : 0x00030000
                AW Phy Addr : 0x48180824 Data : 0x00010002
                Phy Addr : 0x48180800 Data : 0x00000102
                BW Phy Addr : 0x48180e10 Data : 0x00000007
                AW Phy Addr : 0x48180e10 Data : 0x00000003
                Phy Addr : 0x48180e14 Data : 0x00000004
                BW Phy Addr : 0x53088000 Data : 0xcad2a2ee
                AW Phy Addr : 0x53088000 Data : 0xeafffffe
                BW Phy Addr : 0x53098000 Data : 0xe4fa782f
                AW Phy Addr : 0x53098000 Data : 0xeafffffe
                BW Phy Addr : 0x48180e10 Data : 0x00000003
                AW Phy Addr : 0x48180e10 Data : 0x00000000
                Phy Addr : 0x48180e14 Data : 0x00000007
        PRCM for IVHD2 is Done Successfully 
    PRCM Initialization completed
    SysLink version : 2.10.03.20
    SysLink module created on Date:Apr 29 2012 Time:20:45:11
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1>]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: Memory Configuration status : In Progress
    FIRMWARE: 1 start Successful
    Loading HDVPSS Firmware
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: Memory map bin file not passed
    Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1>]
    ===Mandatory arguments===
    <Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3
    <Location of Firmware> firmware binary file
    <start|stop>           to start/stop the firmware
    ===Optional arguments===
    -mmap                  input memory map bin file name
    -i2c                   0: i2c init not done by M3, 1(default): i2c init done by M3
    FIRMWARE: isI2cInitRequiredOnM3: 1
    FIRMWARE: Default memory configuration is used
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    FIRMWARE: Memory Configuration status : In Progress
    FIRMWARE: 2 start Successful
    HDMI W1 rev 2.0
    I2C No Ack

    Starting system message bus: dbus.
    Starting telnet daemon.
    Starting syslogd/klogd: done
    Starting thttpd.
    Starting PVR
    Starting Matrix GUI application.

     _____                    _____           _         _  
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_| 
                  |___|                    |___|           

    Arago Project http://arago-project.org dm816x-evm ttyO2

    Arago 2011.09 dm816x-evm ttyO2

    dm816x-evm login: root
    root@dm816x-evm:~#    

    Everything after the "Freeing init memory: 204K" line is quite different. From your initial post, I understood that you have changed only the linux kernel (uImage), nothing else, is that correct?

    From the log, I see you are using MMC/SD card for booting. How do you initially set up your MMC/SD card, are you using the mksdboot.sh script?

    From the log, I see you are not loading the M3 firmware, thus the I2C0 and I2C1 are (by default) not enabled, the clock signals from the PRCM are off. Could you please provide me the value of the CM_ALWON_I2C_1_CLKCTRL register (at physical address 0x48181568).

    Regards,

    Pavel





  • Hi Pavel,

    Sorry for the late answer but I was away.

    Indeed I'm booting from SD card.

    the value of CM_ALWON_I2C_1_CLKCTRL is 0x00030000

    Regards,

    Emilie

  • Emilie,

    Emilie Wheatley said:
    the value of CM_ALWON_I2C_1_CLKCTRL is 0x00030000

    This means I2C1 is disabled (clocks are off). Check DM816x TRM, section 18.7.17.24, to see the CM_ALWON_I2C_1_CLKCTRL register description. You should enable the I2C1 module with writing 0x2 in the CM_ALWON_I2C_1_CLKCTRL[1:0] MODULEMODE bit field;  0x0 - module disabled, 0x2 - module enabled

    Regards,

    Pavel

  • Hi

    I'm working with Emilie on this issue and have some more info to add.

    I'm not convinced that the TRM is correct in the bit definitions for the IDLEST field in the CM_ALWON_I2C_n_CLKCTRL registers. I have a working system with both I2C busses enabled (and can access multiple devices on each bus), but when I read these registers, the value 0x00030000 is returned. This would imply that both I2Cs are disabled; which is clearly not the case. I have another system with only I2C0 enabled, but the registers return the status as disabled and I2C1 is enabled. Unless I have made gross errors, then the IDLEST field values are wrong!

    I have a really old Linux build (EZSDK 3.12) for this project which does not have a segmentation fault when arecord is executed. In fact, using this old build I can execute arecord/amixer/aplay and the audio interface works flawlessly (the board has to have a modification though to move the audio codec from I2C1 to I2C0). The seg faults only seem to appear with builds using EZSDK 5.05.

    I hope that info helps in some way.

  • Hi Graeme,

    I think the TRM description is correct. When I have the 0x00030000 value in the CM_ALWON_I2C_1_CLKCTRL register, I can not access (read/write) the I2C1 peripheral module registers, which proves that the I2C1 module is not functional. But when I have the value of 0x00000002 in the CM_ALWON_I2C_1_CLKCTRL register, I can successfully access (read/write) the I2C1 peripheral module registers.

    Also, this is what we have in the u-boot source code:

    ti-ezsdk_dm816x-evm_5_05_02_00/board-support/u-boot-2010.06-psp04.04.00.01/board/ti/ti8168/evm.c

    /*****************************************************************
     * Routine: peripheral_enable
     * Description: Enable the clks & power for perifs (TIMER1, UART0,...)
     *
     ******************************************************************/
    static void peripheral_enable(void)
    {

    .....

    /* I2C0 */
        __raw_writel(0x2, CM_ALWON_I2C_0_CLKCTRL);
        while(__raw_readl(CM_ALWON_I2C_0_CLKCTRL) != 0x2);

    .....

    }

    The above is an example of how to enable I2C peripheral module (in this case I2C0, but the same is valid for I2C1).

    BR

    Pavel

  • Thanks for the reply.

    I'm sure you are correct, yet I'm reading the values from these registers and they show 0x00030000. And I'm also writing to I2C peripherals without issue! Can it be that i2cset enables the I2C interface, then performs the actions, and finally disables it again.

    But the main issue here is that executing aplay causes a segmentation fault. But only with Linux builds using EZSDK 5.02 onwards.

    How do we trace this seg fault?

  • Here's exactly what I've done after boot:

    _____ _____ _ _

    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project http://arago-project.org dm816x-evm ttyO2

    Arago 2011.09 dm816x-evm ttyO2

    dm816x-evm login: root
    root@dm816x-evm:~# devmem2 0x48181564
    /dev/mem opened.
    Memory mapped at address 0x40196000.
    Read at address 0x48181564 (0x40196564): 0x00030000                <--------- I2C 0 disabled
    root@dm816x-evm:~# devmem2 0x48181568
    /dev/mem opened.
    Memory mapped at address 0x40318000.
    Read at address 0x48181568 (0x40318568): 0x00000002                <--------- I2C 1 enabled
    root@dm816x-evm:~# aplay temp.wav
    Playing WAVE 'temp.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono       <--------- Playing audio with the AIC on I2C 0
    Aborted by signal Interrupt...
    root@dm816x-evm:~#

    So, are the addresses ok that I use in devmem2?

    I also have LEDs connected to a peripheral on I2C0. They work ok using the command:

    i2cset -y 1 0x44 0x06 0x12 b                                       <--------- 0x44 is the I2C address, 0x06 is theaddressed

                                                                                  register, 0x12 is the reg value.

    and i2cset -y 2 generates a write fail.

    There must be a simple explanation.

  • Graeme Parker said:

    But the main issue here is that executing aplay causes a segmentation fault. But only with Linux builds using EZSDK 5.02 onwards.

    How do we trace this seg fault?

    pls use signal(SIGSEGV) and backtrace() to find out the related location.

  • Thanks for the suggestion.

    However, not being a Linux programmer, I've no idea how to use that info.

    I've Googled the terms, but that didn't really help me much.

  • Hi Graeme,

    This is what I have:

    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            

    Arago Project http://arago-project.org dm816x-evm ttyO2

    Arago 2011.09 dm816x-evm ttyO2

    dm816x-evm login: root

    root@dm816x-evm:~# devmem2 0x48181564
    /dev/mem opened.
    Memory mapped at address 0x40086000.
    Read at address  0x48181564 (0x40086564): 0x00030000 ----> I2C0 is disabled

    root@dm816x-evm:~# devmem2 0x48028000
    /dev/mem opened.Unhandled fault: Precise External Abort on non-linefetch (0x1018) at 0x402ce000  -----> trying to read the first I2C0 register failed!

    Memory mapped at address 0x402ce000.
    Bus error

    root@dm816x-evm:~# devmem2 0x48181564 w 0x00000002   ------> write 0x2 in CM_ALWON_I2C_0_CLKCTRL register
    /dev/mem opened.
    Memory mapped at address 0x402ed000.
    Read at address  0x48181564 (0x402ed564): 0x00030000
    Write at address 0x48181564 (0x402ed564): 0x00000002, readback 0x00000002
    root@dm816x-evm:~# devmem2 0x48181564             
    /dev/mem opened.
    Memory mapped at address 0x40368000.
    Read at address  0x48181564 (0x40368564): 0x00000002  ----->  I2C0 is enabled
    root@dm816x-evm:~# devmem2 0x48028000
    /dev/mem opened.
    Memory mapped at address 0x402e9000.
    Read at address  0x48028000 (0x402e9000): 0x00000009 -------> I2C0 first register read OK!
    root@dm816x-evm:~#

    Anyway, disable/enable the I2C0 may not solve the aplay issue. I tried aplay on my side with both I2C1 enable/disable, in both cases it works fine:

    root@dm816x-evm:~# aplay adios.wav
    Playing WAVE 'adios.wav' : Unsigned 8 bit, Rate 11025 Hz, Mono
    root@dm816x-evm:~#

    Can you send me your temp.wav file, I want to test it on my side.

    BR

    Pavel





  • Graeme,

    Check also the below thread, it might help:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/149316/835092.aspx

    BR

    Pavel

  • Thanks for all of your help.

    I can follow what you did and it does the same here.

    I can send you a temp.wav if you want. 15 seconds is about 250MB. Any particular music you like ;)

    The strange thing is, even if the I2C register reads back as 0x00000002 (enabled), after I do an arecord it gets set to 0x00030000 (disabled). But I can still do more arecords. So arecord/aplay and i2cset must enable the I2C as necessary.

    And thanks for the other link too.

  • Graeme,

    Let me confirm something.
    The 816X/389X EVM is using I2C0 to control/configure the AIC3106 and McASP2 for audio data transfer with AIC3106. While in your DM816x based custom board you are using I2C1 to control/configure AIC3200, and McASP2 for audio data transfer with AIC3200, is that correct?

    Here is one thread related to I2C driver porting, might be in help:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/167813/613355.aspx#613355

    Could you please also provide the values of the PINCTRL289 (0x48140C80) and PINCTRL290 (0x48140C84) registers prior executing the "aplay" command.

    Regards,

    Pavel

  • Yes, that's correct. We're using the same McASP as the EVM but I2C1 instead of I2C0.

    I looked at those PINCTRL registers earlier. They both read 0x10 which means the pull-up is enabled. The equivalent registers for the I2C0 pins read as 0x18 (pull-up disabled).

    I'll check out your link, thanks.

  • Graeme,

    Moving I2C_BORD_INFO("tlv320aic3x", 0x18) from ti816x_i2c_boardinfo0 to ti816x_i2c_boardinfo1 looks like a correct approach for me. Change also the PINCTRL registers from 0x10 to 0x18.

    You should also consider the following:

    I2C1 instance(if count from 0) is used for video capture/display via the daughter cards. The capture/display drivers are developed in M3 side. therefore accessing i2c1 from A8(linux) is not allowed.

    But this issue has been solved since EZSDK 05.03 release. Two different M3 firmware have been provided: dm816x_hdvpss.xem3(having I2C1 control from M3), dm816x_hdvpss_v4l2.xem3(having i2c1 control from A8).

    You can choose the right firmware to load.

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/156452/623429.aspx#623429

    Regards,

    Pavel