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.

Fail to install TI driver after DM8168 reboot

Other Parts Discussed in Thread: TPS40400, TVP5158

DM8168 reboot fail when install TI driver. The fail probility is 2%.

Attached console's message, and seems dead when install the M3 driver.

Please give us a hand.  

-------------------------------------------------------------------------------------------------

U-Boot 2010.06-dirty (Oct 09 2012 - 11:17:02)
AVer_TS02
TI8168-GP rev 2.1

ARM clk: 987MHz
DDR clk: 796MHz
HDVICP clk: 600MHz
L3 Fast clk: 560MHz
HDVPSS clk: 280MHz
Ducati M3 clk: 280MHz

I2C:   ready
DRAM:  2 GiB
NAND:  HW ECC BCH8 Selected
NAND device: Manufacturer ID: 0x98, Chip ID: 0xda (Toshiba NAND 256MiB 3,3V 8-bit)
256 MiB
Read ENV offset:0x80000
Read ENV offset:0xc0000

BB DVR vga color bar starting.
 CM_ACTIVE_CLOCK_INIT (1567) 0x100000
CM_ACTIVE_CLOCK_INIT Finish
on chip hdmi setup ok.
hdmi color bar ok.
 Hit any key to stop autoboot:  1 0

NAND read: device 0 offset 0x500000, size 0x20000
 131072 bytes read: OK
## Image size 4920740 byte (0x004b15a4 )...

NAND read: device 0 offset 0x500000, size 0x4b15a4
 4920740 bytes read: OK
## Booting kernel from Legacy Image at 81000000 ...
   Image Name:   Linux-2.6.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4920676 Bytes = 4.7 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Linux version 2.6.37 (shyuan@localhost.localdomain) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #6 Fri Oct 5 10:08:56 CST 2012
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: ti8168_dvr
DVRRDK 03.00.00.10, linux-04.04.00.01
AVer_TS02 AVer_TS02 AVer_TS02 AVer_TS02 AVer_TS02
DM81xx PCIe EP memory  size = 16777216
vram size = 20971520 at 0x0
reserved size = 20971520 at 0x0
FB: Reserving 20971520 bytes SDRAM for VRAM
Memory policy: ECC disabled, Data cache writeback
OMAP chip is TI8168 2.0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 150274
Kernel command line: mem=128M mem=511M@0xE0000000 vmalloc=512M pcie_mem=16M console=ttyO2,115200n8 vram=20M notifyk.vpssm3_sva=0xDEE00000
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 474MB 1MB = 603MB total
Memory: 604448k/604448k available, 49888k reserved, 486400K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0x88800000 - 0xf8000000   (1784 MB)
    lowmem  : 0x80000000 - 0x88000000   ( 128 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .init : 0x80008000 - 0x802dc000   (2896 kB)
      .text : 0x802dc000 - 0x80717000   (4332 kB)
      .data : 0x80718000 - 0x80758980   ( 259 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:375
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 IRQ368
Trying to install interrupt handler for IRQ369
Trying to install interrupt handler for IRQ370
Trying to install interrupt handler for IRQ371
Trying to install interrupt handler for IRQ372
Trying to install interrupt handler for IRQ373
Trying to install interrupt handler for IRQ374
Trying to install type control for IRQ375
Trying to set irq flags for IRQ375
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
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
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
USBSS revision 4ea20809
registerd cppi-dma Intr @ IRQ 17
Cppi41 Init Done
omap_i2c omap_i2c.1: bus 1 rev4.0 at 400 kHz
regulator: pmbus_vr: 800 <--> 1050 mV at 1000 mV
regulator: tps40400 probe done.
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 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 8881e000 using DMA, IRQ 18
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
MUSB controller-1 revision 4ea20800
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 88828800 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
highmem bounce pool size: 64 pages
NTFS driver 2.1.29 [Flags: R/O].
JFFS2 version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
msgmni has been set to 230
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
omap2-nand driver initializing
NAND device: Maf ID: 0x98, Chip ID: 0xda (Toshiba, NAND 256MiB 3,3V 8-bit)
 erasesize: 0x20000, writesize: 2048, oobsize: 64
Creating 8 MTD partitions on "omap2-nand.0":
0x000000000000-0x000000080000 : "U-Boot"
0x000000080000-0x0000000c0000 : "U-Boot Env"
0x0000000c0000-0x000000100000 : "Backup U-Boot Env"
0x000000100000-0x000000200000 : "Reserved"
0x000000200000-0x000000500000 : "U-Boot Logo"
0x000000500000-0x000000e00000 : "Kernel & rfs"
0x000000e00000-0x000001700000 : "Backup Kernel & rfs"
0x000001700000-0x000010000000 : "APPS"
usbcore: registered new interface driver dm9620
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 0xdee00000
clock: Enable the clock 'mcasp0_fck' before setting rate
ssm2602 Audio Codec 0.1
asoc: ssm2602-hifi <-> davinci-mcasp.0 mapping ok
asoc: HDMI-DAI-CODEC <-> hdmi-dai mapping ok
ALSA device list:
  #0: TI81XX DVR
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-ti816x: ti816x_sr_probe done!
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
Freeing init memory: 2896K
<inittab> show now time
Sat Jan  1 00:00:00 UTC 2000
* Mounting default file systems. Done
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCGIFFLAGS: No such device
* Configuring Loopback. Done
x Samba skipped
* Starting Telnet daemon. Done
* Starting Syslog daemon. Done
UBI: attaching mtd7 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: max. sequence number:       512
UBI: attached mtd7 to ubi0
UBI: MTD device name:            "APPS"
UBI: MTD device size:            233 MiB
UBI: number of good PEBs:        1864
UBI: number of bad PEBs:         0
UBI: number of corrupted PEBs:   0
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: 1864
UBI: number of PEBs reserved for bad PEB handling: 18
UBI: max/mean erase counter: 2/0
UBI: image sequence number:  729336833
UBI: background thread "ubi_bgt0d" started, PID 72
UBI device number 0, total 1864 LEBs (236683264 bytes, 225.7 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 7, name "APPS"
UBIFS: file system size:   232493056 bytes (227044 KiB, 221 MiB, 1831 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: zlib
UBIFS: reserved for root:  0 bytes (0 KiB)
Welcome to T0S2 board ...
TS02 DM8168 start.....
export HOME='/'
export PATH='/sbin:/usr/sbin:/bin:/usr/bin'
export PWD='/'
export QT_QWS_FONTDIR='/usr/lib/fonts'
export QWS_DISPLAY='LinuxFB:mmWidth240:mmHeight300:0'
export QWS_SIZE='1920x1080'
export SHELL='/bin/sh'
export TERM='vt102'
export USER='root'


Processing /etc/profile... Done

/ # Wait Main Board start up ...
go go go ...
TI start APP
kernel.shmmax = 134217728
killall: thttpd: no process killed
*** Bootargs Validated for mem param ***
*** Bootargs Validated for notifyk.vpssm3 params ***
Kernel bootargs validated
amixer: Cannot find the given element from control default

 [c6xdsp ] Remote Debug Shared Memory @ 0xdf000000
 [m3video] Remote Debug Shared Memory @ 0xdf005020
 [m3vpss ] Remote Debug Shared Memory @ 0xdf00a040
SysLink version : 2.10.02.17
SysLink module created on Date:Sep 28 2012 Time:09:55:46
Trace enabled
Trace SetFailureReason enabled
 Setting DMM priority for [DUCATI  ] to [0] ( 0x4e000624 = 0x08000000 )
 Setting DMM priority for [HDVICP0 ] to [2] ( 0x4e000634 = 0x0000000a )
 Setting DMM priority for [HDVICP1 ] to [2] ( 0x4e000634 = 0x000a0000 )
 Setting DMM priority for [HDVICP2 ] to [2] ( 0x4e000634 = 0x00a00000 )
 
 *** TVP5158 probe : START ***
 
 TI VS EVM : TVP5158 device address : 0x58, 0x5a, 0x5c, 0x5e
 TI DVR    : TVP5158 device address : 0x5c, 0x5d, 0x5e, 0x5f
 
 Device found     : I2C (0xXX): 0x08 = 0x51
                    I2C (0xXX): 0x09 = 0x58
 
 Device NOT found : I2C (0xXX): Read ERROR !!! (reg[0x08], count = 2)
 
 ERROR  (osa_i2c.c|OSA_i2cTestMain|263): OSA_i2cOpen( instId = 2 )
 ERROR  (osa_i2c.c|OSA_i2cTestMain|263): OSA_i2cOpen( instId = 2 )
 ERROR  (osa_i2c.c|OSA_i2cTestMain|263): OSA_i2cOpen( instId = 2 )
 ERROR  (osa_i2c.c|OSA_i2cTestMain|263): OSA_i2cOpen( instId = 2 )
 ERROR  (osa_i2c.c|OSA_i2cTestMain|263): OSA_i2cOpen( instId = 2 )
 ERROR  (osa_i2c.c|OSA_i2cTestMain|263): OSA_i2cOpen( instId = 2 )
 
 *** TVP5158 probe : END ***
 
/opt/dvr_rdk/ti816x
Attached to slave procId 2.
Loaded file ../firmware/dvr_rdk_fw_m3vpss.xem3 on slave procId 2.
Started slave procId 2.
After Ipc_loadcallback status [0x00000000]
 [m3vpss ] ***** SYSTEM  : Frequency <ORG> - 250000000, <NEW> - 280000000
 [m3vpss ] notify_attach  rtnVal  0
 [m3vpss ] initProxyServer  rtnVal  0
 [m3vpss ] 
 [m3vpss ]  *** UTILS: CPU KHz = 560000 Khz ***
 [m3vpss ] 
 [m3vpss ]  43: SYSTEM  : System Common Init in progress !!!
 [m3vpss ]  43: SYSTEM: IPC init in progress !!!
 [m3vpss ]  43: SYSTEM: Attaching to [HOST] ...
 [m3vpss ]  1043: SYSTEM: Attaching to [HOST] ...
 [m3vpss ]  1045: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
 [m3vpss ]  1045: SYSTEM: Attaching to [DSP] ...
After Ipc_startcallback status [0x097d2000]
Attached to slave procId 1.
Loaded file ../firmware/dvr_rdk_fw_m3video.xem3 on slave procId 1.
Started slave procId 1.
After Ipc_loadcallback status [0x00000000]
 [m3video] ***** SYSTEM  : Frequency <ORG> - 250000000, <NEW> - 280000000
 [m3vpss ]  2045: SYSTEM: Attaching to [DSP] ...
 [m3video] 
 [m3video]  *** UTILS: CPU KHz = 560000 Khz ***
 [m3video] 
 [m3video]  1439: SYSTEM  : System Common Init in progress !!!
 [m3video]  1439: SYSTEM: IPC init in progress !!!
 [m3video]  1439: SYSTEM: Attaching to [HOST] ...
 [m3video]  2439: SYSTEM: Attaching to [HOST] ...
 [m3video]  2441: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
 [m3video]  2441: SYSTEM: Attaching to [DSP] ...
After Ipc_startcallback status [0x00000000]
Attached to slave procId 0.
Loaded file ../firmware/dvr_rdk_fw_c6xdsp.xe674 on slave procId 0.
Started slave procId 0.
After Ipc_loadcallback status [0x00000000]
 [c6xdsp ] ***** SYSTEM  : Frequency <ORG> - 800000000, <NEW> - 800000000
 [m3video]  3441: SYSTEM: Attaching to [DSP] ...
 [m3vpss ]  3045: SYSTEM: Attaching to [DSP] ...

<<<<<<<<<<<<<<<<=======

   

  • Are you seeing the A8 hang at the point in the log where you have inteserted "<<<<<<<<<<<<<<<<=======" ?

    Is the hang always happening at the same place (After DSP firmware is loaded) ?

    Have you run DDR stress test on the board ?

    Can you confirm you are using 2GB memory map.

    I see you have multiple memory sections for linux mem=128M && mem=511M@0xE0000000. Do you see the issue if you only use lowmem .i.e. only mem-128M.

    Did you try connecting CCS to A8 when hang occurs. Load symbols from vmlinux and check where the CPU control is stuck. This may give some clue about the reason for the hang.

     

  • Dear Badri,

       The issue is fixed! Because we add the HDMI driver in the boot loader. Some setting may conflict due to A8 hang.

      Thanks your quickly response.