Re: RE: I can't boot linux2.6.18 uImage in dm355
thanks Maupin a lot! My boot envirment is: DM355 EVM # printenv bootdelay=3 baudrate=115200 bootfile=uImage bootcmd=nboot 0x8070 0 0x40;bootm 0x8070 filesize=17f888 fileaddr=8070 ipaddr=10.0.0.53 bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.0.0.89:/nfs/restore_dm355,nolock mem=116M video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16, 2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal serverip=10.0.0.89 stdin=serial stdout=serial stderr=serial videostd=pal Environment size: 491/16380 bytes The demo uImage-dm355 can be boot up,but the new kernel i compiled can't been boot, The console show only bootloader information,no kernel information.I am amazed ! 2009-05-14 zuowenping 发件人: Maupin, Chase 发送时间: 2009-05-13 21:22:04 收件人: Steve Chen; zuowenping 抄送: davinci-linux-open-source 主题: RE: I can't boot linux2.6.18 uImage in dm355 Also, check you console setting in your u-boot bootargs variable. This looks like what happens when the console isn't setup right. Once control is given over to the kernel it does not know how to output the console messages. Please include your u-boot environment variables in your next e-mail. Sincerely, Chase Maupin Software Applications Catalog DSP Products e-mail: chase.mau...@ti.com phone: (281) 274-3285 > -Original Message- > From: davinci-linux-open-source-boun...@linux.davincidsp.com > [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf > Of Steve Chen > Sent: Wednesday, May 13, 2009 6:31 AM > To: zuowenping > Cc: davinci-linux-open-source > Subject: Re: I can't boot linux2.6.18 uImage in dm355 > > On Wed, 2009-05-13 at 12:51 +0800, zuowenping wrote: > > dear all: > > I used the DaVinciLSP-01_20_00_014 in the past ,now i want to use the > DaVinciLSP_02_00_00_110 > > because i want to use the linux2.6.18 kernel, so i use toolchains > mvltools5_0_0 to compile the new > > kernel and it produced a uImage,but when i download it to the dm355 > evm,it cann't been booted: > > > > DM355 EVM # tftpboot > > TFTP from server 10.0.0.89; our IP address is 10.0.0.53 > > Filename 'uImage'. > > Load address: 0x8070 > > Loading: > # > > > # > > > # > > > # > > > # > > ### > > done > > Bytes transferred = 1965516 (1dfdcc hex) > > DM355 EVM # setenv bootargs 'mem=116M console=ttyS0,115200n8 > root=/dev/mtdblock3 > > rw rootfstype=yaffs2 ip=dhcp > video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K: > > You did put the file system for 2.6.18 kernel in the flash right? > 2.6.18 kernel won't boot with 2.6.10 file system. > > > osd0=800x600x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE > davinci_enc_mngr.ch0_mode=PAL' > > DM355 EVM # bootm > > ## Booting image at 8070 ... > >Image Name: Linux-2.6.18_pro500-davinci_evm- > >Image Type: ARM Linux Kernel Image (uncompressed) > >Data Size:1965452 Bytes = 1.9 MB > >Load Address: 80008000 > >Entry Point: 80008000 > >Verifying Checksum ... OK > > OK > > > > Starting kernel .. > > > > Uncompressing > Linux. > .. done, > booting the kernel. > > > > It stop here forever,it seems the kernel can't been booted,why?I used > > the old kernel uImage linux2.6.10 or i used the uImage-dm355 the > > PSP_02_00_00_110 supported,they are all ok! the arm_v5t_le-gcc > > i version is 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30) ,I > > compile the kernel image steps is: > > > > make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_defconfig > > make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage > > > > I have compiled too many times linux2.6.10 kernel in mv_pro_4.0.1 > > envirment just like up steps,they are all ok! > > Turn on DEBUG_LL would provide more debug information and perhaps point > you to the problem. > > Regards, > > Steve > > > > > ___ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: I can't boot linux2.6.18 uImage in dm355
thank steve very much! I have doubled the filesystem is not right,so i change the bootargs as: setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.0.0.89:/opt/montavista/pro/devkit/arm/v5t_le/target/,nolock mem=116M video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16, 2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) the devkit is the new version,it can't give me any kernel information too when i boot it.but the demo kernel image which the new psp packet supported can run well! 2009-05-14 zuowenping 发件人: Steve Chen 发送时间: 2009-05-13 19:23:24 收件人: zuowenping 抄送: davinci-linux-open-source 主题: Re: I can't boot linux2.6.18 uImage in dm355 On Wed, 2009-05-13 at 12:51 +0800, zuowenping wrote: > dear all: > I used the DaVinciLSP-01_20_00_014 in the past ,now i want to use the > DaVinciLSP_02_00_00_110 > because i want to use the linux2.6.18 kernel, so i use toolchains > mvltools5_0_0 to compile the new > kernel and it produced a uImage,but when i download it to the dm355 evm,it > cann't been booted: > > DM355 EVM # tftpboot > TFTP from server 10.0.0.89; our IP address is 10.0.0.53 > Filename 'uImage'. > Load address: 0x8070 > Loading: # > # > # > # > # > ### > done > Bytes transferred = 1965516 (1dfdcc hex) > DM355 EVM # setenv bootargs 'mem=116M console=ttyS0,115200n8 > root=/dev/mtdblock3 > rw rootfstype=yaffs2 ip=dhcp > video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K: You did put the file system for 2.6.18 kernel in the flash right? 2.6.18 kernel won't boot with 2.6.10 file system. > osd0=800x600x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE > davinci_enc_mngr.ch0_mode=PAL' > DM355 EVM # bootm > ## Booting image at 8070 ... >Image Name: Linux-2.6.18_pro500-davinci_evm- >Image Type: ARM Linux Kernel Image (uncompressed) >Data Size:1965452 Bytes = 1.9 MB >Load Address: 80008000 >Entry Point: 80008000 >Verifying Checksum ... OK > OK > > Starting kernel .. > > Uncompressing > Linux... > done, booting the kernel. > > It stop here forever,it seems the kernel can't been booted,why?I used > the old kernel uImage linux2.6.10 or i used the uImage-dm355 the > PSP_02_00_00_110 supported,they are all ok! the arm_v5t_le-gcc > i version is 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30) ,I > compile the kernel image steps is: > > make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_defconfig > make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage > > I have compiled too many times linux2.6.10 kernel in mv_pro_4.0.1 > envirment just like up steps,they are all ok! Turn on DEBUG_LL would provide more debug information and perhaps point you to the problem. Regards, Steve ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: Can JPEG and MPEG4 run on DM355 simultaneity
you can use the same codec engine! I am rum them simultaneity,they are ok! 2009-05-14 zuowenping 发件人: Liu Yebo 发送时间: 2009-05-14 10:15:11 收件人: davinci-linux-open-source@linux.davincidsp.com; Vladimir Pantelic 抄送: davinci-linux-open-source 主题: Re: Can JPEG and MPEG4 run on DM355 simultaneity Hi, I have made jpeg code in demos, and It seams that JPEG and MPEG4 encoder on our board works fine at the same time. Following is my JPEG code , you can add them into encode demos. /* jpeg.h*/ #include #include #include #include #include #include #include "encode.h" #ifndef __JPEG_H__ #define __JPEG_H__ int jpegEncodeAlgCreate(Engine_Handle hEngine, IMGENC1_Handle *hEncodePtr, int width, int height, int num, XDAS_Int32 *imageBufSize); void jpegencode(IMGENC1_Handle enc, unsigned char *inBuf, unsigned int inBufSize, unsigned char *encodedBuf, unsigned int * encodedBufSize); typedef struct ImageEnv { Rendezvous_Handle hRendezvousInit; Rendezvous_Handle hRendezvousCleanup; Pause_Handle hPause; FifoUtil_Obj inFifo; FifoUtil_Obj outFifo; int imageWidth; int imageHeight; int chcnt; } ImageEnv; void * imageThrFxn(void *arg); #endif /* __JPEG_H__ */ /*jpeg.c*/ /* Standard Linux headers */ #include #include #include #include #include #include #include #include #include #include /* Codec Engine headers */ #include #include #include #include "encode.h" #include "jpeg.h" #include "capture.h" #include "recorder.h" static char *jpegenc_name[MAXCHNUM] = {"jpegenc", "jpegenc:1", "jpegenc:2", "jpegenc:3"}; int jpegEncodeAlgCreate(Engine_Handle hEngine, IMGENC1_Handle *hEncodePtr, int width, int height, int num, XDAS_Int32 *imageBufSize) { IMGENC1_Params image_encParams; IMGENC1_DynamicParams image_dynParams; IMGENC1_Status image_imgStatus; IMGENC1_Handle hEncode; #define SCANS 4 #define QVALUE 73 image_encParams.size = sizeof(IMGENC1_Params); image_encParams.maxWidth = width; image_encParams.maxHeight = height; image_encParams.maxScans = SCANS; image_encParams.dataEndianness = XDM_DEFAULT; image_encParams.forceChromaFormat = XDM_YUV_422ILE; hEncode = IMGENC1_create(hEngine, jpegenc_name[num], &image_encParams); if (NULL == hEncode) { fprintf(stderr, "error: can't open codec jpegenc\n"); seterrdev(ERR_IMGENCCREAT); return FAILURE; } /* set the parameters for encoding */ image_dynParams.size = sizeof(IMGENC1_DynamicParams); image_dynParams.numAU = XDM_DEFAULT; image_dynParams.inputChromaFormat = XDM_YUV_422ILE; image_dynParams.inputWidth = width; image_dynParams.inputHeight = height; image_dynParams.captureWidth = 0; image_dynParams.generateHeader = XDM_ENCODE_AU; image_dynParams.qValue = QVALUE; image_imgStatus.size = sizeof(image_imgStatus); if (IMGENC1_control(hEncode, XDM_SETPARAMS, &image_dynParams, &image_imgStatus) == XDM_EFAIL) { fprintf(stderr, "error: could not set PARAMS: 0x%x\n", XDM_SETPARAMS); seterrdev(ERR_IMGENCCREAT); return FAILURE; } /* ask the codec for buffer sizes - these are typically conservative */ if (IMGENC1_control(hEncode, XDM_GETBUFINFO, &image_dynParams, &image_imgStatus) == XDM_EFAIL) { fprintf(stderr, "error: could not get BUFINFO: 0x%x\n", XDM_GETBUFINFO); seterrdev(ERR_IMGENCCREAT); return FAILURE; } *imageBufSize = image_imgStatus.bufInfo.minOutBufSize[0]; *hEncodePtr = hEncode; return SUCCESS; } void jpegencode(IMGENC1_Handle enc, unsigned char *inBuf, unsigned int inBufSize, unsigned char *encodedBuf, unsigned int *encodedBufSize) { Int32 status; IMGENC1_InArgs encInArgs; IMGENC1_OutArgs encOutArgs; XDM1_BufDescinBufDesc; XDM1_BufDescencodedBufDesc; //XDAS_Int32 numRead; /* initialize buffer descriptors that hold input and output buffers */ inBufDesc.numBufs = 1; inBufDesc.descs[0].bufSize = inBufSize; inBufDesc.descs[0].buf = inBuf; encodedBufDesc.numBufs = 1; encodedBufDesc.descs[0].bufSize = *encodedBufSize; encodedBufDesc.descs[0].buf = encodedBuf; /* the size field of Args and Params structs must be initialized */ encInArgs.size= sizeof(encInArgs); encOutArgs.size = sizeof(encOutArgs); /* perform the image (JPEG) encoding */ status = IMGENC1_process(enc, &inBufDesc, &encodedBufDesc, &encInArgs, &encOutArgs); if (status == IMGENC1_EOK) { *encodedB
Re: I can't boot linux2.6.18 uImage in dm355
My develop envirment : DaVinciLSP_02_00_00_110 ,mvltools5_0_0801921 and dm355 evm I have built the kernel by reference the pdf " TMS320DM355 DVEVM v1.30 Getting Started Guide" , DM355 EVM # printenv bootdelay=3 baudrate=115200 bootfile=uImage bootcmd=nboot 0x8070 0 0x40;bootm 0x8070 fileaddr=8070 ipaddr=10.0.0.53 bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.0.0.89:/nfs/restore_dm355,nolock mem=116M video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16, 2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal serverip=10.0.0.89 filesize=2191c0 stdin=serial stdout=serial stderr=serial videostd=pal Environment size: 491/16380 bytes why not success? Any clues will be appreciated! 2009-05-14 zuowenping 发件人: zuowenping 发送时间: 2009-05-13 12:46:10 收件人: davinci-linux-open-source 抄送: 主题: I can't boot linux2.6.18 uImage in dm355 dear all: I used the DaVinciLSP-01_20_00_014 in the past ,now i want to use the DaVinciLSP_02_00_00_110 because i want to use the linux2.6.18 kernel, so i use toolchains mvltools5_0_0 to compile the new kernel and it produced a uImage,but when i download it to the dm355 evm,it cann't been booted: DM355 EVM # tftpboot TFTP from server 10.0.0.89; our IP address is 10.0.0.53 Filename 'uImage'. Load address: 0x8070 Loading: # # # # # ### done Bytes transferred = 1965516 (1dfdcc hex) DM355 EVM # setenv bootargs 'mem=116M console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=yaffs2 ip=dhcp video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=800x600x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=PAL' DM355 EVM # bootm ## Booting image at 8070 ... Image Name: Linux-2.6.18_pro500-davinci_evm- Image Type: ARM Linux Kernel Image (uncompressed) Data Size:1965452 Bytes = 1.9 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK OK Starting kernel .. Uncompressing Linux... done, booting the kernel. It stop here forever,it seems the kernel can't been booted,why?I used the old kernel uImage linux2.6.10 or i used the uImage-dm355 the PSP_02_00_00_110 supported,they are all ok! the arm_v5t_le-gcc i version is 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30) ,I compile the kernel image steps is: make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_defconfig make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage I have compiled too many times linux2.6.10 kernel in mv_pro_4.0.1 envirment just like up steps,they are all ok! 2009-05-13 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: I can't boot linux2.6.18 uImage in dm355
thanks Deepak: I have configed kernel by the command : make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_defconfig make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage use the default configs for dm355,the kernel can't been boot up,I have Enabled kernel hacking->kernel debuging->low level debug functions. the same result i goted! the envirment is: software:DaVinciLSP_02_00_00_110 ,mvltools5_0_0801921 hardware: dm355 evm and resut is as: DM355 EVM # tftpboot TFTP from server 10.0.0.89; our IP address is 10.0.0.53 Filename 'uImage'. Load address: 0x8070 Loading: # # # # # ### done Bytes transferred = 1965512 (1dfdc8 hex) DM355 EVM # bootm ## Booting image at 8070 ... Image Name: Linux-2.6.18_pro500-davinci_evm- Image Type: ARM Linux Kernel Image (uncompressed) Data Size:1965448 Bytes = 1.9 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux... It stoped here for ever! it seems no printed kernel information only uboot prints,I have doubled where the serial configs have errors,I have checked the bootargs whick can been used well for the uImage that comes with DVSDK. setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.0.0.89:/opt/montavista/pro/devkit/arm/v5t_le/target/, nolock mem=116M video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16, 2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) so it is not the bootargs error i think! serial driver error? board config driver error? It amazed me so far! 2009-05-15 zuowenping 发件人: Deepak Mundra 发送时间: 2009-05-14 22:46:04 收件人: Steve Chen 抄送: zuowenping; davinci-linux-open-source 主题: Re: I can't boot linux2.6.18 uImage in dm355 Dear zuowenping do make menuconfig Enable kernel hacking->kernel debuging->low level debug functions and compile the kernel and post the kernel output here Regards Deepak On 5/14/09, Steve Chen wrote: On Thu, 2009-05-14 at 13:49 +0800, zuowenping wrote: > My develop envirment : > DaVinciLSP_02_00_00_110 ,mvltools5_0_0801921 and dm355 evm > I have built the kernel by reference the pdf " TMS320DM355 DVEVM v1.30 > Getting Started Guide" , > DM355 EVM # printenv > bootdelay=3 > baudrate=115200 > bootfile=uImage > bootcmd=nboot 0x8070 0 0x40;bootm 0x8070 > fileaddr=8070 > ipaddr=10.0.0.53 > bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs > nfsroot=10.0.0.89:/nfs/restore_dm355,nolock mem=116M > video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16, > 2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE > davinci_enc_mngr.ch0_mode=pal > serverip=10.0.0.89 > filesize=2191c0 > stdin=serial > stdout=serial > stderr=serial > videostd=pal > > Environment size: 491/16380 bytes > why not success? > Any clues will be appreciated! Just want to make sure I understand, you can boot the board with the binary that comes with DVSDK, but you can not boot the board with the binary generated by following the "Getting Started Guide" If that is the case, what are the commands you used to configure and build the kernel and what error did you see during boot up? Regards, Steve ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: RE: I can't boot linux2.6.18 uImage in dm355
dear all: when i run command make ARCH=arm CROSS_COMPILE=arm_v5t_le- checksetconfig,some errors occurs: # # configuration written to .config # python /mnt/lsp/ti-davinci/linux-2.6.18_pro500/scripts/kconfig/checksetflags -z -v --config-file .config --flag-file /mnt/lsp/ti-davinci/linux-2.6.18_pro500/scripts/kconfig/baseconfig Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] 'import site' failed; use -v for traceback Traceback (most recent call last): File "/mnt/lsp/ti-davinci/linux-2.6.18_pro500/scripts/kconfig/checksetflags", line 3, in ? import os ImportError: No module named os make[1]: *** [checksetconfig] Error 1 make: *** [checksetconfig] Error 2 if i ignore these errors,I can compile and got a uImage,but it cann't boot up linux too! 2009-05-15 zuowenping 发件人: B, Ravi 发送时间: 2009-05-15 11:47:43 收件人: JayaKumar, PremKumar; zuowenping; Deepak Mundra 抄送: davinci-linux-open-source 主题: RE: I can't boot linux2.6.18 uImage in dm355 Hi Go to menuconfig, kernel Features-> select “allow old ABI binaries to run with this kernel” or disable the “ARM EABI to compile the kernel”. Then do clean build. This should resolve the issue. Regards Ravibabu From: davinci-linux-open-source-boun...@linux.davincidsp.com [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of JayaKumar, PremKumar Sent: Friday, May 15, 2009 8:16 AM To: zuowenping; Deepak Mundra Cc: davinci-linux-open-source Subject: RE: I can't boot linux2.6.18 uImage in dm355 I faced similar issue when switching between kernel builds for different platforms. In such cases, a proper/full clean before build helped in getting the right uImage built. Probably, you can try that too. make distclean make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_defconfig make ARCH=arm CROSS_COMPILE=arm_v5t_le- checksetconfig make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage Regards, Prem Texas Instruments India From: davinci-linux-open-source-bounces+premkumar.j=ti@linux.davincidsp.com [mailto:davinci-linux-open-source-bounces+premkumar.j=ti....@linux.davincidsp.com] On Behalf Of zuowenping Sent: Friday, May 15, 2009 6:39 AM To: Deepak Mundra Cc: davinci-linux-open-source Subject: Re: Re: I can't boot linux2.6.18 uImage in dm355 thanks Deepak: I have configed kernel by the command : make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_defconfig make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage use the default configs for dm355,the kernel can't been boot up,I have Enabled kernel hacking->kernel debuging->low level debug functions. the same result i goted! the envirment is: software:DaVinciLSP_02_00_00_110 ,mvltools5_0_0801921 hardware: dm355 evm and resut is as: DM355 EVM # tftpboot TFTP from server 10.0.0.89; our IP address is 10.0.0.53 Filename 'uImage'. Load address: 0x8070 Loading: # # # # # ### done Bytes transferred = 1965512 (1dfdc8 hex) DM355 EVM # bootm ## Booting image at 8070 ... Image Name: Linux-2.6.18_pro500-davinci_evm- Image Type: ARM Linux Kernel Image (uncompressed) Data Size:1965448 Bytes = 1.9 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux... It stoped here for ever! it seems no printed kernel information only uboot prints,I have doubled where the serial configs have errors,I have checked the bootargs whick can been used well for the uImage that comes with DVSDK. setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.0.0.89:/opt/montavista/pro/devkit/arm/v5t_le/target/, nolock mem=116M video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16, 2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) so it is not the bootargs error i think! serial driver error? board config driver error? It amazed me so far! 2009-05-15 zuowenping 发件人: Deepak Mundra 发送时间: 2009-05-14 22:46:04 收件人: Steve Chen 抄送: zuowenping; davinci-linux-open-source 主题: Re: I can't boot linux2.6.18 uImage in dm355 Dear zuowenping do make menuconfig Enable kernel hacking->kernel debuging->low level debug functions and compile the kernel and post the kernel output here Regards Deepak On 5/14/
Re: Re: I can't boot linux2.6.18 uImage in dm355
thanks all! I can build the kernel and run well now! First I must install the toolchain packet then i install lsp packet! I have a reversal steps all along! why did i do so i didn't know yet! 2009-05-18 zuowenping 发件人: Jean-Philippe François 发送时间: 2009-05-15 20:45:17 收件人: zuowenping 抄送: Deepak Mundra; davinci-linux-open-source 主题: Re: I can't boot linux2.6.18 uImage in dm355 zuowenping a écrit : > thanks Deepak: > I have configed kernel by the command : > make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_defconfig > make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage > use the default configs for dm355,the kernel can't been boot up,I have > Enabled kernel hacking->kernel debuging->low level debug functions. I don't think the low level debug can do anything for your from kernel decompression, and until the console is registered. Try to apply the attached printascii hack Jean-philippe François > the same result i goted! the envirment is: > software:DaVinciLSP_02_00_00_110 ,mvltools5_0_0801921 > hardware: dm355 evm > and resut is as: > > DM355 EVM # tftpboot > TFTP from server 10.0.0.89; our IP address is 10.0.0.53 > Filename 'uImage'. > Load address: 0x8070 > Loading: # > # > # > # > # > ### > done > Bytes transferred = 1965512 (1dfdc8 hex) > DM355 EVM # bootm > ## Booting image at 8070 ... >Image Name: Linux-2.6.18_pro500-davinci_evm- >Image Type: ARM Linux Kernel Image (uncompressed) >Data Size:1965448 Bytes = 1.9 MB >Load Address: 80008000 >Entry Point: 80008000 >Verifying Checksum ... OK > OK > Starting kernel ... > Uncompressing > Linux... > > > It stoped here for ever! it seems no printed kernel information only > uboot prints,I have doubled where the serial configs have errors,I have > checked the bootargs whick can been used well for the uImage that comes > with DVSDK. > setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs > nfsroot=10.0.0.89:/opt/montavista/pro/devkit/arm/v5t_le/target/, > nolock mem=116M video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16, > 2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE > davinci_enc_mngr.ch0_mode=$(videostd) > > > so it is not the bootargs error i think! serial driver error? board > config driver error? It amazed me so far! > > 2009-05-15 > ---- > zuowenping > ---- > *发件人:* Deepak Mundra > *发送时间:* 2009-05-14 22:46:04 > *收件人:* Steve Chen > *抄送:* zuowenping; davinci-linux-open-source > *主题:* Re: I can't boot linux2.6.18 uImage in dm355 > > Dear *zuowenping* > > do make menuconfig > > Enable kernel hacking->kernel debuging->low level debug functions > and compile the kernel and post the kernel output here > > > Regards > Deepak > > On 5/14/09, *Steve Chen* mailto:sc...@mvista.com>> > wrote: > > On Thu, 2009-05-14 at 13:49 +0800, zuowenping wrote: > > My develop envirment : > > DaVinciLSP_02_00_00_110 ,mvltools5_0_0801921 and dm355 evm > > I have built the kernel by reference the pdf " TMS320DM355 DVEVM > v1.30 > > Getting Started Guide" , > > DM355 EVM # printenv > > bootdelay=3 > > baudrate=115200 > > bootfile=uImage > > bootcmd=nboot 0x8070 0 0x40;bootm 0x8070 > > fileaddr=8070 > > ipaddr=10.0.0.53 > > bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs > nfsroot=10.0.0.89:/nfs/restore_dm355,nolock mem=116M > video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16, > 2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE > davinci_enc_mngr.ch0_mode=pal > > serverip=10.0.0.89 > > filesize=2191c0 > > stdin=serial > > stdout=serial > > stderr=serial > > videostd=pal > > > > Environment size: 491/16380 bytes > > why not success? >
why can't i compile usb host and gadget at the same time?
Dear all: I want to use gadget for u-disk device and host to connect a usb printer in the dm355,I now used Linux Kernel v2.6.10_mvl401 ,when i make menuconfig to select usb driver mode,the options is: ( ) USB Host ( ) USB Peripheral (gadget stack) (X) Both host and peripheral: USB OTG (On The Go) Device if i select 2 option,i can use command "insmod g_file_storage.ko file=/dev/mmcblk0p1 removable=1 " for u-disk device. but if i select 3 option, I failed ,The module can been insmod ,but the windows PC cann't identify the u-disk device. I wouldn't use the host and gadget function at the same time,but why can't i compile it together? And the options support it obviously ! 2009-06-17 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
how can i use spi in dm355?
dear all: I am using mv_pro_4.0.1 in dm355 platform,now i want to use spi0 and spi1 to communication with other devices which is like using i2c open() , read() ,and write() to various device by sub address in userspace. My linux kernel is 2.6.10,I have find the spidev.c and spidev_test.c in linux2.6.30,So i have transplanted the spidev.c as a module in linux kernel 2.6.10,but when i insmod the module,i cann't find the needful device in /dev/ path,so i cann't run spidev_test.c to test spi,I think there may be some errors in dm355 device driver,but i don't know how to modify it? Any help will be appreciated! 2009-06-22 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: how can i use spi in dm355?
I have add some code for spi_board_info just as: spi_board_info dm355_spi_board_info[] ={ //add by duke 2009.6.18 { .modalias = "spidev", .platform_data = NULL,//&davinci_8k_spi_eeprom_info, .mode = SPI_MODE_0, .irq = 0, .max_speed_hz = 2 * 1000 * 1000 /* max sample rate at 3V */ , .bus_num = 65535, .chip_select = 0, }, . but the spidev_probe cann't been call yet!why?the modalias name is the same as the spidev_spi name static struct spi_driver spidev_spi = { .driver = { .name = "spidev", .bus = &spi_bus_type, .owner = THIS_MODULE, }, .probe = spidev_probe, .remove = __devexit_p(spidev_remove), /* NOTE: suspend/resume methods are not necessary here. * We don't do anything except pass the requests to/from * the underlying controller. The refrigerator handles * most issues; the controller driver handles the rest. */ }; 2009-06-23 zuowenping 发件人: zuowenping 发送时间: 2009-06-23 10:00:27 收件人: davinci-linux-open-source 抄送: 主题: Re: how can i use spi in dm355? I have read the source code ,davinci_spi_board_init() must support board info for the spidev driver ,just like the spi_eeprom example,but i don't know how can i support the board info? i have insmod the module spidev.ko,but i cann't prouduce the device inode /dev/spi*.* ,so it must the spidev_probe() function cann't been callback! 2009-06-23 zuowenping 发件人: zuowenping 发送时间: 2009-06-22 16:34:45 收件人: davinci-linux-open-source 抄送: chris-meng 主题: how can i use spi in dm355? dear all: I am using mv_pro_4.0.1 in dm355 platform,now i want to use spi0 and spi1 to communication with other devices which is like using i2c open() , read() ,and write() to various device by sub address in userspace. My linux kernel is 2.6.10,I have find the spidev.c and spidev_test.c in linux2.6.30,So i have transplanted the spidev.c as a module in linux kernel 2.6.10,but when i insmod the module,i cann't find the needful device in /dev/ path,so i cann't run spidev_test.c to test spi,I think there may be some errors in dm355 device driver,but i don't know how to modify it? Any help will be appreciated! 2009-06-22 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: how can i use spi in dm355?
I have read the source code ,davinci_spi_board_init() must support board info for the spidev driver ,just like the spi_eeprom example,but i don't know how can i support the board info? i have insmod the module spidev.ko,but i cann't prouduce the device inode /dev/spi*.* ,so it must the spidev_probe() function cann't been callback! 2009-06-23 zuowenping 发件人: zuowenping 发送时间: 2009-06-22 16:34:45 收件人: davinci-linux-open-source 抄送: chris-meng 主题: how can i use spi in dm355? dear all: I am using mv_pro_4.0.1 in dm355 platform,now i want to use spi0 and spi1 to communication with other devices which is like using i2c open() , read() ,and write() to various device by sub address in userspace. My linux kernel is 2.6.10,I have find the spidev.c and spidev_test.c in linux2.6.30,So i have transplanted the spidev.c as a module in linux kernel 2.6.10,but when i insmod the module,i cann't find the needful device in /dev/ path,so i cann't run spidev_test.c to test spi,I think there may be some errors in dm355 device driver,but i don't know how to modify it? Any help will be appreciated! 2009-06-22 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: how can i use spi in dm355?
thanks Philby very much! I have done according to your words,I cann't see the device node in /dev yet,and i mknod and create node /dev/spidev0, and now i can run my spidev_test.c, # insmod spidev.ko # mknod /dev/spi0 c 153 0 # ./spi_test & # spi mode: 3 bits peBUG: scheduling while atomic: spi_test/0x0001/1062 r word: 8 max scaller is schedule+0xec/0x12c peed: 50 Hz (500 KHz) it seem some errors occur! 2009-06-23 zuowenping 发件人: Philby John 发送时间: 2009-06-23 14:51:50 收件人: zuowenping 抄送: davinci-linux-open-source 主题: Re: how can i use spi in dm355? zuowenping, You need to modify the arch/arm/mach-davinci/davinci_spi_platform.c struct spi_board_info dm6467_spi_board_info[], .modalias = DAVINCI_SPI_EEPROM_NAME, to .modalias = "spidev". Also you must enable CONFIG_SPI_SPIDEV. After that the kernel will detect the device as "spidev0" and that should get spidev_probe() to work. I think :) Regards, Philby On Tue, 2009-06-23 at 10:00 +0800, zuowenping wrote: > I have read the source code ,davinci_spi_board_init() must support > board info for the spidev driver ,just like the spi_eeprom example,but > i don't know how can i support the board info? i have insmod the > module spidev.ko,but i cann't prouduce the device > inode /dev/spi*.* ,so it must the spidev_probe() function cann't been > callback! > > > 2009-06-23 > > __ > zuowenping > > __ > 发件人: zuowenping > 发送时间: 2009-06-22 16:34:45 > 收件人: davinci-linux-open-source > 抄送: chris-meng > 主题: how can i use spi in dm355? > > dear all: >I am using mv_pro_4.0.1 in dm355 platform,now i want to use > spi0 and spi1 to communication with other devices which is like using > i2c open() , read() ,and write() to various device by sub address in > userspace. My linux kernel is 2.6.10,I have find the spidev.c and > spidev_test.c in linux2.6.30,So i have transplanted the spidev.c as a > module in linux kernel 2.6.10,but when i insmod the module,i cann't > find the needful device in /dev/ path,so i cann't run spidev_test.c to > test spi,I think there may be some errors in dm355 device driver,but i > don't know how to modify it? Any help will be appreciated! > > 2009-06-22 > > __ > zuowenping > ___ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: Re: how can i use spi in dm355?
I have add some code for spi_board_info just as: spi_board_info dm355_spi_board_info[] ={ //add by duke 2009.6.18 { .modalias = "spidev", .platform_data = NULL,//&davinci_8k_spi_eeprom_info, .mode = SPI_MODE_0, .irq = 0, .max_speed_hz = 2 * 1000 * 1000 /* max sample rate at 3V */ , .bus_num = 65535, .chip_select = 0, }, . and the spidev.c code: static struct spi_driver spidev_spi = { .driver = { .name = "spidev", .bus = &spi_bus_type, .owner = THIS_MODULE, }, .probe = spidev_probe, .remove = __devexit_p(spidev_remove), /* NOTE: suspend/resume methods are not necessary here. * We don't do anything except pass the requests to/from * the underlying controller. The refrigerator handles * most issues; the controller driver handles the rest. */ }; I want to know is it spi0 or spi1 about the dm355_spi_board_info[] settings ? 2009-06-23 zuowenping 发件人: zuowenping 发送时间: 2009-06-23 16:08:09 收件人: Philby John 抄送: davinci-linux-open-source 主题: Re: Re: how can i use spi in dm355? thanks Philby very much! I have done according to your words,I cann't see the device node in /dev yet,and i mknod and create node /dev/spidev0, and now i can run my spidev_test.c, # insmod spidev.ko # mknod /dev/spi0 c 153 0 # ./spi_test & # spi mode: 3 bits peBUG: scheduling while atomic: spi_test/0x0001/1062 r word: 8 max scaller is schedule+0xec/0x12c peed: 50 Hz (500 KHz) it seem some errors occur! 2009-06-23 zuowenping 发件人: Philby John 发送时间: 2009-06-23 14:51:50 收件人: zuowenping 抄送: davinci-linux-open-source 主题: Re: how can i use spi in dm355? zuowenping, You need to modify the arch/arm/mach-davinci/davinci_spi_platform.c struct spi_board_info dm6467_spi_board_info[], .modalias = DAVINCI_SPI_EEPROM_NAME, to .modalias = "spidev". Also you must enable CONFIG_SPI_SPIDEV. After that the kernel will detect the device as "spidev0" and that should get spidev_probe() to work. I think :) Regards, Philby On Tue, 2009-06-23 at 10:00 +0800, zuowenping wrote: > I have read the source code ,davinci_spi_board_init() must support > board info for the spidev driver ,just like the spi_eeprom example,but > i don't know how can i support the board info? i have insmod the > module spidev.ko,but i cann't prouduce the device > inode /dev/spi*.* ,so it must the spidev_probe() function cann't been > callback! > > > 2009-06-23 > > ______ > zuowenping > > __ > 发件人: zuowenping > 发送时间: 2009-06-22 16:34:45 > 收件人: davinci-linux-open-source > 抄送: chris-meng > 主题: how can i use spi in dm355? > > dear all: >I am using mv_pro_4.0.1 in dm355 platform,now i want to use > spi0 and spi1 to communication with other devices which is like using > i2c open() , read() ,and write() to various device by sub address in > userspace. My linux kernel is 2.6.10,I have find the spidev.c and > spidev_test.c in linux2.6.30,So i have transplanted the spidev.c as a > module in linux kernel 2.6.10,but when i insmod the module,i cann't > find the needful device in /dev/ path,so i cann't run spidev_test.c to > test spi,I think there may be some errors in dm355 device driver,but i > don't know how to modify it? Any help will be appreciated! > > 2009-06-22 > > __ > zuowenping > ___ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
why cann't i use kernel RTC(DS1672) ?
dear all: I used a DS1672 in my customed dm355 board,so I make menuconfig the 2.6.18 kernel in mvl5.0.0,I used the command date to setup current time,then i check the datetime and it is ok, but when i reboot my kernel and i read the datatime it is the old time 1970-01-01 00:00:00,why it cann't read time from ds1672? 2009-07-01 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: why cann't i use kernel RTC(DS1672) ?
If i only use i2c_dev.c to test ds1672,it read and set time ok,so i can ensure the hardware is ok,i can write driver to use it, but i want to add the device to kernel,and if i use the command just as gettimeofday or date it can been used well! 2009-07-01 zuowenping 发件人: zuowenping 发送时间: 2009-07-01 10:57:08 收件人: davinci-linux-open-source 抄送: 主题: why cann't i use kernel RTC(DS1672) ? dear all: I used a DS1672 in my customed dm355 board,so I make menuconfig the 2.6.18 kernel in mvl5.0.0,I used the command date to setup current time,then i check the datetime and it is ok, but when i reboot my kernel and i read the datatime it is the old time 1970-01-01 00:00:00,why it cann't read time from ds1672? 2009-07-01 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Can i give the capture buffer address to fbdev or v4l2 for display directly?
dear all: I am now using dm355 for capturing 640x480(30 frame / second) picture and displayed in svga mode 800x600(60 frame / second) by ths8200.if i used edma to translated data from v4l2 caputured buffer to frame buffer, It will emerge noised pictures,i have set PBBPR register with value 30 .but if i change to displayed in vga mode 640x480(60 f/s),it seem ok!it seemed the ddr speed(171M) is not enough! but My project GUI(osd) must be set as 800x600,So i have to change displaying to svga.I don't want to used edma, then can i give the displayer driver(fbdev or v4l2) my caputre buffer address directly? 2009-07-09 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Can i give the capture buffer address to fbdev or v4l2 for displaydirectly?
I have studied the v4l2 display driver,it supported V4L2_MEMORY_USERPTR mothod,it seemed can accept a buffer address but it must be mmaped to the display buffer first,So the captured buffer datas must translate to the mmaped buffer,so the result is equal to mmap display buffer directly. V4L2_MEMORY_MMAP : v4l2 capture buffer->address1(mmaped) -> EDMA-> address2 (mmaped)<-v4l2 or fbdev buffer V4L2_MEMORY_USERPTR :v4l2 capture buffer->address1(mmaped) -> EDMA-> address2 (mmaped)->v4l2 or fbdev buffer 2009-07-09 zuowenping 发件人: zuowenping 发送时间: 2009-07-09 19:35:44 收件人: davinci-linux-open-source 抄送: 主题: Can i give the capture buffer address to fbdev or v4l2 for displaydirectly? dear all: I am now using dm355 for capturing 640x480(30 frame / second) picture and displayed in svga mode 800x600(60 frame / second) by ths8200.if i used edma to translated data from v4l2 caputured buffer to frame buffer, It will emerge noised pictures,i have set PBBPR register with value 30 .but if i change to displayed in vga mode 640x480(60 f/s),it seem ok!it seemed the ddr speed(171M) is not enough! but My project GUI(osd) must be set as 800x600,So i have to change displaying to svga.I don't want to used edma, then can i give the displayer driver(fbdev or v4l2) my caputre buffer address directly? 2009-07-09 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: fail to make uImage
your toolchain version is not matched the kernel source,you must use toolchain5.0 above! 2009-07-22 zuowenping 发件人: linghai624 发送时间: 2009-07-22 17:49:01 收件人: davinci-linux-open-source 抄送: 主题: fail to make uImage Hi, I'am trying to use davinci linux git kernel 2.6.28 , but when I make uImage , I meet the error as follow, hail...@hailing-desktop:~/workdir/lsp/linux/kernel/git/khilman/linux-davinci.git$ make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage scripts/kconfig/conf -s arch/arm/Kconfig CHK include/linux/version.h UPD include/linux/version.h Generating include/asm-arm/mach-types.h CHK include/linux/utsrelease.h UPD include/linux/utsrelease.h SYMLINK include/asm -> include/asm-arm CC kernel/bounds.s kernel/bounds.c:1: error: invalid ABI option: -mabi=aapcs-linux make[1]: *** [kernel/bounds.s] Error 1 make: *** [prepare0] Error 2 I don't know what the problem it is ,please help me ! 网易YEAH.NET免费邮箱:您的终身免费邮箱 ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Audio problem when porting programmer to linux2.6.18
I was using linux2.6.10 kernel in dm355,and my audio driver(OSS framework) for ak4550 was work well,Now i want to porting my source to linux2.6.18,but i cann't find the function davinci_mcbsp_config() in the new kernel, I haved used to produce Codec System Clock to ak4550 in linux2.6.10!why didn't the new kernel support driver for aic33 chipset which is the dm355 evm audio chipset?I writed my ak4550 driver just referenced it! 2009-07-28 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
why is my bootargs about davincifb noneffective when use kernel2.6.18?
Just shows by boot info,I have set my bootaregs as: Built 1 zonelists. Total pages: 29696 Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.0.0.89:/mnt/rootfs,nolock mem=116M video=davincifb:vid0=0,2500K:vid1=0, 2500K:osd0=800x600x16,2025K :osd1=720x576x16, 1650K davinci_enc_mngr.ch0_output=COMPONENT1 davinci_enc_mngr.ch0_mode=640x480 but the kernel davincifb_probe() get the osd0 size is not right! davincifb davincifb.0: dm_osd0_fb: 640x480...@0,0 with framebuffer size 1200KB davincifb davincifb.0: dm_vid0_fb: 0x0...@0,0 with framebuffer size 2500KB davincifb davincifb.0: dm_osd1_fb: 640x48...@0,0 with framebuffer size 1200KB davincifb davincifb.0: dm_vid1_fb: 0x0...@0,0 with framebuffer size 600KB So i cann't set the osd0 to 800x600 by fbdev command FBIOPUT_VSCREENINFO! but it work well in linux2.6.10, It get the right osd size!I have check the source davincifb.c between the two kernel version , but i cann't find the reason yet!Any one can help me?thanks a lot! 2009-07-31 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
why is the sd/mmc so slowly in writing about dm355?
I am testing the speed of sd/mmc in dm355 which using kernel 2.6.18. bash-3.00# mount /dev/mmcblk0p1 /mnt -o sync bash-3.00# time cp /tmp/ramdisk.img.gz /mnt/ real0m19.996s user0m0.000s sys 0m0.960s bash-3.00# ls -l /tmp/ramdisk.img.gz -rwxr--r--1 root root 3476678 Jan 1 00:01 /tmp/ramdisk.img.gz so,the speed about mmc is about 170 kb/s,but i want speeds about sd/mmc above 1.5M/s,how can i optimize the driver ? 2009-08-03 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: why is my bootargs about davincifb noneffective when use kernel2.6.18?
I have reslove the problem,in the kernel2.6.10,the ths8200 driver started before davincifb driver,so the davincifb get the right mod_info ( xres(800) ,yres(600)),but in the kernel2.6.18,ths8200 driver boot after the davincifb , so the davincifb get the default mod_info and set its values.change the davincifb_probe() can resolve it! 2009-08-03 zuowenping 发件人: zuowenping 发送时间: 2009-07-31 15:31:04 收件人: davinci-linux-open-source 抄送: 主题: why is my bootargs about davincifb noneffective when use kernel2.6.18? Just shows by boot info,I have set my bootaregs as: Built 1 zonelists. Total pages: 29696 Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.0.0.89:/mnt/rootfs,nolock mem=116M video=davincifb:vid0=0,2500K:vid1=0, 2500K:osd0=800x600x16,2025K :osd1=720x576x16, 1650K davinci_enc_mngr.ch0_output=COMPONENT1 davinci_enc_mngr.ch0_mode=640x480 but the kernel davincifb_probe() get the osd0 size is not right! davincifb davincifb.0: dm_osd0_fb: 640x480...@0,0 with framebuffer size 1200KB davincifb davincifb.0: dm_vid0_fb: 0x0...@0,0 with framebuffer size 2500KB davincifb davincifb.0: dm_osd1_fb: 640x48...@0,0 with framebuffer size 1200KB davincifb davincifb.0: dm_vid1_fb: 0x0...@0,0 with framebuffer size 600KB So i cann't set the osd0 to 800x600 by fbdev command FBIOPUT_VSCREENINFO! but it work well in linux2.6.10, It get the right osd size!I have check the source davincifb.c between the two kernel version , but i cann't find the reason yet!Any one can help me?thanks a lot! 2009-07-31 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: why is the sd/mmc so slowly in writing about dm355?
thansk Steve Chen a lot! I am testing with a sd card(ScanDisk 1.0G)! 2009-08-03 zuowenping 发件人: Steve Chen 发送时间: 2009-08-03 19:21:12 收件人: zuowenping 抄送: davinci-linux-open-source 主题: Re: why is the sd/mmc so slowly in writing about dm355? On Mon, 2009-08-03 at 19:08 +0800, zuowenping wrote: > I am testing the speed of sd/mmc in dm355 which using kernel 2.6.18. > > bash-3.00# mount /dev/mmcblk0p1 /mnt -o sync > bash-3.00# time cp /tmp/ramdisk.img.gz /mnt/ > > real0m19.996s > user0m0.000s > sys 0m0.960s > > bash-3.00# ls -l /tmp/ramdisk.img.gz > -rwxr--r--1 root root 3476678 Jan 1 > 00:01 /tmp/ramdisk.img.gz > > > > so,the speed about mmc is about 170 kb/s,but i want speeds about > sd/mmc above 1.5M/s,how can i optimize the driver ? > Is the slow speed for MMC, SD, or both? Even though both card type plug into the same slot, but they take very different code patch. Regards, Steve ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: RE: Re: why is the sd/mmc so slowly in writing about dm355?
thanks steve chen a lot! but in my dm355 evm have test again and the output are below: bash-3.00# mount /dev/mmcblk0p1 /mnt -o sync bash-3.00# ls ColorRuler.dat cmemk.koloadmodules.sh test_camerad aregcoremapdmaq areg.ko dm350mmap.koramdisk.img.gz bash-3.00# time cp ramdisk.img.gz /mnt/ real0m17.967s user0m0.000s sys 0m1.900s bash-3.00# dd if=/dev/zero of=/mnt/test.img bs=1M count=5 5+0 records in 5+0 records out bash-3.00# rm /mnt/test.img bash-3.00# time dd if=/dev/zero of=/mnt/test.img bs=1M count=5 5+0 records in 5+0 records out real0m17.874s user0m0.000s sys 0m0.410s bash-3.00# time dd if=/dev/zero of=/mnt/test.img bs=1M count=100 100+0 records in 100+0 records out real5m54.738s user0m0.000s sys 0m6.830s bash-3.00# uname -a Linux 10.0.0.17 2.6.18_pro500-davinci_evm-arm_v5t_le so the speed is about less than 300k!my sd is scandisk ultra-ii,why so slow? 2009-08-04 zuowenping 发件人: Steve Chen 发送时间: 2009-08-03 22:39:02 收件人: Vipin 抄送: 'zuowenping'; 'davinci-linux-open-source' 主题: RE: Re: why is the sd/mmc so slowly in writing about dm355? On Mon, 2009-08-03 at 18:09 +0530, Vipin wrote: > Is this read or write speed? Can you isolate and find different > speed? Can you also check the read/write command code coming to the > driver? I remember of an issue where single block commands being sent > from MMC core resulting in low performance. > > Thanks and regards, > ~Vipin > > From: davinci-linux-open-source-boun...@linux.davincidsp.com > [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On > Behalf Of zuowenping > Sent: Monday, August 03, 2009 5:02 PM > To: Steve Chen > Cc: davinci-linux-open-source > Subject: Re: Re: why is the sd/mmc so slowly in writing about dm355? > > thansk Steve Chen a lot! I am testing with a sd card(ScanDisk 1.0G)! > IIRC single block command affects MMC but not SD. I did a few quick tests with a HP 2G SD card on the my DM355 EVM, and the console output are below. r...@192.168.40.102:~# dd if=/dev/zero of=/mnt/disk/write-test1 bs=1M count=20 20+0 records in 20+0 records out 20971520 bytes (21 MB) copied, 1.07127 seconds, 19.6 MB/s r...@192.168.40.102:~# r...@192.168.40.102:~# dd if=/dev/zero of=/tmp/write-test2 bs=1M count=20 20+0 records in 20+0 records out 20971520 bytes (21 MB) copied, 0.531279 seconds, 39.5 MB/s r...@192.168.40.102:~# r...@192.168.40.102:~# dd if=/tmp/write-test2 of=/mnt/disk/write-test2 40960+0 records in 40960+0 records out 20971520 bytes (21 MB) copied, 8.96917 seconds, 2.3 MB/s r...@192.168.40.102:~# dd if=/dev/zero of=/mnt/disk/write-test3 bs=1M count=100 100+0 records in 100+0 records out 104857600 bytes (105 MB) copied, 44.9918 seconds, 2.3 MB/s The first dd (write-test1) show unusually high data rate due to caching. dd returned before data is actually written to the SD card. I'm seeing about 2.3MB/s with an idle system on MV 2.6.18 kernel. The other MMC/SD slot has similar performance numbers. I'm not sure what caused the drastic difference in write performance between our systems. Regards, Steve ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: why is the sd/mmc so slowly in writing about dm355?
thanks your answer very much! I have test dd commond,but the speed is less than 200k still,if i mount the sd card not with -o sync,It will use fs cache to store data,I didn't want to use the fs cache,So i must use the -o sync option! My projest need to record 320x240 picures(infrared datas) wholely,The frame speed is 30 f/s,I have to save 15 f/s at least! if i just used c function fwrite() to save data to sd card,I find my program will been blocked,and the capture pictures(infrared datas) will been lost much! It is prohibited! 2009-08-04 zuowenping 发件人: Koen Kooi 发送时间: 2009-08-04 14:32:34 收件人: davinci-linux-open-source@linux.davincidsp.com 抄送: 主题: Re: why is the sd/mmc so slowly in writing about dm355? On 03-08-09 13:08, zuowenping wrote: > I am testing the speed of sd/mmc in dm355 which using kernel 2.6.18. > > bash-3.00# mount /dev/mmcblk0p1 /mnt -o sync > bash-3.00# time cp /tmp/ramdisk.img.gz /mnt/ That's not testing how fast the sd card is, that's testing how sucky the interaction between the block and fs schedulers is for sync mounts. A better test would be to do 'hdparm -tT /dev/mmcblk0' or 'dd if=/dev/mmcblk0 of=/dev/null bs=512k'. regards, Koen ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
how can i add spi1 or spi2 device in the kernel linux2.6.10 of dm355?
I have to use spi0 and spi1 in dm355 on the same time,I have modified the davinci_spi_eeprom driver(it used spi0) to communicate a device sucessed! but now when i wanted to add spi1 driver for another device to kernel, it didn't work! I add source as bellow: static struct spi_board_info dm355_spi_board_info[] = { ... #if SPI_1098 { .modalias = "spi_1098", .platform_data = NULL,//&davinci_8k_spi_eeprom_info, .mode = SPI_MODE_0, .irq = 0, .max_speed_hz = 200*1000,//2 * 1000 * 1000 /* max sample rate at 3V */ , .bus_num = 65535, .chip_select = 1, }, #endif . } And i have register a spi driver spi_driver : static struct spi_driver spidev_1098 = { .driver = { .name = "spi_1098", .bus = &spi_bus_type, .owner = THIS_MODULE, }, .probe = spi1098_probe, .remove = __devexit_p(spi1098_remove), }; By the printk information, spi1098_probe cann't been call, And i only find one device (spi_eeprom) in /sys/bus/spi/devices/ ,so the driver cann't been matched! then how can i add spi1 or spi2 device in the kernel? Any hints will been appreciated! 2009-08-10 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
does vpfe driver support select or poll sys call?
dear all: I want to use select method to query data in capture buffer(ioctl VIDIOC_DQBUF ),but when i look up the driver in davinci_vpfe.c,I cann't find it realized it: static struct file_operations vpfe_fops = { .owner = THIS_MODULE, .open = vpfe_open, .release = vpfe_release, .ioctl = vpfe_ioctl, .mmap = vpfe_mmap }; It has not realized poll() function in the file_operations set! so it is uselessly for sys_call select i thinked! but the v4l2 interface support the system call! 2009-08-17 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
why can't i use i2c driver in ubl bootloader?
hi: I want to see splash screen when my borad is power on,so i have to port i2c driver ,ths8200 driver, vpbe and osd driver to ubl programer(Iit is easyer to debug in ccs3.3 envirment than debug uboot),and i have writed down the vpbe and osd registers values when linux is booting up if i can see svga pictures, then i set these values in ubl programmer for relative registers. but when i port the i2c driver from uboot1.2.0 to ubl programmer,I cann't make the ths8200 work,it seem the i2c driver didn't work well. I am just refering the file dm355_evm.c in uboot1.2.0,it support some usefule functions just as I2C_init(),I2C_write(),I2C_read ()...,and it support communication with msp430.Is it different with ths8200 in i2c communication ? thanks! 2009-09-01 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
how can i burn kernel and rootfs by ccs3.3?
dear all: I am developing in dm355 platform now,I often burn ubl and uboot by ccs3.3 and emluator xds560(I using nand_programmer.out ), then i will download kernel(uImage) by tftp and burn it to nand flash,so i can boot linux by nfs mode, and i can use the yaffs2 filesystem to burn myself rootfs(inclued my programer) to nandflash! The course is complicated! so if i have to make a lot products,The worker cann't use the linux envirment,so how can i make a quick simple method to burn the ubl,uboot,kernel params,kernel,rootfs to the nand flash? 2009-09-11 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
How can i use VGA(480p) format output to ths8200 in dm355 platfom
dear all: I am developing in the montavista linux2.6.10 version os,and the hard platforms are dm355 evm and ths8200 evm ,I want to output 480p format image to a VGA Monitor.I find a ths8200 driver(ths8200_encoder.c) in the linux driver source,but when i used it,It shows no two I2c device( such as:CDCE_CLK_SYNTH and THS7303_VIDEO_BUFFER ) in the dm355 evm and it can't be initialized successed.when i read the source ths8200_encoder.c,it tell me that it just support 720p and 1080i format output,so how can i modify the driver to support VGA(640x480) and how can i make the ths8200 evm run by my dm355 platform?thanks all! Best regards! 2008-12-16 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
how can i set the dm355 vpbe register for outputing VGA format to ths8200 evm?
Dear all: I have asked for help for the question "How can i use VGA(480p) format output to ths8200 in dm355 platfom "!thanks carl.renaud give me some benufit advices. I got the ths8200 register configure for 640x480 by using google(thanks google),and now i can see th picture on my vga monitor already,but the picture is worse,I guess the configure of dm355 vpbe venc register is not right! Does anyone be familiar with the vpbe venc registers of dm355? how can i got vga output from dm355 evm? 2008-12-19 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
I can use VGA(640x480) format output to ths8200 in dm355 platfom now, but why did i output vga picture horizontal frequenct is 120?
dear all: I can watch the vga video fairly in the CRT VGA monitor if i set the register VENC_VMOD value 0x2211(means Interlace output),but the horizontal frequenct is 120,it is not the right value 60,so it can't been seen in the LCD monitor. If i set the register value 0x2011(means Progressive output),the picture seems half a picture, and it is been distorted,so it seems not lost data,the horizontal frequenct is 60, it is juest equal to the standard value,so it can been accept by a LCD monitor.how can i resolove the problem that i can use 60 horizontal frequenct to seen the picture clearly? by the way,I use a PAL camera to capture video,but when i play back a mpeg4 video file,the same result it is !! 2008-12-25 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: I can use VGA(640x480) format output to ths8200 in dm355 platfomnow, but why did i output vga picture horizontal fre
sorry,i have descript err, the vertical frequency is 120 ,not the horizontal frequenct! 2008-12-25 zuowenping 发件人: zuowenping 发送时间: 2008-12-25 18:57:16 收件人: davinci-linux-open-source 抄送: 主题: I can use VGA(640x480) format output to ths8200 in dm355 platfomnow, but why did i output vga picture horizontal fre dear all: I can watch the vga video fairly in the CRT VGA monitor if i set the register VENC_VMOD value 0x2211(means Interlace output),but the horizontal frequenct is 120,it is not the right value 60,so it can't been seen in the LCD monitor. If i set the register value 0x2011(means Progressive output),the picture seems half a picture, and it is been distorted,so it seems not lost data,the horizontal frequenct is 60, it is juest equal to the standard value,so it can been accept by a LCD monitor.how can i resolove the problem that i can use 60 horizontal frequenct to seen the picture clearly? by the way,I use a PAL camera to capture video,but when i play back a mpeg4 video file,the same result it is !! 2008-12-25 zuowenp...@dali-tech.com ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Can we burn uImage or rootfs by jtag in Arm platform?
Dear: Now, I am developing in DM355 platform ,We use nand_programmer in CCS3.3 ide tools and we can burn ubl and uboot to nand-flash,and it translates datas to target by jtag first.but if my target don't support net,we can't translate data by tftp and we have to translate datas (just such as uImage and ramdisk) by UART,As we know, It is so slowly!! It is terriable for we having many device to be burned,so Can we burn uImage or rootfs by jtag using the nand_programmer ?and what we should do for it? 2009-01-16 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
nand_programmer check all nand flash blocks error
dear all: I use a new nand flash for dm355 in my new borad,first i used Micron 1G nand flash, the address have been modify: #define NAND_ALE_ADDR ((volatile Uint8*)0x0204) //from 0x0208 #define NAND_CMD_ADDR ((volatile Uint8*)0x0208) //from 0x0210 if i use the old address, the Manufacture id and device id is always 0 when read it.and the hardware told me to modify the address!but when I run the programmer by jtag,the result is: Started Nand programming Manufacture ID 2c device ID d3 find the NAND device in the table! NANDInit() Successful Enter the UBL File Name D:\dvsdk_1_30_00_40\dvsdk_1_30_00_40\PSP_01_20_00_014\bin\dm355\ublDM355-nand.bin Block number 0 is a BAD BLOCKBlock 0 is a bad block Block number 1 is a BAD BLOCKBlock 1 is a bad block Block number 2 is a BAD BLOCKBlock 2 is a bad block Block number 3 is a BAD BLOCKBlock 3 is a bad block Block number 4 is a BAD BLOCKBlock 4 is a bad block Block number 5 is a BAD BLOCKBlock 5 is a bad block Block number 6 is a BAD BLOCKBlock 6 is a bad block Block number 7 is a BAD BLOCKBlock 7 is a bad block Block number 8 is a BAD BLOCKBlock 8 is a bad block Block number 9 is a BAD BLOCKBlock 9 is a bad block Block number 10 is a BAD BLOCKBlock 10 is a bad block Block number 11 is a BAD BLOCKBlock 11 is a bad block Block number 12 is a BAD BLOCKBlock 12 is a bad block Block number 13 is a BAD BLOCKBlock 13 is a bad block Block number 14 is a BAD BLOCKBlock 14 is a bad block Block number 15 is a BAD BLOCKBlock 15 is a bad block Block number 16 is a BAD BLOCKBlock 16 is a bad block Block number 17 is a BAD BLOCKBlock 17 is a bad block Block number 18 is a BAD BLOCKBlock 18 is a bad block Block number 19 is a BAD BLOCKBlock 19 is a bad block Block number 20 is a BAD BLOCKBlock 20 is a bad block . It seemd all block is bad!! When i skip the block checking(just return E_PASS in NANDCheckBadBlock() function ),it can run ok,the ubl and uboot seems burning ok,but when i reboot the board,it cann't boot!! I have contact to the supporter by ti,they told me the RBL(rom boot loader) can't support 128 pages of a block,so i changed a nand flash type HY27UG088G whick 64 pages of a block,it seem the same result! any one can help me?thanks a lot!! 2009-02-11 duke zuo da-li tech in hangzhou of china ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: RE: nand_programmer check all nand flash blocks error
1:first i use the nand flash type is MT29F8G08MAAWC,if i cann't modify the address,the Manufacture and device id is always 0,and the hardware engineer told me to modify it,then the id can be identify ok.when i change nand flash type to HY27UG088 ,the same result it is! 2:the micron flash page size is 2048+64,and the HY27UG088 is also size. 3:we can do uart boot and i have test it ok,but i have xds560 emluator,it can translate data easy! 4:if i use the MT29F8G08M,i have to add {0xD3, 128, 2048+64,23, 5}, /* Micron MT29F8G08AAA */ //add by duke 2009.2.9 item in the const NAND_DEVICE_INFO gNandDevInfo[] 5:I am surprising too,but the hardware engineer ask me to do it. 2009-02-11 zuowenping 发件人: jitendraj...@emerson.com 发送时间: 2009-02-11 16:12:50 收件人: zuowenp...@dali-tech.com; davinci-linux-open-source@linux.davincidsp.com 抄送: 主题: RE: nand_programmer check all nand flash blocks error Hi Duke Zuo, We are also struggling with similar issue since few weeks. We have done some investigation that might help you. 1. What NAND chip you are using? 2. What is the page size? As per TI, RBL does not support NAND having 4096 page size 3. Are you able to do UART boot? 4. Have you modified anything in “NAND_Programmer.pjt” source code? If yes, what are those? 5. It is surprising to see your changes related to ALE/CMD address, we are not required to do so. Regards, Jitendra From: davinci-linux-open-source-boun...@linux.davincidsp.com [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of zuowenping Sent: Wednesday, February 11, 2009 12:55 PM To: davinci-linux-open-source Subject: nand_programmer check all nand flash blocks error dear all: I use a new nand flash for dm355 in my new borad,first i used Micron 1G nand flash, the address have been modify: #define NAND_ALE_ADDR ((volatile Uint8*)0x0204) //from 0x0208 #define NAND_CMD_ADDR ((volatile Uint8*)0x0208) //from 0x0210 if i use the old address, the Manufacture id and device id is always 0 when read it.and the hardware told me to modify the address!but when I run the programmer by jtag,the result is: Started Nand programming Manufacture ID 2c device ID d3 find the NAND device in the table! NANDInit() Successful Enter the UBL File Name D:\dvsdk_1_30_00_40\dvsdk_1_30_00_40\PSP_01_20_00_014\bin\dm355\ublDM355-nand.bin Block number 0 is a BAD BLOCKBlock 0 is a bad block Block number 1 is a BAD BLOCKBlock 1 is a bad block Block number 2 is a BAD BLOCKBlock 2 is a bad block Block number 3 is a BAD BLOCKBlock 3 is a bad block Block number 4 is a BAD BLOCKBlock 4 is a bad block Block number 5 is a BAD BLOCKBlock 5 is a bad block Block number 6 is a BAD BLOCKBlock 6 is a bad block Block number 7 is a BAD BLOCKBlock 7 is a bad block Block number 8 is a BAD BLOCKBlock 8 is a bad block Block number 9 is a BAD BLOCKBlock 9 is a bad block Block number 10 is a BAD BLOCKBlock 10 is a bad block Block number 11 is a BAD BLOCKBlock 11 is a bad block Block number 12 is a BAD BLOCKBlock 12 is a bad block Block number 13 is a BAD BLOCKBlock 13 is a bad block Block number 14 is a BAD BLOCKBlock 14 is a bad block Block number 15 is a BAD BLOCKBlock 15 is a bad block Block number 16 is a BAD BLOCKBlock 16 is a bad block Block number 17 is a BAD BLOCKBlock 17 is a bad block Block number 18 is a BAD BLOCKBlock 18 is a bad block Block number 19 is a BAD BLOCKBlock 19 is a bad block Block number 20 is a BAD BLOCKBlock 20 is a bad block . It seemd all block is bad!! When i skip the block checking(just return E_PASS in NANDCheckBadBlock() function ),it can run ok,the ubl and uboot seems burning ok,but when i reboot the board,it cann't boot!! I have contact to the supporter by ti,they told me the RBL(rom boot loader) can't support 128 pages of a block,so i changed a nand flash type HY27UG088G whick 64 pages of a block,it seem the same result! any one can help me?thanks a lot!! 2009-02-11 duke zuo da-li tech in hangzhou of china ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Gamma correction in VENC
the dm355 only can supply 16 bit rgb,so the ths8200 dman_cntl register must modify to 0x71,not default 0x70! 2009-02-11 zuowenping 发件人: Lori 发送时间: 2009-02-11 14:07:07 收件人: davinci-linux-open-source@linux.davincidsp.com 抄送: 主题: Gamma correction in VENC Dear all: I am using the ths8200 to output VGA format signal, so the dm355 must supply the RGB656 format. But in this situation the display on monitor lost some color gradation. The venc provides the gamma correction. I want konw if it is useful for my problem. And the gamma correction use only two register, who can give me an example or advice about how to use them in program? ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: RE: RE: nand_programmer check all nand flash blocks error
thanks all! problem have been resolved,the hardware engineer have reversed the nand flash "ale" and "cle" line,so the address have to been changed! and in fact the command address shouldn't been change! 2009-02-11 zuowenping 发件人: jitendraj...@emerson.com 发送时间: 2009-02-11 17:19:08 收件人: zuowenp...@dali-tech.com; davinci-linux-open-source@linux.davincidsp.com 抄送: 主题: RE: RE: nand_programmer check all nand flash blocks error Hi Zuo, Could you pls elaborate more on “change nand flash type to HY27UG088”? Are you physically changing the NAND flash or doing software changes? Also when you skip the NANDCheckBadBlock () function, you said the ubl and uboot seems burning ok, but when you reboot the board, it can’t boot!! So can you read 32 bits of ARM internal memory (0x7ffc-0x8000) via JTAG and let us know what you are getting. Regards, Jitendra From: zuowenping [mailto:zuowenp...@dali-tech.com] Sent: Wednesday, February 11, 2009 2:06 PM To: Jain, Jitendra [PROTOOL/RTC/IN]; davinci-linux-open-sou...@linux. Subject: Re: RE: nand_programmer check all nand flash blocks error 1:first i use the nand flash type is MT29F8G08MAAWC,if i cann't modify the address,the Manufacture and device id is always 0,and the hardware engineer told me to modify it,then the id can be identify ok.when i change nand flash type to HY27UG088 ,the same result it is! 2:the micron flash page size is 2048+64,and the HY27UG088 is also size. 3:we can do uart boot and i have test it ok,but i have xds560 emluator,it can translate data easy! 4:if i use the MT29F8G08M,i have to add {0xD3, 128, 2048+64,23, 5}, /* Micron MT29F8G08AAA */ //add by duke 2009.2.9 item in the const NAND_DEVICE_INFO gNandDevInfo[] 5:I am surprising too,but the hardware engineer ask me to do it. 2009-02-11 zuowenping 发件人: jitendraj...@emerson.com 发送时间: 2009-02-11 16:12:50 收件人: zuowenp...@dali-tech.com; davinci-linux-open-source@linux.davincidsp.com 抄送: 主题: RE: nand_programmer check all nand flash blocks error Hi Duke Zuo, We are also struggling with similar issue since few weeks. We have done some investigation that might help you. 1. What NAND chip you are using? 2. What is the page size? As per TI, RBL does not support NAND having 4096 page size 3. Are you able to do UART boot? 4. Have you modified anything in “NAND_Programmer.pjt” source code? If yes, what are those? 5. It is surprising to see your changes related to ALE/CMD address, we are not required to do so. Regards, Jitendra From: davinci-linux-open-source-boun...@linux.davincidsp.com [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of zuowenping Sent: Wednesday, February 11, 2009 12:55 PM To: davinci-linux-open-source Subject: nand_programmer check all nand flash blocks error dear all: I use a new nand flash for dm355 in my new borad,first i used Micron 1G nand flash, the address have been modify: #define NAND_ALE_ADDR ((volatile Uint8*)0x0204) //from 0x0208 #define NAND_CMD_ADDR ((volatile Uint8*)0x0208) //from 0x0210 if i use the old address, the Manufacture id and device id is always 0 when read it.and the hardware told me to modify the address!but when I run the programmer by jtag,the result is: Started Nand programming Manufacture ID 2c device ID d3 find the NAND device in the table! NANDInit() Successful Enter the UBL File Name D:\dvsdk_1_30_00_40\dvsdk_1_30_00_40\PSP_01_20_00_014\bin\dm355\ublDM355-nand.bin Block number 0 is a BAD BLOCKBlock 0 is a bad block Block number 1 is a BAD BLOCKBlock 1 is a bad block Block number 2 is a BAD BLOCKBlock 2 is a bad block Block number 3 is a BAD BLOCKBlock 3 is a bad block Block number 4 is a BAD BLOCKBlock 4 is a bad block Block number 5 is a BAD BLOCKBlock 5 is a bad block Block number 6 is a BAD BLOCKBlock 6 is a bad block Block number 7 is a BAD BLOCKBlock 7 is a bad block Block number 8 is a BAD BLOCKBlock 8 is a bad block Block number 9 is a BAD BLOCKBlock 9 is a bad block Block number 10 is a BAD BLOCKBlock 10 is a bad block Block number 11 is a BAD BLOCKBlock 11 is a bad block Block number 12 is a BAD BLOCKBlock 12 is a bad block Block number 13 is a BAD BLOCKBlock 13 is a bad block Block number 14 is a BAD BLOCKBlock 14 is a bad block Block number 15 is a BAD BLOCKBlock 15 is a bad block Block number 16 is a BAD BLOCKBlock 16 is a bad block Block number 17 is a BAD BLOCKBlock 17 is a bad block Block number 18 is a BAD BLOCKBlock 18 is a bad block Block number 19 is a BAD BLOCKBlock 19 is a bad block Block number 20 is a BAD BLOCKBlock 20 is a bad block . It seemd all block is bad!! When i skip the block checking(just retu
flash_eraseall and mount a mtd ,it show 100% used,why?
dear all: I use a new nand flash,and i make 4 partions for bootloader,params,kernel,filesystem when i use a ramdisk for run the kernel success! i operated like: flase_eraseall /dev/mtd3 mount -t yaffs2 /dev/mtdblock3 /mnt dh -h # df -h FilesystemSize Used Available Use% Mounted on /dev/root 9.7M 8.0M 1.2M 87% / tmpfs 966.6M 11.9M954.7M 1% /tmp /dev/root 9.7M 8.0M 1.2M 87% /dev/.static/dev none 10.0M 2.5M 7.5M 25% /dev tmpfs55.8M 0 55.8M 0% /dev/shm none 55.8M 12.0k 55.8M 0% /var/run none966.6M 11.9M954.7M 1% /tmp /dev/mmcblk0p1 966.6M 11.9M954.7M 1% /tmp /dev/mtdblock3 1016.0M 1012.4M 3.6M 100% /mnt //puzzled 100% so i cann't load my rootfs, All files used over 10M size! 2009-02-13 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: flash_eraseall and mount a mtd ,it show 100% used,why?
dear john: thanks your help very much! My flash is manufactured by Hynix,it have 64 pages a block,and 2k size a page! I cann't use mkfs.jffs2,because my mini ramdisk not support it,I just want to use the mini ramdisk to boot linux. the /proc/yaffs is shows as: # mount -t yaffs2 /dev/mtdblock3 /mnt yaffs: dev is 32505859 name is "mtdblock3" yaffs: Attempting MTD mount on 31.3, "mtdblock3" block 989 is bad block 3446 is bad block 4029 is bad block 4030 is bad block 4031 is bad block 4032 is bad # cat /proc/yaffs YAFFS built:Feb 2 2008 23:56:53 $Id: yaffs_fs.c,v 1.33 2005/10/27 22:24:04 marty Exp $ $Id: yaffs_guts.c,v 1.22 2005/10/13 02:17:00 charles Exp $ Device 0 "filesystem1" startBlock. 0 endBlock... 4095 chunkGroupBits. 3 chunkGroupSize. 8 nErasedBlocks.. 11 nTnodesCreated. 0 nFreeTnodes 0 nObjectsCreated 100 nFreeObjects... 96 nFreeChunks 704 nPageWrites 0 nPageReads. 0 nBlockErasures. 0 nGCCopies.. 0 garbageCollections. 0 passiveGCs. 0 nRetriedWrites. 0 nRetireBlocks.. 0 eccFixed... 0 eccUnfixed. 0 tagsEccFixed... 0 tagsEccUnfixed. 0 cacheHits.. 0 nDeletedFiles.. 0 nUnlinkedFiles. 0 nBackgroudDeletions 0 useNANDECC. 1 isYaffs2... 1 is this the yaffs2 file system error?do i have to modify YAFFS_IGNORE_TAGS_ECC and make uImage ? duke zuo da-li tech in hangzhou of china 2009-02-13 发件人: Philby John 发送时间: 2009-02-13 16:52:57 收件人: zuowenping 抄送: davinci-linux-open-source 主题: Re: flash_eraseall and mount a mtd ,it show 100% used,why? zuowenping, What's the flash device you are using, its page size, spare byte usage, bus width etc? Here is what you could try. 1)Try using jffs2 and see if the problem occurs. If not then its a yaffs2 specific issue, which I suspect. 2)Type the following commands in the same order in your UBoot //wipe out bad block markers >nand scrub >nand erase clean >nand erase Please be warned. The following commands will wipe all information including Uboot, boot args location, anything else that's on the flash. If you cannot do that specify offset and size to the above commands for the mtdblock3 partition. 3)If your flash supports 2K page size and the device uses h/w ecc could be that yaffs2 marks all blocks as bad cause it cannot write 32 bytes of extended tags to the spare area, hence showing no useable space left. You could define YAFFS_IGNORE_TAGS_ECC and try mounting yaffs2 again.You could check parameters after boot up by typing >cat /proc/yaffs 4)If you are in a mood to debug your problem (assuming the trouble is with yaffs2), switch on debug using >echo all > /proc/yaffs Regards, Philby On Fri, 2009-02-13 at 15:01 +0800, zuowenping wrote: > dear all: > I use a new nand flash,and i make 4 partions for > bootloader,params,kernel,filesystem > when i use a ramdisk for run the kernel success! i operated like: > flase_eraseall /dev/mtd3 > mount -t yaffs2 /dev/mtdblock3 /mnt > dh -h > > # df -h > FilesystemSize Used Available Use% Mounted on > /dev/root 9.7M 8.0M 1.2M 87% / > tmpfs 966.6M 11.9M954.7M 1% /tmp > /dev/root 9.7M 8.0M 1.2M 87% /dev/.static/dev > none 10.0M 2.5M 7.5M 25% /dev > tmpfs55.8M 0 55.8M 0% /dev/shm > none 55.8M 12.0k 55.8M 0% /var/run > none966.6M 11.9M954.7M 1% /tmp > /dev/mmcblk0p1 966.6M 11.9M954.7M 1% /tmp > /dev/mtdblock3 1016.0M 1012.4M 3.6M 100% /mnt //puzzled 100% > so i cann't load my rootfs, All files used over 10M size! > 2009-02-13 > > __ > zuowenping > ___ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: flash_eraseall and mount a nand flash ,it show 100% used,why?
# cat /proc/yaffs YAFFS built:Feb 2 2008 23:56:53 $Id: yaffs_fs.c,v 1.33 2005/10/27 22:24:04 marty Exp $ $Id: yaffs_guts.c,v 1.22 2005/10/13 02:17:00 charles Exp $ Device 0 "filesystem1" startBlock. 0 endBlock... 4095 chunkGroupBits. 3 chunkGroupSize. 8 nErasedBlocks.. 12 nTnodesCreated. 0 nFreeTnodes 0 nObjectsCreated 100 nFreeObjects... 96 nFreeChunks 768 nPageWrites 0 nPageReads. 0 nBlockErasures. 0 nGCCopies.. 0 garbageCollections. 0 passiveGCs. 0 nRetriedWrites. 0 nRetireBlocks.. 0 eccFixed... 0 eccUnfixed. 0 tagsEccFixed... 0 tagsEccUnfixed. 0 cacheHits.. 0 nDeletedFiles.. 0 nUnlinkedFiles. 0 nBackgroudDeletions 0 useNANDECC. 1 isYaffs2... 1 I am suprised the nFreeChunks is 768,is it mean only 768 pages can be used? 2009-02-13 zuowenping 发件人: zuowenping 发送时间: 2009-02-13 14:57:29 收件人: davinci-linux-open-source 抄送: 主题: flash_eraseall and mount a mtd ,it show 100% used,why? dear all: I use a new nand flash,and i make 4 partions for bootloader,params,kernel,filesystem when i use a ramdisk for run the kernel success! i operated like: flase_eraseall /dev/mtd3 mount -t yaffs2 /dev/mtdblock3 /mnt dh -h # df -h FilesystemSize Used Available Use% Mounted on /dev/root 9.7M 8.0M 1.2M 87% / tmpfs 966.6M 11.9M954.7M 1% /tmp /dev/root 9.7M 8.0M 1.2M 87% /dev/.static/dev none 10.0M 2.5M 7.5M 25% /dev tmpfs55.8M 0 55.8M 0% /dev/shm none 55.8M 12.0k 55.8M 0% /var/run none966.6M 11.9M954.7M 1% /tmp /dev/mmcblk0p1 966.6M 11.9M954.7M 1% /tmp /dev/mtdblock3 1016.0M 1012.4M 3.6M 100% /mnt //puzzled 100% so i cann't load my rootfs, All files used over 10M size! 2009-02-13 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: RE: How to use NAND 8Gbit (K9G8G08U0A, MLC, Samsung) in DM355
I am now change a nand flash from default Micron to Hynix in custom dm355 board too,I alse meet some problem!i can boot linux,but when i use command flash_eraseall /dev/mtd3 then i mount it and find it been used 100%,I am puzzed,so i have to burn the romfs in uboot envirment by directly address,but if it have bad blocks,it cann't been success!I am puzzled! 2009-02-13 zuowenping 发件人: Jon Povey 发送时间: 2009-02-13 20:38:38 收件人: pilsun2...@hotmail.com 抄送: davinci-linux-open-source@linux.davincidsp.com 主题: RE: How to use NAND 8Gbit (K9G8G08U0A, MLC, Samsung) in DM355 Good question, I don't know the answer. I have not seen any chips with those dimensions. I think it should be bootable by DM355 RBL but you may need changes to u-boot or Linux mtd / yaffs2 to support the larger eraseblock size. Maybe someone else could comment. -- Jon Povey, Design Engineer jon.po...@racelogic.co.uk | +44(0)1280 825983 > Racelogic is a limited company registered in England. Registered number 2743719 . Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, MK18 1TB . The information contained in this electronic mail transmission is intended by Racelogic Ltd for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. The views expressed by the sender of this communication do not necessarily represent those of Racelogic Ltd. Please note that Racelogic reserves the right to monitor e-mail communications passing through its network -Original Message- > From: 장정필H [mailto:pilsun2...@hotmail.com] > Sent: 13 February 2009 12:32 > To: Jon Povey > Cc: davinci-linux-open-source@linux.davincidsp.com > Subject: RE: How to use NAND 8Gbit (K9G8G08U0A, MLC, Samsung) in DM355 > > I want to ask more. > > In your comment, > - The NAND chip must be 2KB page size, 128KB block > > 128KB block... > > Our memory is K98GG08U0A... > 1 Block = (2k+64)B x 128 pages = (256K+8K)Bytes > > Does DM355 do not support 256KB block NAND flash? > > I'm looking forward to your answer... > > Thank you. ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
can nand write.jffs2 support yaffs2 format?
dear all: I use a nand flash in dm355,the best way i can burn rootfs to flash by booting linux and mount the format yaffs2 and copy root files for avoiding bad blocks,if i am in uboot state,can i use the cmd nand write.jffs2 to burn the yaffs2 image to the address ? I have tested and it is ok,but my mtdblock3 has no bad blocks for the rootfs area,I'm not sure if it has,what will happen?it seem only support jffs2 by the name command "nand write.jffs2"! 2009-02-15 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
dm355 evm cann't use uar1
I tested uart1 output by dc3 daughter card expansion of dm355 evm,I use a oscillograph to test 19,21 pin on dc3 when i use command "echo "1" >/dev/tts/1 " on dm355 evm,but i can't grasp signals ,why? 2009-02-16 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: RE: the u-boot size
I think you have to modify nbl programmer in ccs3.3 envirment ! it just read two blogs from nand flash. #define APP_DESC_START_BLOCK_NUM 8 #define APP_DESC_END_BLOCK_NUM 9 if your nand page size is 64k,it equal 128k! and you no need to modify nandprogrammer ,because it can accept blogs from 8 to 14(checked it in source)! 2009-02-17 zuowenping 发件人: Lori Gao 发送时间: 2009-02-17 12:23:30 收件人: jitendraj...@emerson.com 抄送: davinci-linux-open-source@linux.davincidsp.com 主题: RE: the u-boot size I have read this structure before in the nandprogrammer code. Must i use the nandprogrammer in ccs to change the descriptor? Lori Gao R&D center(Shanghai) Rayco (Shanghai) Medical Products Company Limited Carestream Health Inc. 02/17/2009 12:06 PM To cc SubjectRE: the u-boot size U-Boot descriptor is located at block # 8. Its format is: /* Some of the parameters are modified runtime */ unsigned int appdesc [] = { 0xB1ACED22, //Magic number 0x000A, // Start block in NAND 0x8108, // Start address in DDR 0x8108, // Entry point 0x0200, // No. of pages for the complete Application 0x //compression flag }; You need to update descriptor as per your requirement. From: Lori Gao [mailto:song@carestreamhealth.com] Sent: Tuesday, February 17, 2009 9:29 AM To: Jain, Jitendra [PROTOOL/RTC/IN] Cc: davinci-linux-open-source@linux.davincidsp.com Subject: RE: the u-boot size Where can i find the descriptor? Would you please give me more information? Best Regards, Lori Gao R&D center(Shanghai) Rayco (Shanghai) Medical Products Company Limited Carestream Health Inc. 02/17/2009 11:18 AM To, cc SubjectRE: the u-boot size You have to increase “no of pages” in u-boot descriptor. From: davinci-linux-open-source-boun...@linux.davincidsp.com [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of Lori Gao Sent: Tuesday, February 17, 2009 8:31 AM To: davinci-linux-open-source@linux.davincidsp.com Subject: the u-boot size Dear all: Recently,i modified the u-boot of DM355. Now the size of u-boot is 129KB. When i updated the u-boot using the u-boot self, the system reported error. But if i used the old version which i modified yesterday, the size is 127KB, everything is OK. the command line: tftp 0x8070 u-boot-0217.bin(129KB) nand erase 0x14 0x3 nand write 0x8070 0x14 0x3 when i rebooted the system, the display is below: U-Boot 1.2.0 (Feb 17 2009 - 09:54:18) DRAM: 128 MB NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit) Bad block table found at page 131008, version 0x01 Bad block table found at page 130944, version 0x01 NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit) Bad block table found at page 131008, version 0x01 Bad block table found at page 130944, version 0x01 512 MiB In:serial Out: serial Err: serial ARM Clock :- 216MHz DDR Clock :- 171MHz Unknown command 'nand' - try 'help' Unknown command 'setenv' - try 'help' Unknown command 'setenv' - try 'help' Unknown command 'saveenv' - try 'help' Unknown command 'nand' - try 'help' Unknown command 'nand' - try 'help' Hit any key to stop autoboot: 0 Is there limit of u-boot size? Or any other suggest? Lori Gao R&D center(Shanghai) Rayco (Shanghai) Medical Products Company Limited Carestream Health Inc. ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
how can i use gpio 31 and 61 for input/output?
dear all: how can i use gpio 31 and 61 for input/output? i use the gpio funcions just like : #define GPIO 61 static int __init hello_init(void) { int n,ret,i; printk(KERN_ALERT "Hello, world!\n"); ret=gpio_direction_output(GPIO, 0); if (ret<0) { printk("faild gpio set!\n"); return -1; } for (i=0;i<2;i++) { gpio_set_value(GPIO, 0); udelay(500); gpio_set_value(GPIO, 1); udelay(500); } return 0; } but i cann't find the signals by oscillograph,why? 2009-02-18 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: RE: DM355 u-boot and SD filesys start
I have set just like : setenv bootargs 'mem=116M console=ttyS0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=vfat ip=off video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=pal' but i cann't boot,anyone can help me? 2009-02-18 zuowenping 发件人: Paulraj, Sandeep 发送时间: 2009-02-18 10:38:29 收件人: GarryJackson; davinci-linux-open-source@linux.davincidsp.com 抄送: 主题: RE: DM355 u-boot and SD filesys start Garry, Use this for your bootargs. setenv bootargs 'mem=116M console=ttyS0,115200n8 root=/dev/mmcblk0p1 rw initrd=0x8200,4M ip=dhcp' Thanks, Sandeep > -Original Message- > From: davinci-linux-open-source-boun...@linux.davincidsp.com > [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf > Of GarryJackson > Sent: Tuesday, February 17, 2009 8:06 PM > To: davinci-linux-open-source@linux.davincidsp.com > Subject: DM355 u-boot and SD filesys start > > Hello > > I ultimately want to do a full boot from SD (i.e. DM355->SD based uboot -> > SD > based u-image -> SD based filesys) however I can not find a great deal of > information if anybody has been successful with this. Any current news on > this ? > > Therefore my plan is to start at the high level point of booting as normal > from > NAND but using an SD based filesystem. Once this step works I will > investigate > taking uboot from nand to SD. (I have seen some of the posts on this) > > So... > > Can anybody advise if it is currently possible to set uboot arguments to > make > the kernel use the SD card for its filesys. If so any help on the settings > I > need to use would be really appreciated. > > Many thanks > > Garry Jackson > Wales UK > > > > ___ > Davinci-linux-open-source mailing list > Davinci-linux-open-source@linux.davincidsp.com > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
can anyone test mt9t001 ok in dm355?
Dear all: We used a FPGA which just like a CMOS Sensor for inputing raw datas to dm355,So I want to test device_type mt9t001 on dm355 evm to verify the driver whick capture raw data is ok. I have modify the demos encodedecode program source to support mt9t001 for test. .. /* Use either NTSC or PAL depending on display kernel parameter */ //std = V4L2_STD_PAL;//gblGetYFactor() == NTSCSTD ? V4L2_STD_NTSC : V4L2_STD_PAL; std = V4L2_STD_MT9T001_VGA_30FPS; //edit by duke 2009.2.17 if(ioctl(fd, VIDIOC_S_STD, &std) == -1) { PTRACE(LOG_ERR,"VIDIOC_S_STD failed on %s (%s)\n", V4L2_DEVICE, strerror(errno)); return FAILURE; } /* Set the video capture image format */ CLEAR(fmt); fmt.type= V4L2_BUF_TYPE_VIDEO_CAPTURE; fmt.fmt.pix.width = VGA_WIDTH; fmt.fmt.pix.height = VGA_HEIGHT; fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_SBGGR8;//V4L2_PIX_FMT_UYVY;edit by duke 2009.2.23 fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; /* Set the video capture format */ if (ioctl(fd, VIDIOC_S_FMT, &fmt) == -1) { PTRACE(LOG_ERR,"VIDIOC_S_FMT failed on %s (%s)\n", V4L2_DEVICE, strerror(errno)); return FAILURE; } . and i haved set bootargs .for example: setenv bootargs mem=116M console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=yaffs2 ip=dhcp davinci_capture.device_type=0 video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=720x576x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=$(videostd) the the programer can run ok,but it cann't capture data!! Is it hardware problem or soft problem? I thinks dm355 only suport cvbs or svideo input,so how can i input raw datas to mt9t001 for test in dm355 evm? thanks all! 2009-02-23 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
vpfe config for raw data
dear all: I am using dm355 vpfe to capture qvga(320x240) datas,My camera sensor is a customed FPGA,So I have referenced the mt9t001 source which dm355 supported about the vpfe configs for raw data,but i can't get my data correct always,It is puzzled me for a week!The regs just as: Reading 0x3 to SYNCEN... Reading 0x200 to MODESET... Reading 0x0 to HDWIDTH... Reading 0x0 to VDWIDTH... Reading 0x0 to PPLN... Reading 0x0 to LPFR... Reading 0x0 to SPH... Reading 0x13f to NPH... Reading 0x0 to SLV0... Reading 0x0 to SLV1... Reading 0xef to NLV... Reading 0x to CULH... Reading 0xff to CULV... Reading 0x14 to HSIZE... Reading 0x0 to SDOFST... Reading 0x0 to STADRH... Reading 0x0 to STADRL... Reading 0x0 to CLAMP... Reading 0x19 to DCSUB... Reading 0x4e4e to COLPTN... Reading 0x0 to BLKCMP0... Reading 0x0 to BLKCMP1... Reading 0x0 to MEDFILT... Reading 0x80 to RYEGAIN... Reading 0x80 to GRCYGAIN... Reading 0x80 to GBGGAIN... Reading 0x80 to BMGGAIN... Reading 0x0 to OFFSET... Reading 0xfff to OUTCLIP... Reading 0x95 to VDINT0... Reading 0x0 to VDINT1... Reading 0x0 to RSV0... Reading 0x8 to GAMMAWD... Reading 0x0 to REC656IF... Reading 0x8000 to CCDCFG... Reading 0x0 to FMTCFG... Reading 0x0 to FMTPLEN... Reading 0x0 to FMTSPH... Reading 0x0 to FMTLNH... Reading 0x0 to FMTSLV... Reading 0x0 to FMTLNV... Reading 0x0 to FMTRLEN... Reading 0x0 to FMTHCNT... Reading 0x0 to FMT_ADDR_PTR_B... Reading 0x0 to FMTPGM_VF0... Reading 0x0 to FMTPGM_VF1... Reading 0x0 to FMTPGM_AP0... Reading 0x0 to FMTPGM_AP1... Reading 0x0 to FMTPGM_AP2... Reading 0x0 to FMTPGM_AP3... Reading 0x0 to FMTPGM_AP4... Reading 0x0 to FMTPGM_AP5... Reading 0x0 to FMTPGM_AP6... Reading 0x0 to FMTPGM_AP7... Reading 0x0 to LSCCFG1... Reading 0x0 to LSCCFG2... Reading 0x0 to LSCH0... Reading 0x0 to LSCV0... Reading 0x0 to LSCKH... Reading 0x0 to LSCKV... Reading 0x0 to LSCMEMCTL... Reading 0x0 to LSCMEMD... Reading 0x0 to LSCMEMQ... Reading 0x0 to DFCCTL... Reading 0x0 to DFCVSAT... Reading 0x0 to DFCMEMCTL... Reading 0x0 to DFCMEM0... Reading 0x0 to DFCMEM1... Reading 0x0 to DFCMEM2... Reading 0x0 to DFCMEM3... Reading 0x0 to DFCMEM4... Reading 0x0 to CSCCTL... Reading 0x0 to CSCM0... Reading 0x0 to CSCM1... Reading 0x0 to CSCM2... Reading 0x0 to CSCM3... Reading 0x0 to CSCM4... Reading 0x0 to CSCM5... Reading 0x0 to CSCM6... Reading 0x0 to CSCM7... Reading 0x0 to DATAOFST... Does anyone can help me?thanks a lot! 2009-02-28 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
why does the screen display always green why i use UYVY_BLACK?
hi: I am developing in dm355 platform, I use the UYVY_BLACK(0x10801080 ) datas to display black video,but the video is always green,why? 2009-03-06 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
why can't the dm355 vpbe display gray colorbars?
I had tested a yuv 422 data colorbars just like as 0x0080. , 0x2080.., 0x4080.., 0x6080.., 0x8080.., 0xa880.., 0xd080.., 0xa880.., 0xf880.., it output to a ths8200 by vga format (the vpbe output rgb656), i can see only front five color bars,the back four color bars is similar the same color which i cann't distinguish them,but when i switch to display by cvbs ,it display well,why?of course if i display the color bar which been supplied by dm355 vpbe(multicolor ),it seem well! 2009-03-12 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
how can i set vpbe to output yuv422 16 bits data?
I can use vpbe to output rgb565 data to ths8200 in vga mode,It seem ok when dm355 output colorful picture,but when i display gray picture,it seems bad ,and it displays well when i output datas in cvbs mode,so i doubt that rgb565 may lose some datas, then i have to change the output format to yuv422,I have set the Digital video output mode "YCbCr parallel 16 bit" in VMOD Register of vpbe ,but it not work well,anyone can solve the problem?thanks a lot! 2009-03-17 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: Re: Problem with YAFFS2 on LargePage NAND
I have melt the same question,and i havn't resolved it yet! So i have to use ramdisk filesystem,and can not use yaffs! I have dumped the nand flash info when i flase_erasealedl the flash,it show the oob datas are not always 0xFF all.So barpque it is! 2009-03-23 zuowenping 发件人: Philby John 发送时间: 2009-03-23 15:55:08 收件人: shaofeng zhang 抄送: davinci-linux-open-source@linux.davincidsp.com 主题: Re: Problem with YAFFS2 on LargePage NAND Zhang, Please keep the mailing list in the loop, someone might have a solution or could use your solution. On Mon, 2009-03-23 at 11:18 +0800, shaofeng zhang wrote: > Dear Sir, Sorry, let me introduce myself, my name is Philby. > > I am sorry to reply your email lately. Because we were rendering our > lab's wall these days. > > And I try to define the YAFFS_IGNORE_TAGS_ECC in the > fs/yaffs2/yaffs_ecc.h > but there is still the error message: > > r...@xjtuipcevm:~# df -h > FilesystemSize Used Avail Use% Mounted on > rootfs 38G 28G 8.0G 78% / > /dev/root 38G 28G 8.0G 78% / > none 10M 2.5M 7.6M 25% /dev > tmpfs 59M 0 59M 0% /tmp > none 10M 2.5M 7.6M 25% /dev > tmpfs 59M 0 59M 0% /dev/shm > /dev/mtdblock4120M 120M 0 100% /mnt/nand > And I should tell you that before I modified > the /drivers/mtd/nand/nand_bbt.c, there is a mistake when the linux > kernel is starting: > my board can automaticly boots from the NAND flash througth TI UBL and > U-boot 1.2.0. But when starting the linux kernel, there will be the > warning messages like this: > Starting kernel ... > Uncompressing > Linux.done. > Booting the kernel. > (the pre-messages is omitted) > NAND device: Manufacturer ID: 0x20, Chip ID: 0xa1 (ST Micro NAND > 128MiB 1,8V 8-bit) > Scanning device for bad blocks > Bad eraseblock 0 at 0x > Bad eraseblock 1 at 0x0002 > Bad eraseblock 2 at 0x0004 > ... > Bad eraseblock 1020 at 0x07f8 > Bad eraseblock 1021 at 0x07fa > Bad eraseblock 1022 at 0x07fc > Bad eraseblock 1023 at 0x07fe > ... > and My Nand Flash is STMICRO's product: NAND01GR3B2B, whose > infomation is the following tips: Manufacturer ID = 0x20, Device ID > = 0xA1,Pages Per Block = 0x40,Number of Blocks = 0x400,Bytes Per Page > = 0x800. > > I now that the UBL and U-boot can boot from the NAND flash, so I > changed the nand_bbt.c(/drivers/mtd/nand/nand_bbt.c) the same as the > u-boot/drives/nand/nand_bbt.c,and the kernel mesage shows that there > are few bad blocks in the nand flash. What modifications have you done in nand_bbt.c ? After your modifications, yaffs2 reports lesser error? How few are the reported bad blocks? All NAND based flash devices contain some bad blocks at manufacture, so if its really few then it shouldn't be a cause of worry. > > So what is your advice when you are facing this problem? I guess > there may be some faults in the nand_bbt.c(driveis/mtd/nand)? Is it? I have no idea. But here are some steps you could do to narrow the cause of your problem. 1) Switch to jffs2 to see if the problem goes away. If yes, you could use jffs2 or start debugging the yaffs2 fs code. Turn on debugging using echo all > /proc/yaffs before mounting the fs. 2) Switch to using btt on RAM instead of flash and see if the problem exists? You could so this by changing to this->options |= (NAND_USE_DATA_ADJACENT_OOB); in function nand_davinci_probe() -> case NAND_ECC_HW_SYNDROME: ie: get rid of the NAND_USE_FLASH_BBT option. 3)Erase mtdblock4 partition from Uboot specifying the offset to the start of your nand fs and the size of your fs (mtdblock4) eg: nand erase 0x240 0x5e0 This will clear all your previous factory marked bbt entries, so use this at your discretion. Regards, Philby > > > 2009/3/19 Philby John > Zhang, > >You could try defining YAFFS_IGNORE_TAGS_ECC in > fs/yaffs2/yaffs_ecc.h > and give it a shot. If this works it would mean, h/w ECC uses > up the OOB > spare area leaving no space > for YAFFS2 to mark bad blocks hence showing 100% usage. > > Regards, > Philby > > > > On Wed, 2009-03-18 at 12:55 -0500, Narnakaje, Snehaprabha > wrote: > > Zhang, > > > > > > > > Which software codebase/release are you using here on DM6446 > EVM? > > > &
why can't i display pip in dm355
dear all: I want to use picture in picture function for two video displaying,I can display a video stream in device /dev/fb/3 which i referenced the demos the dvsdk supported,but when i use the device /dev/fb/1 to display another video stream, i cann't see the picture,why? The vpbe pdf tell me it can support two videos layers,two osd layers! 2009-03-31 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: why can't i display pip in dm355
the bootargs i used just as: setenv bootargs 'mem=116M console=ttyS0,115200n8 root=/dev/ram0 rw initrd=0x8200,4M ip=off video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K@:osd0=800x600x16,2025K :osd1=720x576x16,1650K davinci_enc_mngr.ch0_output=COMPONENT1 davinci_enc_mngr.ch0_mode=640x480' when i use the demo encoder and change the display device to /dev/fb/1,the same result it is! 2009-03-31 zuowenping 发件人: zuowenping 发送时间: 2009-03-31 10:08:43 收件人: davinci-linux-open-source 抄送: 主题: why can't i display pip in dm355 dear all: I want to use picture in picture function for two video displaying,I can display a video stream in device /dev/fb/3 which i referenced the demos the dvsdk supported,but when i use the device /dev/fb/1 to display another video stream, i cann't see the picture,why? The vpbe pdf tell me it can support two videos layers,two osd layers! 2009-03-31 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
how can i make the dm355 as a usb camera?
Hi: We now use the dm355 as a camera capturer device.We want to watch picture by windows explorer when i connected it to pc.It is just like a common usb camera. and it must work in slave mode.why windows know so many usb cameras?is that all usb camera uses the same format pictures?how can i implement it in linux platform?thanks! 2009-04-30 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: Some questions about MontaVista Linux
1. mvl4.0 have problem in nand flash driver,and i have met the same question too,i change to mvl5.0,the problem solved! 2."Root-NFS: Unable to get nfsd port number from server, using default" I think it is a net error, if you boot your kernel,then ping the nfs server,can it echo? if it can ,may be the nfs client have some error. 2009-05-07 zuowenping 发件人: Allred, Daniel 发送时间: 2009-05-06 22:08:40 收件人: shaofeng zhang 抄送: davinci-linux-open-source@linux.davincidsp.com 主题: RE: Some questions about MontaVista Linux Zhang, Unfortunately, I have no experience with the MVL 5.0 release and cannot offer any assistance on the matter. I’m sure there were significant changes to the kernel, drivers, etc. between the two releases, but I wouldn’t be able to tell you what could be causing the different behaviors you are seeing. I would recommend contacting MontaVista to see if they could detail the changes between the releases. Regards, Daniel Daniel Allred Application Processors & Floating Point DSP From: shaofeng zhang [mailto:ipc...@gmail.com] Sent: Tuesday, May 05, 2009 9:58 PM To: Allred, Daniel Cc: davinci-linux-open-source@linux.davincidsp.com Subject: Some questions about MontaVista Linux Hi, Daniel, I am facing some probelms when I use the MontaVista Linux on my DM6446 EVM. 1. I am use the LargePage Nand Flash (ST's NAND01GR3B2B NAND Flash ) on my DM6446 EVM, When I use the MVL4.0 kernel on my board, I found that the kernel would scan all the blocks of the whole nand flash as bad blocks. However, When I use the MVL 5.0 Kernel on my board, the kernel would find no bad blocks of the whole nand flash. So I want to know how to update the MTD drivers for the nand flash from MVL 4.0 to MVL 5.0? could you give me some advies about that situation? 2. If the above problem would not be sovled correctly, I have to change my kernel from MVL 4.0 to MVL 5.0. While I found that the MVL 5.0 kernel could not mount the NFS correctly, the kernel would halt mounting the NFS for ever, the following is the messages: === IP-Config: Complete: device=eth0, addr=192.168.0.125, mask=255.255.255.0, gw=192.168.0.1, host=XJTUIPCEVM, domain=, nis-domain=(none), bootserver=192.168.0.238, rootserver=192.168.0.238, rootpath= Looking up port of RPC 13/2 on 192.168.0.238 portmap: server 192.168.0.238 not responding, timed out Root-NFS: Unable to get nfsd port number from server, using default Looking up port of RPC 15/1 on 192.168.0.238 But When I use the MVL 4.0 kernel, I found that the kernel woud correctly mount the NFS with no errors. Between the two situations my u-boot ENV is the same configurations: bootargs=mem=120M console=ttyS0,115200n8 root=/dev/nfs noinitrd rw ip=192.168.0.125:192.168.0.238:192.168.0.1:255.255.255.0:XJTUIPCEVM nfsroot=192.168.0.238:/home/workdir/rootfs,nolock video=dm64xxfb:output=pal So I want to know whether there are some necessary differences about the kernel configurations between the MVL 4.0 and MVL 5.0 or not. Such as "make menuconfig", "u-boot env setting (bootargs, etc.)" Thand you, Hope for your reply. Zhang ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
I can't boot linux2.6.18 uImage in dm355
dear all: I used the DaVinciLSP-01_20_00_014 in the past ,now i want to use the DaVinciLSP_02_00_00_110 because i want to use the linux2.6.18 kernel, so i use toolchains mvltools5_0_0 to compile the new kernel and it produced a uImage,but when i download it to the dm355 evm,it cann't been booted: DM355 EVM # tftpboot TFTP from server 10.0.0.89; our IP address is 10.0.0.53 Filename 'uImage'. Load address: 0x8070 Loading: # # # # # ### done Bytes transferred = 1965516 (1dfdcc hex) DM355 EVM # setenv bootargs 'mem=116M console=ttyS0,115200n8 root=/dev/mtdblock3 rw rootfstype=yaffs2 ip=dhcp video=davincifb:vid0=720x576x16,2500K:vid1=720x576x16,2500K:osd0=800x600x16,2025K davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=PAL' DM355 EVM # bootm ## Booting image at 8070 ... Image Name: Linux-2.6.18_pro500-davinci_evm- Image Type: ARM Linux Kernel Image (uncompressed) Data Size:1965452 Bytes = 1.9 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. It stop here forever,it seems the kernel can't been booted,why?I used the old kernel uImage linux2.6.10 or i used the uImage-dm355 the PSP_02_00_00_110 supported,they are all ok! the arm_v5t_le-gcc i version is 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30) ,I compile the kernel image steps is: make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_defconfig make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage I have compiled too many times linux2.6.10 kernel in mv_pro_4.0.1 envirment just like up steps,they are all ok! 2009-05-13 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
sdio for dm355 problem
hi: I am using sdio stack driver in dm355, the dm355 using two sd card slots ,when i insert the first sd card,It show the device name /dev/mmcblck0,the second sd cards i inserted it show the name /dev/mmcblk1, But we often forget which sd card i first inserted or we inserted two sd cards before the kernel booted, So I want to bond the slot with device name,for example,if i insert the sd card in the front of board,it show the device name /dev/mmcblk0,then the name /dev/mmcblk1,how can i modify the sdio driver source to realize it? 2009-12-24 zuowenping ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source