Re: 8-bit planar support for Resizer
HI! Does that mean, if I am trying to pass say a color separated R or G or B frame, the driver wont be able to process that? As of now I tried doing that, by setting params.pix_fmt= RSZ_PIX_FMT_PLANAR; params.inptyp = RSZ_INTYPE_PLANAR_8BIT; The IOCTL RSZ_S_PARAM fails. I wish to scale up / down a RGB image(using DM6443 resizer) after doing a color separation. Could you please guide me towards a way to achieve that? regards -Nitin - Original Message From: Jadav, Brijesh R brijes...@ti.com To: Vladimir Pantelic p...@nt.tu-darmstadt.de; davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Cc: davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Sent: Friday, July 31, 2009 17:50:42 Subject: RE: 8-bit planar support for Resizer Hi, Driver supports planar Resizer but no in the RGB format. Resizer supports planar YUV422 scaling. Thanks, Brijesh Jadav -Original Message- From: davinci-linux-open-source-boun...@linux.davincidsp.com [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of Vladimir Pantelic Sent: Friday, July 31, 2009 5:44 PM To: davinci-linux-open-source@linux.davincidsp.com Cc: davinci-linux-open-source@linux.davincidsp.com Subject: Re: 8-bit planar support for Resizer Nitin Mahajan wrote: HI! Does the Davinci Resizer driver supports, RGB 8-bit color separated input data? don't know about the driver, but the resizer HW does support 8 bit resize, so a 3-pass will resize separated components... ___ 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 Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Resizer in DMAI
HI! Does the DMAI support, 8-bit Planar ColorSpace for the color separated 8-bit data? I did not see this in the Macro, ColorSpace_Type. regards -Nitin New Email addresses available on Yahoo! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
i2c controller timed out\n not able to recover
HI! I have a DM6443 based board and a chip similar to the MSP430 on the development board communicating over i2c. I am getting the error controller timed out\n, while trying to send some command over i2c and reading some data over it. Can some one please help me understand what can be the cause of such timeout? Also a reinitialization which is triggered after such an error doesn't seem to be happening properly. After this error I keep getting the errors timeout waiting for bus ready\n from the function i2c_davinci_xfer() if any data transfer is attempted. Can somebody help me understanding why is it so? regards -Nitin New Email names for you! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: [PATCH/RFC 1/1] recover from davinci i2c time out conditions
Hello, - Original Message From: Philby John pj...@in.mvista.com To: linux-...@vger.kernel.org Cc: kh...@linux-fr.org; davinci-linux-open-source@linux.davincidsp.com Sent: Wednesday, July 15, 2009 13:04:27 Subject: [PATCH/RFC 1/1] recover from davinci i2c time out conditions From dbe7e824d576636bb15b82a20fd2557fddc9a8f7 Mon Sep 17 00:00:00 2001 From: Philby John Date: Tue, 14 Jul 2009 21:46:47 +0530 Subject: [PATCH] Reset i2c bus to come out of time out conditions Get out of i2c time out condition by resetting the i2c bus. The kernel must be robust enough to gracefully recover from i2c bus failure without having to reset the machine. This is done by first NACKing the slave and then resetting the i2c bus after a certain timeout. Signed-off-by: Philby John I tried this on DM6443 based board with 2.6.18 kernel. The result I am posting below. It gives controller time out again and again. dhcppc9 login: i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery i2c_davinci i2c_davinci.1: controller timed out i2c_davinci i2c_davinci.1: initiating i2c bus recovery regards -Nitin --- drivers/i2c/busses/i2c-davinci.c | 98 +++-- 1 files changed, 92 insertions(+), 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c index 17f2ee7..4ed1a4c 100755 --- a/drivers/i2c/busses/i2c-davinci.c +++ b/drivers/i2c/busses/i2c-davinci.c @@ -35,14 +35,18 @@ #include #include #include +#include #include #include +#include +#include /* - global defines --- */ #define DAVINCI_I2C_TIMEOUT(1*HZ) +#define DAVINCI_I2C_MAX_TRIES2 #define I2C_DAVINCI_INTR_ALL(DAVINCI_I2C_IMR_AAS | \ DAVINCI_I2C_IMR_SCD | \ DAVINCI_I2C_IMR_ARDY | \ @@ -135,6 +139,50 @@ static inline u16 davinci_i2c_read_reg(struct davinci_i2c_dev *i2c_dev, int reg) } /* + * Configure the i2c data pin as a GPIO input and the i2c clock pin as a + * high GPIO output. + */ +static void disable_i2c_pins(void) +{ +unsigned long flags; + +local_irq_save(flags); +if (cpu_is_davinci_dm355()) { +gpio_direction_input(15); +gpio_direction_output(14, 0); +gpio_set_value(14, 1); +davinci_cfg_reg(DM355_I2C_SDA); +davinci_cfg_reg(DM355_I2C_SCL); +} +local_irq_restore(flags); +} + +/* Connect the i2c pins to the i2c controller. */ +static void enable_i2c_pins(void) +{ +unsigned long flags; + +local_irq_save(flags); +if (cpu_is_davinci_dm355()) { +davinci_cfg_reg(DM355_I2C_SDA); +davinci_cfg_reg(DM355_I2C_SCL); +} +local_irq_restore(flags); +} + + +/* Generate a pulse on the i2c clock pin. */ +static void pulse_i2c_clock(void) +{ +if (cpu_is_davinci_dm355()) { +gpio_set_value(14, 0); +udelay(20); +gpio_set_value(14, 1); +udelay(20); +} +} + +/* * This functions configures I2C and brings I2C out of reset. * This function is called during I2C init function. This function * also gets called if I2C encounters any errors. @@ -221,14 +269,36 @@ static int i2c_davinci_wait_bus_not_busy(struct davinci_i2c_dev *dev, char allow_sleep) { unsigned long timeout; +u16 i; +static u16 to_cnt = 0; +u32 flag = 0; timeout = jiffies + dev-adapter.timeout; while (davinci_i2c_read_reg(dev, DAVINCI_I2C_STR_REG) -DAVINCI_I2C_STR_BB) { -if (time_after(jiffies, timeout)) { -dev_warn(dev-dev, - timeout waiting for bus ready\n); -return -ETIMEDOUT; + DAVINCI_I2C_STR_BB) { + +if (to_cnt = DAVINCI_I2C_MAX_TRIES) { +if (time_after(jiffies, timeout)) { +dev_warn(dev-dev, +timeout waiting for bus ready\n); +to_cnt++; +
DM6443 Cursor Window practical use case
Hi, From the VPBE user's guide I understand that the Cursor window can display only a rectangular cursor which is transparent within. I cannot display a Bitmap cursor. Is this understanding of mine correct? Can some one explain me what can be a practical use case for the rectangular cursor being displayed in in the Cursor window? I read the example in VPBE user's guide, still in that case also whats the practical use case for a Bitmap cursor displayed on OSD and surrounded with rectangular cursor boundary? Thanks and regards -Nitin Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
MPEG-4 Video decoding through ti gstreamer plugins
Hello, I wanted to check whether the latest ti-gst plugins(from omap-zoom) support decoding of MPEG-4 video? I have a .mp4 file with MPEG-4 video and MPEG-4 AAC audio, when I play through the plugins only Audio plays. Here is the pipeline gst-launch --gst-debug-no-color filesrc location=/demo/dsc.mp4 ! typefind ! qtdemux name=demux demux.audio_00 ! queue max-size-buffers=8000 max-size-time=0 max-size-bytes=0 ! typefind ! TIAuddec ! alsasink sync=1 demux.video_00 ! queue ! typefind ! TIViddec! TIDmaiVideoSink displayStd=fbdev displayDevice=/dev/fb/3 videoStd=D1_NTSC videoOutput=COMPOSITE resizer=FALSE accelFrameCopy=FALSE regards -Nitin New Email names for you! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: DMAI Based GStreamer Audio Video Synchronisation?
HI! --- On Sat, 28/2/09, Singh, Brijesh bksi...@ti.com wrote: From: Singh, Brijesh bksi...@ti.com Subject: RE: DMAI Based GStreamer Audio Video Synchronisation? To: nitin...@yahoo.com nitin...@yahoo.com, davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Date: Saturday, 28 February, 2009, 10:37 PM Hello, 1) Ah, then you are using v4l source. Well you need to browse v4l plugin and patch accordingly. Check my wiki page on how i got my webcam working http://wiki.davincidsp.com/index.php?title=USB_Webcam on DM6446. This will give you some starting point then patch v4l source (if needed). 2) Not sure why you are using UI on vid window. You should be using fb0 for UI, which support RGB565 or RGB888. You can control the attribute of video and graphics window (like transperancy etc) with fb1. Check the DVSDK demo source, which uses both graphics and video windows and controls the transparency via fb1. If there are some imgaes in the GUI, they would not come properly on OSD windows, since it can at the most take RGB565 (dm6443). The same images would come very nice, when rendered in RGB88 mode on VIDWIN0. Do you have any comments or suggessions in this regard. regards -Nitin Thanks -Brijesh Singh From: Nitin Mahajan [nitin...@yahoo.com] Sent: Saturday, February 28, 2009 2:58 AM To: davinci-linux-open-source@linux.davincidsp.com; Singh, Brijesh Subject: RE: DMAI Based GStreamer Audio Video Synchronisation? HI! Thanks again for your inputs. --- On Wed, 25/2/09, Singh, Brijesh bksi...@ti.com wrote: From: Singh, Brijesh bksi...@ti.com Subject: RE: DMAI Based GStreamer Audio Video Synchronisation? To: nitin...@yahoo.com nitin...@yahoo.com, davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Date: Wednesday, 25 February, 2009, 9:55 PM Nitin - 1) In normal mode of operation, the most AV sync part is handled by the demuxer. Decoder element normally gets the buffer from demuxer then decodes it and adds timestamp and push to display sink. You will see AV sync from decoder only when the decoder thread is not able to process fast enough to keep-up with demuxer. I would suggest you to enable displayBuffer=TRUE property in decoder elements which will print you the read/write pointer location in circular buffer and will give u some clue. In addition to that, I would suggest modifying the number of maximum buffer queued in queue element after the demuxer. See decode_qt.sh for sample examples. 2) I think video encoder is almost 70% done, during development I tried testing all dvsdk's but will wait for validating result before concluding completed. You can find pretty much the same wording on omapzoom webstie, where the encoder is shown as untested. Now coming back to your problem. * You are trying to capture - encode - decode - display. By default this mode of operation will not work because you can not load two combo's at the same time. By default encoder uses encodeCombo and decoder uses decodeCombo. To solve this problem you need to use loopbackCombo which has both video encoder and decoder. To use loopback combo you need to modify gstreamer codec cfg file. Look at the plug-in source code. * But if I look at your log then you are hitting v4l2src issue. There was some driver bugs (or limitation) and I have patched v4l2src with those workaround. Looks like you are using sensor not the composite (or component) input. We are testing gst with normal EVM bundle which has composite input. If you are using sensor then u may need to modify v4l2src element to work with your sensor driver. Before jumping on v4l2src element, I would suggest using videotestsrc element for testing video encoder. See encode_elementry.sh script. E.g run ./encode_elementry.sh -l -v -o sample.264 This works for us for videotestsrc, but not of a USB video cam. I have one more query. I am displaying the application UI on VIDWIN0 and want to display the video frames on VINWIN1. I want to keep the VINWIN1 disabled/not visible in the beginning, visible with size same as video size during playback and disabled again after playback. What would be the cleanest way to do it when I am using DMAI, in gstreamer plugins. Thanks and regards -Nitin Hello Brijech, Thanks for your inputs, --- On Wed, 25/2/09, Singh, Brijesh bksi...@ti.com wrote: From: Singh, Brijesh bksi...@ti.com Subject: RE: DMAI Based GStreamer Audio Video Synchronisation? To: Vladimir Pantelic p...@nt.tu-darmstadt.de, davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Cc: davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com
Dmai + Transparency
HI! I just wanted to check , whether there are any APIs in DMAI, which would help control the transparency between OSD0 and video windows? regards -Nitin Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: DMAI Based GStreamer Audio Video Synchronisation?
HI! Thanks again for your inputs. --- On Wed, 25/2/09, Singh, Brijesh bksi...@ti.com wrote: From: Singh, Brijesh bksi...@ti.com Subject: RE: DMAI Based GStreamer Audio Video Synchronisation? To: nitin...@yahoo.com nitin...@yahoo.com, davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Date: Wednesday, 25 February, 2009, 9:55 PM Nitin - 1) In normal mode of operation, the most AV sync part is handled by the demuxer. Decoder element normally gets the buffer from demuxer then decodes it and adds timestamp and push to display sink. You will see AV sync from decoder only when the decoder thread is not able to process fast enough to keep-up with demuxer. I would suggest you to enable displayBuffer=TRUE property in decoder elements which will print you the read/write pointer location in circular buffer and will give u some clue. In addition to that, I would suggest modifying the number of maximum buffer queued in queue element after the demuxer. See decode_qt.sh for sample examples. 2) I think video encoder is almost 70% done, during development I tried testing all dvsdk's but will wait for validating result before concluding completed. You can find pretty much the same wording on omapzoom webstie, where the encoder is shown as untested. Now coming back to your problem. * You are trying to capture - encode - decode - display. By default this mode of operation will not work because you can not load two combo's at the same time. By default encoder uses encodeCombo and decoder uses decodeCombo. To solve this problem you need to use loopbackCombo which has both video encoder and decoder. To use loopback combo you need to modify gstreamer codec cfg file. Look at the plug-in source code. * But if I look at your log then you are hitting v4l2src issue. There was some driver bugs (or limitation) and I have patched v4l2src with those workaround. Looks like you are using sensor not the composite (or component) input. We are testing gst with normal EVM bundle which has composite input. If you are using sensor then u may need to modify v4l2src element to work with your sensor driver. Before jumping on v4l2src element, I would suggest using videotestsrc element for testing video encoder. See encode_elementry.sh script. E.g run ./encode_elementry.sh -l -v -o sample.264 This works for us for videotestsrc, but not of a USB video cam. I have one more query. I am displaying the application UI on VIDWIN0 and want to display the video frames on VINWIN1. I want to keep the VINWIN1 disabled/not visible in the beginning, visible with size same as video size during playback and disabled again after playback. What would be the cleanest way to do it when I am using DMAI, in gstreamer plugins. Thanks and regards -Nitin Hello Brijech, Thanks for your inputs, --- On Wed, 25/2/09, Singh, Brijesh bksi...@ti.com wrote: From: Singh, Brijesh bksi...@ti.com Subject: RE: DMAI Based GStreamer Audio Video Synchronisation? To: Vladimir Pantelic p...@nt.tu-darmstadt.de, davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Cc: davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Date: Wednesday, 25 February, 2009, 1:22 AM Hello, To test AV sync you need to use clip which has lot of talking (e.g news channels podcast). I personally use animated clips for video quality test (e.g up-scale/down-scale etc) not for AV sync. Use some podcast from here http://geekbriefwp.podshow.com/feed/ or try youtube video's. In addition check the tracker bug items for known bugs. I was able to play this file with proper A-V sync using the older TI gstreamer pugins, so I thought there is some issue with the sync. Also on desktop with same version of Gstreamer I am able to play with sync. In this particular case the video is being played very fast and audio is not able to catch up with the DMAI based plugins. I filed the same as bug on OMAP-Zoom, but thought if I could get some quick pointers to this issue, it would be helpful. I have one more query with respect to the video encoder in Dmai based plugins. Two experiments are done with TiVidenc and there results are also provided below. Both are failing with same error.This was from latest revision r121. Please let us know if there is something wrong in our command... Experiemnt 1 ] gst-launch-0.10 v4lsrc ! video/x-raw-yuv,width=352,height=288,framerate=25/1 ! TIVidenc ! TIViddec ! TIDmaiVideoSink displayStd=fbdev displayDevice=/dev/fb/3 videoStd=D1_NTSC videoOutput=COMPOSITE resizer=TRUE accelFrameCopy=TRUE Output: Setting pipeline to PAUSED ... /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_set_light_freq:1932] Sensor currently not support light frequency banding filters.
RE: DMAI Based GStreamer Audio Video Synchronisation?
Hello Brijech, Thanks for your inputs, --- On Wed, 25/2/09, Singh, Brijesh bksi...@ti.com wrote: From: Singh, Brijesh bksi...@ti.com Subject: RE: DMAI Based GStreamer Audio Video Synchronisation? To: Vladimir Pantelic p...@nt.tu-darmstadt.de, davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Cc: davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Date: Wednesday, 25 February, 2009, 1:22 AM Hello, To test AV sync you need to use clip which has lot of talking (e.g news channels podcast). I personally use animated clips for video quality test (e.g up-scale/down-scale etc) not for AV sync. Use some podcast from here http://geekbriefwp.podshow.com/feed/ or try youtube video's. In addition check the tracker bug items for known bugs. I was able to play this file with proper A-V sync using the older TI gstreamer pugins, so I thought there is some issue with the sync. Also on desktop with same version of Gstreamer I am able to play with sync. In this particular case the video is being played very fast and audio is not able to catch up with the DMAI based plugins. I filed the same as bug on OMAP-Zoom, but thought if I could get some quick pointers to this issue, it would be helpful. I have one more query with respect to the video encoder in Dmai based plugins. Two experiments are done with TiVidenc and there results are also provided below. Both are failing with same error.This was from latest revision r121. Please let us know if there is something wrong in our command... Experiemnt 1 ] gst-launch-0.10 v4lsrc ! video/x-raw-yuv,width=352,height=288,framerate=25/1 ! TIVidenc ! TIViddec ! TIDmaiVideoSink displayStd=fbdev displayDevice=/dev/fb/3 videoStd=D1_NTSC videoOutput=COMPOSITE resizer=TRUE accelFrameCopy=TRUE Output: Setting pipeline to PAUSED ... /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_set_light_freq:1932] Sensor currently not support light frequency banding filters. /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 7 /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_do_ioctl:2124] Bridge ZC301-2 /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_do_ioctl:2124] Bridge ZC301-2 /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (7) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (9) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (14) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (13) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (16) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (11) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (6) ERROR: Pipeline doesn't want to pause. ERROR: from element /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0: Could not negotiate format Additional debug info: gstbasesrc.c(2426): gst_base_src_start (): /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0: Check your filtered caps, if any Setting pipeline to NULL ... FREEING pipeline ... Experiemnt 2 ] ./encode_elementry.sh -l -s v4lsrc -o purush -v Output : /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_set_light_freq:1932] Sensor currently not support light frequency banding filters. /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 7 /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_do_ioctl:2124] Bridge ZC301-2 /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_do_ioctl:2124] Bridge ZC301-2 gst-inspect TIVidenc *** Pipeline Settings * platform = dm6446 source = v4lsrc source_args= num-buffers=1000 encoder_plugin = TIVidenc encoder_plugin_args= codecName=h264enc engineName=encode contiguousInputFrame=FALSE gst-launch --gst-debug-no-color --gst-debug=TI*:2 v4lsrc num-buffers=1000 ! TIVidenc codecName=h264enc engineName=encode contiguousInputFrame=FALSE ! filesink location=purush /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_set_light_freq:1932] Sensor currently not support light frequency banding filters. Setting pipeline/mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [gspca_set_isoc_ep:945] ISO EndPoint found 0x81 AlternateSet 7 to PAUSED ... /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_do_ioctl:2124] Bridge ZC301-2 /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: [spca5xx_do_ioctl:2124] Bridge ZC301-2 /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (7) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (9) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c: VIDIOCMCAPTURE: invalid format (14) /mnt/mvl/sources/gspcav1-20071224/gspca_core.c:
DMAI Based GStreamer Audio Video Synchronisation?
Hello ! I am running the DMAI based gstreamer plugins r110. When I play the following file, http://www.disney.co.uk/junglebook/podcast/TrustInMe_iPod.mp4 The Audio Video synchronization is missing. Can someone give me some pointers on which areas of code to lookin, since I am not very familiar with audio video synchronization and playback mechanisms in general. thanks in advance regards -Nitin Mahajan --- On Mon, 23/2/09, Diego Dompe diego.do...@ridgerun.com wrote: From: Diego Dompe diego.do...@ridgerun.com Subject: Re: How to run DMAI Based GStreamer ? To: zhenfeng ren 1985re...@gmail.com Cc: davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Date: Monday, 23 February, 2009, 12:37 AM Hi, Gstreamer is compiled successfully except plugin mad(libid3tag.so.0 cannot find one symbol). I try many avi files, and I failed all. The video and audio files in DVEVM 1.10 cannot be played ,too. What pipelines are you trying? Without that information is hard to tell what is going wrong Can anyone give me an example how to use this gstreamer ? Or is there a commom video files used for testing? If you installed the system properly, there should be a directory with example scripts in /opt/gstreamer... Diego Dompe RidgeRun Engineering ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source New Email addresses available on Yahoo! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Readonly NAND flash
HI! I am using the LSP 2.00 Beta, i. e 2.6.18 kernel. If I place the rootfs on NAND flash, how can I make it Read Only? I know one way is through the 'bootargs', Isn't there a way through kernel configuration? regards -Nitin New Email names for you! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: u boot and framebuffer interface
HI! ___ From: Deepak Mundra deepa...@allaboutif.com To: davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Sent: Tuesday, February 3, 2009 19:11:30 Subject: u boot and framebuffer interface Dear All, How can i open frame buffer in u-boot and display a white screen(or bmp image).. What i want is ,After switching on board when u-boot executes i want to display something on screen ie before executing the kernel.. If some one has done this before please guide me through.. Check if this is what you are looking for? http://www.denx.de/wiki/view/DULG/UBootSplashScreen regards -Nitin Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: starting DSP server './decodeCombo.x64P' FAILED
HI! Thanks for the inputs.Bringing the fix from 1.60 to 1.50 worked for us. Is there a list of constraints or bugs related to all these software modules including kernel drivers, maintained/published against their version numbers? I could not get the significance of the number SDOCM00036048, mentioned in your earlier mail. Is it some bug ID or task ID? regards -Nitin - Original Message From: Kamoolkar, Mugdha mug...@ti.com To: Yusuf Caglar AKYUZ caglarak...@gmail.com; Nitin Mahajan nitin...@yahoo.com Cc: davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Sent: Wednesday, January 7, 2009 10:55:42 Subject: RE: starting DSP server './decodeCombo.x64P' FAILED DSPLink 1.60 (available here: https://www-a.ti.com/downloads/sds_support/targetcontent/link/index.html) fixes this defect: SDOCM00036048: DSP executable load fails when a yaffs2 file system is used Description: If any Linux file system does not implement some operations as members of file_operations structure, Linux uses a default implementation. DSPLink Linux kfile.c does not support this. The fix is in file kfile.c, if you only want to merge this particular fix instead of moving to 1.60. Regards, Mugdha -Original Message- From: davinci-linux-open-source-boun...@linux.davincidsp.com [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of Yusuf Caglar AKYUZ Sent: Tuesday, January 06, 2009 8:28 PM To: Nitin Mahajan Cc: davinci-linux-open-source@linux.davincidsp.com Subject: Re: starting DSP server './decodeCombo.x64P' FAILED -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nitin Mahajan wrote: Thanks, I googled out this post in the mean time and went thru it. I have one question in general, whether all your DSP related software works well with the recent git kernel maintained by Montavista? I tested dsplink, codec engine, cmem and some codecs. However I haven't verified nand flash system yet. Regards, Caglar -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkljcZQACgkQ/nL+S5dojehV1ACguTxpPj5gaPHz2Qpqn/db3qBo oOsAn2Iab/N/j/O36JSytxvifQlVMqKE =BqbK -END PGP SIGNATURE- ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: GStreamer, fbvidesink and GIT Kernel
HI! - Original Message From: Yusuf Caglar AKYUZ caglarak...@gmail.com To: davinci-linux-open-sou...@linux. davinci-linux-open-source@linux.davincidsp.com Sent: Wednesday, January 7, 2009 22:22:07 Subject: Re: GStreamer, fbvidesink and GIT Kernel -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yusuf Caglar AKYUZ wrote: Hi all, My problem is very specific to gstreamer ti plugins' code. I hope someone is still maintaining those codes and following this list. I'm trying to get started with gstreamer on git kernel 2.6.27-rc6. I'm trying to get ti-plugins working with this release, especially fbvideosink. I ported latest fb driver code from montavista kernel so I expect fbvideosink to work as it is with MV kernel. My problem is screen depth, width and height are 0 in gst_fbvideosink_setcaps function. From the debug outputs I see that gst_fbvideosink_fbimage_new function is never called and it is the only place that those variables are set. So pipeline in [1] is not working. However in [2] is working as expected and I see the video on the screen. I know nothing about gstreamer and trying to find the source of error. Any help,light,clue would be very helpful. I forgot to write write my pipelines, adding now. Sorry for the noise. [1] gst-launch videotestsrc ! video/x-raw-rgb ! fbvideosink device=/dev/fb0 [2] gst-launch videotestsrc ! video/x-raw-rgb ! fbdevsink device=/dev/fb0 Please go through this link, if you want to visualize your pipeline. http://lovebug356.blogspot.com/2007/12/dot-graph-from-gstreamer-pipeline.html regards -Nitin Thanks, Caglar -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAklk3bcACgkQ/nL+S5dojegCVgCeN7NCBoqTqn7Qfrm+VHygsvn8 U00An0niqb+40zvxA/KZbHiVTvlU5Czg =3nU4 -END PGP SIGNATURE- ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
starting DSP server './decodeCombo.x64P' FAILED
HI! I have some queries related to the DSP server, when it is present in NAND flash file system YAFFS2. When I try to play some media files through gstreamer, when the rootfs is in NAND flash file system YAFFS2, I get the following errors starting DSP server './decodeCombo.x64P' FAILED, status=[0x80008009] (look for error code 'DSP_EBASE + 0x9' in dsplink*/packages/dsplink/gpp/inc/errbase.h) Looking at the file dsplink*/packages/dsplink/gpp/inc/errbase.h, i found the following the error description. /* The specified executable file could not be found. */ #define DSP_EFILE (DSP_EBASE + 0x9l) When I play the media files through TI demo applications, I get the same error with YAFFS2. However when I play these media files through gstreamer or TI demo applications on NFS or ext2, ext3 file systems, they play properly. The path of ./decodeCombo.x64P remained same in rootfs, in both the cases, that is on YAFFS2 and NFS. Is there a problem with the DSP server, when it is present in NAND flash file system YAFFS2? If yes, is there any workaround for this? regards -Nitin Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: starting DSP server './decodeCombo.x64P' FAILED
HI! - Original Message From: Yusuf Caglar AKYUZ caglarak...@gmail.com To: Nitin Mahajan nitin...@yahoo.com Cc: davinci-linux-open-source@linux.davincidsp.com Sent: Tuesday, January 6, 2009 18:49:26 Subject: Re: starting DSP server './decodeCombo.x64P' FAILED -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nitin Mahajan wrote: HI! I have some queries related to the DSP server, when it is present in NAND flash file system YAFFS2. Hi, What is the source of YAFFS2 image and which kernel version are you using? I am using 2.6.18 kernel and the YAFFS2 roofs image I created using help on this wiki link http://wiki.davincidsp.com/index.php?title=Create_a_JFFS2_Target_Image. I am using the dsplink version 1.50, I created the basic rootfs from ramdisk image and copied the DSP related binaries to this rootfs. Everyting works fine untill I am on NFS or ext2. Once the same rootfs is brought to YAFFS2, I get the problem. regards -Nitin Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: starting DSP server './decodeCombo.x64P' FAILED
HI! - Original Message From: Yusuf Caglar AKYUZ caglarak...@gmail.com To: Nitin Mahajan nitin...@yahoo.com Cc: davinci-linux-open-source@linux.davincidsp.com Sent: Tuesday, January 6, 2009 19:35:28 Subject: Re: starting DSP server './decodeCombo.x64P' FAILED -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nitin Mahajan wrote: HI! - Original Message From: Yusuf Caglar AKYUZ To: Nitin Mahajan Cc: davinci-linux-open-source@linux.davincidsp.com Sent: Tuesday, January 6, 2009 18:49:26 Subject: Re: starting DSP server './decodeCombo.x64P' FAILED -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nitin Mahajan wrote: HI! I have some queries related to the DSP server, when it is present in NAND flash file system YAFFS2. Hi, What is the source of YAFFS2 image and which kernel version are you using? I am using 2.6.18 kernel and the YAFFS2 roofs image I created using help on this wiki link http://wiki.davincidsp.com/index.php?title=Create_a_JFFS2_Target_Image. I am using the dsplink version 1.50, I created the basic rootfs from ramdisk image and copied the DSP related binaries to this rootfs. Everyting works fine untill I am on NFS or ext2. Once the same rootfs is brought to YAFFS2, I get the problem. So your NFS and YAFFS2 images from the same source. Then I can not help. I hit the same problem while I was trying 1.30 with GIT kernel. The result came out to be EABI/OABI related. However, 1.30 is not compatiple with newer kernels but 1.50 is. I guess your problem is something different. Still could you please give some some more info on your problem? May be I can get some pointers from it. regards -Nitin regards, Caglar -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkljZSgACgkQ/nL+S5dojei0vgCfSSYCGaipxwf/TdoushWzfIR5 Z5kAn0+QP3URZKRChvR/p6l7DbIhOXFG =IiQk -END PGP SIGNATURE- Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: starting DSP server './decodeCombo.x64P' FAILED
HI! - Original Message From: Yusuf Caglar AKYUZ caglarak...@gmail.com To: Jérôme HUET jerome.h...@innes.fr Cc: Nitin Mahajan nitin...@yahoo.com; davinci-linux-open-source@linux.davincidsp.com Sent: Tuesday, January 6, 2009 20:07:15 Subject: Re: starting DSP server './decodeCombo.x64P' FAILED -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jérôme HUET wrote: Hello, I have the same problem when I want to use dsplink 1.40 with the latest kernel from the git repository. How did you manage to avoid this error? Did you follow the remarks at post [1] and related mails? Other than those I did nothing special. I can not help you more, but I can send you my dsplink 1.30 or 1.50 sources against 2.6.27-rc6. Or better, I can send you my openembedded recipes. [1] http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg04395.html Thanks, I googled out this post in the mean time and went thru it. I have one question in general, whether all your DSP related software works well with the recent git kernel maintained by Montavista? regards -Nitin Regards, Caglar -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkljbJsACgkQ/nL+S5dojej2CgCgmrhraMhs38igE7DGPxC/y/oX V58AnR9Cug6Hir5vM8+Yad474Q0QRDxS =C4pn -END PGP SIGNATURE- Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
VIDWIN0 display is destorted when VIDWIN1 is overlayed
Hello ! I am working with a dm6443 based board. I am using the VIDWIN0 as a canvas and displaying a picture in this window. I am using VIDWIN1 as overlay window and displaying another video in this window in a comparatively smaller size than that of the VIDWIN0. With such use case, when ever I start displaying the frames on VIDWIN1 the display of VIDWIN0 gets distorted. I can also see that the distortion happens in horizontal direction and the height of distorted portion is same as height of the VIDWIN1. The distortion on VIDWIN0 happens alongside the VIDWIN1. The boot time configuration of both windows is as below configuration 1 of VIDWIN0- vid0=720x480x24,[EMAIL PROTECTED],0: rendering happening in RGB888 format. configuration 1 of VIDWIN1- [EMAIL PROTECTED],0: rendering happening in YUV format from gstfbvideosink. configuration 2 of VIDWIN1- [EMAIL PROTECTED],100: rendering happening in YUV format from gstfbvideosink. Can some one help me identify, why such distortion might be happening? I also checked the errata, but the conditions mentioned there are not applicable here for my experiments. Thanks in advance regards -Nitin Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
DMA and Video Processing Backend
HI! I read in the document for Video Processing Backend, that there is a set of common buffer memory and DMA controls to ensure efficient use of the DDR2 burst bandwidth ALSO the shared buffer logic/memory interfaces with the DMA system via a high-bandwidth bus. I also saw in the demo application display.c file that the function Rszcopy_execute() is used to copy the frame to framebuffer. I would like to clearly understand that how the VPBE can make use of DMA functionality? Is it the resizer which would take care of this ? Does the resizer internally uses one of the EDMA channels? What does it mean by the statement The DM644x VPBE module is a DMA master ? Can some one help me clarify my concepts? regards -Nitin New Email addresses available on Yahoo! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: EVM 6467 board doesnot bootup
HI! - Original Message From: Phil Quiney [EMAIL PROTECTED] To: Viral Sachde [EMAIL PROTECTED]; Ramesh [EMAIL PROTECTED] Cc: davinci-linux-open-source@linux.davincidsp.com Sent: Monday, September 29, 2008 13:26:22 Subject: RE: EVM 6467 board doesnot bootup Hi, Your u-boot parameters are truly broken. You have a 'setenv=bootcmd nboot 8070 0 a' which is nonsense. I think that should have been bootcmd=nboot 8070 0 a The reason it does not boot is because you have set 'bootcmd=bootm' As there is nothing in memory you get the bad magic number. If you set the bootcmd to nboot 8070 0 a, I think it should at least try to boot. You then need to sort out the bootargs, as previously posted 'nfsroot=10.65M' is not right, it should be an IP address path to the NFS root filesystem on your server. I guess this is either a cut'n'paste issue, or perhaps the terminal emulator is not wrapping long lines. Also you cannot put u-boot variables into the bootargs variable, they do not get expanded and the kernel will not know how to handle $(nfsroot) and $(rootpath). There is a 'trick' to do this that has been used on the DM6446. bootcmd=setenv setboot setenv bootargs $(bootargs) video=dm64xxfb:output=$(videostd):format=component davinci-vpfe.device_type=1;run setboot;bootm 0x220 All this did was allow the $(videostd) variable to be picked up at boot time - the 'run setboot' was the trick that caused bootargs to be reset with the expanded variables. I was going through this valuable trick , and was interested in getting the ethaddr env variable expanded so that I can get the MAC address in the driver. I tried doing this after looking at the above example, just to check if the ethaddr gets expanded 1. set bootcmd setenv setboot setenv bootargs console=ttyS0,115200n8 ro noinitrd rw ip=dhcp eth=$(ethaddr) mem=100M;run setboot ## Error: setboot not defined Can you please tell me, what went wrong here or what would be the correct way to achieve this? regards -Nitin Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Viral Sachde Sent: 29 September 2008 07:14 To: Ramesh Cc: davinci-linux-open-source@linux.davincidsp.com Subject: Re: EVM 6467 board doesnot bootup 2008/9/29 Ramesh [EMAIL PROTECTED] Hi , After I tried to run one demo code on DM6467, I am not able to boot up the DM6467. ### DM6467 EVM # printenv bootdelay=3 baudrate=115200 ipaddr=192.168.1.201 setenv=bootcmd nboot 8070 0 a serverip=10.65.103.160 bootfile=uImage nfshost=10.65.102.67 rootpath=/home/Ramesh/workdir6467/filesys bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.65Mstdin=serial stdout=serial stderr=serial ethaddr=00:0e:99:02:b3:47 bootcmd=bootm DM6467 EVM # boot ## Booting image at 8070 ... Bad Magic Number DM6467 EVM # INTERRUPT ## Board envirmental setup is setenv nfshost 10.65.103.160 setenv rootpath /home/Ramesh/workdir6467/filesys setenv bootargs console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=$(nfshost):$(rootpath), nolock mem=120M# Please give me some idea to recover the board. Thanks Ramesh. Check you bootargs, nfsroot parameter does not look correct. nfsroot=10.65Mstdin=serial rgrds Viral ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: EVM 6467 board doesnot bootup
HI! - Original Message From: Phil Quiney [EMAIL PROTECTED] To: Nitin Mahajan [EMAIL PROTECTED]; Viral Sachde [EMAIL PROTECTED] Cc: davinci-linux-open-source@linux.davincidsp.com Sent: Tuesday, October 7, 2008 13:37:53 Subject: RE: EVM 6467 board doesnot bootup Hi, You need to escape the $ and ; chars to prevent uboot from expanding the variable (the $) or attempting to run setboot (the ;). You want the resulting uboot variable to contain the ${macaddr} unexpanded and the ';' seperating the 'serenv' and 'run' commands. IIRC you escape them with backslash (\). Thanks for your valuable inputs. These two scenarios worked for me, and every variable was expanded 1. # set bootcmd 'setenv setboot setenv bootargs console=ttyS0,115200n8 ro noinitrd rw ip=dhcp root=/dev/nfs nfsroot=${nfshost}:${rootpath},nolock board=vvd video=davincifb eth=${ethaddr} mem=100M;run setboot;bootm' # boot 2. # setenv nfshost host ipaddr # setenv rootpath target root filesystem path on host # setenv bootargs console=ttyS0,115200n8 ro noinitrd rw ip=dhcp root=/dev/nfs nfsroot=${nfshost}:${rootpath},nolock board=vvd video=davincifb eth=${ethaddr} mem=100M # tftp # bootm regards -Nitin Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com -Original Message- From: Nitin Mahajan [mailto:[EMAIL PROTECTED] Sent: 07 October 2008 08:58 To: Phil Quiney; Viral Sachde Cc: davinci-linux-open-source@linux.davincidsp.com Subject: Re: EVM 6467 board doesnot bootup HI! - Original Message From: Phil Quiney To: Viral Sachde ; Ramesh Cc: davinci-linux-open-source@linux.davincidsp.com Sent: Monday, September 29, 2008 13:26:22 Subject: RE: EVM 6467 board doesnot bootup Hi, Your u-boot parameters are truly broken. You have a 'setenv=bootcmd nboot 8070 0 a' which is nonsense. I think that should have been bootcmd=nboot 8070 0 a The reason it does not boot is because you have set 'bootcmd=bootm' As there is nothing in memory you get the bad magic number. If you set the bootcmd to nboot 8070 0 a, I think it should at least try to boot. You then need to sort out the bootargs, as previously posted 'nfsroot=10.65M' is not right, it should be an IP address path to the NFS root filesystem on your server. I guess this is either a cut'n'paste issue, or perhaps the terminal emulator is not wrapping long lines. Also you cannot put u-boot variables into the bootargs variable, they do not get expanded and the kernel will not know how to handle $(nfsroot) and $(rootpath). There is a 'trick' to do this that has been used on the DM6446. bootcmd=setenv setboot setenv bootargs $(bootargs) video=dm64xxfb:output=$(videostd):format=component davinci-vpfe.device_type=1;run setboot;bootm 0x220 All this did was allow the $(videostd) variable to be picked up at boot time - the 'run setboot' was the trick that caused bootargs to be reset with the expanded variables. I was going through this valuable trick , and was interested in getting the ethaddr env variable expanded so that I can get the MAC address in the driver. I tried doing this after looking at the above example, just to check if the ethaddr gets expanded 1. set bootcmd setenv setboot setenv bootargs console=ttyS0,115200n8 ro noinitrd rw ip=dhcp eth=$(ethaddr) mem=100M;run setboot ## Error: setboot not defined Can you please tell me, what went wrong here or what would be the correct way to achieve this? regards -Nitin Regards Phil Q Phil Quiney, Senior Software Engineer Trinity Convergence Cambridge Business Park Cowley Road Cambridge CB4 0WZ, UK T: +44(0)1223-435536 F: +44(0)1223-435560 www.trinityconvergence.com From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Viral Sachde Sent: 29 September 2008 07:14 To: Ramesh Cc: davinci-linux-open-source@linux.davincidsp.com Subject: Re: EVM 6467 board doesnot bootup 2008/9/29 Ramesh Hi , After I tried to run one demo code on DM6467, I am not able to boot up the DM6467. ### DM6467 EVM # printenv bootdelay=3 baudrate=115200 ipaddr=192.168.1.201 setenv=bootcmd nboot 8070 0 a serverip=10.65.103.160 bootfile=uImage nfshost=10.65.102.67 rootpath=/home/Ramesh/workdir6467/filesys bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=10.65Mstdin=serial stdout=serial stderr=serial ethaddr=00:0e:99:02:b3:47 bootcmd=bootm DM6467 EVM # boot ## Booting image at 8070 ... Bad Magic Number DM6467 EVM # ## Board envirmental
ftl_format NAND flash
HI! I am trying to format a particular NAND partition on a custom Davinci board and getting following problem, ftl_format /dev/mtdx Partition size = 4 mb, erase unit size = 128 kb, 1 transfer units Reserved 5%, formatted size = 3814912 bytes Erasing all blocks... ---+---+---+---+ Writing erase unnand_write_ecc: Attempt to write not page aligned data it headers... write failed: Invalid argument format failed. Can someone help me understand what could be the issue? regards -Nitin Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RBL, UBL , PSP Boot loader
Hello ! Can some one please explain whether the TI UBL and PSP Bootloader are same? IF PSP Bootloader is not the UBL then where does it reside? Whether the RBL and UBL already programmed in the DaVinci chip? regards -Nitin New Email addresses available on Yahoo! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
RE: RBL, UBL , PSP Boot loader
HI! --- On Thu, 11/9/08, Gole, Anant [EMAIL PROTECTED] wrote: From: Gole, Anant [EMAIL PROTECTED] Subject: RE: RBL, UBL , PSP Boot loader To: [EMAIL PROTECTED] [EMAIL PROTECTED], davinci-linux-open-source@linux.davincidsp.com davinci-linux-open-source@linux.davincidsp.com Date: Thursday, 11 September, 2008, 7:23 PM Nitin, The terms are are as follows: 1. RBL - Rom bootloader - embedded in the chip 2. UBL - User boot loader - NOT in the chip - RBL boots UBL (except for NOR and UART boot modes) which boots a secondary bootloader. There are size constraints on what RBL can boot and since most secondary bootloaders do not fit in the size UBL is required - provided by PSP 3. UBoot - secondary bootloader that PSP provides - typically used to boot linux kernel. When someone says PSP Bootloader it could mean either UBL and UBoot and both are NOT in the chip - they are on the external NOR/NAND memory. I assume you have seen the app note Booting DaVinci EVM from NAND Flash which explains the procedure of using UBL/uBoot: http://focus.ti.com/lit/an/spraaa0/spraaa0.pdf TI UBL Version: 1.12, Flash type: NAND Booting PSP Boot Loader PSPBootMode = NAND Starting NAND Copy... Initializing NAND flash... Valid MagicNum found. NAND Boot success. DONE U-Boot 1.3.1 (Jun 12 2008 - 12:21:54) So the above set of messages while booting, indicate that 1. A TI UBL version 1.12 was booted by the RBL, and the UBL was loaded from NAND? 2. Booting PSP Boot Loader PSPBootMode = NAND , PSP bootloader here means the U-Boot, which will also be loaded from NAND? 3. This u-Boot inturn would load the Linux kernel from NAND? 4. Most importantly , how will UBL know from which place on NAND to load the u-Boot? and How will u-Boot know from which place to load the Linux kernel, since NAND is not a Random access device? regards -Nitin Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
davinci_i2c_read/write from atomic context
HI! Is it possible(right way) to use the davinci_i2c_read() and davinci_i2c_write() from atomic context like interrupt handler or tasklet? If not, whats the alternative to read data on i2c in atomic context? regards -Nitin Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
davinci_i2c_read/write from atomic context
HI! Apologise to write earlier in Rich Text Mode. Is it possible(right way) to use the davinci_i2c_read() and davinci_i2c_write() from atomic context like interrupt handler or tasklet? If not, whats the alternative to read data on i2c in atomic context? regards -Nitin New Email names for you! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Re: davinci_i2c_read/write from atomic context
Thanks, That works. But shouldn't the i2c_read/write functions be made safe in atomic context? regards -Nitin - Original Message From: Caglar Akyuz [EMAIL PROTECTED] To: Nitin Mahajan [EMAIL PROTECTED] Cc: davinci-linux-open-source@linux.davincidsp.com Sent: Tuesday, September 2, 2008 15:45:10 Subject: Re: davinci_i2c_read/write from atomic context Nitin Mahajan wrote: HI! Apologise to write earlier in Rich Text Mode. Is it possible(right way) to use the davinci_i2c_read() and davinci_i2c_write() from atomic context like interrupt handler or tasklet? If not, whats the alternative to read data on i2c in atomic context? I use a workqueue like: static void tsc_workqueue_handler(struct work_struct *work) { tsc2004_ts_rx(); //includes some i2c transfers } DECLARE_WORK(tsc_wq, tsc_workqueue_handler); static irqreturn_t tsc2004_ts_irq_handler(int irq, void *dev_id) { /* * Schedule the workqueue for I2C transfers */ schedule_work(tsc_wq); /* kick pen up timer */ mod_timer(penup_timer, jiffies + msecs_to_jiffies(TSC2004_TS_PENUP_TIME)); return IRQ_HANDLED; } Regards, Caglar Get your new Email address! Grab the Email name you#39;ve always wanted before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
MSP430 Driver in Kernel
HI! I want to know , where is the driver for MSP430 in the Davinci EVM kernel? Basically where is the interrupt handler being registered for IRQ 55? If I have a different DaVinci Board with a different microcontroller, which part of kernel driver I need to rewrite? regards -Nitin New Email names for you! Get the Email name you#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/aa/ ___ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source