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.

DM368IPNC ./av_server.out D1 hangs

Hello all,

I am trying to run ./av_server.out D1 on DM368IPNC Board with the original Appro kernel and

filesystem image flashed in that but it hangs with the following log:

# ./av_capture_load.sh
caught SIGTERM: shutting down
caught SIGTERM: shutting down
caught SIGTERM: shutting down
caught SIGTERM: shutting down
ApproDrvExit: 6
caught SIGTERM: shutting down
ApproDrvExit: 2
cmemk unregistered
irqk unregistered
Unable to handle kernel paging request at virtual address bf024a78
pgd = c2f040009

[bf024a78] *pgd=820a1011, *pte=00000000, *ppte=00000000
Internal error: Oops: 7 [#1]
Modules linked in: g_file_storage sbull iscsi_tcp libiscsi scsi_transport_iscsi usbmon musb_hdrc usbcore davinci_mmc mmc_block mmc_core davinci_emac ppp_deflate ppp_ast
CPU: 0
PC is at filp_close+0x3c/0x78
LR is at sys_close+0xf8/0x138
pc : [<c0094028>]    lr : [<c009585c>]    Not tainted
sp : c2f01f60  ip : c2f01f80  fp : c2f01f7c
r10: c2cfdbe0  r9 : c2f00000  r8 : 0000000c
r7 : c053df00  r6 : c053df00  r5 : 00000001  r4 : c2cfdbe0
r3 : bf024a44  r2 : c2f00000  r1 : c053df00  r0 : c2cfdbe0
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 5317F
Table: 82F04000  DAC: 00000015
Process wis-streamer (pid: 853, stack limit = 0xc2f00258)
Stack: (0xc2f01f60 to 0xc2f02000)
1f60: c2f01fa4 000914c4 00000003 c053df08 c2f01fa4 c2f01f80 c009585c c0093ffc
1f80: 000914c4 00195f8c bee279e4 00000006 c0034f88 00000000 00000000 c2f01fa8
1fa0: c0034f58 c0095774 000914c4 00195f8c 00000003 00000000 001961a8 00000000
1fc0: 000914c4 00195f8c bee279e4 00000006 bee27a64 00095d18 001a400c 0000177c
1fe0: 0000008e bee27640 000133f8 4026b69c 60000010 00000003 00000000 00000000
Backtrace:
[<c0093fec>] (filp_close+0x0/0x78) from [<c009585c>] (sys_close+0xf8/0x138)
 r6 = C053DF08  r5 = 00000003  r4 = 000914C4
[<c0095764>] (sys_close+0x0/0x138) from [<c0034f58>] (__sys_trace_return+0x0/0x28)
Code: ea00000e e5903010 e3530000 0a000005 (e5933034)
 <6>CSL: Module install successful, device major num = 253
CSL: Module version 0.10.00, built on Jun 30 2011 15:48:54
Unable to handle kernel paging request at virtual address bf024a78
ApproDrvExit: 10pgd = c2de0000

[bf024a78] *pgd=820a1011, *pte=00000000, *ppte=00000000
Internal error: Oops: 7 [#2]
Modules linked in: csl g_file_storage sbull iscsi_tcp libiscsi scsi_transport_iscsi usbmon musb_hdrc usbcore davinci_mmc mmc_block mmc_core davinci_emac ppp_deflate ppt
CPU: 0
PC is at filp_close+0x3c/0x78
LR is at sys_close+0xf8/0x138
pc : [<c0094028>]    lr : [<c009585c>]    Not tainted
sp : c2d97f60  ip : c2d97f80  fp : c2d97f7c
r10: c0ffa480  r9 : c2d96000  r8 : 0000000c
r7 : c052bd60  r6 : c052bd60  r5 : 00000001  r4 : c0ffa480
r3 : bf024a44  r2 : c2d96000  r1 : c052bd60  r0 : c0ffa480
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 5317F
Table: 82DE0000  DAC: 00000015
Process wis-streamer (pid: 841, stack limit = 0xc2d96258)
Stack: (0xc2d97f60 to 0xc2d98000)
7f60: c2d97fa4 000914c4 00000003 c052bd68 c2d97fa4 c2d97f80 c009585c c0093ffc
7f80: 000914c4 00195f8c bee279e4 00000006 c0034f88 00000000 00000000 c2d97fa8
7fa0: c0034f58 c0095774 000914c4 00195f8c 00000003 00000000 001961a8 00000000
7fc0: 000914c4 00195f8c bee279e4 00000006 bee27a64 00095d18 001a400c 00001790
7fe0: 0000008e bee27640 000133f8 4026b69c 60000010 00000003 00000000 00000000
Backtrace:
[<c0093fec>] (filp_close+0x0/0x78) from [<c009585c>] (sys_close+0xf8/0x138)
 r6 = C052BD68  r5 = 00000003  r4 = 000914C4
[<c0095764>] (sys_close+0x0/0x138) from [<c0034f58>] (__sys_trace_return+0x0/0x28)
Code: ea00000e e5903010 e3530000 0a000005 (e5933034)
 <1>Unable to handle kernel paging request at virtual address bf024a78
pgd = c2f440008

[bf024a78] *pgd=820a1011, *pte=00000000, *ppte=00000000
Internal error: Oops: 7 [#3]
Modules linked in: csl g_file_storage sbull iscsi_tcp libiscsi scsi_transport_iscsi usbmon musb_hdrc usbcore davinci_mmc mmc_block mmc_core davinci_emac ppp_deflate ppt
CPU: 0
PC is at filp_close+0x3c/0x78
LR is at sys_close+0xf8/0x138
pc : [<c0094028>]    lr : [<c009585c>]    Not tainted
sp : c2f43f60  ip : c2f43f80  fp : c2f43f7c
r10: c0ffa8e0  r9 : c2f42000  r8 : 0000000c
r7 : c046ac80  r6 : c046ac80  r5 : 00000001  r4 : c0ffa8e0
r3 : bf024a44  r2 : c2f42000  r1 : c046ac80  r0 : c0ffa8e0
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 5317F
Table: 82F44000  DAC: 00000015
Process wis-streamer (pid: 854, stack limit = 0xc2f42258)
Stack: (0xc2f43f60 to 0xc2f44000)
3f60: c2f43fa4 000914c4 00000003 c046ac88 c2f43fa4 c2f43f80 c009585c c0093ffc
3f80: 000914c4 00195f8c bee279e4 00000006 c0034f88 00000000 00000000 c2f43fa8
3fa0: c0034f58 c0095774 000914c4 00195f8c 00000003 00000000 001961a8 00000000
3fc0: 000914c4 00195f8c bee279e4 00000006 bee27a64 00095d18 001a400c 00001778
3fe0: 0000008e bee27640 000133f8 4026b69c 60000010 00000003 00000000 00000000
Backtrace:
[<c0093fec>] (filp_close+0x0/0x78) from [<c009585c>] (sys_close+0xf8/0x138)
 r6 = C046AC88  r5 = 00000003  r4 = 000914C4
[<c0095764>] (sys_close+0x0/0x138) from [<c0034f58>] (__sys_trace_return+0x0/0x28)
Code: ea00000e e5903010 e3530000 0a000005 (e5933034)
 <6>I2C: Module install successful, device major num = 252
DMA: Module install successful, device major num = 251
DRV: Module install successful
DRV: Module built on Jun 30 2011 15:48:55
DRV: EDMACC.QUEPRI  = 00000777
DRV: SYSTEM.MSTPRI0 = 00440022
DRV: SYSTEM.MSTPRI1 = 00000244
DRV: ISP.BCR        = 00000002
DRV: SYSTEM.MISC    = 00000391
CMEMK module: built on Jun 30 2011 at 15:48:36
  Reference Linux version 2.6.18
  File /home/user/workdir/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc4000000 of size 0x5000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
cmemk initialized
EDMAK module: built on Jun 30 2011 at 15:48:37
  Reference Linux version 2.6.18
  File /home/user/workdir/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Jun 30 2011 at 15:48:38
  Reference Linux version 2.6.18
  File /home/user/workdir/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
# ./av_capture_load.sh
cmemk unregistered
irqk unregistered
CSL: Module install successful, device major num = 253
CSL: Module version 0.10.00, built on Jun 30 2011 15:48:54
I2C: Module install successful, device major num = 252
DMA: Module install successful, device major num = 251
DRV: Module install successful
DRV: Module built on Jun 30 2011 15:48:55
DRV: EDMACC.QUEPRI  = 00000777
DRV: SYSTEM.MSTPRI0 = 00440022
DRV: SYSTEM.MSTPRI1 = 00000244
DRV: ISP.BCR        = 00000002
DRV: SYSTEM.MISC    = 00000391
CMEMK module: built on Jun 30 2011 at 15:48:36
  Reference Linux version 2.6.18
  File /home/user/workdir/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
allocated heap buffer 0xc4000000 of size 0x5000000
CMEM Range Overlaps Kernel Physical - allowing overlap
CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
cmemk initialized
EDMAK module: built on Jun 30 2011 at 15:48:37
  Reference Linux version 2.6.18
  File /home/user/workdir/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
IRQK module: built on Jun 30 2011 at 15:48:38
  Reference Linux version 2.6.18
  File /home/user/workdir/dvsdk_2_10_01_18_v2.6/linuxutils_2_24_03/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
irqk initialized
# ./av_server.out D1

AVSERVER UI: Initializing.
 
 CLK Hz,
 ARM   Hz =  432000000
 DDR   Hz =  340000000
 VPSS  Hz =  340000000
 IMCOP Hz =  340000000
 
 DRV LDC: GetConfig 0003 0x0
 [OSA_FILE ] Reading file [/mnt/nand/IMG_Paramset.bin] ... ERROR
IMAGE TUNE: Paramset File is not available..... Setting DEFAULT parameter
<vpbe_encoder_enumoutput>

CONFIGURING AV</vpbe_encoder_enumoutput>
SERVER FOR DM365VPBE Encoder de-initialized
 .....
queue id<vpbe_encoder_setoutput>
:65538
########Setting output to Composite
####OPEN########Start of vpbe_encoder_setmode..
###
==========></vpbe_encoder_setmode>
>>> Start X,Y = </vpbe_encoder_setoutput>
52,18
 Sensor MVPBE Encoder initialized
ode Info,
 Widt<vpbe_encoder_setoutput>
h      = 1736
Setting output to Composite
 Height     = 11Start of vpbe_encoder_setmode..
24
 fps       </vpbe_encoder_setmode>
 =   30
 Bin E</vpbe_encoder_setoutput>
nable =    1
 <vpbe_encoder_getmode>

 Sensor Frame <vpbe_encoder_getmode/>
Timing Info,
 f<vpbe_encoder_getmode>
ps              <vpbe_encoder_getmode/>
    = 30
 t_fraStart of vpbe_encoder_setmode..
me (ns)         </vpbe_encoder_setmode>
= 33333334.00000<vpbe_encoder_getmode>
0
 t_row   (ns)<vpbe_encoder_getmode/>
         = 27458<vpbe_encoder_getmode>
.333984
 t_pclk<vpbe_encoder_getmode/>
  (ns)         =<vpbe_encoder_getmode>
 10.416667
 W  <vpbe_encoder_getmode/>
                DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 640,
 layer.pix_fmt.width = 640,
 layer.pix_fmt.height = 480,
 layer.pix_fmt.sizeimage =460800
  = 1736
 H    DavinciDisplay DavinciDisplay.1: pixfmt->width = 640,
 layer->layer_info.config.line_length= 640
                = 1124
 SW                   = 1125
 SD                   = 0
 HB                   = 450
 VB                   = 89
 HBmin                = 450
 VBmin                = 9
 f_pclk               = 96000000
 shutterOverhead (ns) = 4437.500000
 col_size             = 1736
 row_size             = 1124
 col_bin              = 0
 row_bin              = 0
 col_start            = 232
 row_start            = 348
 pll_M                = 16
 pll_N                = 1
 pll_DIV              = 1
 
############reset###########
############SPI OPEN###########
spi mode: 16
bits per word: 8
max speed: 12000000 Hz (12000 KHz)
############SET REG###########
############OPEN END###########
================> 512, 0, 1735
APPRO Setting Applied
queue id:131076

 FR : 0 users registered from exsiting face album
IPNC_DM368_2.6.0 (root@localhost.localdomain) (gcc version 4.2.
IPNC AUTO_IRIS = 1 (0:Manual,1:Auto)#####################
APPRO 2A Created
XXXXX IAE_CMD_SET_CONFIG XXXXX

 333 !!!!!! Aew_Cal_LoadParam: dfc check sum fail
 (nand offset: 0x00500010, size: 0x0000181c, checksum: 0x0017ffe8, checksum org: 0xffffffff) !!!!!!

################DFC ret=-1##################

After this there is no output:

Is it because that the Appro 2A license is valid for only 6 months

and since i am using it after more than 6 months has passed since we purchased it

it is not working or it is because of any other reason.

Thanks and Regards,

Mayank

  • Mayank Agarwal said:
    After this there is no output:

    Is it because that the Appro 2A license is valid for only 6 months

    and since i am using it after more than 6 months has passed since we purchased it

    it is not working or it is because of any other reason.

    I think problem in another, you can use H3A library after trial period, but in this case your can get strange result.

  • Hi,

    Please clarify whether Appro 2A is available after trial period also and the result will be same as the previous one.

    If yes then any reason why i am getting error in DFC.

    Thanks and Regards,

    Mayank

  • Mayank Agarwal said:
    If yes then any reason why i am getting error in DFC.

    IMHO, Appro code quality is a very low, in next projects I won't use it.

  • Hi,

    Actually we are going with our final product using appro code and design.Are there any major flaws in that or why you

    have concluded that its quality is low.

    If its performance is lower how it is going to affect the final product.Any suggestions for improving on the design.

    Has anyone come with the final product using appro design and is successful in market if you are aware.

    Thanks and Regards,

    Mayank

  • Mayank,

    Are you facing issues with image quality? can you check with Appro for updated 2A library with changed 2A license.

    There are many customer who have gone with production with this.

    Can you clearly tell us what is the issues that you are facing? Is it 2A only?

    Regards,

    Raghu