can nand write.jffs2 support yaffs2 format?

2009-02-15 Thread zuowenping
dear all:
I use a nand flash in dm355,the best way i can burn rootfs to flash by booting 
linux and mount the format yaffs2 and copy root files for avoiding bad 
blocks,if i am  in uboot state,can i use the cmd nand write.jffs2  to burn the 
yaffs2 image to the address ?
I have tested and  it is ok,but my mtdblock3 has no bad blocks for the rootfs 
area,I'm not sure if it has,what will happen?it seem only support jffs2 by the 
name command nand write.jffs2! 

2009-02-15 



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


Re: dm6467 nand filesystem question

2009-02-15 Thread Yusuf Caglar AKYUZ
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

gather bzbz wrote:
 Hey, all


Hi,

 I am trying to boot kernel and filesystem from the NAND on the 6467 EVM. 
 Please help!
 
 1. The nand partition is 
 0x-0x0008 : bootloader
 0x0008-0x000a : params
 0x000a-0x004a : kernel
 0x004a-0x0800 : filesystem
 
 2. The filesystem and kernel have been erased and programmed with nand 
 erase and nand write from u-boot. nboot command finds the kernel section 
 OK and continues the boot. bootargs is console=ttyS0,115200n8 noinitrd rw 
 root=/dev/mtdblock3
 

I guess you have to tell kernel your file system type with
rootfstype option.

Regards,
Caglar
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iEYEARECAAYFAkmX4/QACgkQ/nL+S5dojeggEACdGChtdMbU9dGvEow4cm9RsMEA
FlsAnAkEW4ArEt+O7is4LnKSXw3OnxJD
=LTNs
-END PGP SIGNATURE-

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


NAND uboot params

2009-02-15 Thread gather bzbz
What is the best way to read the bootdelay param from the linux kernel? Looks 
like the NAND param sector address starts from 0x4200 + 0x8, an ioremap 
failed. Anyone knows how to read the u-boot params on the NAND from the kernel? 
Thx a ton!



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


Re: NAND uboot params

2009-02-15 Thread mayank
you can use fw_printenv and fw_setenv commands to read and set uboot 
environment params from the kernel.
google out the commands and you will get all the neccessory info about 
these commands.


gather bzbz wrote:
What is the best way to read the bootdelay param from the linux 
kernel? Looks like the NAND param sector address starts from 
0x4200 + 0x8, an ioremap failed. Anyone knows how to read the 
u-boot params on the NAND from the kernel? Thx a ton!





*Email Scanned for Virus  Dangerous Content by :* 
*www.CleanMailGateway.com*




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


--
_
Disclaimer: This e-mail message and all attachments transmitted with it
are intended solely for the use of the addressee and may contain legally
privileged and confidential information. If the reader of this message
is not the intended recipient, or an employee or agent responsible for
delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution, copying, or other use of
this message or its attachments is strictly prohibited. If you have
received this message in error, please notify the sender immediately by
replying to this message and please delete it from your computer. Any
views expressed in this message are those of the individual sender
unless otherwise stated.Company has taken enough precautions to prevent
the spread of viruses. However the company accepts no liability for any
damage caused by any virus transmitted by this email.
__


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


Building video_copy using CCS3.3

2009-02-15 Thread 博 姚
hi,all. I'm using DM6446,I want to build the video_copy using CCS3.3,
the video_copy is a example of xdias6.22 
 
but I got some errors when I builded the project.
the error says can not open file 'xdc/std.h'  
and It's the same about other header files

I'm sure I've add the directory to the compiler in customize-directories
 
How can I fix the program?
Thanks in advance!
Bob


  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


booting via tftp using nfs filesystem + dm6446

2009-02-15 Thread kirthika varadarajan
I have difficulty in booting via tftp using file system.

My boot configuration is as follows

bootdelay=3
baudrate=115200
netmask=255.255.255.0
rootpath=/home/kirthika/workdir/filesys
bootfile=uImage
gatewayip=192.168.0.1
serverip=192.168.0.185
nfshost=192.168.0.184
bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs
nfsroot=192.16
8.0.184:/home/kirthika/workdir/filesys,nolock mem=120M
ipaddr=192.168.0.188
bootcmd=dhcp;bootm
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:0e:99:02:29:00
videostd=ntsc


Starting kernel ...

Uncompressing
Linux.
... done, booting the.Linux version
2.6.10_mvl401-davinc
i_evm (kirth...@localhost.localdomain) (gcc version 3.4.3 (MontaVista
3.4.3-25.0
.30.0501131 2005-07-23)) #6 Sun Feb 15 18:19:53 KST 2009
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Machine: DaVinci EVM
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists
Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=dhcp
root=/dev/nfs nf
sroot=192.168.0.184:/home/kirthika/workdir/filesys,nolock mem=120M
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 120MB = 120MB total
Memory: 118784KB available (2311K code, 487K data, 136K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
spawn_desched_task()
desched cpu_callback 3/
ksoftirqd started up.
desched cpu_callback 2/
desched thread 0 started up.
NET: Registered protocol family 16
Registering platform device 'nor_davinci.0'. Parent at platform
Registering platform device 'nand_davinci.0'. Parent at platform
Registering platform device 'musb_hdrc'. Parent at platform
DaVinci I2C DEBUG: 18:17:12 Feb 15 2009
Registering platform device 'i2c'. Parent at platform
usbcore: registered new driver usbfs
usbcore: registered new driver hub
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
yaffs Feb 15 2009 18:16:41 Installing.
Registering platform device 'davincifb.0'. Parent at platform
Console: switching to colour frame buffer device 90x30
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
Registering platform device 'serial8250'. Parent at platform
ìtyS0 at MMIO 0x1c2 (irq = 40) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
Registering platform device 'ti_davinci_emac'. Parent at platform
TI DaVinci EMAC: MAC address is 00:0e:99:02:29:00
TI DaVinci EMAC Linux version updated 4.0
TI DaVinci EMAC: Installed 1 instances.
netconsole: not configured, aborting
i2c /dev entries driver
Linux video capture interface: v1.00
Registering platform device 'vpfe.1'. Parent at platform
DaVinci v4l2 capture driver V1.0 loaded
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
hda: TOSHIBA MK4026GAX RoHS, ATA DISK drive
elevator: using anticipatory as default io scheduler
ide0 at 0xe10661f0-0xe10661f7,0xe10663f6 on irq 22
hda: max request size: 128KiB
hda: 78140160 sectors (40007 MB), CHS=65535/16/63
 hda: unknown partition table
ide0: BM-DMA at 0xe1066000-0xe1066007, BIOS settings: hda:pio, hdb:pio
mice: PS/2 mouse device common for all mice
musb_hdrc: version 2.2a/db-0.4.8 [pio] [host] [debug=0]
musb_hdrc: USB Host mode controller at c806 using PIO, IRQ 12
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Registering platform device 'davinci-audio.0'. Parent at platform
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET: Registered protocol family 1
NET: Registered protocol family 17
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 192.168.0.98, my address is 0.0.0.0
IP-Config: Unable to set interface netmask (-99).
Looking up port of RPC 13/2 on 192.168.0.184
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 15/1 on 192.168.0.184
RPC: sendmsg returned error 101
portmap: RPC call returned error 101
Root-NFS: Unable to get mountd port number from server, using default
RPC: sendmsg returned error 101
mount: RPC call returned error 101
Root-NFS: Server returned error -101 while mounting
/home/kirthika/workdir/files
ys
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 

Re: booting via tftp using nfs filesystem + dm6446

2009-02-15 Thread zhenfeng ren
 bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs
 nfsroot=192.16
 8.0.184:/home/kirthika/workdir/filesys,nolock mem=120M
NFS: 192.168.0.184:/home/kirthika/workdir/filesys works OK?
-- 
Thanks,
Zhenfeng Ren

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


Re: booting via tftp using nfs filesystem + dm6446

2009-02-15 Thread kirthika varadarajan
Hi,
 dhcp is not working. i set static ip addr and i am able to mount nfs file
system.

Thanks a lot



On 2/16/09, zhenfeng ren 1985re...@gmail.com wrote:

  bootargs=console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs
  nfsroot=192.16
  8.0.184:/home/kirthika/workdir/filesys,nolock mem=120M
 NFS: 192.168.0.184:/home/kirthika/workdir/filesys works OK?
 --
 Thanks,
 Zhenfeng Ren

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


Nor booting and mounting Nand file system in dm6446

2009-02-15 Thread Vinayagam Mariappan
I am trying to boot via Nor Flash

 My boot settings are as follows
bootdelay=3
baudrate=115200
bootfile=uImage
nfshost=192.168.0.184
rootpath=/home/Vina/workdir/filesys
bootargs=console=ttyS0,115200n8 noinitrd rw ip=192.168.0.188:192
.168.0.185:192.1
68.0.1:255.255.255.0:::off root=/dev/nfs
nfsroot=192.168.0.184:/home/Vina/workdir/filesys,nolock
mem=120M
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:0e:99:02:29:00
videostd=ntsc
bootm=0x205
bootcmd=bootm 0x205
filesize=14b9d0
fileaddr=8000
gatewayip=192.168.0.1
netmask=255.255.255.0
ipaddr=192.168.0.188
serverip=192.168.0.185

I built kernel with the following settings


CONFIG_MTD=y
CONFIG_MTD_PARTITIONS=y

CONFIG_MTD_CHAR=y
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y

CONFIG_MTD_CFI=y
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
CONFIG_MTD_CFI_AMDSTD=y
CONFIG_MTD_CFI_UTIL=y

CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0x800
CONFIG_MTD_PHYSMAP_LEN=0
CONFIG_MTD_PHYSMAP_BANKWIDTH=2



But when i boot the device i am not getting the nand partition.

When i put cat /proc/mtd

I am getting only this message.
   dev:size   erasesize  name






(ii)Similarly when booting from NOR



   I tried tftp 80008000 uImage

   erase 205 +14b9d0

   cp 8000 205 14b9d0

I am getting



   Copy to Flash...-Timeout writing to Flash

 When i boot via nor the kernel get crashed.



Suggest me how to resolve booting via nor as well as nand partition.
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: FYI: upstream-cleanup branch

2009-02-15 Thread Kumar, Purushotam

 
  This loop was added because we have observed earlier on non-linux
  operating system that MMC gives very fast interrupt when FIFO is
  32 bytes which has caused stack overflow. In my test, count has
  never increased more than 1 but it may be more than 1 for some
  or other card. It will be better idea to write to FIFO when
  DXRDY/ DRRDY bit is already set instead of going out and coming
  back 2nd time immediately to IRQ.
 
  At first glance, it seems that it is unbounded while loop. But
  it has proper break if status is zero. All bits in register
  DAVINCI_MMCST0 are cleared by read and so read of DAVINCI_MMCST0
  will certainly return zero after few iteration irrespective of
  any condition because controller does not report same error
  again. So, I feel there is no change required and we should leave
  it as it is. What is your view on this?
 
 It needs at least a comment, pointing out that bytes_left will
 either decrease to zero or there will be no more FIFO business
 to handle (since I/O is happening) ... so it's not unbounded
 even when DMA is disabled.

I will add comment.

 
 
   Note there's another unbounded loop in the driver, which I didn't
   fix:  the main irq handler, mmc_davinci_irq(), which is calling
   that handle_core_command() thing.  The handle_core() thing ought
   to be the main body of the IRQ handler; without looping; and
   that spurious IRQ branch should return IRQ_NONE (and never even
   happen, for that matter, easily arranged).
  
   - Dave
 
  Ya, You are right mmc_davinci_irq(), which is calling that
  handle_core_command() in the unbounded loop. Do we really need
  this loop at first place? I tried after removing this unbounded
  loop and it seems that everything is working. What is your view
  on this? I agree with you that we should have IRQ_NONE.
 
 Remove that loop.
 

I will remove this loop.

Purushotam


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


Query regarding IRAM usage on DM6467

2009-02-15 Thread Rufus Michael G
Hi,

 

I am Rufus Michael from ITTIAM Systems (P) Ltd. 

This is a query regarding the IRAM usage for audio on the DM6467
platform.

These are our observations:

1.   When audio capture buffers are allocated from TCM, silence is
captured.

2.   When audio playout buffers are allocated from TCM, silence is
heard in playout.

 

System conditions:

1.   Fragment size = 1024

2.   We have ensured that IRAM is enabled as mentioned in the ARM
subsystem guide.

3.   Physical address base for IRAM used is 0x0001.

4.   Virtual address base for IRAM used is 0xe100.

 

Can you please let us know of any erratas or in general any suggestions
on the same?

Thanks in advance.

 

Best Regards,

Rufus

 

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


dm355 evm cann't use uar1

2009-02-15 Thread zuowenping
I tested uart1 output by dc3 daughter card expansion of dm355 evm,I use a 
oscillograph to test 19,21 pin on dc3 when i use command echo 1 
/dev/tts/1  on dm355 evm,but i can't grasp signals ,why?

2009-02-16 



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