Caglar Akyuz | 1 Sep 08:58 2008
Picon

Re: How to make the DVSDK working along with the git kernel

Diego Dompe wrote:

> Hi,
> 

Hi,

I also want to run demo software on git kernel, and started building components
after Diego's post. Here are my results...

> Highlevel flow:
> - Need to modify the dsplink release to compile against your kernel

Due to the changes in header file locations lately in arm tree, all machine 
specific includes have to be changed in source files and build scripts must be 
modified to accomodate new header locations. Some changes also needed for new 
kernels which can be found in [1]. Also one little change is needed for 
"post-processing" step to build kernel module.

After all these dplinkk module builds, but it is not working!!! However, I have
another issue which might also cause this. I'll investigate this later.

> - Need to modify cmemk to compile against your kernel
> 

cmemk builds fine without any changes.

> When you have dsplink and cmemk, you can basically run the codec servers
> and combos.
> 
(Continue reading)

padmanabha | 1 Sep 09:06 2008

Request : USB CPPI DMA patch for DaVinci (2.6.23 git kernel)

Hi,

I am working on Davinci platform & using 2.6.23 git kernel. Can you
please provide me the USB CPPI DMA patch for 2.6.23 git kernel.
It will help me to measure USB performance with DMA enabled
on our custom board.

Thanks and Regards,
Padmanabha.s

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Caglar Akyuz | 1 Sep 09:13 2008
Picon

DVSDK and uclibc Target

Hi,

I'm in the process of building DVSDK with the current git
kernel and seems like I arrived at a dead end.

I'm using eabi uclibc toolchaing. Thus I set my target as 
UCArm9(a470uC) when building examples. However, a470uC 
libraries in codec engine and framework components are build
without EABI*, so I can not link my binaries with codec engine
(also framework components). I can switch to a glibc toolchain 
or I can use a OABI uclibc toolchain. Both options I try to avoid.

Is it possible to rebuild CE, Framework components, etc with a 
EABI uclibc toolchain? (I guess not) or do I have any other option?

Regards,
Caglar

chandrashekar reddy | 1 Sep 09:30 2008
Picon

Requesting for help:Ramdisk booting problem:

Hi,
I am trying to boot DM6446  with ramdisk filesytem.

I am  getting problem while booting like..........
DaVinci EVM # printenv

root=/dev/ram0
rootpath=/home/DaVinci/
workdir/filesys
filesize=24bd5f
fileaddr=85000000
gatewayip=192.168.2.1
netmask=255.255.255.0
ipaddr=192.168.2.11
serverip=192.168.2.65
noaddip=setenv bootargs $(bootargs) ip=dhcp
bootfile=July/uImage
bootm=0x80200000
ramboot=bootargs $(bootargs) mem=120M
bootcmd=noaddip addvid ramboot
bootargs=console=ttyS0,115200n8 mem=120M ip=dhcp
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:0e:99:ff:ff:ff
videostd=ntsc

Environment size: 849/16380 bytes

DaVinci EVM # tftpboot 0x85000000 ramdisk.gz
TFTP from server 192.168.2.65; our IP address is 192.168.2.11
Filename 'ramdisk.gz'.
Load address: 0x85000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################
done
Bytes transferred = 2407775 (24bd5f hex)

DaVinci EVM # tftpboot 0x80200000 July/uImage
TFTP from server 192.168.2.65; our IP address is 192.168.2.11
Filename 'July/uImage'.
Load address: 0x80200000
Loading: #################################################################
         #################################################################
         #################################################################
         #########################
done
Bytes transferred = 1125392 (112c10 hex)


DaVinci EVM # bootm 0x80200000
## Booting image at 80200000 ...
   Image Name:   Linux-2.6.10_mvl401-davinci_evm
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1125328 Bytes =  1.1 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linu..............................................................
............. done, booting the

any suggetion for me.Advanced thanks for your kind help.

regards,
chander
<div><div dir="ltr">Hi,<br>I am trying to boot DM6446&nbsp; with ramdisk filesytem.<br><br>I am&nbsp; getting problem while booting like..........<br>DaVinci EVM # printenv<br><br>root=/dev/ram0<br>rootpath=/home/DaVinci/≤div dir="ltr">workdir/filesys<br>

filesize=24bd5f<br>fileaddr=85000000<br>gatewayip=<a href="http://192.168.2.1/" target="_blank">192.168.2.1</a><br>netmask=<a href="http://255.255.255.0/" target="_blank">255.255.255.0</a><br>ipaddr=<a href="http://192.168.2.11/" target="_blank">192.168.2.11</a><br>

serverip=<a href="http://192.168.2.65/" target="_blank">192.168.2.65</a><br>
noaddip=setenv bootargs $(bootargs) ip=dhcp<br>bootfile=July/uImage<br>bootm=0x80200000<br>ramboot=bootargs $(bootargs) mem=120M<br>bootcmd=noaddip addvid ramboot<br>bootargs=console=ttyS0,115200n8 mem=120M ip=dhcp<br>stdin=serial<br>

stdout=serial<br>stderr=serial<br>ethaddr=00:0e:99:ff:ff:ff<br>videostd=ntsc<br><br>Environment size: 849/16380 bytes<br><br>DaVinci EVM # tftpboot 0x85000000 ramdisk.gz<br>TFTP from server <a href="http://192.168.2.65/" target="_blank">192.168.2.65</a>; our IP address is <a href="http://192.168.2.11/" target="_blank">192.168.2.11</a><br>

Filename 'ramdisk.gz'.<br>Load address: 0x85000000<br>Loading: #################################################################<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ################<br>done<br>Bytes transferred = 2407775 (24bd5f hex)<br><br>DaVinci EVM # tftpboot 0x80200000 July/uImage<br>TFTP from server <a href="http://192.168.2.65/" target="_blank">192.168.2.65</a>; our IP address is <a href="http://192.168.2.11/" target="_blank">192.168.2.11</a><br>

Filename 'July/uImage'.<br>Load address: 0x80200000<br>Loading: #################################################################<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #########################<br>done<br>Bytes transferred = 1125392 (112c10 hex)<br><br><br>DaVinci EVM # bootm 0x80200000<br>## Booting image at 80200000 ...<br>&nbsp;&nbsp; Image Name:&nbsp;&nbsp; Linux-2.6.10_mvl401-davinci_evm<br>

&nbsp;&nbsp; Image Type:&nbsp;&nbsp; ARM Linux Kernel Image (uncompressed)<br>
&nbsp;&nbsp; Data Size:&nbsp;&nbsp;&nbsp; 1125328 Bytes =&nbsp; 1.1 MB<br>&nbsp;&nbsp; Load Address: 80008000<br>&nbsp;&nbsp; Entry Point:&nbsp; 80008000<br>&nbsp;&nbsp; Verifying Checksum ... OK<br>OK<br><br>Starting kernel ...<br><br>Uncompressing Linu..............................................................<br>

............. done, booting the<br><br>any suggetion for me.Advanced thanks for your kind help.<br><br>regards,<br>chander<br>
</div>
</div></div>
Kumar Bala | 1 Sep 09:33 2008
Picon

Re: how can I play the video of dm355?

Hello,
If you want to play the file locally using VLC, then
	rename the file to     <some_file_name>.*m4v*

But if you want to stream it and play it over rtsp then you need to
modify your rtsp streamer (from live555 example) in order to parse the
short header generated by DM355. More information on this can be found
here http://wiki.davincidsp.com/index.php?title=DM355_Codecs#MPEG4_Encoder

Cheers
Kumar

ily156401 wrote:

> how can I play the video of dm355?
>  
> mplay can play the video of dm355, but i can't paly it on rtsp.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@...
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Stankiewicz Bredkjaer | 1 Sep 09:52 2008
Picon

IRQ request dm6467

Hi all,

I have some issues with IRQs for the gpio 12 configured as input. The aforementioned gpio is used as an IRQ triggering source. Whenever i load my module everything goes well, but when i start triggering interrupts with a pulse generator, everything hang and  there is no possibility to do anything anymore. Since I'm using two console to see what is happening (by reading kernel messages) i could notice that the IRQ installation succeed but the ISR is never called. Besides that, there is no other kernel message, so that i could not find out what went wrong. I'm using the mvl 2.6.10 Kernel on the DM6467 evm.
As follows you can take a look to a code snippet and maybe help me wit h that.

 //gpio configuration
      gpio_input = 12;
      gpio_output = 11;
      gpio_irq = gpio_to_irq(gpio_input);


// Not sure if necessary, but once again switch gpios on
  board_setup_psc(DAVINCI_ARMDOMAIN, DAVINCI_DM646X_LPSC_GPIO, 1);

// Set pinmux to enable gpios
   __REG(PINMUX0) &= ~(1<<2);
   __REG(PINMUX0) |= (1<<1);
   __REG(PINMUX0) &= ~(1<<0);
  
    gpio_direction_output(gpio_output, 1);
    gpio_direction_input(gpio_input);

/* Enable irq on falling edge*/
  struct gpio_controller *__iomem g = gpio2controller(gpio_input);
    u32 mask = __gpio_mask(gpio_input);
        __raw_writel(mask, &g->set_fall ing);
        __raw_writel(mask, &g->clr_rising);

  //set BINTEN for bank0
    __raw_writel(0x1f, (void *__iomem)IO_ADDRESS(DAVINCI_GPIO_BASE + 0x08));

  /* Request interrupt line for bank 2 */
    if (ret = request_irq(gpio_irq, gpio_driver_isr, SA_SHIRQ , "davinci_gpio_ir", &dev_gpio)) {
             printk(KERN_INFO "GPIO: Interrupt %i request can't get assigned!\n", gpio_irq);
            goto clean;
    }
  
Thanks in advance

Regards

Stan.
 

<div>
<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">Hi all,<br><br>I have some issues with IRQs for the gpio 12 configured as input. The aforementioned gpio is used as an IRQ triggering source. Whenever i load my module everything goes well, but when i start triggering interrupts with a pulse generator, everything hang and&nbsp; there is no possibility to do anything anymore. Since I'm using two console to see what is happening (by reading kernel messages) i could notice that the IRQ installation succeed but the ISR is never called. Besides that, there is no other kernel message, so that i could not find out what went wrong. I'm using the mvl 2.6.10 Kernel on the DM6467 evm.<br>As follows you can take a look to a code snippet and maybe help me wit
 h that.<br><br>&nbsp;//gpio configuration<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gpio_input = 12;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gpio_output =
 11;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gpio_irq = gpio_to_irq(gpio_input);<br><br><br>// Not sure if necessary, but once again switch gpios on <br>&nbsp; board_setup_psc(DAVINCI_ARMDOMAIN, DAVINCI_DM646X_LPSC_GPIO, 1);<br><br>// Set pinmux to enable gpios<br>&nbsp;&nbsp; __REG(PINMUX0) &amp;= ~(1&lt;&lt;2);<br>&nbsp;&nbsp; __REG(PINMUX0) |= (1&lt;&lt;1);<br>&nbsp;&nbsp; __REG(PINMUX0) &amp;= ~(1&lt;&lt;0);<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; gpio_direction_output(gpio_output, 1);<br>&nbsp;&nbsp;&nbsp; gpio_direction_input(gpio_input);<br><br>/* Enable irq on falling edge*/<br>&nbsp; struct gpio_controller *__iomem g = gpio2controller(gpio_input);<br>&nbsp;&nbsp;&nbsp; u32 mask = __gpio_mask(gpio_input);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __raw_writel(mask, &amp;g-&gt;set_fall
 ing);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __raw_writel(mask, &amp;g-&gt;clr_rising);<br><br>&nbsp; //set BINTEN for bank0<br>&nbsp;&nbsp;&nbsp;
 __raw_writel(0x1f, (void *__iomem)IO_ADDRESS(DAVINCI_GPIO_BASE + 0x08));<br><br>&nbsp; /* Request interrupt line for bank 2 */<br>&nbsp;&nbsp;&nbsp; if (ret = request_irq(gpio_irq, gpio_driver_isr, SA_SHIRQ , "davinci_gpio_ir", &amp;dev_gpio)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printk(KERN_INFO "GPIO: Interrupt %i request can't get assigned!\n", gpio_irq);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto clean;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; <br>Thanks in advance<br><br>Regards<br><br>Stan.<br>&nbsp;<br>
</td></tr></table>
<br>
</div>
Rajashekhara, Sudhakar | 1 Sep 10:04 2008
Picon

RE: Requesting for help:Ramdisk booting problem:

Chander,
 
To boot after downloading the ramdisk image and uImage, you should use "bootm <address of uImage> <address of ramdisk image>".
 
Regards, Sudhakar
From: davinci-linux-open-source-bounces+sudhakar.raj=ti.com-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org [davinci-linux-open-source-bounces+sudhakar.raj=ti.com-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org] On Behalf Of chandrashekar reddy [chandrashekar01-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Monday, September 01, 2008 1:00 PM
To: Chris Stillson; davinci-linux-open-source-VycZQUHpC/OaKO+JnpGvtA@public.gmane.org
Subject: Requesting for help:Ramdisk booting problem:

Hi,
I am trying to boot DM6446  with ramdisk filesytem.

I am  getting problem while booting like..........
DaVinci EVM # printenv

root=/dev/ram0
rootpath=/home/DaVinci/
workdir/filesys
filesize=24bd5f
fileaddr=85000000
gatewayip=192.168.2.1
netmask=255.255.255.0
ipaddr=192.168.2.11
serverip=192.168.2.65
noaddip=setenv bootargs $(bootargs) ip=dhcp
bootfile=July/uImage
bootm=0x80200000
ramboot=bootargs $(bootargs) mem=120M
bootcmd=noaddip addvid ramboot
bootargs=console=ttyS0,115200n8 mem=120M ip=dhcp
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:0e:99:ff:ff:ff
videostd=ntsc

Environment size: 849/16380 bytes

DaVinci EVM # tftpboot 0x85000000 ramdisk.gz
TFTP from server 192.168.2.65; our IP address is 192.168.2.11
Filename 'ramdisk.gz'.
Load address: 0x85000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################
done
Bytes transferred = 2407775 (24bd5f hex)

DaVinci EVM # tftpboot 0x80200000 July/uImage
TFTP from server 192.168.2.65; our IP address is 192.168.2.11
Filename 'July/uImage'.
Load address: 0x80200000
Loading: #################################################################
         #################################################################
         #################################################################
         #########################
done
Bytes transferred = 1125392 (112c10 hex)


DaVinci EVM # bootm 0x80200000
## Booting image at 80200000 ...
   Image Name:   Linux-2.6.10_mvl401-davinci_evm
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1125328 Bytes =  1.1 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linu..............................................................
............. done, booting the

any suggetion for me.Advanced thanks for your kind help.

regards,
chander
<div>
<div dir="ltr">Chander,</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">To boot after downloading the ramdisk image and uImage, you should use "bootm &lt;address of uImage&gt; &lt;address of ramdisk image&gt;".</div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">Regards, Sudhakar</div>
<div>
From: davinci-linux-open-source-bounces+sudhakar.raj=ti.com@... [davinci-linux-open-source-bounces+sudhakar.raj=ti.com@...] On Behalf Of chandrashekar reddy [chandrashekar01@...]<br>Sent: Monday, September 01, 2008 1:00 PM<br>To: Chris Stillson; davinci-linux-open-source@...<br>Subject: Requesting for help:Ramdisk booting problem:<br><br>
</div>
<div></div>
<div>
<div dir="ltr">Hi,<br>
I am trying to boot DM6446&nbsp; with ramdisk filesytem.<br><br>
I am&nbsp; getting problem while booting like..........<br>
DaVinci EVM # printenv<br><br>
root=/dev/ram0<br>
rootpath=/home/DaVinci/
<div dir="ltr">workdir/filesys<br>
filesize=24bd5f<br>
fileaddr=85000000<br>
gatewayip=<a href="http://192.168.2.1/" target="_blank">192.168.2.1</a><br>
netmask=<a href="http://255.255.255.0/" target="_blank">255.255.255.0</a><br>
ipaddr=<a href="http://192.168.2.11/" target="_blank">192.168.2.11</a><br>
serverip=<a href="http://192.168.2.65/" target="_blank">192.168.2.65</a><br>
noaddip=setenv bootargs $(bootargs) ip=dhcp<br>
bootfile=July/uImage<br>
bootm=0x80200000<br>
ramboot=bootargs $(bootargs) mem=120M<br>
bootcmd=noaddip addvid ramboot<br>
bootargs=console=ttyS0,115200n8 mem=120M ip=dhcp<br>
stdin=serial<br>
stdout=serial<br>
stderr=serial<br>
ethaddr=00:0e:99:ff:ff:ff<br>
videostd=ntsc<br><br>
Environment size: 849/16380 bytes<br><br>
DaVinci EVM # tftpboot 0x85000000 ramdisk.gz<br>
TFTP from server <a href="http://192.168.2.65/" target="_blank">192.168.2.65</a>; our IP address is
<a href="http://192.168.2.11/" target="_blank">192.168.2.11</a><br>
Filename 'ramdisk.gz'.<br>
Load address: 0x85000000<br>
Loading: #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ################<br>
done<br>
Bytes transferred = 2407775 (24bd5f hex)<br><br>
DaVinci EVM # tftpboot 0x80200000 July/uImage<br>
TFTP from server <a href="http://192.168.2.65/" target="_blank">192.168.2.65</a>; our IP address is
<a href="http://192.168.2.11/" target="_blank">192.168.2.11</a><br>
Filename 'July/uImage'.<br>
Load address: 0x80200000<br>
Loading: #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #################################################################<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #########################<br>
done<br>
Bytes transferred = 1125392 (112c10 hex)<br><br><br>
DaVinci EVM # bootm 0x80200000<br>
## Booting image at 80200000 ...<br>
&nbsp;&nbsp; Image Name:&nbsp;&nbsp; Linux-2.6.10_mvl401-davinci_evm<br>
&nbsp;&nbsp; Image Type:&nbsp;&nbsp; ARM Linux Kernel Image (uncompressed)<br>
&nbsp;&nbsp; Data Size:&nbsp;&nbsp;&nbsp; 1125328 Bytes =&nbsp; 1.1 MB<br>
&nbsp;&nbsp; Load Address: 80008000<br>
&nbsp;&nbsp; Entry Point:&nbsp; 80008000<br>
&nbsp;&nbsp; Verifying Checksum ... OK<br>
OK<br><br>
Starting kernel ...<br><br>
Uncompressing Linu..............................................................<br>
............. done, booting the<br><br>
any suggetion for me.Advanced thanks for your kind help.<br><br>
regards,<br>
chander<br>
</div>
</div>
</div>
</div>
Stankiewicz Bredkjaer | 1 Sep 11:00 2008
Picon

Re: IRQ request dm6467

I could find out what the issue was, so no need for help anymore.
I had a bug in my ISR.

Stan.

--- On Mon, 9/1/08, Stankiewicz Bredkjaer <stan.bred-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:
From: Stankiewicz Bredkjaer <stan.bred-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
Subject: IRQ request dm6467
To: davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org
Date: Monday, September 1, 2008, 5:52 PM

Hi all,

I have some issues with IRQs for the gpio 12 configured as input. The aforementioned gpio is used as an IRQ triggering source. Whenever i load my module everything goes well, but when i start triggering interrupts with a pulse generator, everything hang and  there is no possibility to do anything anymore. Since I'm using two console to see what is happening (by reading kernel messages) i could notice that the IRQ installation succeed but the ISR is never called. Besides that, there is no other kernel message, so that i could not find out what went wrong. I'm using the mvl 2.6.10 Kernel on the DM6467 evm.
As follows you can take a look to a code snippet and maybe help me with that.

 //gpio configuration
      gpio_input = 12;
      gpio_output = 11;
      gpio_irq = gpio_to_irq(gpio_input);


// Not sure if necessary, but once again switch gpios on
  board_setup_psc(DAVINCI_ARMDOMAIN, DAVINCI_DM646X_LPSC_GPIO, 1);

// Set pinmux to enable gpios
   __REG(PINMUX0) &= ~(1<<2);
   __REG(PINMUX0) |= (1<<1);
   __REG(PINMUX0) &= ~(1<<0);
  
    gpio_direction_output(gpio_output, 1);
    gpio_direction_input(gpio_input);

/* Enable irq on falling edge*/
  struct gpio_controller *__iomem g = gpio2controller(gpio_input);
    u32 mask = __gpio_mask(gpio_input);
        __raw_writel(mask, &g->set_fall ing);
        __raw_writel(mask, &g->clr_rising);

  //set BINTEN for bank0
    __raw_writel(0x1f, (void *__iomem)IO_ADDRESS(DAVINCI_GPIO_BASE + 0x08));

  /* Request interrupt line for bank 2 */
    if (ret = request_irq(gpio_irq, gpio_driver_isr, SA_SHIRQ , "davinci_gpio_ir", &dev_gpio)) {
             printk(KERN_INFO "GPIO: Interrupt %i request can't get assigned!\n", gpio_irq);
            goto clean;
    }
  
Thanks in advance

Regards

Stan.
 

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

<div>
<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">I could find out what the issue was, so no need for help anymore.<br>I had a bug in my ISR.<br><br>Stan.<br><br>--- On Mon, 9/1/08, Stankiewicz Bredkjaer &lt;stan.bred@...&gt; wrote:<br><blockquote>From: Stankiewicz Bredkjaer &lt;stan.bred@...&gt;<br>Subject: IRQ request dm6467<br>To: davinci-linux-open-source@...<br>Date: Monday, September 1, 2008, 5:52 PM<br><br><div>
<table border="0" cellpadding="0" cellspacing="0"><tr><td valign="top">Hi all,<br><br>I have some issues with IRQs for the gpio 12
 configured as input. The aforementioned gpio is used as an IRQ triggering source. Whenever i load my module everything goes well, but when i start triggering interrupts with a pulse generator, everything hang and&nbsp; there is no possibility to do anything anymore. Since I'm using two console to see what is happening (by reading kernel messages) i could notice that the IRQ installation succeed but the ISR is never called. Besides that, there is no other kernel message, so that i could not find out what went wrong. I'm using the mvl 2.6.10 Kernel on the DM6467 evm.<br>As follows you can take a look to a code snippet and maybe help me with that.<br><br>&nbsp;//gpio configuration<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gpio_input = 12;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gpio_output =
 11;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gpio_irq = gpio_to_irq(gpio_input);<br><br><br>// Not sure if necessary, but once again switch gpios on <br>&nbsp; board_setup_psc(DAVINCI_ARMDOMAIN, DAVINCI_DM646X_LPSC_GPIO, 1);<br><br>// Set pinmux to enable gpios<br>&nbsp;&nbsp; __REG(PINMUX0) &amp;= ~(1&lt;&lt;2);<br>&nbsp;&nbsp; __REG(PINMUX0) |= (1&lt;&lt;1);<br>&nbsp;&nbsp; __REG(PINMUX0) &amp;= ~(1&lt;&lt;0);<br>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; gpio_direction_output(gpio_output, 1);<br>&nbsp;&nbsp;&nbsp; gpio_direction_input(gpio_input);<br><br>/* Enable irq on falling edge*/<br>&nbsp; struct gpio_controller *__iomem g = gpio2controller(gpio_input);<br>&nbsp;&nbsp;&nbsp; u32 mask = __gpio_mask(gpio_input);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __raw_writel(mask, &amp;g-&gt;set_fall
 ing);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __raw_writel(mask, &amp;g-&gt;clr_rising);<br><br>&nbsp; //set BINTEN for bank0<br>&nbsp;&nbsp;&nbsp;
 __raw_writel(0x1f, (void *__iomem)IO_ADDRESS(DAVINCI_GPIO_BASE + 0x08));<br><br>&nbsp; /* Request interrupt line for bank 2 */<br>&nbsp;&nbsp;&nbsp; if (ret = request_irq(gpio_irq, gpio_driver_isr, SA_SHIRQ , "davinci_gpio_ir", &amp;dev_gpio)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printk(KERN_INFO "GPIO: Interrupt %i request can't get assigned!\n", gpio_irq);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; goto clean;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp; <br>Thanks in advance<br><br>Regards<br><br>Stan.<br>&nbsp;<br>
</td></tr></table>
<br>
</div>_______________________________________________<br>Davinci-linux-open-source mailing list<br>Davinci-linux-open-source@...<br>http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source<br>
</blockquote>
</td></tr></table>
<br>
</div>
Andrea Gasparini | 1 Sep 10:59 2008

Re: SDHC on dm355

Hi, 

> Have you tried using these custom patches from TI? There was a recent
> LSP 1.20 patch release from TI to address the SDHC, SDIO support and
> MMC/SD performance improvements. The release is patch level 14 against
> LSP 1.20.

I looked into LSP 1.20 pack(*) and i was not able to find anything about 
SDHC. (and ideed my montavista kernel doesn't recognize a SDHC card )

Did I miss that some magic should be done??

(*) with patch level 14, of course.

Thanks, bye!
--

-- 
Andrea Gasparini 
---- ImaVis S.r.l. ----
web: www.imavis.com

antaresian | 1 Sep 11:51 2008
Picon

Psplash on DM355 and how to ./configure ?..

Hi all,

I want to add a boot status image  while linux booting on my DM355 application board. Did anybody use psplash package for this purpose. I have downloaded the package and when i try to configure with ./configure I get the following error:

./configure CC=arm_v5t_le-gcc CFLAGS=-I ~/workdir/lsp/ti-davinci/include

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /home/antaresian/workdir/lsp/ti-davinci/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for /home/antaresian/workdir/lsp/ti-davinci/include-gcc... arm_v5t_le-gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

waiting for a help...


<div><div dir="ltr">Hi all,<br><br>I want to add a boot status image&nbsp; while linux booting on my DM355 application board. Did anybody use psplash package for this purpose. I have downloaded the package and when i try to configure with ./configure I get the following error:<br><br>./configure CC=arm_v5t_le-gcc CFLAGS=-I ~/workdir/lsp/ti-davinci/include<br><br>configure: WARNING: you should use --build, --host, --target<br>configure: WARNING: invalid host type: /home/antaresian/workdir/lsp/ti-davinci/include<br>
checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>checking for gawk... no<br>checking for mawk... mawk<br>checking whether make sets $(MAKE)... yes<br>checking whether to enable maintainer-specific portions of Makefiles... no<br>
checking for style of include used by make... GNU<br>checking for /home/antaresian/workdir/lsp/ti-davinci/include-gcc... arm_v5t_le-gcc<br>checking for C compiler default output file name... configure: error: C compiler cannot create executables<br>
See `config.log' for more details.<br><br>waiting for a help...<br><br><br>
</div></div>

Gmane