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.

VC3 Demo runtime error

Hello All,

Tarakesh and Iain helped me with compiling the VC3 demo (thank you) here...

http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/116501.aspx#415486

Then I was pulled off onto another task but am now back onto the VC3 port task.  When I run the demo, there are errors with the IPC.  I searched and saw in another posting Tarakesh asked what the uboot parameters were.  So I am being proactive and giving them up front.

 

Net:   Detected MACID:90:d7:eb:1e:89:e2
Ethernet PHY: GENERIC @ 0x01
DaVinci EMAC
Hit any key to stop autoboot:  0
TI8168_EVM#printenv
bootdelay=3
baudrate=115200
autoload=no
verify=yes
ramdisk_file=ramdisk.gz
loadaddr=0x81000000
script_addr=0x80900000
loadbootscript=fatload mmc 1 ${script_addr} boot.scr
bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${scri
pt_addr}
ethaddr=90:d7:eb:1e:89:e2
ethact=DaVinci EMAC
machid=af0
bootcmd=dhcp;tftp 81000000 uImage;bootm
bootfile=uImage
gatewayip=192.168.1.1
netmask=255.255.255.0
ipaddr=192.168.1.152
dnsip=192.168.1.1
nfsserver=192.168.1.7
serverip=192.168.1.7
bootargs=console=tty02,115200n8 root=/dev/nfs nfsroot=192.168.1.7:/opt/dm81
68targetfs,nolock mem=100M ip=192.168.1.22:192.168.1.7:192.168.1.1:255.255.255.0
::eth0:on earlyprintk vram=50M ti816xfb.vram=0:16M,1:16M,2:6M
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2010.06 (May 06 2011 - 02:01:03)

Environment size: 806/8188 bytes
TI8168_EVM#

 

 

Here is the script I made to run the demo...

 

root@dm816x-evm:~# cat run_vc3.sh
#!/bin/sh

echo
echo "--------------------------------------------------------------------------
------"
echo "Pete's VC3 script"
echo
echo "This script sets up Netra and runs things so you don't have to type."
echo "--------------------------------------------------------------------------
------"

amixer sset 'Left PGA Mixer Mic3L' on
sleep 1
amixer sset 'Left PGA Mixer Mic3R' on
sleep 1
amixer sset 'Right PGA Mixer Mic3L' on
sleep 1
amixer sset 'Right PGA Mixer Mic3R' on
sleep 1
amixer cset name='PCM Playback Volume' 75%,75%
sleep 1
amixer cset name='PGA Capture Volume' 75%,75%
sleep 1
/usr/bin/prcm_config_app s
sleep 1
#rmmod syslink.ko
rmmod TI81xx_hdmi.ko
sleep 1
#insmod /lib/modules/2.6.37/kernel/drivers/dsp/syslink.ko
insmod /lib/modules/2.6.37/kernel/drivers/char/ti81xx_hdmi/TI81xx_hdmi.ko hdmi_m
ode=2
sleep 1
/home/root/change_resolution.sh 720p60
sleep 1
/home/root/vc3/bin/ti816x-evm/vc3_a8host_debug.xv5T 127.0.0.1 10000 60

echo
echo "Pete's VC3 completed!"
echo

root@dm816x-evm:~#

 

 

root@dm816x-evm:~# cat change_resolution.sh
#/bin/sh

SCRIPT=/etc/init.d/load-hdvpss-firmware.sh

if [ $# -ne 1 ]
then
        echo "Usage ./change_resolution.sh <720p60|1080i60|1080p30|1080p60>"
        exit 1;
fi

case $1 in
        720p60 )
                echo "==== Changing Resolution to 720p60 ===="
                sed -i -e "s/modprobe vpss.*/modprobe vpss sbufaddr=0xA0200000 m
ode=hdmi:720p-60,dvo2:720p-60,hdcomp:720p-60 debug=1/g" \
                       -e "s/hdmi_mode=?/hdmi_mode=3/g" $SCRIPT;;
        1080i60 )
                echo "==== Changing Resolution to 1080i60 ===="
                sed -i -e "s/modprobe vpss.*/modprobe vpss sbufaddr=0xA0200000 m
ode=hdmi:1080i-60,dvo2:1080i-60,hdcomp:1080i-60 debug=1/g" \
                       -e "s/hdmi_mode=?/hdmi_mode=4/g" $SCRIPT;;
        1080p30 )
                echo "==== Changing Resolution to 1080p30 ===="
                sed -i -e "s/modprobe vpss.*/modprobe vpss sbufaddr=0xA0200000 m
ode=hdmi:1080p-30,dvo2:1080p-30,hdcomp:1080p-30 debug=1/g" \
                       -e "s/hdmi_mode=?/hdmi_mode=5/g" $SCRIPT;;
        1080p60 )
                echo "==== Changing Resolution to 1080p60 ===="
                sed -i -e "s/modprobe vpss.*/modprobe vpss sbufaddr=0xA0200000 m
ode=hdmi:1080p-60,dvo2:1080p-60,hdcomp:1080p-60 debug=1/g" \
                       -e "s/hdmi_mode=?/hdmi_mode=2/g" $SCRIPT;;
        * )
                echo "Error: Unsupported Resolution"
                echo "Usage ./change_resolution.sh <720p60|1080i60|1080p30|1080p
60>"
                exit -1;;
esac

# Force a VFS sync immediately
sync

echo "==== Please reboot your board NOW! ===="
root@dm816x-evm:~#

 

So the error has to do with the IPC init process failing.  I am going to look deeper, but if someone has already run into this issue and has a clue for me to investigate, then your help would be greatly appreciated.  Thanks and have a good day.

-Pete

  • And yes, I have used the resolution at 1080p as desired, I was only playing around with the scripts.

  • sry, but i forgot to give the error, lol.

    root@dm816x-evm:~# sh run_vc3.sh

    --------------------------------------------------------------------------------
    Pete's VC3 script

    This script sets up Netra and runs things so you don't have to type.
    --------------------------------------------------------------------------------
    Simple mixer control 'Left PGA Mixer Mic3L',0
      Capabilities: pswitch pswitch-joined penum
      Playback channels: Mono
      Mono: Playback [on]
    Simple mixer control 'Left PGA Mixer Mic3R',0
      Capabilities: pswitch pswitch-joined penum
      Playback channels: Mono
      Mono: Playback [on]
    Simple mixer control 'Right PGA Mixer Mic3L',0
      Capabilities: pswitch pswitch-joined penum
      Playback channels: Mono
      Mono: Playback [on]
    Simple mixer control 'Right PGA Mixer Mic3R',0
      Capabilities: pswitch pswitch-joined penum
      Playback channels: Mono
      Mono: Playback [on]
    numid=1,iface=MIXER,name='PCM Playback Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
      : values=96,96
      | dBscale-min=-63.50dB,step=0.50dB,mute=0
    numid=37,iface=MIXER,name='PGA Capture Volume'
      ; type=INTEGER,access=rw---R--,values=2,min=0,max=119,step=0
      : values=90,90
      | dBscale-min=0.00dB,step=0.50dB,mute=0
    /dev/mem opened.
    Doing GEL setting...
    CortxA8: Output:        PRCM for SPINBOX Initialization in Progress
                 BW Phy Addr : 0x48181400 Data : 0x0030e902
                 AW Phy Addr : 0x48181400 Data : 0x0030e902
                 BW Phy Addr : 0x48181598 Data : 0x00000002
                 AW Phy Addr : 0x48181598 Data : 0x00000002
                 Phy Addr : 0x48181598 Data : 0x00000002
    CortxA8: Output:        PRCM for SPINBOX Initialization in Done
    CortxA8: Output:        PRCM for mailboxes Initialization in Progress
                 BW Phy Addr : 0x48181400 Data : 0x0030e902
                 AW Phy Addr : 0x48181400 Data : 0x0030e902
                 BW Phy Addr : 0x48181594 Data : 0x00000002
                 AW Phy Addr : 0x48181594 Data : 0x00000002
                 Phy Addr : 0x48181594 Data : 0x00000002
    CortxA8: Output:        mailboxes Accesses are PASSED
    CortxA8: Output:        mailboxes Initialization in Done
    CortxA8: Output:        PRCM for dmtimer Initialization in Progress
                 BW Phy Addr : 0x48181400 Data : 0x0030e902
                 AW Phy Addr : 0x48181400 Data : 0x0030e902
                 BW Phy Addr : 0x48181574 Data : 0x00000002
                 AW Phy Addr : 0x48181574 Data : 0x00000002
                 Phy Addr : 0x48181574 Data : 0x00000002
    CortxA8: Output:        timer Accesses are PASSED
    CortxA8: Output:        timer Initialization in Done
    CortxA8: Output:        PRCM for SPINBOX Initialization in Progress
                 BW Phy Addr : 0x48181400 Data : 0x0030e902
                 AW Phy Addr : 0x48181400 Data : 0x0030e902
                 BW Phy Addr : 0x48181598 Data : 0x00000002
                 AW Phy Addr : 0x48181598 Data : 0x00000002
                 Phy Addr : 0x48181598 Data : 0x00000002
    CortxA8: Output:        PRCM for SPINBOX Initialization in Done
    CortxA8: Output:        PRCM for IVHD0 is in Progress, Please wait.....
                 BW Phy Addr : 0x48180600 Data : 0x00000102
                 AW Phy Addr : 0x48180600 Data : 0x00000102
                 Phy Addr : 0x48180c04 Data : 0x00000037
                 BW Phy Addr : 0x48180620 Data : 0x00000002
                 AW Phy Addr : 0x48180620 Data : 0x00000002
                 BW Phy Addr : 0x48180624 Data : 0x00000002
                 AW Phy Addr : 0x48180624 Data : 0x00000002
                 Phy Addr : 0x48180600 Data : 0x00000102
                 BW Phy Addr : 0x48180c10 Data : 0x00000000
                 AW Phy Addr : 0x48180c10 Data : 0x00000003
                 Phy Addr : 0x48180c14 Data : 0x00000007
                 BW Phy Addr : 0x58088000 Data : 0xeafffffe
                 AW Phy Addr : 0x58088000 Data : 0xeafffffe
                 BW Phy Addr : 0x58098000 Data : 0xeafffffe
                 AW Phy Addr : 0x58098000 Data : 0xeafffffe
                 BW Phy Addr : 0x48180c10 Data : 0x00000003
                 AW Phy Addr : 0x48180c10 Data : 0x00000000
                 Phy Addr : 0x48180c14 Data : 0x00000007
    CortxA8: Output:        PRCM for IVHD0 is Done Successfully
    CortxA8: Output:        User Can Connect to ICONT1 & ICONT2 of IVHD0
    CortxA8: Output:        PRCM for IVHD1 is in Progress, Please wait.....
                 BW Phy Addr : 0x48180700 Data : 0x00000102
                 AW Phy Addr : 0x48180700 Data : 0x00000102
                 Phy Addr : 0x48180d04 Data : 0x00000037
                 BW Phy Addr : 0x48180720 Data : 0x00000002
                 AW Phy Addr : 0x48180720 Data : 0x00000002
                 BW Phy Addr : 0x48180724 Data : 0x00000002
                 AW Phy Addr : 0x48180724 Data : 0x00000002
                 Phy Addr : 0x48180700 Data : 0x00000102
                 BW Phy Addr : 0x48180d10 Data : 0x00000000
                 AW Phy Addr : 0x48180d10 Data : 0x00000003
                 Phy Addr : 0x48180d14 Data : 0x00000007
                 BW Phy Addr : 0x5a088000 Data : 0xeafffffe
                 AW Phy Addr : 0x5a088000 Data : 0xeafffffe
                 BW Phy Addr : 0x5a098000 Data : 0xeafffffe
                 AW Phy Addr : 0x5a098000 Data : 0xeafffffe
                 BW Phy Addr : 0x48180d10 Data : 0x00000003
                 AW Phy Addr : 0x48180d10 Data : 0x00000000
                 Phy Addr : 0x48180d14 Data : 0x00000007
    CortxA8: Output:        PRCM for IVHD1 is Done Successfully
    CortxA8: Output:        User Can Connect to ICONT1 & ICONT2 of IVHD1
    CortxA8: Output:        PRCM for IVHD2 is in Progress, Please wait.....
                 BW Phy Addr : 0x48180800 Data : 0x00000102
                 AW Phy Addr : 0x48180800 Data : 0x00000102
                 Phy Addr : 0x48180e04 Data : 0x00000037
                 BW Phy Addr : 0x48180820 Data : 0x00000002
                 AW Phy Addr : 0x48180820 Data : 0x00000002
                 BW Phy Addr : 0x48180824 Data : 0x00000002
                 AW Phy Addr : 0x48180824 Data : 0x00000002
                 Phy Addr : 0x48180800 Data : 0x00000102
                 BW Phy Addr : 0x48180e10 Data : 0x00000000
                 AW Phy Addr : 0x48180e10 Data : 0x00000003
                 Phy Addr : 0x48180e14 Data : 0x00000007
                 BW Phy Addr : 0x53088000 Data : 0xeafffffe
                 AW Phy Addr : 0x53088000 Data : 0xeafffffe
                 BW Phy Addr : 0x53098000 Data : 0xeafffffe
                 AW Phy Addr : 0x53098000 Data : 0xeafffffe
                 BW Phy Addr : 0x48180e10 Data : 0x00000003
                 AW Phy Addr : 0x48180e10 Data : 0x00000000
                 Phy Addr : 0x48180e14 Data : 0x00000007
    CortxA8: Output:        PRCM for IVHD2 is Done Successfully
    CortxA8: Output:        User Can Connect to ICONT1 & ICONT2 of IVHD2
                 BW Phy Addr : 0x4e000440 Data : 0x06060504
                 AW Phy Addr : 0x4e000440 Data : 0x06060504
                 BW Phy Addr : 0x4e000444 Data : 0x06060504
                 AW Phy Addr : 0x4e000444 Data : 0x06060504
                 BW Phy Addr : 0x4e000448 Data : 0x06060504
                 AW Phy Addr : 0x4e000448 Data : 0x06060504
                 BW Phy Addr : 0x4e00044c Data : 0x06060504
                 AW Phy Addr : 0x4e00044c Data : 0x06060504
    CortxA8: Output:         TilerDmmPatViewConfig Completed ....
            Omx Initialization completed
    ==== Changing Resolution to 1080p60 ====
    ==== Please reboot your board NOW! ====
    SDK - VC Demo
    =============
    [t=0x00000002] [tid=0x400d42c0] xdc.runtime.Main: ERROR: "IpcSupport.c", line 25
    1: ipc_initialize(), error in ProcMgr_load()
    xdc.runtime.Main: "IpcSupport.c", line 251: ipc_initialize(), error in ProcMgr_l
    oad()
    [t=0x000000f0] [tid=0x400d42c0] xdc.runtime.Main: ERROR: "IpcSupport.c", line 31
    3: ipc_initialize() failed
    xdc.runtime.Main: "IpcSupport.c", line 313: ipc_initialize() failed
    Assertion at Line no: 1345 in /opt/dm8168/syslink_02_00_00_68_beta1/ti/sysl
    ink/ipc/hlos/usr/HeapMemMP.c: (hpHandle != NULL) : failed
    Assertion at Line no: 1064 in /opt/dm8168/syslink_02_00_00_68_beta1/ti/sysl
    ink/ipc/hlos/usr/MessageQ.c: (heap != NULL) : failed
    [t=0x00000c20] [tid=0x400d42c0] xdc.runtime.Main: ERROR: "IpcSupport.c", line 25
    1: ipc_initialize(), error in ProcMgr_load()
    xdc.runtime.Main: "IpcSupport.c", line 251: ipc_initialize(), error in ProcMgr_l
    oad()
    [t=0x00000ca4] [tid=0x400d42c0] xdc.runtime.Main: ERROR: "IpcSupport.c", line 31
    3: ipc_initialize() failed
    xdc.runtime.Main: "IpcSupport.c", line 313: ipc_initialize() failed
    Assertion at Line no: 1345 in /opt/dm8168/syslink_02_00_00_68_beta1/ti/sysl
    ink/ipc/hlos/usr/HeapMemMP.c: (hpHandle != NULL) : failed
    Assertion at Line no: 1064 in /opt/dm8168/syslink_02_00_00_68_beta1/ti/sysl
    ink/ipc/hlos/usr/MessageQ.c: (heap != NULL) : failed
    Wait for VM3 to to create the server first

  • i put in a System_printf instead of Log_print1 to state the filePath and the filename was different than expected.  So I simply renamed the output file and it works now.