NFS can not be mounted automaticly

2009-04-28 Thread shaofeng zhang
Hi, All,

When my board use the MVL Pro 4.0(linux 2.6.10), it can mount the NFS
automaticly, but then I test the MVL Pro 5.0(linux 2.6.18), it can not mount
the NFS automaticlly.
because my u-boot ENV (bootargs, mem, etc) use the same configuration.
that is the error infomation:

*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
portmap: server 192.168.0.238 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.0.238 not responding, timed out
Root-NFS: Server returned error -5 while mounting /home/workdir/filesys
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device nfs or unknown-block(2,0)
Please append a correct root= boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(2,0)*
**
could anyone tell me some infomation about the message? Thanks!

Zhang
___
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 about DSP server config of DM6446

2009-04-28 Thread chensu.main
Hi , Robert 

I wonder is it a limitation of RMS(Resource Manager Server) or DSP/BIOS ? I 
will modify my code now.

Thanks a lot.


2009-04-28 



chensu.main 



发件人: Tivy, Robert 
发送时间: 2009-04-28  06:38:15 
收件人: chensu.main; davinci-linux-open-source 
抄送: 
主题: RE: Problem about DSP server config of DM6446 
 
I'm not sure about a document, but the number of algorithm objects that you can 
create depends on the size of the memory block from which the stacks are 
allocated.  As you've seen, cutting the stack size down allows you to create 
more.  You might be able to find a formula, but the real answer is as many as 
you have memory for.

- Rob




From: davinci-linux-open-source-boun...@linux.davincidsp.com 
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
chensu.main
Sent: Monday, April 27, 2009 8:03 AM
To: davinci-linux-open-source
Subject: Problem about DSP server config of DM6446


Hi all ,

In my application , I have to create one algorithm many times . 

Fistly I config DSP server's CFG file and set stack size to 16384 in 
Server.algs {} , but app can only create 7 instances of my algorithm . Then I 
fix stack to  4096 and I can create more .

My question is How many algorithm objects can I create . Which document 
describe it indetail ?


2009-04-27 



chensu.main 
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


what I am missing here with DVEVM kit? How to solve this issue.

2009-04-28 Thread dengyz
Hi :

I  test the TMX320DM365 for  h264 encode/decode demo by TI TMX320DM365 DVEVM 
kit.

Running the Demos from the Command Line:
Target $ cd /opt/dvsdk/dm365
Target $ ./loadmodules_hd.sh

A issue occur as follows:

Target $ cmemk: no version for struct_module found: kernel tainted.
CMEMK Error: CMEM phys_start (0x8500) overlaps kernel (0x8100 - 
0x85c0)
insmod: error inserting 'cmemk.ko': -1 Invalid parameters

Can anybody please let me know, what I am missing here with DVEVM kit? How to 
solve this issue.
Thanks!

-
If A is success in life, then A equals x plus y plus z. Work is x; y is play; 
and z is keeping your mouth shut. 
Albert Einstein (1879 - 1955)
- Original Message - 
From: davinci-linux-open-source-requ...@linux.davincidsp.com
To: davinci-linux-open-source@linux.davincidsp.com
Sent: Tuesday, April 28, 2009 10:39 AM
Subject: Davinci-linux-open-source Digest, Vol 40, Issue 180


 Send Davinci-linux-open-source mailing list submissions to
 davinci-linux-open-source@linux.davincidsp.com
 
 To subscribe or unsubscribe via the World Wide Web, visit
 http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
 
 or, via email, send a message with subject or body 'help' to
 davinci-linux-open-source-requ...@linux.davincidsp.com
 
 You can reach the person managing the list at
 davinci-linux-open-source-ow...@linux.davincidsp.com
 
 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Davinci-linux-open-source digest...
 
 
 Today's Topics:
 
   1. Re: [PATCH 3/3 v4] ARM: da830 - Add support for
  DA830/OMAP-L137 EVM (Mark A. Greer)
   2. RE: Problem about DSP server config of DM6446 (Tivy, Robert)
   3. Re: when port a software , bus error (zhenfeng ren)
   4. Re: THS8200 Module and DM6446EVM Initial Setup (Carl Renaud)
   5. Re: is there any LCD Kits for DM355 DVEVM board (Carl Renaud)
   6. RE: Changing Machine ID (Manjunatha AM)
 
 
 --
 
 Message: 1
 Date: Mon, 27 Apr 2009 14:28:42 -0700
 From: Mark A. Greer mgr...@mvista.com
 Subject: Re: [PATCH 3/3 v4] ARM: da830 - Add support for
 DA830/OMAP-L137 EVM
 To: David Brownell davi...@pacbell.net
 Cc: davinci-linux-open-source@linux.davincidsp.com
 Message-ID: 20090427212842.ga19...@mag.az.mvista.com
 Content-Type: text/plain; charset=iso-8859-1
 
 On Mon, Apr 27, 2009 at 12:49:54PM -0700, David Brownell wrote:
 On Monday 27 April 2009, Mark A. Greer wrote:
   --- a/arch/arm/mach-davinci/include/mach/debug-macro.S
   +++ b/arch/arm/mach-davinci/include/mach/debug-macro.S
   @@ -24,7 +24,14 @@
   tst \rx, #1 @ MMU enabled?
   moveq \rx, #0x0100 @ physical base address
   movne \rx, #0xfe00 @ virtual base
   +#if defined(CONFIG_ARCH_DAVINCI_DA830_EVM)  
   defined(CONFIG_ARCH_DAVINCI_DMx)
  
  
  This should be 'CONFIG_MACH_DAVINCI_DA830_EVM'.
 
 You man it wouldn't be applicable to DA830 boards other
 than that EVM??
 
 Maybe, maybe not.
 
 Same comment in a few other places.  From what you've said,
 these are chip-specific issues, not board-specific ones...
 
 Well, there are lots of pinmux conflicts on the da830.  For devices
 that aren't used all of the time, it makes sense to allow the driver
 and the resources it requires to come and go on demand--maybe even the
 console if there is a graphic console.
 
 Either way, what uart is used for the serial console is determined by
 the board not the chip.
 
 Mark
 --
 
 
 
 --
 
 Message: 2
 Date: Mon, 27 Apr 2009 17:36:25 -0500
 From: Tivy, Robert rt...@ti.com
 Subject: RE: Problem about DSP server config of DM6446
 To: chensu.main chensu.m...@263.net, davinci-linux-open-source
 davinci-linux-open-source@linux.davincidsp.com
 Message-ID:
 6b8224e84039b140aa662f0bb0361643324d6...@dlee04.ent.ti.com
 Content-Type: text/plain; charset=us-ascii
 
 I'm not sure about a document, but the number of algorithm objects that you 
 can create depends on the size of the memory block from which the stacks are 
 allocated.  As you've seen, cutting the stack size down allows you to create 
 more.  You might be able to find a formula, but the real answer is as many 
 as you have memory for.
 
 - Rob
 
 
 From: davinci-linux-open-source-boun...@linux.davincidsp.com 
 [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
 chensu.main
 Sent: Monday, April 27, 2009 8:03 AM
 To: davinci-linux-open-source
 Subject: Problem about DSP server config of DM6446
 
 Hi all ,
 
 In my application , I have to create one algorithm many times .
 
 Fistly I config DSP server's CFG file and set stack size to 16384 in 
 Server.algs {} , but app can only create 7 instances of my algorithm . Then I 
 fix stack to  4096 and I can create more .
 
 My question is How many algorithm objects can I create . Which document 
 describe it indetail 

RE: Changing Machine ID

2009-04-28 Thread Manjunatha AM

Hi

Now, I could boot the kernel(linux-davinci-2.6-historic)and I am using nfs
filesystem but while booting it get struct at Freeing init memory: 128K
not going further..

The printenv (Board boot arguments) output are

Environment size: 541/65532 bytes
DaVinci EVM # printe
bootdelay=3
baudrate=115200
bootfile=uImage
rootpath=/root/workdir/filesys
subnet=255.255.255.0
filesize=1576a8
fileaddr=8070
nfshost=10.60.3.55
gatewayip=10.60.3.1
bootcmd=run setboot;tftpboot 0x8600 uImage;bootm 0x8600
serverip=10.60.5.129
ipaddr=10.60.5.110
bootargs=console=ttyS0,115200n8 noinitrd rw
ip=10.60.5.110:10.60.5.117:10.60.5.1:255.255.255.0:ELXI1000::off
root=/dev/nfs
nfsroot=10.60.5.117:/home/manju/wo
rkdir/filesys,nolock mem=120M
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:0e:99:02:57:9c
videostd=ntsc

Environment size: 541/65532 bytes


I have attached the complete boot log for reference.

Kindly suggest what could be causing this problem..

Thanks
Manjunath.AM




-Original Message-
From: Steve Chen [mailto:sc...@mvista.com]
Sent: Monday, April 27, 2009 4:29 PM
To: manjunat...@tataelxsi.co.in
Cc: davinci-linux-open-source@linux.davincidsp.com
Subject: Re: Changing Machine ID


On Mon, 2009-04-27 at 11:06 +0530, Manjunatha AM wrote:
 Hi

 I downloaded latest OS (linux-davinci-2.6-historic )from source.mvsta.com

On a separate note, you probably don't want to use linux-davinci-2.6
since it is obsolete.  Instead take a look at the git repository from
kernel.org at

http://git.kernel.org/?p=linux/kernel/git/khilman/linux-davinci.git;a=summar
y

Regards,

Steve



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged 
information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately and destroy
 all copies of this message and any attachments contained in it.

U-Boot 1.1.3 (Mar 15 2006 - 11:42:19)

U-Boot code: 8108 - 81097320  BSS: - 810A0230
RAM Configuration:
Bank #0: 8000 256 MB
MY AMD Flash: 16 MB
In:serial
Out:   serial
Err:   serial
ARM Clock :- 283MZ
DDR Clock :- 189MZ
Hit any key to stop autoboot:  0 
## Error: setboot not defined
TFTP from server 10.60.5.129; our IP address is 10.60.5.110
Filename 'uImage'.
Load address: 0x8600
Loading: #
 #
 #
 #
 ###
done
Bytes transferred = 1465040 (165ad0 hex)
## Booting image at 8600 ...
   Image Name:   Linux-2.6.28-davinci1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:1464976 Bytes =  1.4 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing 
Linux
 done, booting the kernel.
5Linux version 2.6.28-davinci1 (r...@localhost.localdomain) (gcc version 
3.4.3 (MontaVista 3.4.3-25.0.30.0501131 2005-07-23)) #8 PREEMPT Mon Apr 27 
08:39:1
6 IST 2009
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM644x EVM
Memory policy: ECC disabled, Data cache writeback
7On node 0 totalpages: 30720
7free_area_init_node: node 0, pgdat c02e7cd0, node_mem_map c0315000
7  DMA zone: 240 pages used for memmap
7  DMA zone: 0 pages reserved
7  DMA zone: 30480 pages, LIFO batch:7
7  Normal zone: 0 pages used for memmap
7  Movable zone: 0 pages used for memmap
6DaVinci DM6446 variant 0x0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 30480
5Kernel command line: console=ttyS0,115200n8 noinitrd rw 
ip=10.60.5.110:10.60.5.117:10.60.5.1:255.255.255.0:ELXI1000::off root=/dev/nfs 
nfsroot=10.60.5.117
:/home/manju/workdir/filesys,nolock mem=120M
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x30
6Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
6Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
6Memory: 120MB = 120MB total
5Memory: 118512KB available (2708K code, 278K data, 128K init)
6Calibrating delay loop... 141.31 BogoMIPS (lpj=706560)
Mount-cache hash table entries: 512
6CPU: Testing write buffer coherency: ok
6net_namespace: 684 bytes
6NET: Registered protocol family 16
4WARNING: both IDE and Flash are enabled, but they share AEMIF pins.
Disable IDE for NAND/NOR support.
6DaVinci: 71 gpio irqs
6NET: Registered protocol family 2
7Switched to high resolution mode on CPU 0
6IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
6TCP established hash table entries: 4096 

RE: what I am missing here with DVEVM kit? How to solve this issue.

2009-04-28 Thread JayaKumar, PremKumar
Dengyz,

This issue would be most likely due to an incorrect mem setting in the 
bootargs.

Guess mem=64M should work for a cmem insertion at 0x8500

Regards,
Prem
Texas Instruments
India.

-Original Message-
From: davinci-linux-open-source-boun...@linux.davincidsp.com 
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
dengyz
Sent: Tuesday, April 28, 2009 3:18 PM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: what I am missing here with DVEVM kit? How to solve this issue.

Hi :

I  test the TMX320DM365 for  h264 encode/decode demo by TI TMX320DM365 DVEVM 
kit.

Running the Demos from the Command Line:
Target $ cd /opt/dvsdk/dm365
Target $ ./loadmodules_hd.sh

A issue occur as follows:

Target $ cmemk: no version for struct_module found: kernel tainted.
CMEMK Error: CMEM phys_start (0x8500) overlaps kernel (0x8100 - 
0x85c0)
insmod: error inserting 'cmemk.ko': -1 Invalid parameters

Can anybody please let me know, what I am missing here with DVEVM kit? How to 
solve this issue.
Thanks!

-
If A is success in life, then A equals x plus y plus z. Work is x; y is play; 
and z is keeping your mouth shut.
Albert Einstein (1879 - 1955)
- Original Message -
From: davinci-linux-open-source-requ...@linux.davincidsp.com
To: davinci-linux-open-source@linux.davincidsp.com
Sent: Tuesday, April 28, 2009 10:39 AM
Subject: Davinci-linux-open-source Digest, Vol 40, Issue 180


 Send Davinci-linux-open-source mailing list submissions to
 davinci-linux-open-source@linux.davincidsp.com

 To subscribe or unsubscribe via the World Wide Web, visit
 http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

 or, via email, send a message with subject or body 'help' to
 davinci-linux-open-source-requ...@linux.davincidsp.com

 You can reach the person managing the list at
 davinci-linux-open-source-ow...@linux.davincidsp.com

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Davinci-linux-open-source digest...


 Today's Topics:

   1. Re: [PATCH 3/3 v4] ARM: da830 - Add support for
  DA830/OMAP-L137 EVM (Mark A. Greer)
   2. RE: Problem about DSP server config of DM6446 (Tivy, Robert)
   3. Re: when port a software , bus error (zhenfeng ren)
   4. Re: THS8200 Module and DM6446EVM Initial Setup (Carl Renaud)
   5. Re: is there any LCD Kits for DM355 DVEVM board (Carl Renaud)
   6. RE: Changing Machine ID (Manjunatha AM)


 --

 Message: 1
 Date: Mon, 27 Apr 2009 14:28:42 -0700
 From: Mark A. Greer mgr...@mvista.com
 Subject: Re: [PATCH 3/3 v4] ARM: da830 - Add support for
 DA830/OMAP-L137 EVM
 To: David Brownell davi...@pacbell.net
 Cc: davinci-linux-open-source@linux.davincidsp.com
 Message-ID: 20090427212842.ga19...@mag.az.mvista.com
 Content-Type: text/plain; charset=iso-8859-1

 On Mon, Apr 27, 2009 at 12:49:54PM -0700, David Brownell wrote:
 On Monday 27 April 2009, Mark A. Greer wrote:
   --- a/arch/arm/mach-davinci/include/mach/debug-macro.S
   +++ b/arch/arm/mach-davinci/include/mach/debug-macro.S
   @@ -24,7 +24,14 @@
   tst \rx, #1 @ MMU enabled?
   moveq \rx, #0x0100 @ physical base address
   movne \rx, #0xfe00 @ virtual base
   +#if defined(CONFIG_ARCH_DAVINCI_DA830_EVM)  
   defined(CONFIG_ARCH_DAVINCI_DMx)
  
 
  This should be 'CONFIG_MACH_DAVINCI_DA830_EVM'.

 You man it wouldn't be applicable to DA830 boards other
 than that EVM??

 Maybe, maybe not.

 Same comment in a few other places.  From what you've said,
 these are chip-specific issues, not board-specific ones...

 Well, there are lots of pinmux conflicts on the da830.  For devices
 that aren't used all of the time, it makes sense to allow the driver
 and the resources it requires to come and go on demand--maybe even the
 console if there is a graphic console.

 Either way, what uart is used for the serial console is determined by
 the board not the chip.

 Mark
 --



 --

 Message: 2
 Date: Mon, 27 Apr 2009 17:36:25 -0500
 From: Tivy, Robert rt...@ti.com
 Subject: RE: Problem about DSP server config of DM6446
 To: chensu.main chensu.m...@263.net, davinci-linux-open-source
 davinci-linux-open-source@linux.davincidsp.com
 Message-ID:
 6b8224e84039b140aa662f0bb0361643324d6...@dlee04.ent.ti.com
 Content-Type: text/plain; charset=us-ascii

 I'm not sure about a document, but the number of algorithm objects that you 
 can create depends on the size of the memory block from which the stacks are 
 allocated.  As you've seen, cutting the stack size down allows you to create 
 more.  You might be able to find a formula, but the real answer is as many 
 as you have memory for.

 - Rob

 
 From: davinci-linux-open-source-boun...@linux.davincidsp.com 
 [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
 

RE: Changing Machine ID

2009-04-28 Thread Steve Chen
On Tue, 2009-04-28 at 15:52 +0530, Manjunatha AM wrote:
 Hi
 
 Now, I could boot the kernel(linux-davinci-2.6-historic)and I am using nfs
 filesystem but while booting it get struct at Freeing init memory: 128K
 not going further..
 

Here is a posting from Yusuf Caglar on this very issue a few days ago.
May want to 
try his suggestion

Regards,

Steve

- forwarded e-mail ---
My guess:

Kernel is running, but there is something wrong with filesystem /dev
nodes. AFAIK, this point is where control passes to init and console
is redirected to /dev/console(or /dev/console must be present). This
is also the same for your own application. Maybe your file system is
not EABI?

If I were you, I would try an NFS file system.

Regards,
Caglar





___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Audio Driver Problem

2009-04-28 Thread amr ali

AA,

I am running VLC on my DM6446 and using MVL 2.6.10. After a while of playback, 
the audio playback stalls. VLC is still running, but no audio playback. I tried 
to rerun VLC and still no audio. I preasume that the audio device driver locked 
up or stalled. Is this true, if it is true Any help?? Any ideas about the 
problem?

--
Amr Ali.

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Re: NFS can not be mounted automaticly

2009-04-28 Thread Kapil Pendse
Hi Zhang,

See my reply below..

 Message: 1
 Date: Tue, 28 Apr 2009 15:26:55 +0800
 From: shaofeng zhang ipc...@gmail.com
 Subject: NFS can not be mounted automaticly
 To: davinci-linux-open-source@linux.davincidsp.com
 Message-ID:
        f1c20a310904280026j55ec0aebneb0fa26b2c92c...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Hi, All,

 When my board use the MVL Pro 4.0(linux 2.6.10), it can mount the NFS
 automaticly, but then I test the MVL Pro 5.0(linux 2.6.18), it can not mount
 the NFS automaticlly.
 because my u-boot ENV (bootargs, mem, etc) use the same configuration.
 that is the error infomation:

 *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
 portmap: server 192.168.0.238 not responding, timed out
 Root-NFS: Unable to get mountd port number from server, using default
 mount: server 192.168.0.238 not responding, timed out
 Root-NFS: Server returned error -5 while mounting /home/workdir/filesys
 VFS: Unable to mount root fs via NFS, trying floppy.
 VFS: Cannot open root device nfs or unknown-block(2,0)
 Please append a correct root= boot option
 Kernel panic - not syncing: VFS: Unable to mount root fs on
 unknown-block(2,0)*
 **
 could anyone tell me some infomation about the message? Thanks!

 Zhang

This indicates that your bootloader ENV bootargs is missing the
rootpath, nfshost and nfsroot values.

I'm quoting from the Getting Started Guide (spruf73b):

EVM # setenv nfshost ip address of nfs host
EVM # setenv rootpath directory to mount
EVM # setenv bootargs console=ttyS0,115200n8 noinitrd rw
ip=dhcp root=/dev/nfs
nfsroot=$(nfshost):$(rootpath),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)

Also note that you need to have root=/dev/nfs in bootargs.

Hope this helps.

Kapil Pendse
TekKraft

-- 
The Power to Imagine, is The Power to Create!
-TTux

___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Changing Machine ID

2009-04-28 Thread Manjunatha AM
Hi Steve,

Thanks for your reply..

I checked in /dev/console and it is present. I am using nfs file system
only...facing this problem while mounting nfs filesystem only...

With the same setup and bootargs,I could boot the device properly with
2.6.10 kernel image but problem is only with 2.6.28 and hence i cant suspect
on filesys..

Is there /sbin/Init is not getting proper support for 2.6.28 kernel since
the filesys used is bit old version???

Thanks
Manjunath.AM

-Original Message-
From: Steve Chen [mailto:sc...@mvista.com]
Sent: Tuesday, April 28, 2009 5:07 PM
To: manjunat...@tataelxsi.co.in
Cc: davinci-linux-open-source@linux.davincidsp.com
Subject: RE: Changing Machine ID


On Tue, 2009-04-28 at 15:52 +0530, Manjunatha AM wrote:
 Hi

 Now, I could boot the kernel(linux-davinci-2.6-historic)and I am using nfs
 filesystem but while booting it get struct at Freeing init memory: 128K
 not going further..


Here is a posting from Yusuf Caglar on this very issue a few days ago.
May want to
try his suggestion

Regards,

Steve

- forwarded e-mail ---
My guess:

Kernel is running, but there is something wrong with filesystem /dev
nodes. AFAIK, this point is where control passes to init and console
is redirected to /dev/console(or /dev/console must be present). This
is also the same for your own application. Maybe your file system is
not EABI?

If I were you, I would try an NFS file system.

Regards,
Caglar





___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Changing Machine ID

2009-04-28 Thread Steve Chen
On Tue, 2009-04-28 at 18:10 +0530, Manjunatha AM wrote:
 Hi Steve,
 
 Thanks for your reply..
 
 I checked in /dev/console and it is present. I am using nfs file system
 only...facing this problem while mounting nfs filesystem only...
 
 With the same setup and bootargs,I could boot the device properly with
 2.6.10 kernel image but problem is only with 2.6.28 and hence i cant suspect
 on filesys..
 
 Is there /sbin/Init is not getting proper support for 2.6.28 kernel since
 the filesys used is bit old version???

One of Caglar's suggestions is disable EABI in the kernel config and
re-compile the kernel.  It worked for last poster.  Perhaps you want to
try it as well.

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


Mouse and Keyboard Events

2009-04-28 Thread Sameer Naik
Hi,
I am using linux-davinci-2.6.10 kernel (Montavista 4.0),
I am using the Input Event Interface to capture and process
events in my application. When using mouse and standard keyboard,
everything works well. I am able to capture all mouse and keyboard events.

But if i connect a mouse and a multimedia keyboard, i do not get
any events from the mouse device. while the keyboard device delivers
its the events.

I also tried the evtest utility
http://tiexpressdsp.com/index.php?title=Evtest
but i am seeing the same results.

One thing that i have noticed is that if i connect the mouse, then open the
mouse
device and then connect the multimedia keyboard and open the keyboard
device,
i am able to capture both mouse and keyboard events.

So far i have been unable to locate cause of the issue.

Any pointers in this direction would help a great deal.

 NOTE:

(1) i am not using the /dev/input/mice interface for the

mouse, but instead using the respective /dev/input/event* interface.

(2) the multimedia keyboard creates two input interfaces, which through some


research i found is absolutely correct.

Regards
~Sameer
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Mouse and Keyboard Events

2009-04-28 Thread Subbrathnam, Swaminathan
Sameer,
DaVinci USB IP supports limited number of endpoints in hardware and 
hence the limitation in supporting both multimedia keyboard and mouse 
simultaneously.  In the configuration were in the mouse is connected first and 
then the multimedia keyboard the events from the multimedia controls would not 
work if mouse and key press functions work.

Regards
swami


From: davinci-linux-open-source-boun...@linux.davincidsp.com 
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
Sameer Naik
Sent: Tuesday, April 28, 2009 6:56 PM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: Mouse and Keyboard Events

Hi,
I am using linux-davinci-2.6.10 kernel (Montavista 4.0),
I am using the Input Event Interface to capture and process
events in my application. When using mouse and standard keyboard,
everything works well. I am able to capture all mouse and keyboard events.

But if i connect a mouse and a multimedia keyboard, i do not get
any events from the mouse device. while the keyboard device delivers
its the events.

I also tried the evtest utility http://tiexpressdsp.com/index.php?title=Evtest
but i am seeing the same results.

One thing that i have noticed is that if i connect the mouse, then open the 
mouse
device and then connect the multimedia keyboard and open the keyboard device,
i am able to capture both mouse and keyboard events.

So far i have been unable to locate cause of the issue.

Any pointers in this direction would help a great deal.



NOTE:

(1) i am not using the /dev/input/mice interface for the

mouse, but instead using the respective /dev/input/event* interface.

(2) the multimedia keyboard creates two input interfaces, which through some

research i found is absolutely correct.

Regards
~Sameer
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Re: Audio Driver Problem

2009-04-28 Thread Steve Chen
On Tue, 2009-04-28 at 15:19 +0300, amr ali wrote:
 AA,
 I am running VLC on my DM6446 and using MVL 2.6.10. After a while of
 playback, the audio playback stalls. VLC is still running, but no
 audio playback. I tried to rerun VLC and still no audio. I preasume
 that the audio device driver locked up or stalled. Is this true, if it
 is true Any help?? Any ideas about the problem?

Are you playing audio file from NFS mounted file system?  If so, you
want to try play audio file from hard disk.  I remember seeing DMA
choked due to network performance.

Regards,

Steve

 --
 Amr Ali.
 
 
 __
 Invite your mail contacts to join your friends list with Windows Live
 Spaces. It's easy! Try it!
 ___
 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: Audio Driver Problem

2009-04-28 Thread amr ali

AA,

Same thing happens when I run VLC from NFS or Ramdisk. My audio files are 
stored on USB in both cases. I disabled the hardidsk to use the NOR flash on 
both systems.

--

Amr Ali.
 
 Subject: Re: Audio Driver Problem
 From: sc...@mvista.com
 To: amra...@hotmail.com
 CC: davinci-linux-open-source@linux.davincidsp.com
 Date: Tue, 28 Apr 2009 09:01:02 -0500
 
 On Tue, 2009-04-28 at 15:19 +0300, amr ali wrote:
  AA,
  I am running VLC on my DM6446 and using MVL 2.6.10. After a while of
  playback, the audio playback stalls. VLC is still running, but no
  audio playback. I tried to rerun VLC and still no audio. I preasume
  that the audio device driver locked up or stalled. Is this true, if it
  is true Any help?? Any ideas about the problem?
 
 Are you playing audio file from NFS mounted file system? If so, you
 want to try play audio file from hard disk. I remember seeing DMA
 choked due to network performance.
 
 Regards,
 
 Steve
 
  --
  Amr Ali.
  
  
  __
  Invite your mail contacts to join your friends list with Windows Live
  Spaces. It's easy! Try it!
  ___
  Davinci-linux-open-source mailing list
  Davinci-linux-open-source@linux.davincidsp.com
  http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
 

_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Audio Driver Problem

2009-04-28 Thread Steve Chen
On Tue, 2009-04-28 at 17:15 +0300, amr ali wrote:
 AA,
 Same thing happens when I run VLC from NFS or Ramdisk. My audio files
 are stored on USB in both cases. I disabled the hardidsk to use the
 NOR flash on both systems.

One would expect similar results since USB performance would be
identical.  Try copy your audio file to ramdisk and play the audio file
from ramdisk.

Regards,

Steve

 --
 Amr Ali.
  
  Subject: Re: Audio Driver Problem
  From: sc...@mvista.com
  To: amra...@hotmail.com
  CC: davinci-linux-open-source@linux.davincidsp.com
  Date: Tue, 28 Apr 2009 09:01:02 -0500
  
  On Tue, 2009-04-28 at 15:19 +0300, amr ali wrote:
   AA,
   I am running VLC on my DM6446 and using MVL 2.6.10. After a while
 of
   playback, the audio playback stalls. VLC is still running, but no
   audio playback. I tried to rerun VLC and still no audio. I
 preasume
   that the audio device driver locked up or stalled. Is this true,
 if it
   is true Any help?? Any ideas about the problem?
  
  Are you playing audio file from NFS mounted file system? If so, you
  want to try play audio file from hard disk. I remember seeing DMA
  choked due to network performance.
  
  Regards,
  
  Steve
  
   --
   Amr Ali.
   
   
  
 __
   Invite your mail contacts to join your friends list with Windows
 Live
   Spaces. It's easy! Try it!
   ___
   Davinci-linux-open-source mailing list
   Davinci-linux-open-source@linux.davincidsp.com
  
 http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
  
 
 
 __
 check out the rest of the Windows Live™. More than mail–Windows Live™
 goes way beyond your inbox. More than messages


___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Audio Driver Problem

2009-04-28 Thread amr ali

AA,

My final commercial product is supposed to play audio from USB. Do you think it 
is a driver problem??

--

Amr Ali.
 
 Subject: RE: Audio Driver Problem
 From: sc...@mvista.com
 To: amra...@hotmail.com
 CC: davinci-linux-open-source@linux.davincidsp.com
 Date: Tue, 28 Apr 2009 09:29:48 -0500
 
 On Tue, 2009-04-28 at 17:15 +0300, amr ali wrote:
  AA,
  Same thing happens when I run VLC from NFS or Ramdisk. My audio files
  are stored on USB in both cases. I disabled the hardidsk to use the
  NOR flash on both systems.
 
 One would expect similar results since USB performance would be
 identical. Try copy your audio file to ramdisk and play the audio file
 from ramdisk.
 
 Regards,
 
 Steve
 
  --
  Amr Ali.
  
   Subject: Re: Audio Driver Problem
   From: sc...@mvista.com
   To: amra...@hotmail.com
   CC: davinci-linux-open-source@linux.davincidsp.com
   Date: Tue, 28 Apr 2009 09:01:02 -0500
   
   On Tue, 2009-04-28 at 15:19 +0300, amr ali wrote:
AA,
I am running VLC on my DM6446 and using MVL 2.6.10. After a while
  of
playback, the audio playback stalls. VLC is still running, but no
audio playback. I tried to rerun VLC and still no audio. I
  preasume
that the audio device driver locked up or stalled. Is this true,
  if it
is true Any help?? Any ideas about the problem?
   
   Are you playing audio file from NFS mounted file system? If so, you
   want to try play audio file from hard disk. I remember seeing DMA
   choked due to network performance.
   
   Regards,
   
   Steve
   
--
Amr Ali.


   
  __
Invite your mail contacts to join your friends list with Windows
  Live
Spaces. It's easy! Try it!
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
   
  http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
   
  
  
  __
  check out the rest of the Windows Live™. More than mail–Windows Live™
  goes way beyond your inbox. More than messages
 

_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.

http://www.microsoft.com/windows/windowslive/products/photos.aspx___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Audio Driver Problem

2009-04-28 Thread Steve Chen
On Tue, 2009-04-28 at 17:33 +0300, amr ali wrote:
 AA,
 My final commercial product is supposed to play audio from USB. Do you
 think it is a driver problem??

If a sound file on ramdisk works while a sound file from USB hangs, then
it is very likely a driver/DMA issue.  Of course, it is impossible to
know for sure without debugging the issue.  I tested wavplay and madplay
with audio files on hard disk and NFS.  Both worked for me in the 2.6.10
kernel.

Also, you may want to make sure you have applied all the released
patches.

Regards,

Steve

 --
 Amr Ali.
  
  Subject: RE: Audio Driver Problem
  From: sc...@mvista.com
  To: amra...@hotmail.com
  CC: davinci-linux-open-source@linux.davincidsp.com
  Date: Tue, 28 Apr 2009 09:29:48 -0500
  
  On Tue, 2009-04-28 at 17:15 +0300, amr ali wrote:
   AA,
   Same thing happens when I run VLC from NFS or Ramdisk. My audio
 files
   are stored on USB in both cases. I disabled the hardidsk to use
 the
   NOR flash on both systems.
  
  One would expect similar results since USB performance would be
  identical. Try copy your audio file to ramdisk and play the audio
 file
  from ramdisk.
  
  Regards,
  
  Steve
  
   --
   Amr Ali.
   
Subject: Re: Audio Driver Problem
From: sc...@mvista.com
To: amra...@hotmail.com
CC: davinci-linux-open-source@linux.davincidsp.com
Date: Tue, 28 Apr 2009 09:01:02 -0500

On Tue, 2009-04-28 at 15:19 +0300, amr ali wrote:
 AA,
 I am running VLC on my DM6446 and using MVL 2.6.10. After a
 while
   of
 playback, the audio playback stalls. VLC is still running, but
 no
 audio playback. I tried to rerun VLC and still no audio. I
   preasume
 that the audio device driver locked up or stalled. Is this
 true,
   if it
 is true Any help?? Any ideas about the problem?

Are you playing audio file from NFS mounted file system? If so,
 you
want to try play audio file from hard disk. I remember seeing
 DMA
choked due to network performance.

Regards,

Steve

 --
 Amr Ali.
 
 

  
 __
 Invite your mail contacts to join your friends list with
 Windows
   Live
 Spaces. It's easy! Try it!
 ___
 Davinci-linux-open-source mailing list
 Davinci-linux-open-source@linux.davincidsp.com

  
 http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

   
   
  
 __
   check out the rest of the Windows Live™. More than mail–Windows
 Live™
   goes way beyond your inbox. More than messages
  
 
 
 __
 What can you do with the new Windows Live? Find out


___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Re: Audio Driver Problem

2009-04-28 Thread Brian Rhodes

amr ali wrote:

AA,
My final commercial product is supposed to play audio from USB. Do you 
think it is a driver problem??

--
Amr Ali.


Try writing 0x4 to ESR when it is in the stalled state.

devmem2 0x01c01010 0x4

0x4 is the ASP transmit channel.  There is likely a pending event and 
writing this will manually trigger a transfer request.  This gets 
cleared when the channel is shutdown.  Another slot may be programmed 
from the ISR in the ASoC driver.  This causes the channel to stall 
when the channel is shut down.  There are a couple ways to fix this 
problem, but there is nothing currently in the git kernel for handling 
ASoC stop/shutdown cleanly.


___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Audio Driver Problem

2009-04-28 Thread amr ali

AA,

How would I do such thing from my application? What are the other ways? What is 
the best way to do such thing from application side?

--

Amr Ali.


 
 Date: Tue, 28 Apr 2009 09:50:57 -0500
 From: b...@acdstar.com
 To: amra...@hotmail.com
 CC: sc...@mvista.com; davinci-linux-open-source@linux.davincidsp.com
 Subject: Re: Audio Driver Problem
 
 amr ali wrote:
  AA,
  My final commercial product is supposed to play audio from USB. Do you 
  think it is a driver problem??
  --
  Amr Ali.
 
 Try writing 0x4 to ESR when it is in the stalled state.
 
 devmem2 0x01c01010 0x4
 
 0x4 is the ASP transmit channel. There is likely a pending event and 
 writing this will manually trigger a transfer request. This gets 
 cleared when the channel is shutdown. Another slot may be programmed 
 from the ISR in the ASoC driver. This causes the channel to stall 
 when the channel is shut down. There are a couple ways to fix this 
 problem, but there is nothing currently in the git kernel for handling 
 ASoC stop/shutdown cleanly.

_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: what I am missing here with DVEVM kit? How to solve this issue.

2009-04-28 Thread Saran, Sajesh Kumar
Try reducing the memory available to Linux kernel (in bootargs set to mem=80M 
or lower).

Regards,
Sajesh

-Original Message-
From: davinci-linux-open-source-boun...@linux.davincidsp.com 
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
dengyz
Sent: Tuesday, April 28, 2009 5:48 AM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: what I am missing here with DVEVM kit? How to solve this issue.

Hi :

I  test the TMX320DM365 for  h264 encode/decode demo by TI TMX320DM365 DVEVM 
kit.

Running the Demos from the Command Line:
Target $ cd /opt/dvsdk/dm365
Target $ ./loadmodules_hd.sh

A issue occur as follows:

Target $ cmemk: no version for struct_module found: kernel tainted.
CMEMK Error: CMEM phys_start (0x8500) overlaps kernel (0x8100 - 
0x85c0)
insmod: error inserting 'cmemk.ko': -1 Invalid parameters

Can anybody please let me know, what I am missing here with DVEVM kit? How to 
solve this issue.
Thanks!

-
If A is success in life, then A equals x plus y plus z. Work is x; y is play; 
and z is keeping your mouth shut.
Albert Einstein (1879 - 1955)
- Original Message -
From: davinci-linux-open-source-requ...@linux.davincidsp.com
To: davinci-linux-open-source@linux.davincidsp.com
Sent: Tuesday, April 28, 2009 10:39 AM
Subject: Davinci-linux-open-source Digest, Vol 40, Issue 180


 Send Davinci-linux-open-source mailing list submissions to
 davinci-linux-open-source@linux.davincidsp.com

 To subscribe or unsubscribe via the World Wide Web, visit
 http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

 or, via email, send a message with subject or body 'help' to
 davinci-linux-open-source-requ...@linux.davincidsp.com

 You can reach the person managing the list at
 davinci-linux-open-source-ow...@linux.davincidsp.com

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Davinci-linux-open-source digest...


 Today's Topics:

   1. Re: [PATCH 3/3 v4] ARM: da830 - Add support for
  DA830/OMAP-L137 EVM (Mark A. Greer)
   2. RE: Problem about DSP server config of DM6446 (Tivy, Robert)
   3. Re: when port a software , bus error (zhenfeng ren)
   4. Re: THS8200 Module and DM6446EVM Initial Setup (Carl Renaud)
   5. Re: is there any LCD Kits for DM355 DVEVM board (Carl Renaud)
   6. RE: Changing Machine ID (Manjunatha AM)


 --

 Message: 1
 Date: Mon, 27 Apr 2009 14:28:42 -0700
 From: Mark A. Greer mgr...@mvista.com
 Subject: Re: [PATCH 3/3 v4] ARM: da830 - Add support for
 DA830/OMAP-L137 EVM
 To: David Brownell davi...@pacbell.net
 Cc: davinci-linux-open-source@linux.davincidsp.com
 Message-ID: 20090427212842.ga19...@mag.az.mvista.com
 Content-Type: text/plain; charset=iso-8859-1

 On Mon, Apr 27, 2009 at 12:49:54PM -0700, David Brownell wrote:
 On Monday 27 April 2009, Mark A. Greer wrote:
   --- a/arch/arm/mach-davinci/include/mach/debug-macro.S
   +++ b/arch/arm/mach-davinci/include/mach/debug-macro.S
   @@ -24,7 +24,14 @@
   tst \rx, #1 @ MMU enabled?
   moveq \rx, #0x0100 @ physical base address
   movne \rx, #0xfe00 @ virtual base
   +#if defined(CONFIG_ARCH_DAVINCI_DA830_EVM)  
   defined(CONFIG_ARCH_DAVINCI_DMx)
  
 
  This should be 'CONFIG_MACH_DAVINCI_DA830_EVM'.

 You man it wouldn't be applicable to DA830 boards other
 than that EVM??

 Maybe, maybe not.

 Same comment in a few other places.  From what you've said,
 these are chip-specific issues, not board-specific ones...

 Well, there are lots of pinmux conflicts on the da830.  For devices
 that aren't used all of the time, it makes sense to allow the driver
 and the resources it requires to come and go on demand--maybe even the
 console if there is a graphic console.

 Either way, what uart is used for the serial console is determined by
 the board not the chip.

 Mark
 --



 --

 Message: 2
 Date: Mon, 27 Apr 2009 17:36:25 -0500
 From: Tivy, Robert rt...@ti.com
 Subject: RE: Problem about DSP server config of DM6446
 To: chensu.main chensu.m...@263.net, davinci-linux-open-source
 davinci-linux-open-source@linux.davincidsp.com
 Message-ID:
 6b8224e84039b140aa662f0bb0361643324d6...@dlee04.ent.ti.com
 Content-Type: text/plain; charset=us-ascii

 I'm not sure about a document, but the number of algorithm objects that you 
 can create depends on the size of the memory block from which the stacks are 
 allocated.  As you've seen, cutting the stack size down allows you to create 
 more.  You might be able to find a formula, but the real answer is as many 
 as you have memory for.

 - Rob

 
 From: davinci-linux-open-source-boun...@linux.davincidsp.com 
 [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
 chensu.main
 Sent: Monday, April 27, 2009 8:03 AM
 To: davinci-linux-open-source
 

RE: [PATCH 2/3] ARM: da830 - Add base DA830/OMAP-L137 SoC support

2009-04-28 Thread Ambrose, Martin
On Wed, Apr 22, 2009 at 12:58:12, Ambrose, Martin wrote:

  On Tue, Apr 21, 2009 at 05:05:14PM -0700, Mark A. Greer wrote:
   From: Mark A. Greer mgr...@mvista.com
 
 Thanks for this. It builds for me but hangs after 
 uncompressing the kernel. Do you see anything wrong with this 
 sequence?

I did some further digging. Note that my problem persists with the v4 patches 
-- no surprise here I think since there were no functional changes. But I can 
reply on that thread if you like.

The are no log messages after uncompressing kernel. So used md in uboot 
to dump the log messages. 

1Unable to handle kernel paging request at virtual address 34767068.
1pgd = c0004000.
1[34767068] *pgd=.
4Internal error: Oops: 0 [#1] PREEMPT.
4Modules linked in:.
4CPU: 0Nottainted  (2.6.30-rc2-davinci1-05906-ged400fa-dirty #49).
4PC is at 0x34767068.
4LR is at register_netdevice_notifier+0x4c/0x190.

So added a print in register_netdevice_notifier [net/core/dev.c], rebuilt, and 
rebooted. Still no log messages so agained dumped the buffer.

4nb = 0xc029ebfc.
4nb-notifier_call = 0x34767069.

So the page fault is coming from the notifier_call. Then commented out this
print and put equivalent in arp_init [net/ipv4/arp.c], rebuilt, and rebooted.
Oddly now it gets passed the previous point (there are log messages in the 
console), but it fails later with a page fault at different location.

arp_netdev_notifier = 0xc02ed7cc
arp_netdev_notifier.notifier_call = 0xc01e0f74

So by moving the printk the address of notifier call is different/valid.

I'm not sure how to proceed and any debugging tips are appreciated.

Regards, 
Martin
___
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 about DSP server config of DM6446

2009-04-28 Thread Ring, Chris
You might review the Server_getNumMemSegs()/Server_getMemStat() API calls 
(available at runtime after Engine_open()).  These provide statistics about the 
memory resources on remote processors.

Calling these services after each codec create/delete may help you better 
understand memory usage on the DSP.

Finally, note that you could also run out of other resources - e.g. DMA, HW 
accelerators, etc.  So it's not just out of memory that can cause a codec 
create to fail.

Chris


From: davinci-linux-open-source-bounces+cring=ti@linux.davincidsp.com 
[mailto:davinci-linux-open-source-bounces+cring=ti@linux.davincidsp.com] On 
Behalf Of chensu.main
Sent: Tuesday, April 28, 2009 1:42 AM
To: Tivy, Robert
Cc: davinci-linux-open-source
Subject: Re: RE: Problem about DSP server config of DM6446

Hi , Robert

I wonder is it a limitation of RMS(Resource Manager Server) or DSP/BIOS ? I 
will modify my code now.

Thanks a lot.


2009-04-28

chensu.main

发件人: Tivy, Robert
发送时间: 2009-04-28  06:38:15
收件人: chensu.main; davinci-linux-open-source
抄送:
主题: RE: Problem about DSP server config of DM6446
I'm not sure about a document, but the number of algorithm objects that you can 
create depends on the size of the memory block from which the stacks are 
allocated.  As you've seen, cutting the stack size down allows you to create 
more.  You might be able to find a formula, but the real answer is as many as 
you have memory for.

- Rob


From: davinci-linux-open-source-boun...@linux.davincidsp.com 
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
chensu.main
Sent: Monday, April 27, 2009 8:03 AM
To: davinci-linux-open-source
Subject: Problem about DSP server config of DM6446

Hi all ,

In my application , I have to create one algorithm many times .

Fistly I config DSP server's CFG file and set stack size to 16384 in 
Server.algs {} , but app can only create 7 instances of my algorithm . Then I 
fix stack to  4096 and I can create more .

My question is How many algorithm objects can I create . Which document 
describe it indetail ?


2009-04-27

chensu.main
___
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 2/3] ARM: da830 - Add base DA830/OMAP-L137 SoC support

2009-04-28 Thread Ambrose, Martin
On Wed, Apr 22, 2009 at 19:12:23, Mark A. Greer wrote:

   On Wed, Apr 22, 2009 at 12:58:12PM -0500, Ambrose, Martin wrote:
 
 On Tue, Apr 21, 2009 at 05:05:14PM -0700, Mark A. Greer wrote:
  From: Mark A. Greer mgr...@mvista.com 

[...]

I see that the latest patches have EMAC_VERSION_2 but 
 no rmii_en
   setting. Although it doesn't look like my boot sequence 
 is getting far
   enough for this to matter.
 
 BTW, are you implying that there is something missing as far as emac
 setup?  Note that rmii_en is set in board-da830-evm.c.  If you still
 think there is something missing, please elaborate or better 
 yet provide
 a patch.
 
Just to close the loop on this bit. I don't think there is an error but rather 
the form of this setting changed from your earlier patches. I just didn't 
realize that initially. Earlier the rmii enable was defined in the 
initialization structure. In the new code this is done at run time in 
da830_evm_init().

soc_info-emac_pdata-rmii_en = 1;


Regards, 
Martin
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: what I am missing here with DVEVM kit? How to solve this issue.

2009-04-28 Thread Tivy, Robert
Or, you could reduce the memory to CMEM, increasing the phys_start address on 
the 'insmod' command in loadmodules_hd.sh.  You can start it right at the end 
of the kernel memory.  If the kernel goes up to 0x85c0, you can change to 
use phys_start=0x85c0 .

Regards,

- Rob

 -Original Message-
 From: davinci-linux-open-source-boun...@linux.davincidsp.com
 [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com
 ] On Behalf Of Saran, Sajesh Kumar
 Sent: Tuesday, April 28, 2009 8:00 AM
 To: dengyz; davinci-linux-open-source@linux.davincidsp.com
 Subject: RE: what I am missing here with DVEVM kit? How to
 solve this issue.

 Try reducing the memory available to Linux kernel (in
 bootargs set to mem=80M or lower).

 Regards,
 Sajesh

 -Original Message-
 From: davinci-linux-open-source-boun...@linux.davincidsp.com
 [mailto:davinci-linux-open-source-boun...@linux.davincidsp.com
 ] On Behalf Of dengyz
 Sent: Tuesday, April 28, 2009 5:48 AM
 To: davinci-linux-open-source@linux.davincidsp.com
 Subject: what I am missing here with DVEVM kit? How to solve
 this issue.

 Hi :

 I  test the TMX320DM365 for  h264 encode/decode demo by TI
 TMX320DM365 DVEVM kit.

 Running the Demos from the Command Line:
 Target $ cd /opt/dvsdk/dm365
 Target $ ./loadmodules_hd.sh

 A issue occur as follows:

 Target $ cmemk: no version for struct_module found: kernel tainted.
 CMEMK Error: CMEM phys_start (0x8500) overlaps kernel
 (0x8100 - 0x85c0)
 insmod: error inserting 'cmemk.ko': -1 Invalid parameters

 Can anybody please let me know, what I am missing here with
 DVEVM kit? How to solve this issue.
 Thanks!

 --
 ---
 If A is success in life, then A equals x plus y plus z. Work
 is x; y is play; and z is keeping your mouth shut.
 Albert Einstein (1879 - 1955)
 - Original Message -
 From: davinci-linux-open-source-requ...@linux.davincidsp.com
 To: davinci-linux-open-source@linux.davincidsp.com
 Sent: Tuesday, April 28, 2009 10:39 AM
 Subject: Davinci-linux-open-source Digest, Vol 40, Issue 180


  Send Davinci-linux-open-source mailing list submissions to
  davinci-linux-open-source@linux.davincidsp.com
 
  To subscribe or unsubscribe via the World Wide Web, visit
 
 http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
 
  or, via email, send a message with subject or body 'help' to
  davinci-linux-open-source-requ...@linux.davincidsp.com
 
  You can reach the person managing the list at
  davinci-linux-open-source-ow...@linux.davincidsp.com
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Davinci-linux-open-source digest...
 
 
  Today's Topics:
 
1. Re: [PATCH 3/3 v4] ARM: da830 - Add support for
   DA830/OMAP-L137 EVM (Mark A. Greer)
2. RE: Problem about DSP server config of DM6446 (Tivy, Robert)
3. Re: when port a software , bus error (zhenfeng ren)
4. Re: THS8200 Module and DM6446EVM Initial Setup (Carl Renaud)
5. Re: is there any LCD Kits for DM355 DVEVM board (Carl Renaud)
6. RE: Changing Machine ID (Manjunatha AM)
 
 
 
 --
 
  Message: 1
  Date: Mon, 27 Apr 2009 14:28:42 -0700
  From: Mark A. Greer mgr...@mvista.com
  Subject: Re: [PATCH 3/3 v4] ARM: da830 - Add support for
  DA830/OMAP-L137 EVM
  To: David Brownell davi...@pacbell.net
  Cc: davinci-linux-open-source@linux.davincidsp.com
  Message-ID: 20090427212842.ga19...@mag.az.mvista.com
  Content-Type: text/plain; charset=iso-8859-1
 
  On Mon, Apr 27, 2009 at 12:49:54PM -0700, David Brownell wrote:
  On Monday 27 April 2009, Mark A. Greer wrote:
--- a/arch/arm/mach-davinci/include/mach/debug-macro.S
+++ b/arch/arm/mach-davinci/include/mach/debug-macro.S
@@ -24,7 +24,14 @@
tst \rx, #1 @ MMU enabled?
moveq \rx, #0x0100 @ physical base address movne \rx,
#0xfe00 @ virtual base
+#if defined(CONFIG_ARCH_DAVINCI_DA830_EVM) 
+defined(CONFIG_ARCH_DAVINCI_DMx)
   
  
   This should be 'CONFIG_MACH_DAVINCI_DA830_EVM'.
 
  You man it wouldn't be applicable to DA830 boards other than that
  EVM??
 
  Maybe, maybe not.
 
  Same comment in a few other places.  From what you've
 said, these are
  chip-specific issues, not board-specific ones...
 
  Well, there are lots of pinmux conflicts on the da830.  For devices
  that aren't used all of the time, it makes sense to allow
 the driver
  and the resources it requires to come and go on
 demand--maybe even the
  console if there is a graphic console.
 
  Either way, what uart is used for the serial console is
 determined by
  the board not the chip.
 
  Mark
  --
 
 
 
  --
 
  Message: 2
  Date: Mon, 27 Apr 2009 17:36:25 -0500
  From: Tivy, Robert rt...@ti.com
  Subject: RE: Problem about DSP server config of DM6446
  To: chensu.main chensu.m...@263.net, davinci-linux-open-source
  

Re: is there any LCD Kits for DM355 DVEVM board

2009-04-28 Thread weixin Li
Thanks for your input, Carl!
 
Does this mean there is no available LCD kits for DM355 EVM board? From TI's 
Davinci Linux video sysfs user guide, there is Logic PD encoder is used to 
displaying to a Logic PD LCD monitor. Do you any idea about this? 
 
Thanks a lot,
Wayne

--- On Mon, 4/27/09, Carl Renaud carl.ren...@gmail.com wrote:

From: Carl Renaud carl.ren...@gmail.com
Subject: Re: is there any LCD Kits for DM355 DVEVM board
To: weixinl...@yahoo.com
Cc: davinci-linux-open-source@linux.davincidsp.com
Date: Monday, April 27, 2009, 7:07 PM

You can use the THS8200 daughter card (sold by Spectrum), but will
need to modify the drivers to support RGB output to an LCD monitor
(not a trivial task).

On Fri, Apr 24, 2009 at 10:02 PM, weixin Li weixinl...@yahoo.com wrote:
 Hello

 I have a DM355 EVM board and want to connect an LCD. Is there any
available
 LCD module can be used? Is there daughter board available with the mating
 connector to connect directly to the EVM board?

 Thanks,
 Wayne
 ___
 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: [PATCH 2/3] ARM: da830 - Add base DA830/OMAP-L137 SoC support

2009-04-28 Thread Steve Chen
On Tue, 2009-04-28 at 11:15 -0500, Ambrose, Martin wrote:
 On Wed, Apr 22, 2009 at 12:58:12, Ambrose, Martin wrote:
 
   On Tue, Apr 21, 2009 at 05:05:14PM -0700, Mark A. Greer wrote:
From: Mark A. Greer mgr...@mvista.com
  
  Thanks for this. It builds for me but hangs after 
  uncompressing the kernel. Do you see anything wrong with this 
  sequence?
 
 I did some further digging. Note that my problem persists with the v4 patches 
 -- no surprise here I think since there were no functional changes. But I can 
 reply on that thread if you like.
 
 The are no log messages after uncompressing kernel. So used md in uboot 
 to dump the log messages. 
 
 1Unable to handle kernel paging request at virtual address 34767068.
 1pgd = c0004000.
 1[34767068] *pgd=.
 4Internal error: Oops: 0 [#1] PREEMPT.
 4Modules linked in:.
 4CPU: 0Nottainted  (2.6.30-rc2-davinci1-05906-ged400fa-dirty #49).
 4PC is at 0x34767068.
 4LR is at register_netdevice_notifier+0x4c/0x190.
 
 So added a print in register_netdevice_notifier [net/core/dev.c], rebuilt, 
 and rebooted. Still no log messages so agained dumped the buffer.
 
 4nb = 0xc029ebfc.
 4nb-notifier_call = 0x34767069.
 
 So the page fault is coming from the notifier_call. Then commented out this
 print and put equivalent in arp_init [net/ipv4/arp.c], rebuilt, and rebooted.
 Oddly now it gets passed the previous point (there are log messages in the 
 console), but it fails later with a page fault at different location.
 
 arp_netdev_notifier = 0xc02ed7cc
 arp_netdev_notifier.notifier_call = 0xc01e0f74
 
 So by moving the printk the address of notifier call is different/valid.
 
 I'm not sure how to proceed and any debugging tips are appreciated.

The PC invalid (0x34767068 is not a valid RAM address).  It is likely
you jump to that location via uninitialized or corrupt function pointer.
You can try to disable Ethernet in kernel config to see if you get pass
this point.  If you don't get this error, that means the problem is in
Ethernet initialization/driver.

Regards,

Steve

 
 Regards, 
 Martin
 ___
 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


[PATCH] ARM DaVinci: Adding CONFIG options for NAND ALE and CLE

2009-04-28 Thread s-paulraj
The CLE and ALE for DaVinci DM644x is not the same as DM646x. This patch
adds 2 CONFIG_ options to the config.h header files to all the DM6446 based
boards. These values are then used by the driver. This has been tested on the
DM644x, DM355, DM357 and DM365. Support for the latter 3 will be added soon.

Signed-off-by: Sandeep Paulraj s-paul...@ti.com
---
 drivers/mtd/nand/davinci_nand.c  |6 +++---
 include/asm-arm/arch-davinci/nand_defs.h |9 -
 include/configs/davinci_dvevm.h  |2 ++
 include/configs/davinci_schmoogie.h  |2 ++
 include/configs/davinci_sffsdr.h |2 ++
 include/configs/davinci_sonata.h |2 ++
 6 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index a974667..dcc0f39 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -54,13 +54,13 @@ static void nand_davinci_hwcontrol(struct mtd_info *mtd, 
int cmd, unsigned int c
struct  nand_chip *this = mtd-priv;
u_int32_t   IO_ADDR_W = (u_int32_t)this-IO_ADDR_W;
 
-   IO_ADDR_W = ~(MASK_ALE|MASK_CLE);
+   IO_ADDR_W = ~(CONFIG_MASK_ALE | CONFIG_MASK_CLE);
 
if (ctrl  NAND_CTRL_CHANGE) {
if ( ctrl  NAND_CLE )
-   IO_ADDR_W |= MASK_CLE;
+   IO_ADDR_W |= CONFIG_MASK_CLE;
if ( ctrl  NAND_ALE )
-   IO_ADDR_W |= MASK_ALE;
+   IO_ADDR_W |= CONFIG_MASK_ALE;
this-IO_ADDR_W = (void __iomem *) IO_ADDR_W;
}
 
diff --git a/include/asm-arm/arch-davinci/nand_defs.h 
b/include/asm-arm/arch-davinci/nand_defs.h
index 187d3c3..a2d01b0 100644
--- a/include/asm-arm/arch-davinci/nand_defs.h
+++ b/include/asm-arm/arch-davinci/nand_defs.h
@@ -28,11 +28,10 @@
 
 #include asm/arch/hardware.h
 
-#defineMASK_CLE0x10
-#defineMASK_ALE0x0a
-
-#define NAND_CE0CLE((volatile u_int8_t *)(CONFIG_SYS_NAND_BASE + 0x10))
-#define NAND_CE0ALE((volatile u_int8_t *)(CONFIG_SYS_NAND_BASE + 0x0a))
+#define NAND_CE0CLE((volatile u_int8_t *)(CONFIG_SYS_NAND_BASE + \
+   CONFIG_MASK_CLE))
+#define NAND_CE0ALE((volatile u_int8_t *)(CONFIG_SYS_NAND_BASE + \
+   CONFIG_MASK_ALE))
 #define NAND_CE0DATA   ((volatile u_int8_t *)CONFIG_SYS_NAND_BASE)
 
 typedef struct  {
diff --git a/include/configs/davinci_dvevm.h b/include/configs/davinci_dvevm.h
index fae430b..1fe3e19 100644
--- a/include/configs/davinci_dvevm.h
+++ b/include/configs/davinci_dvevm.h
@@ -128,6 +128,8 @@
 #define CONFIG_SYS_NAND_BASE   0x0200
 #define CONFIG_SYS_NAND_HW_ECC
 #define CONFIG_SYS_MAX_NAND_DEVICE 1   /* Max number of NAND devices */
+#defineCONFIG_MASK_CLE 0x10
+#defineCONFIG_MASK_ALE 0x0a
 #define CONFIG_ENV_OFFSET  0x0 /* Block 0--not used by 
bootcode */
 #define DEF_BOOTM  
 #elif defined(CONFIG_SYS_USE_NOR)
diff --git a/include/configs/davinci_schmoogie.h 
b/include/configs/davinci_schmoogie.h
index 923e477..40df3c3 100644
--- a/include/configs/davinci_schmoogie.h
+++ b/include/configs/davinci_schmoogie.h
@@ -90,6 +90,8 @@
 #define CONFIG_SYS_NAND_BASE   0x0200
 #define CONFIG_SYS_NAND_HW_ECC
 #define CONFIG_SYS_MAX_NAND_DEVICE 1   /* Max number of NAND devices */
+#defineCONFIG_MASK_CLE 0x10
+#defineCONFIG_MASK_ALE 0x0a
 #define CONFIG_ENV_OFFSET  0x0 /* Block 0--not used by 
bootcode */
 /*=*/
 /* Board related stuff */
diff --git a/include/configs/davinci_sffsdr.h b/include/configs/davinci_sffsdr.h
index 73a59db..5d693f8 100644
--- a/include/configs/davinci_sffsdr.h
+++ b/include/configs/davinci_sffsdr.h
@@ -86,6 +86,8 @@
 #define CONFIG_SYS_NAND_BASE   0x0200
 #define CONFIG_SYS_NAND_HW_ECC
 #define CONFIG_SYS_MAX_NAND_DEVICE 1   /* Max number of NAND devices */
+#defineCONFIG_MASK_CLE 0x10
+#defineCONFIG_MASK_ALE 0x0a
 #define CONFIG_ENV_OFFSET  0x0 /* Block 0--not used by 
bootcode */
 /* I2C switch definitions for PCA9543 chip */
 #define CONFIG_SYS_I2C_PCA9543_ADDR0x70
diff --git a/include/configs/davinci_sonata.h b/include/configs/davinci_sonata.h
index 70d2c7d..6699b3a 100644
--- a/include/configs/davinci_sonata.h
+++ b/include/configs/davinci_sonata.h
@@ -123,6 +123,8 @@
 #define CONFIG_SYS_NAND_BASE   0x0200
 #define CONFIG_SYS_NAND_HW_ECC
 #define CONFIG_SYS_MAX_NAND_DEVICE 1   /* Max number of NAND devices */
+#defineCONFIG_MASK_CLE 0x10
+#defineCONFIG_MASK_ALE 0x0a
 #define CONFIG_ENV_OFFSET  0x0 /* Block 0--not used by 
bootcode */
 #define DEF_BOOTM  
 #elif 

Re: Audio Driver Problem

2009-04-28 Thread David Brownell
On Tuesday 28 April 2009, Steve Chen wrote:
  I am running VLC on my DM6446 and using MVL 2.6.10. After a while of
  playback, the audio playback stalls. VLC is still running, but no
  audio playback. I tried to rerun VLC and still no audio. I preasume
  that the audio device driver locked up or stalled. Is this true, if it
  is true Any help?? Any ideas about the problem?
 
 Are you playing audio file from NFS mounted file system?  If so, you
 want to try play audio file from hard disk.  I remember seeing DMA
 choked due to network performance.

Chip errata say the audio driver should DMA from SRAM,
but it doesn't yet do that.

- Dave



___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


[PATCH] ARM DaVinci: Adding DM357 Support

2009-04-28 Thread s-paulraj
Patch adds support for DaVinci DM357. This SOC is very similar to the DM644x.
The DM357 EVM has 2 NANDs, one small page NAND and another large page NAND.
But the device can only boot of the small page NAND. It does not have NOR
support. This patch has been tested on the DM357 EVM.

Signed-off-by: Sandeep Paulraj s-paul...@ti.com
---
 Makefile|3 +
 include/configs/davinci_dm357_evm.h |  159 +++
 2 files changed, 162 insertions(+), 0 deletions(-)
 create mode 100644 include/configs/davinci_dm357_evm.h

diff --git a/Makefile b/Makefile
index c52894c..81d6759 100644
--- a/Makefile
+++ b/Makefile
@@ -2790,6 +2790,9 @@ davinci_sffsdr_config :   unconfig
 davinci_sonata_config :unconfig
@$(MKCONFIG) $(@:_config=) arm arm926ejs sonata davinci davinci
 
+davinci_dm357_evm_config : unconfig
+   @$(MKCONFIG) $(@:_config=) arm arm926ejs dvevm davinci davinci
+
 lpd7a400_config \
 lpd7a404_config:   unconfig
@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
diff --git a/include/configs/davinci_dm357_evm.h 
b/include/configs/davinci_dm357_evm.h
new file mode 100644
index 000..f129b67
--- /dev/null
+++ b/include/configs/davinci_dm357_evm.h
@@ -0,0 +1,159 @@
+/*
+ * Copyright (C) 2009 Texas Instruments
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __CONFIG_H
+#define __CONFIG_H
+#include asm/sizes.h
+
+/*===*/
+/* Board */
+/*===*/
+#define DV_EVM
+#define CONFIG_SYS_NAND_SMALLPAGE
+#define CONFIG_SYS_USE_NAND
+/*===*/
+/* SoC Configuration */
+/*===*/
+#define CONFIG_ARM926EJS   /* arm926ejs CPU core */
+#define CONFIG_SYS_CLK_FREQ27000   /* Arm Clock frequency */
+#define CONFIG_SYS_TIMERBASE   0x01c21400  /* use timer 0 */
+#define CONFIG_SYS_HZ_CLOCK2700
+#define CONFIG_SYS_HZ  1000
+#define CONFIG_SOC_DM644X
+/**/
+/* definitions for EEPROM on DM357 EVM */
+/**/
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2
+#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS  6
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  20
+/*=*/
+/* Memory Info */
+/*=*/
+#define CONFIG_SYS_MALLOC_LEN  (0x1 + 128*1024)
+#define CONFIG_SYS_GBL_DATA_SIZE   128
+#define CONFIG_SYS_MEMTEST_START   0x8000  /* memtest start */
+#define CONFIG_SYS_MEMTEST_END 0x8100  /* 16MB RAM test */
+#define CONFIG_NR_DRAM_BANKS   1   /* we have 1 bank of DRAM */
+#define CONFIG_STACKSIZE   (256*1024)  /* regular stack */
+#define PHYS_SDRAM_1   0x8000  /* DDR Start */
+#define PHYS_SDRAM_1_SIZE  0x1000  /* DDR size 256MB */
+#define DDR_8BANKS /* 8-bank DDR2 (256MB) */
+/**/
+/* Serial Driver info */
+/**/
+#define CONFIG_SYS_NS16550
+#define CONFIG_SYS_NS16550_SERIAL
+#define CONFIG_SYS_NS16550_REG_SIZE-4
+#define CONFIG_SYS_NS16550_COM10x01c2  /* Base address of 
UART0 */
+#define CONFIG_SYS_NS16550_CLK 2700/* Input clock */
+#define CONFIG_CONS_INDEX  1   /* use UART0 for console */
+#define CONFIG_BAUDRATE115200  /* Default baud rate */
+#define CONFIG_SYS_BAUDRATE_TABLE  { 9600, 19200, 38400, 57600, 115200 }
+/*===*/
+/* I2C Configuration */
+/*===*/
+#define CONFIG_HARD_I2C
+#define CONFIG_DRIVER_DAVINCI_I2C
+#define CONFIG_SYS_I2C_SPEED   8
+#define CONFIG_SYS_I2C_SLAVE   10
+/*==*/
+/* Network  Ethernet Configuration */
+/*==*/
+#define CONFIG_DRIVER_TI_EMAC
+#define CONFIG_MII
+#define CONFIG_BOOTP_DEFAULT
+#define CONFIG_BOOTP_DNS
+#define CONFIG_BOOTP_DNS2
+#define CONFIG_BOOTP_SEND_HOSTNAME
+#define CONFIG_NET_RETRY_COUNT 10
+/*=*/
+/* Flash  Environment */
+/*=*/
+#ifdef CONFIG_SYS_USE_NAND
+#define CONFIG_NAND_DAVINCI
+#undef CONFIG_ENV_IS_IN_FLASH
+#define 

Re: [PATCH] ARM DaVinci: Adding CONFIG options for NAND ALE and CLE

2009-04-28 Thread Steve Chen
On Tue, 2009-04-28 at 16:33 -0400, s-paul...@ti.com wrote:
 The CLE and ALE for DaVinci DM644x is not the same as DM646x. This patch
 adds 2 CONFIG_ options to the config.h header files to all the DM6446 based
 boards. These values are then used by the driver. This has been tested on the
 DM644x, DM355, DM357 and DM365. Support for the latter 3 will be added soon.
 
 Signed-off-by: Sandeep Paulraj s-paul...@ti.com
 ---
  drivers/mtd/nand/davinci_nand.c  |6 +++---
  include/asm-arm/arch-davinci/nand_defs.h |9 -
  include/configs/davinci_dvevm.h  |2 ++
  include/configs/davinci_schmoogie.h  |2 ++
  include/configs/davinci_sffsdr.h |2 ++
  include/configs/davinci_sonata.h |2 ++
  6 files changed, 15 insertions(+), 8 deletions(-)
 
 diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
 index a974667..dcc0f39 100644
 --- a/drivers/mtd/nand/davinci_nand.c
 +++ b/drivers/mtd/nand/davinci_nand.c
 @@ -54,13 +54,13 @@ static void nand_davinci_hwcontrol(struct mtd_info *mtd, 
 int cmd, unsigned int c
   struct  nand_chip *this = mtd-priv;
   u_int32_t   IO_ADDR_W = (u_int32_t)this-IO_ADDR_W;
  
 - IO_ADDR_W = ~(MASK_ALE|MASK_CLE);
 + IO_ADDR_W = ~(CONFIG_MASK_ALE | CONFIG_MASK_CLE);
  
   if (ctrl  NAND_CTRL_CHANGE) {
   if ( ctrl  NAND_CLE )
 - IO_ADDR_W |= MASK_CLE;
 + IO_ADDR_W |= CONFIG_MASK_CLE;
   if ( ctrl  NAND_ALE )
 - IO_ADDR_W |= MASK_ALE;
 + IO_ADDR_W |= CONFIG_MASK_ALE;

When I modified this code in the MV kernel, I remember having to use +=
and -= instead of |= and =.  The reason is tha DM6467 CLE/ALE mask has
large enough that the bits overlaps IO_ADDR_W.




___
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] ARM DaVinci: Adding CONFIG options for NAND ALE and CLE

2009-04-28 Thread Paulraj, Sandeep
Steve,
  My intention was to change that when I add the DM6467 Support which I am 
working on even as we speak.

I am aware of it.

Thanks,
Sandeep

 -Original Message-
 From: Steve Chen [mailto:sc...@mvista.com]
 Sent: Tuesday, April 28, 2009 4:54 PM
 To: Paulraj, Sandeep
 Cc: u-b...@lists.denx.de; davinci-linux-open-source@linux.davincidsp.com
 Subject: Re: [PATCH] ARM DaVinci: Adding CONFIG options for NAND ALE and
 CLE
 
 On Tue, 2009-04-28 at 16:33 -0400, s-paul...@ti.com wrote:
  The CLE and ALE for DaVinci DM644x is not the same as DM646x. This patch
  adds 2 CONFIG_ options to the config.h header files to all the DM6446
 based
  boards. These values are then used by the driver. This has been tested
 on the
  DM644x, DM355, DM357 and DM365. Support for the latter 3 will be added
 soon.
 
  Signed-off-by: Sandeep Paulraj s-paul...@ti.com
  ---
   drivers/mtd/nand/davinci_nand.c  |6 +++---
   include/asm-arm/arch-davinci/nand_defs.h |9 -
   include/configs/davinci_dvevm.h  |2 ++
   include/configs/davinci_schmoogie.h  |2 ++
   include/configs/davinci_sffsdr.h |2 ++
   include/configs/davinci_sonata.h |2 ++
   6 files changed, 15 insertions(+), 8 deletions(-)
 
  diff --git a/drivers/mtd/nand/davinci_nand.c
 b/drivers/mtd/nand/davinci_nand.c
  index a974667..dcc0f39 100644
  --- a/drivers/mtd/nand/davinci_nand.c
  +++ b/drivers/mtd/nand/davinci_nand.c
  @@ -54,13 +54,13 @@ static void nand_davinci_hwcontrol(struct mtd_info
 *mtd, int cmd, unsigned int c
  struct  nand_chip *this = mtd-priv;
  u_int32_t   IO_ADDR_W = (u_int32_t)this-IO_ADDR_W;
 
  -   IO_ADDR_W = ~(MASK_ALE|MASK_CLE);
  +   IO_ADDR_W = ~(CONFIG_MASK_ALE | CONFIG_MASK_CLE);
 
  if (ctrl  NAND_CTRL_CHANGE) {
  if ( ctrl  NAND_CLE )
  -   IO_ADDR_W |= MASK_CLE;
  +   IO_ADDR_W |= CONFIG_MASK_CLE;
  if ( ctrl  NAND_ALE )
  -   IO_ADDR_W |= MASK_ALE;
  +   IO_ADDR_W |= CONFIG_MASK_ALE;
 
 When I modified this code in the MV kernel, I remember having to use +=
 and -= instead of |= and =.  The reason is tha DM6467 CLE/ALE mask has
 large enough that the bits overlaps IO_ADDR_W.
 
 
 

___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Audio Driver Problem

2009-04-28 Thread amr ali

AA,

Did you fix the problem?

--

Amr Ali
 
 From: davi...@pacbell.net
 To: davinci-linux-open-source@linux.davincidsp.com
 Subject: Re: Audio Driver Problem
 Date: Tue, 28 Apr 2009 13:42:31 -0700
 CC: sc...@mvista.com; amra...@hotmail.com
 
 On Tuesday 28 April 2009, Steve Chen wrote:
   I am running VLC on my DM6446 and using MVL 2.6.10. After a while of
   playback, the audio playback stalls. VLC is still running, but no
   audio playback. I tried to rerun VLC and still no audio. I preasume
   that the audio device driver locked up or stalled. Is this true, if it
   is true Any help?? Any ideas about the problem?
  
  Are you playing audio file from NFS mounted file system?  If so, you
  want to try play audio file from hard disk.  I remember seeing DMA
  choked due to network performance.
 
 Chip errata say the audio driver should DMA from SRAM,
 but it doesn't yet do that.
 
 - Dave
 
 

_
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/products/events.aspx___
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 2/3] ARM: da830 - Add base DA830/OMAP-L137 SoC support

2009-04-28 Thread Mark A. Greer
On Tue, Apr 28, 2009 at 11:15:04AM -0500, Ambrose, Martin wrote:
 On Wed, Apr 22, 2009 at 12:58:12, Ambrose, Martin wrote:
 

 I did some further digging. Note that my problem persists with the v4 patches 
 -- no surprise here I think since there were no functional changes. But I can 
 reply on that thread if you like.

 I'm not sure how to proceed and any debugging tips are appreciated.

Hmm, strange one.  I don't know why you're having so many problems and
my system is rock solid.

What version of the hardware are you using?
What version of u-boot are you using?
Where are you downloading the uImage?
When booting the same uImage multiple times, does it fail at *exactly*
  the same place or at different places?
Are you building your kernel with da830_omapl137_defconfig as your
  .config file (unaltered)?

Please send a copy of the entire console log while you boot (including
u-boot messages).  While capturing the log, please issue the 'printenv'
u-boot cmd to see what you have your u-boot env variables set to.

Mark
--

___
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] ARM DaVinci: Adding CONFIG options for NAND ALE and CLE

2009-04-28 Thread David Brownell
On Tuesday 28 April 2009, s-paul...@ti.com wrote:
 The CLE and ALE for DaVinci DM644x is not the same as DM646x. This patch
 adds 2 CONFIG_ options to the config.h header files to all the DM6446 based
 boards. These values are then used by the driver.

I had been thinking that the davinci_nand driver should
probably change to let board_nand_init() really become a
board-specific function...

It would call a driver routine to init the callback functions
and set up private data so that for example the 2GByte NAND
could be properly treated as a single device with two chips,
instead of two separate devices.  (As Linux does; I'm just
assuming that mechanism works right in U-Boot.)

Other private data could include CLE/ALE masks, if needed.
I may well have missed something, but I thought that the
ROM on all chips used the same mask values when booting
from NAND flash... but that non-boot chips might end up
using different values, if they wanted.  (Burst memory
access would work better if toggling low address bits
didn't affect ALE/CLE, etc.)


Alternatively ... how about just letting those values be
defined in the headers if the boot-from-NAND defaults
shouldn't be used?

That is, the u-boot davinci_nand.c code could

#ifndef CONFIG_SYS_DAVINCI_NAND_CLE
... #define it to the default 0x10 ...
#endif

I think the convention for these things (toplevel README) is
that since they're hardware-specific, CONFIG_SYS_* is the
prefix not CONFIG_* for those symbols.


Related: MASK_ALE should not be 0x0a by default, but 0x08;
right?  That's what newer docs say; I think the old stuff
was just a bug.  In Linux, 0x08 works just fine.

And for that matter, include/asm-arm/arch-davinci/nand_defs.h
is starting to look almost un-necessary after those cleanup
patches I sent.  :)


 This has been tested on the 
 DM644x, DM355, DM357 and DM365. Support for the latter 3 will be
 added soon. 

I'm glad to see TI's latest U-Boot work becoming public...

However, this won't apply on top of the cleanup patches I just
sent, which remove the NAND_CE0{ALE,CLE,DATA} symbols in favor
of the relevant nand_chip pointer.  As you know, that change
is important for support of the EVM boards which include the
socketed 2 GByte NAND chips, with multiple chip select lines.

- Dave


___
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] ARM DaVinci: Adding DM357 Support

2009-04-28 Thread David Brownell
On Tuesday 28 April 2009, s-paul...@ti.com wrote:
 Patch adds support for DaVinci DM357. This SOC is very similar to the DM644x.
 The DM357 EVM has 2 NANDs, one small page NAND and another large page NAND.
 But the device can only boot of the small page NAND. It does not have NOR
 support. This patch has been tested on the DM357 EVM.

So this initial U-Boot support only supports the smaller of
the two NAND chips, and access to the second one is only
after booting to the operating system?

I'd have liked to see the NAND driver updates needed to support
the chipselect of the second NAND chip, and use it with HW ECC.

- Dave




___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Audio Driver Problem

2009-04-28 Thread Jerry Johns
He means to use a user-space application that opens up /dev/mem and
manually writes to hardware registers.

In this case, if the stall goes away when you write to that register, a
pending transfer event not being processed could be the issue.

The other case I had to fix in the 2.6.10 audio driver (when I was
getting stalls) was to check the EDMA Missed event register, and to make
sure that that got cleared properly. 

 

Jerry Johns

Design Engineer

Nuvation Research Corp - Canada

Tel: (519) 746-2304 ext. 221

www.nuvation.com http://www.nuvation.com 

 

 

___
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 1/6] ARM: DaVinci: Initial support for Neuros Technologies OSD2 board

2009-04-28 Thread Kevin Hilman
Jorge Luis Zapata Muga jorgeluis.zap...@gmail.com writes:

 On Fri, Apr 17, 2009 at 10:10 PM, Kevin Hilman
 khil...@deeprootsystems.com wrote:
 Jorge Luis Zapata Muga jorgeluis.zap...@gmail.com writes:

 This series of patches add support for the Neuros Technologies OSD2
 board (http://wiki.neurostechnology.com/index.php/OSD_2.0_HD). It is a
 multimedia player/recorder based on DM6446.

 Sorry for the noise about sending the patches too many times,
 hopefully this will be the last time :)

 Signed-off-by: Jorge Luis Zapata jorgeluis.zap...@gmail.com
 ---
  arch/arm/mach-davinci/Kconfig             |    8 +
  arch/arm/mach-davinci/Makefile            |    1 +
  arch/arm/mach-davinci/board-ntosd_644xa.c |   45 
 +
  3 files changed, 54 insertions(+), 0 deletions(-)
  create mode 100644 arch/arm/mach-davinci/board-ntosd_644xa.c

 diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
 index 05a80ca..e359a8c 100644
 --- a/arch/arm/mach-davinci/Kconfig
 +++ b/arch/arm/mach-davinci/Kconfig
 @@ -53,6 +53,14 @@ config MACH_SFFSDR
         Say Y here to select the Lyrtech Small Form Factor
         Software Defined Radio (SFFSDR) board.

 +config MACH_NTOSD_644XA
 +     bool Neuros OSD (644x Revision A)
 +     default n
 +     depends on ARCH_DAVINCI_DM644x
 +     help
 +       Configure this option to use Neuros OSD dm644x revision A
 +          hardware
 +
  config DAVINCI_MUX
       bool DAVINCI multiplexing support
       depends on ARCH_DAVINCI
 diff --git a/arch/arm/mach-davinci/Makefile b/arch/arm/mach-davinci/Makefile
 index b3bb132..2e9656c 100644
 --- a/arch/arm/mach-davinci/Makefile
 +++ b/arch/arm/mach-davinci/Makefile
 @@ -19,4 +19,5 @@ obj-$(CONFIG_CP_INTC)                       += cp_intc.o
  obj-$(CONFIG_MACH_DAVINCI_EVM)       += board-dm644x-evm.o
  obj-$(CONFIG_MACH_DAVINCI_DM646X_EVM)        += board-dm646x-evm.o
  obj-$(CONFIG_MACH_DAVINCI_DM355_EVM) += board-dm355-evm.o
 +obj-$(CONFIG_MACH_NTOSD_644XA)               += board-ntosd_644xa.o
  obj-$(CONFIG_MACH_SFFSDR)            += board-sffsdr.o

 The names chosen here are a bit confusing.  AFAIK, there isn't a SoC
 named dm6446A and it looks like the 'A' is actually the rev. A of the
 board, right?  IIUC, the board is actually called the Neuros OSD2,
 right?


 I think the 'a' comes from the dm6446 chip revision, i agree the name
 was not picked up correctly

 So rather than putting the SoC in the board name, how about

  config MACH_NEUROS_OSD2

 and name the board file board-neuros-osd2.c

 Yes, i would have preferred to do so, but for some reason the machine
 name that was registered is ntosd_644xa. So i wanted to keep the same
 names all over the place and use the same uboot number.

Please change the registered name.  It is not hard to do.

Kevin



___
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] [PATCH] ARM DaVinci: Adding CONFIG options for NAND ALE and CLE

2009-04-28 Thread Paulraj, Sandeep
Scott,
   I will resubmit after i take care of your comments.

Thanks,
Sandeep

From: Scott Wood [scottw...@freescale.com]
Sent: Tuesday, April 28, 2009 5:22 PM
To: Paulraj, Sandeep
Cc: u-b...@lists.denx.de; davinci-linux-open-source@linux.davincidsp.com
Subject: Re: [U-Boot] [PATCH] ARM DaVinci: Adding CONFIG options for NAND ALE 
and CLE

On Tue, Apr 28, 2009 at 04:33:14PM -0400, s-paul...@ti.com wrote:
 diff --git a/include/configs/davinci_dvevm.h b/include/configs/davinci_dvevm.h
 index fae430b..1fe3e19 100644
 --- a/include/configs/davinci_dvevm.h
 +++ b/include/configs/davinci_dvevm.h
 @@ -128,6 +128,8 @@
  #define CONFIG_SYS_NAND_BASE 0x0200
  #define CONFIG_SYS_NAND_HW_ECC
  #define CONFIG_SYS_MAX_NAND_DEVICE   1   /* Max number of NAND devices */
 +#define  CONFIG_MASK_CLE 0x10
 +#define  CONFIG_MASK_ALE 0x0a

Make it CONFIG_SYS_DAVINCI_NAND_CLE/ALE.

Also, no tab after #define.

-Scott

___
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] ARM DaVinci: Adding DM357 Support

2009-04-28 Thread Paulraj, Sandeep
Dave,
  What I have done is sufficient. A 'dm357.c' file will not be required as 
the dm644x.c file will take care of everything. AS long as your patches ensure 
that dm644x works, the DM357 will work. This is because DM357 is very similar 
to the DM644x. If you want me to put a dm357 file then I will have to make an 
exact copy of the Dm6446 file. Similarly if you want me to keep a Dm357 folder 
in the board/davinci folder I will copy everything from the dvevm folder.

Thanks,
Sandeep

 -Original Message-
 From: David Brownell [mailto:davi...@pacbell.net]
 Sent: Tuesday, April 28, 2009 6:00 PM
 To: Paulraj, Sandeep; u-b...@lists.denx.de
 Cc: davinci-linux-open-source@linux.davincidsp.com
 Subject: Re: [PATCH] ARM DaVinci: Adding DM357 Support
 
 On Tuesday 28 April 2009, s-paul...@ti.com wrote:
   Makefile                            |    3 +
   include/configs/davinci_dm357_evm.h |  159
 +++
   2 files changed, 162 insertions(+), 0 deletions(-)
 
 I believe that will be insufficient with the current
 U-Boot arm-next branch.  Won't you also be needing
 a cpu/arm926ejs/davinci/dm357.c file to handle the
 various ways it differs from a dm6446 chip?
 

___
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] ARM DaVinci: Adding DM357 Support

2009-04-28 Thread Paulraj, Sandeep
Dave,
We can add such support/enhancements later. The patch as such will work 
for sure.
In our LSPs we can use only one NAND at a time. We do not at this point of time 
have support even in the kernel where both NANDs can be used at the same time. 
Its only either of the 2.

Thanks,
Sandeep

 -Original Message-
 From: David Brownell [mailto:davi...@pacbell.net]
 Sent: Tuesday, April 28, 2009 5:57 PM
 To: Paulraj, Sandeep; u-b...@lists.denx.de
 Cc: davinci-linux-open-source@linux.davincidsp.com
 Subject: Re: [PATCH] ARM DaVinci: Adding DM357 Support
 
 On Tuesday 28 April 2009, s-paul...@ti.com wrote:
  Patch adds support for DaVinci DM357. This SOC is very similar to the
 DM644x.
  The DM357 EVM has 2 NANDs, one small page NAND and another large page
 NAND.
  But the device can only boot of the small page NAND. It does not have
 NOR
  support. This patch has been tested on the DM357 EVM.
 
 So this initial U-Boot support only supports the smaller of
 the two NAND chips, and access to the second one is only
 after booting to the operating system?
 
 I'd have liked to see the NAND driver updates needed to support
 the chipselect of the second NAND chip, and use it with HW ECC.
 
 - Dave
 
 
 

___
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] ARM DaVinci: Adding CONFIG options for NAND ALE and CLE

2009-04-28 Thread Paulraj, Sandeep
Dave,

Please see inline.

 -Original Message-
 From: David Brownell [mailto:davi...@pacbell.net]
 Sent: Tuesday, April 28, 2009 5:51 PM
 To: Paulraj, Sandeep; u-b...@lists.denx.de
 Cc: davinci-linux-open-source@linux.davincidsp.com
 Subject: Re: [PATCH] ARM DaVinci: Adding CONFIG options for NAND ALE and
 CLE
 
 On Tuesday 28 April 2009, s-paul...@ti.com wrote:
  The CLE and ALE for DaVinci DM644x is not the same as DM646x. This patch
  adds 2 CONFIG_ options to the config.h header files to all the DM6446
 based
  boards. These values are then used by the driver.
 
 I had been thinking that the davinci_nand driver should
 probably change to let board_nand_init() really become a
 board-specific function...
 
 It would call a driver routine to init the callback functions
 and set up private data so that for example the 2GByte NAND
 could be properly treated as a single device with two chips,
 instead of two separate devices.  (As Linux does; I'm just
 assuming that mechanism works right in U-Boot.)
[Sandeep] At the U-Boot level do we really need this mechanism?
 
 Other private data could include CLE/ALE masks, if needed.
[Sandeep] This is the way we do it in the kernel. Again does U-boot really need 
this much sophistication.
 I may well have missed something, but I thought that the
 ROM on all chips used the same mask values when booting
 from NAND flash... but that non-boot chips might end up
 using different values, if they wanted.  (Burst memory
 access would work better if toggling low address bits
 didn't affect ALE/CLE, etc.)
 
 
 Alternatively ... how about just letting those values be
 defined in the headers if the boot-from-NAND defaults
 shouldn't be used?
 
 That is, the u-boot davinci_nand.c code could
 
   #ifndef CONFIG_SYS_DAVINCI_NAND_CLE
   ... #define it to the default 0x10 ...
   #endif
[Sandeep] It is my personal opinion that we should try to avoid such #ifdefs in 
the driver. I would just define all these in the config.h file. Let me know 
your opinion. We will need such a #ifndef for the CLE as well so I would just 
put both the values in the config.h rather than have 2 #ifndefs in the NAND 
driver
 
 I think the convention for these things (toplevel README) is
 that since they're hardware-specific, CONFIG_SYS_* is the
 prefix not CONFIG_* for those symbols.
[Sandeep] will do
 
 
 Related: MASK_ALE should not be 0x0a by default, but 0x08;
 right? 
[Sandeep] That is what I use in the internal LSP releases
 That's what newer docs say; I think the old stuff
 was just a bug.  In Linux, 0x08 works just fine.
[Sandeep] Yes that is correct. I was going to send an e-mail tomorrow to see if 
anyone had any objections to me changing this value
 
 And for that matter, include/asm-arm/arch-davinci/nand_defs.h
 is starting to look almost un-necessary after those cleanup
 patches I sent.  :)
[Sandeep] yes I noticed that.
 
 
  This has been tested on the
  DM644x, DM355, DM357 and DM365. Support for the latter 3 will be
  added soon.
[Sandeep] Its ready, it just a matter of getting the patches to apply over 
other patches in a form acceptable to everybody.
 
 I'm glad to see TI's latest U-Boot work becoming public...
[Sandeep] I don't know why version 1.3.4 has not become public yet but it will 
be soon.
 
 However, this won't apply on top of the cleanup patches I just
 sent, which remove the NAND_CE0{ALE,CLE,DATA} symbols in favor
 of the relevant nand_chip pointer.  As you know, that change
 is important for support of the EVM boards which include the
 socketed 2 GByte NAND chips, with multiple chip select lines.
[Sandeep] yes and I will send an updated patch tomorrow.
 
 - Dave
 

___
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] ARM DaVinci: Adding DM357 Support

2009-04-28 Thread David Brownell
On Tuesday 28 April 2009, Paulraj, Sandeep wrote:
 Dave,
   We can add such support/enhancements later. The
 patch as such will work for sure.

OK, I can understand that.  This board seems to have
the most complex NAND config of the DaVinci EVMs.


 In our LSPs we can use 
 only one NAND at a time. We do not at this point of time
 have support even in the kernel where both NANDs can be
 used at the same time. Its only either of the 2.   

And for that matter, even the DaVinci GIT tree doesn't
yet support this board ... much less mainline Linux!

I believe the current NAND driver (in 2.6.30-rc) should
handle this fine, though.

- Dave


 
 Thanks,
 Sandeep
 
  -Original Message-
  From: David Brownell [mailto:davi...@pacbell.net]
  Sent: Tuesday, April 28, 2009 5:57 PM
  To: Paulraj, Sandeep; u-b...@lists.denx.de
  Cc: davinci-linux-open-source@linux.davincidsp.com
  Subject: Re: [PATCH] ARM DaVinci: Adding DM357 Support
  
  ...
  
  So this initial U-Boot support only supports the smaller of
  the two NAND chips, and access to the second one is only
  after booting to the operating system?
  
  I'd have liked to see the NAND driver updates needed to support
  the chipselect of the second NAND chip, and use it with HW ECC.
  
  - Dave
  
  
  
 
 



___
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] ARM DaVinci: Adding CONFIG options for NAND ALE and CLE

2009-04-28 Thread David Brownell
Hi Sandeep,

On Tuesday 28 April 2009, Paulraj, Sandeep wrote:
  
  I had been thinking that the davinci_nand driver should
  probably change to let board_nand_init() really become a
  board-specific function...
  
  It would call a driver routine to init the callback functions
  and set up private data so that for example the 2GByte NAND
  could be properly treated as a single device with two chips,
  instead of two separate devices.  (As Linux does; I'm just
  assuming that mechanism works right in U-Boot.)
 
 [Sandeep] At the U-Boot level do we really need this mechanism?

I think it will improve Linux interop.

For example, the MTDPART support in U-Boot provides a string
that can be passed on the kernel command line to ensure that
U-Boot and Linux use the same partitioning.

But ... that won't work very well if Linux sees one big device,
while U-Boot sees two smaller ones.  That mtdpart=... command
line string won't work for Linux.

 
  Other private data could include CLE/ALE masks, if needed.

 [Sandeep] This is the way we do it in the kernel. Again does
 U-boot really need this much sophistication.

Erm, the 2.6.30 code (and davinci-git) passes the masks in
through platform_data; they're not fixed at compile time.


  That is, the u-boot davinci_nand.c code could
  
  #ifndef CONFIG_SYS_DAVINCI_NAND_CLE
  ... #define it to the default 0x10 ...
  #endif

 [Sandeep] It is my personal opinion that we should try to
 avoid such #ifdefs in the driver. I would just define all
 these in the config.h file. Let me know your opinion.

The place to *really* avoid #ifdefs is inside C functions.
I could agree that putting such defaults into the DaVinci
nand.h header might be prettier.

But I'd like to keep the config.h files free of such stuff.
Especially, free of stuff that doesn't change from board
to board (except in unusual cases).


 We will need such a #ifndef for the CLE as well so I would
 just put both the values in the config.h rather than have
 2 #ifndefs in the NAND driver

Well, nand.h would be better.  Especially considering
that board using a non-default values are uncommon.


  Related: MASK_ALE should not be 0x0a by default, but 0x08;
  right? 

 [Sandeep] That is what I use in the internal LSP releases

   That's what newer docs say; I think the old stuff
  was just a bug.  In Linux, 0x08 works just fine.

 [Sandeep] Yes that is correct. I was going to send an e-mail
 tomorrow to see if anyone had any objections to me changing this value 

Nah ... just fixit.  ;)

- Dave

___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


Re: is there any LCD Kits for DM355 DVEVM board

2009-04-28 Thread Liu Yebo
Hi
   I am working with LCD on our DM355 customed board. I tried the LCD module of 
INNOLUX DISPLAY CORPORATION and modified the resolution 640x480 to 800 x480 . 
Now it works fine.
  - Original Message - 
  From: weixin Li 
  To: Carl Renaud 
  Cc: davinci-linux-open-source@linux.davincidsp.com 
  Sent: Wednesday, April 29, 2009 2:21 AM
  Subject: Re: is there any LCD Kits for DM355 DVEVM board


Thanks for your input, Carl!

Does this mean there is no available LCD kits for DM355 EVM board? From 
TI's Davinci Linux video sysfs user guide, there is Logic PD encoder is used to 
displaying to a Logic PD LCD monitor. Do you any idea about this? 

Thanks a lot,
Wayne

--- On Mon, 4/27/09, Carl Renaud carl.ren...@gmail.com wrote:

  From: Carl Renaud carl.ren...@gmail.com
  Subject: Re: is there any LCD Kits for DM355 DVEVM board
  To: weixinl...@yahoo.com
  Cc: davinci-linux-open-source@linux.davincidsp.com
  Date: Monday, April 27, 2009, 7:07 PM


You can use the THS8200 daughter card (sold by Spectrum), but will
need to modify the drivers to support RGB output to an LCD monitor
(not a trivial task).

On Fri, Apr 24, 2009 at 10:02 PM, weixin Li weixinl...@yahoo.com wrote:
 Hello

 I have a DM355 EVM board and want to connect an LCD. Is there any
available
 LCD module can be used? Is there daughter board available with the mating
 connector to connect directly to the EVM board?

 Thanks,
 Wayne
 ___
 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


RE: Changing Machine ID

2009-04-28 Thread Manjunatha AM
Thanks a lot steve.. after disabling EABI in my kernel config I could able
to boot the board..

Thanks a lot again..
Manjunath.AM

-Original Message-
From: Steve Chen [mailto:sc...@mvista.com]
Sent: Tuesday, April 28, 2009 6:23 PM
To: manjunat...@tataelxsi.co.in
Cc: davinci-linux-open-source@linux.davincidsp.com
Subject: RE: Changing Machine ID


On Tue, 2009-04-28 at 18:10 +0530, Manjunatha AM wrote:
 Hi Steve,

 Thanks for your reply..

 I checked in /dev/console and it is present. I am using nfs file system
 only...facing this problem while mounting nfs filesystem only...

 With the same setup and bootargs,I could boot the device properly with
 2.6.10 kernel image but problem is only with 2.6.28 and hence i cant
suspect
 on filesys..

 Is there /sbin/Init is not getting proper support for 2.6.28 kernel since
 the filesys used is bit old version???

One of Caglar's suggestions is disable EABI in the kernel config and
re-compile the kernel.  It worked for last poster.  Perhaps you want to
try it as well.

Regards,

Steve




The information contained in this electronic message and any attachments to 
this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged 
information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please 
notify the sender immediately and destroy
 all copies of this message and any attachments contained in it.



___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source