hi
i am trying to do the setup for DM365IPNC-IMX035 by APPRO using ipnc1.2.
i am following the steps given in Users_Guide_IPNC_DM365_IMX035.pdf. while installing the IPNETCAM APPLICATION, in section 3.1.1.1
while make make -s sysall getting errors for the cramfs files mounted inside filesys folder. as per my information cramfs files are readonly files. ----------------- rm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm4_tunnel.ko': Read-only file systemrm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_mode_transport.ko': Read-only file systemrm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_mode_tunnel.ko': Read-only file systemrm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_tunnel.ko': Read-only file systemrm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm_user.ko': Read-only file systemmake[2]: *** [lspclean] Error 1make[1]: *** [lspall] Error 2make: *** [sysall] Error 2 ------------------ any one has faced the same. how to proceed further.
make -s sysall
getting errors for the cramfs files mounted inside filesys folder.
as per my information cramfs files are readonly files.
-----------------
rm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm4_tunnel.ko': Read-only file systemrm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_mode_transport.ko': Read-only file systemrm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_mode_tunnel.ko': Read-only file systemrm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm6_tunnel.ko': Read-only file systemrm: cannot remove `/home/sujit/Dev/camera/ipnc/DM365/target/filesys/opt/ipnc/modules/xfrm_user.ko': Read-only file systemmake[2]: *** [lspclean] Error 1make[1]: *** [lspall] Error 2make: *** [sysall] Error 2
------------------
any one has faced the same. how to proceed further.
Hi Sujit,
I am getting a feeling that the filesystem that you are using might not be the correct one. Please note that you have to use the kernel image and filesystem for DM365IPNC-IMX035 and not for any other IP Cameras available on the Appro website. As you said, earlier with the factory default, everything was working but after you programmed the NAND, things halted. So i would recommend to use the same filesystem and kernel image that came with the hardware. You can contact Appro to get you the working combination that was on the factory default.
If images are not coming, one thing i can suspect is the sensor is not initialized correctly, which again can happen because of wrong filesystem. Can you try the following on the shell prompt of the serial terminal
# ./av_server.out 720P H264 4000000 CVBR
This should start just the av_server (which is the core of the overall IP camera). It should show a display on your TV. You can also save an encoded stream using the menu on the serial terminal. Can you confirm the following things once:
1. Are you able to see the display on TV with the above command?
2. Are you able to save a H.264 stream and play it offline on PC?
If answer to both of the above is yes, then the only thing that we need to check is network and streaming. If answer is no, then we need to figure out from the sensor and video capture perspective, what is going wrong.
Regards,
Anshuman
hi Anshuman,
after i run nothing is coming on the TV display, and in the serial terminal the following messages are coming.
Are you able to see the display on TV with the above command? ---- NO
============================================================
# ./av_server.out 730P H264 4000000 CVBR
AVSERVER UI: Initializing.
DRV_SyncRst: module = 47, domain = 0, state = 0
DRV_SyncRst: module = 47, domain = 0, state = 3
CLK Hz, ARM Hz = 297000000 DDR Hz = 270000000 VPSS Hz = 270000000 IMCOP Hz = 270000000
DRV LDC: GetConfig 0004 0x0 AVSERVER UI: Starting in mode 0DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:layer.pix_fmt.bytesperline = 736, layer.pix_fmt.width = 720, layer.pix_fmt.height = 480, layer.pix_fmt.sizeimage =529920spi mode: 16biDavinciDisplay DavinciDisplay.1: pixfmt->width = 720, layer->layer_info.config.line_length= 736ts per word: 8max speed: 12000000 Hz (12000 KHz) ~~~ Sensor_imgsSetRegs ~~~================> 1000, 150, 0APPRO Setting Applied
Default Icon TI Logo
DM365MM Init SuccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0 STREAM: Ext 1: 0x0queue id:98307FF: FF open
FR : 0 users registered from exsiting face albumFF: FF open done.IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis IPNC AUTO_IRIS = 1 (0:Manual,1:Auto)#####################APPRO 2A CreatedXXXXX IAE_CMD_SET_CONFIG XXXXXPage read err(-1)eeprom_prErr:-1read fail!!################DFC ret=-1##################EE SETUP SHIFT VALUE: 3GBCE in EVAL MODEAUDIO_GetSampleRate = 8000AUDIO : period size = 1000 frames dir = 0AUDIO : period time = 125000 us dir = 0queue id:65538
========================================================================================
i doubt the codec's are not available in the file system because of that while playing its showing the message " stream 0/1/2/3/4 not available
i am thinking off adding the codec's in to the server.
all the codec's are availble in the dvsdk_2_10_01_18_368\dm365_codecs_01_00_06\packages\ti\sdo\codecs folder.
now my question is
how to include the codec's in to the strams ?
which document i should follow for this.
I think you should first check if prebuilt kernel and filesystem, that are included in IPNC software works on your hardware.After that when creating your filesystem check if all files are included, like in the prebuilt one.
Codecs are not available in filesystem. They are pre-built with the application (av_server.out in this case). Your problem does not seem to be related to codec as codec does not give any error in your console log. I am almost doubting your sensor driver and the code you are building for the sensor driver.
As Marko suggested, why dont you just try the same filesystem and uimage, uboot, UBL that came with the package for IMX035? If you use the package filesystem and able to run the tests i had mentioned, then it is clear that your hardware is fine. Then you need to just focus on untarring the filesystem and using it again. Do not use the one which is available for Aptina MT5 sensor.
hi Marko,
i checked with Appro,ccording to them the uImage and file system ( cramfsImage ) released with package with ipnc1.2 is the default board setting package.
so i flashed the images available in release ipnc .1.2 with out any compilation or modification.
but still i am getting the same problem in both VLC and internet explorer
like "stream 0/1/2/3/4 not available " for all codecs.
hi Anshuman
i have not received any extra driver for the sensor or CD from them. is it available separate ?
because i haven't done any installation or setup for the TAMRON AUTO IRIS LENS, i just connected it and made the DIP switch to 2 possition.
i downloaded the ipnc1.2 package from ftp, and as i mentioned in my previous message Appro is saying the one available with ipnc1.2 package is the default one.
i tested with reflashing uboot(u-boot-1.3.4_ipnc_dm36x_0.6.0),UBL(ubl_297arm_270ddr_ipnc_dm36x_0.3.0) , file system (cramfsImage_ipnc_dm365_imx035_1.2.0) available in ipnc1.2 release package via ftp download.
but the result is same.
( resending the previous message )
hi Marko & Anshuman,
i just tried with another camera MT5 with the same sensor which i had used in IMX035.
i am able to play in VLC as well as in internet explorer. so my conclusion now is some problem with my setup only.
i am not getting the following message in MT5, while playing in vlc rtsp://192.168.1.168:8557/h264 or any other stram
---------------------
# ./system_server &# queue id:0queue id:32769IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVisqueue id:65538queue id:32769queue id:65538
DEMOCFG Value: 0
nVideocodecmode = 0 nVideocodecres = 0./av_server.out FD OSD AEWB APPRO2A 720P H264 4000000 CVBR MENUOFF &Check_device_version : DEVICE VER = 1 !!
DRV LDC: GetConfig 0004 0x0numid=2,iface=MIXER,name='Mono DAC Playback Volume' ; type=INTEGER,access=rw---,values=1,min=0,max=63,step=0 : values=32ApproDrvInit: 7queue id:98307 AVSERVER UI: Starting in mode 1spi mode: 16bits per word: 8max speed: 12000000 Hz (12000 KHz) ~~~ Sensor_imgsSetRegs ~~~================> 1000, 150, 0APPRO Setting Applied
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 DM365MM Init SuDavinciDisplay DavinciDisplay.1: pixfmt->width = 640, layer->layer_info.config.line_length= 640ccessfulRate Control Type: IVIDEO_STORAGE STREAM: Ext 0: 0x0 STREAM: Ext 1: 0x0queue id:98307FF: FF open
FR : 0 users registered from exsiting face albumFF: FF open done.IPNC_DM365_1.6 (wenchi@dino.linux) (gcc version 4.2.0 (MontaVis IPNC AUTO_IRIS = 0 (0:Manual,1:Auto)#####################APPRO 2A CreatedXXXXX IAE_CMD_SET_CONFIG XXXXXPage read err(-1)eeprom_prErr:-1read fail!!################DFC ret=-1##################EE SETUP SHIFT VALUE: 3GBCE in EVAL MODEAUDIO_GetSampleRate = 8000AUDIO : period size = 1000 frames dir = 0AUDIO : period time = 125000 us dir = 0queue id:65538ApproDrvExit: 7Error: WaitStreamReady Fail.
# ./wis-streamer &# ApproDrvInit: 2queue id:98307ApproDrvInit: 6queue id:98307Initializing......done initializingPlay this stream using the URL: rtsp://192.168.1.168:8554/mpeg4ApproDrvInit: 8queue id:98307Initializing......done initializingPlay this stream using the URL: rtsp://192.168.1.168:8555/mjpegApproDrvInit: 9ApproDrvInit: 10queue id:98307Initializing......done initializingPlay this stream using the URL: rtsp://192.168.1.168:8557/h264Initializing......done initializingPlay this stream using the URL: rtsp://192.168.1.168/mpeg4queue id:98307Initializing......done initializingPlay this stream using the URL: rtsp://192.168.1.168:8556/h264Stream 2 is not avaliable~~~~~~~~caught SIGTERM: shutting downApproDrvExit: 10
----------------------
please let me know about the above error.
have a look in the 3 errors above
1. Page read err(-1)
eeprom_prErr:-1 read fail!!
2. Error: WaitStreamReady Fail.
3. Stream 2 is not avaliable~~~~~~~~
caught SIGTERM: shutting down
ApproDrvExit: 10
You can also tray to delete sytem configuratrion file (/mnt/nand/sysenv.cfg) to start with default configuration, then restart camera.
When flashing filesystem, check if the filesystem size match your real cramfs size,so that you flash and then load the whole filesystem.
nand erase 0x200000 0xD70000nand write 0x80700000 0x200000 0x200000nand write 0x82000000 0x400000 0xB70000 Also check the size in boot parameters setenv bootcmd 'nand read 0x82000000 0x400000 0xB70000;nboot 0x80700000 0 0x200000;bootm 0x80700000'
nand erase 0x200000 0xD70000nand write 0x80700000 0x200000 0x200000nand write 0x82000000 0x400000 0xB70000
Also check the size in boot parameters
setenv bootcmd 'nand read 0x82000000 0x400000 0xB70000;nboot 0x80700000 0 0x200000;bootm 0x80700000'
sujit mahapatro i just tried with another camera MT5 with the same sensor which i had used in IMX035. i am able to play in VLC as well as in internet explorer. so my conclusion now is some problem with my setup only.
What do you mean by the statement that you tried another camera MT5 with the same sensor which you had used in IMX035? Basically, are you saying, you took release of IPNC_IMX035 ver 1.2 and put it on MT5 camera? And that worked for you? This means that the release you are trying on IMX035 camera is really built for MT5 and wrongly used on IMX035.
Can you please clarify?
i just removed the DAVINCI DM365 IPNC-IMX035 camera and connected DAVINCI DM365 IPNC-MT5 camera with the same TAMRON AUTO IRIS LENS which i used in DAVINCI DM365 IPNC-IMX035 .
i didn't do any kerenl compilation or filesystem building.
i just booted the DAVINCI DM365 IPNC-MT5 camera( with its factory settings only) using COM1 serial connection and after login as root i started vlc player and played the stream via rtsp
rtsp://192.168.1.168:8557/h264
and live video is coming properly.
as suggested by youi tried the things suggested by you.
1. deleted the system configuration file /mnt/nand/sysenv.cfg
2. cramfsImage file size was 0xB3E000 and uimage size was 0x1BA970
so i did the following
nand erase 0x200000 0xD70000 (previous written size )nand write 0x80700000 0x200000 0x200000 ( if i use uImage actual size 0x1BA000, its not allowing, page boundry error is coming, so i used 0x200000 )nand write 0x82000000 0x400000 0xB3E000
3. setenv bootcmd 'nand read 0x82000000 0x400000 0xB3E000;nboot 0x80700000 0 0x200000;bootm 0x80700000'
but finally the result is same.
Can you successfully run diagnostic on camera (diagnostic_ipnc_dm36x_xxx.bin).User guide is included with MT5 - Diagnostic_Guide_IPNC_DM365.pdf.
Hi all,
finally am able to boot up , every thing worked fine. i used NFS and TFTP for development purpose.
there few conversations between me and Marko which is not listed in the group discussion.
the following suggestions by Marko gave me the success. thats why thought of putting all those here.
------------------------------------------
Hi Sujit.
I got IMX-035 working but i have 0.4 version so i can not try the new SW 1.2.
You should also try other kernel configurations (/ipnc/ti-davinci/arch/arm/configs),
try all default configurations, you have 3 preset configurations, maybe one will work (davinci_dm365_ipnc_defconfig, davinci_dm365_ipnc_defconfig_dbg, davinci_dm365_ipnc_defconfig_rel).
Try also with NFS booting /filesystem. For NFS i use davinci_dm365_ipnc_defconfig with ethernet on: set CONFIG_TI_DAVINCI_EMAC=y , so you can boot from nfs. You can also use that one for flashing.
I've already got IMX036, and also had a lot of troubles, to make it work.
Prebuilt binaries, didn't work, but with another kernel configuration that i mention, it works.
Also note that UserGuide for flashing is more general, sometimes it doesn't work for the specific version, since partition addresses and sizes are different.
Look at your boot up log, if filesystem addresses, are correct, and you are erasing and flashing at the right addresses.
I think your IMX035 should also work, but you have to find the proper kernel configuration and proper flash it.
Marko.
---------------------------------------------
Hi Marko, where to make this ethernet option on ? i found CONFIG_TI_DAVINCI_EMAC=m and made it to y. ------------------------------
Hi Marko,
where to make this ethernet option on ?
i found CONFIG_TI_DAVINCI_EMAC=m and made it to y.
------------------------------
Thanks for your help.
i have taken the davinci_dm365_ipnc_defconfig_dbg configuration with CONFIG_TI_DAVINCI_EMAC = y and also commented the last 8 lines for boot upscript in /etc/init.d/rcS file.
Now it's working fine with live video in VLC.
my enviornment variables are:
--------------------------------
bootdelay=4baudrate=115200setboot=setenv bootargs $(bootargs) video=dm36x:output=$(videostd)fileaddr=82000000nfshost=192.168.17.5ipaddr=192.168.17.193serverip=192.168.17.5ethaddr=00:0C:0C:A0:02:C4filesize=0bootfile=uImage_sujitrootpath=192.168.17.5:/home/sujit/Dev/camera/nfsroot/DM365-IPNC/filesysbootcmd=tftpboot 0x80700000 uImage_ipnc_dm365;bootm 0x80700000bootargs=console=ttyS1,115200n8 noinitrd rw ip=192.168.17.193 root=/dev/nfs quiet nfsroot=192.168.17.5:/home/sujit/Dev/camera/nfsroot/DM365-IPNC/filesys,nolock mem=56Mstdin=serialstdout=serialstderr=serialver=U-Boot 1.3.4 (Aug 5 2009 - 18:21:12) DM365-IPNC-0.6
but when i am trying to play in the web browser its displaying
where as if i enable dhcp and root=/dev/ram0 , then web browser is working fine with live video.
if i make to boot via NFS and ip=dhcp with the following enviornments
-------------------------------------
bootdelay=4baudrate=115200setboot=setenv bootargs $(bootargs) video=dm36x:output=$(videostd)fileaddr=82000000nfshost=192.168.17.5ipaddr=192.168.17.193serverip=192.168.17.5ethaddr=00:0C:0C:A0:02:C4filesize=0bootfile=uImage_sujitrootpath=192.168.17.5:/home/sujit/Dev/camera/nfsroot/DM365-IPNC/filesysbootcmd=tftpboot 0x80700000 uImage_ipnc_dm365;bootm 0x80700000bootargs=console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs quiet nfsroot=192.168.17.5:/home/sujit/Dev/camera/nfsroot/DM365-IPNC/filesys,nolock mem=56Mstdin=serialstdout=serialstderr=serialver=U-Boot 1.3.4 (Aug 5 2009 - 18:21:12) DM365-IPNC-0.6
Then kernel is not booting, i am getting the following bootup message
U-Boot 1.3.4 (Aug 5 2009 - 18:21:12) DM365-IPNC-0.6
I2C: readyDRAM: 128 MBNAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit)Bad block table found at page 65504, version 0x00Bad block table found at page 65472, version 0x0032 MiBIn: serialOut: serialErr: serialARM Clock :- 297MHzDDR Clock :- 270MHzEthernet PHY: GENERIC @ 0x01Hit any key to stop autoboot: 0TFTP from server 192.168.17.5; our IP address is 192.168.17.193Filename 'uImage_ipnc_dm365'.Load address: 0x80700000Loading: ################################################################# ###########################################################doneBytes transferred = 1819300 (1bc2a4 hex)## Booting kernel from Legacy Image at 80700000 ... Image Name: Linux-2.6.18_pro500-davinci_IPNC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1819236 Bytes = 1.7 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OKOK
Starting kernel ...
Root-NFS: Unable to get nfsd port number from server, using default-----------------------------------------------------------------
i doubt dhcp is assigning some different domain 192.168.0.38 and my server is 192.168.17.5 and thats why its not able to get the sever.
but when i make static ip with NFS , why web browser is not able to display live, asking for Active X , where as activeX is already there, i am not able to understand.
-----------------------------------------
I am glad it works.
Try also "davinci_dm365_ipnc_defconfig" for flash files system,
i don't know why it didn't work for you. Maybe you took "davinci_dm365_ipnc_defconfig_rel" which is not the same.
You can also see this kernel configuration file in a graphical environment,
open terminal, go to ../DM365IPNC/ti-davinci/ , type "make menuconfig".
About ActiveX player, just install it again in that domain, IE has different security levels for internet and local intranet domains (Internet Options/Security/).
Repeat the installation procedure for the one you don't have AXctl installed. Since you don't see the installation bar at he top of IE, it's obvious you don't have enabled "install unsigned activex..." for that domain.
If your DHCP server is not in the same domain as NFS server, it won't work.
You can check you current IP address in terminal : ifconfig.
--------------------------------------------------------------------
Hi Sujit. That's correct. Just set the CONFIG_TI_DAVINCI_EMAC=y, that's it. But that option matters only if you use NFS, since you need ethernet at boot time. Iif you boot from flash, ethernet driver can be built and start as a module, during the Linux boot up. If you boot from NTS, also look at : filesys/etc/init.d/rcS for boot up script commands. I just commented out last 8 lines, everithing from the including "./system_server &" on, so programms don't autostart, than i start them in terminal. Marko. ------------------------------------------
That's correct. Just set the CONFIG_TI_DAVINCI_EMAC=y, that's it.
But that option matters only if you use NFS, since you need ethernet at boot time.
Iif you boot from flash, ethernet driver can be built and start as a module, during the Linux boot up.
If you boot from NTS, also look at : filesys/etc/init.d/rcS
for boot up script commands.
I just commented out last 8 lines, everithing from the including "./system_server &" on,
so programms don't autostart, than i start them in terminal.