Rajesh, Tftpboot the kernel image to target memory. Should work by just typing 'tftp 0x86000000' on u-boot command line (assuming you set the bootfile, serverip and ipaddr (ststic) variable).
Or, if you using dhcp, just type 'dhcp'. Then write the kernel image from external memory to nand as nandwrite <source> <destination> <size> In your case 'nandwrite 0x86000000 <destination> <uImage file size>' About the filesystem, read the last topic on http://wiki.davincidsp.com/index.php?title=Filesystem_in_NOR_or_NAND Let me know if you need further help, Cheers, Niko -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of rajesh Sent: Thursday, May 22, 2008 1:19 PM To: davinci-linux-open-source@linux.davincidsp.com Subject: Mounting kernel image and jffs2 file system into NAND flash on HDEVM Hi I am trying to boot the DVEVM(TMS320DM6446) from the NAND flash, followed the steps from SPRAAA0(TI) i have loaded the bootloader into the NAND flash and the board is booting up Now i have to load the kernel image and filesystem into the NAND flash I have created the four partitions in the NAND dev: size erasesize name mtd0: 00040000 00004000 "bootloader" mtd1: 00020000 00004000 "params" mtd2: 00400000 00004000 "kernel" mtd3: 03ba0000 00004000 "filesystem" Can anyone explain me how to load the kernel image and jffs2 filesystem into NAND flash. Can i use the nandwrite command for this purpose The boot log is shown below /////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /// Booting PSP Boot Loader Starting NAND Copy Booting Application @ 0x81080000 U-Boot 1.1.3 (Mar 3 2006 - 01:18:40) U-Boot code: 81080000 -> 8109A3DC BSS: -> 810A3368 RAM Configuration: Bank #0: 80000000 256 MB unknown vendor=0 Flash: 0 kB NAND:64 MB In: serial Out: serial Err: serial ARM Clock :- 283MZ DDR Clock :- 189MZ Hit any key to stop autoboot: 0 TFTP from server 10.50.40.201; our IP address is 10.50.40.202 Filename 'uImage_nandpart'. Load address: 0x86000000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ########### done Bytes transferred = 1384044 (151e6c hex) ## Booting image at 86000000 ... Image Name: Linux-2.6.10_mvl401-davinci_evm Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1383980 Bytes = 1.3 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux....................................................................... .................. done, booting the.Linux version 2.6.10_mvl401-davinci_evm ([EMAIL PROTECTED]) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.30.0501131 2005-07-23)) #11 Thu May 22 11:29:15 IST 2008 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 root=/dev/nfs nfsroot=10.50.40.201:/home/ipstb/workdir/filesys,nolock ip=10.50.40.202:10.50.40.201:10.50.40.1:255.255.248.0:Elix1000::off mem=120M video=dm64xxfb:output=pal 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 (2370K code, 470K data, 136K init) Mount-cache hash table entries: 512 (order: 0, 4096 bytes) CPU: Testing write buffer coherency: ok spawn_desched_task(00000000) desched cpu_callback 3/00000000 ksoftirqd started up. desched cpu_callback 2/00000000 desched thread 0 started up. NET: Registered protocol family 16 Registering platform device 'musb_hdrc'. Parent at platform DaVinci I2C DEBUG: 19:30:31 Feb 15 2008 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 2008 19:30:03 Installing. davincifb: Options "output=pal" DaVinci: Output on PAL in COMPONENT format, Enabled windows: Video0 Video1 OSD0 OSD1 Setting Video0 size 720x576, position (0,0) Setting Video1 size 720x576, position (0,0) Setting OSD0 size 720x576, position (0,0) Setting OSD1 size 720x576, position (0,0) Registering platform device 'davincifb.0'. Parent at platform Setting Up Clocks for DM420 OSD Console: switching to colour frame buffer device 90x36 fb0: dm_osd0_fb frame buffer device fb1: dm_vid0_fb frame buffer device fb2: dm_osd1_fb frame buffer device fb3: dm_vid1_fb frame buffer device Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled Registering platform device 'serial8250'. Parent at platform ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A ttyS1 at MMIO 0x1c20400 (irq = 41) 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:ff:ff:ff 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 elevator: using anticipatory as default io scheduler NFTL driver: nftlcore.c $Revision: 1.96 $, nftlmount.c $Revision: 1.39 $ DaVinci NAND Controller rev. 2.1 NAND device: Manufacturer ID: 0xec, Chip ID: 0x36 (Samsung NAND 64MiB 1,8V 8-bit) Scanning device for bad blocks Creating 4 MTD partitions on "NAND 64MiB 1,8V 8-bit": 0x00000000-0x00040000 : "bootloader" 0x00040000-0x00060000 : "params" ftl_cs: FTL header not found. 0x00060000-0x00460000 : "kernel" 0x00460000-0x04000000 : "filesystem" ftl_cs: FTL header not found. 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 c80ac000 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 IP-Config: Complete: device=eth0, addr=10.50.40.202, mask=255.255.248.0, gw=10.50.40.1, host=Elix1000, domain=, nis-domain=(none), bootserver=10.50.40.201, rootserver=10.50.40.201, rootpath= Looking up port of RPC 100003/2 on 10.50.40.201 Looking up port of RPC 100005/1 on 10.50.40.201 VFS: Mounted root (nfs filesystem). Freeing init memory: 136K INIT: version 2.85 booting Mounting a tmpfs over /dev...done. Creating initial device nodes...done. Activating swap...done. Remounting root filesystem...done. Calculating module dependencies WARNING: Couldn't open directory /lib/modules/2.6.10_mvl401-davinci_evm: No such file or directory FATAL: Could not open /lib/modules/2.6.10_mvl401-davinci_evm/modules.dep.temp for writing: No such file or directory Loading modules: Starting checking all file systems: fsck fsck 1.35 (28-Feb-2004) Starting mounting local filesystems: mount nothing was mounted Cleaning: /etc/network/ifstate. Setting up IP spoofing protection: rp_filter. Disable TCP/IP Explicit Congestion Notification: done. Starting network interfaces: done. Starting hotplug subsystem: pci pci [success] usb usb [success] isapnp isapnp [success] ide ide [success] input input [success] scsi scsi [success] done. Starting portmap daemon: portmap. Cleaning: /tmp /var/lock /var/run done. Setting pseudo-terminal access permissions...done. Updating /etc/motd...done. INIT: Entering runlevel: 3 Starting system log daemon: syslogd klogd. Starting NFS common utilities: statd lockd. Starting internet superserver: inetd. Starting MontaVista target tools daemon: mvltdmvltd version 2.1 MontaVista Software,Inc. . MontaVista(R) Linux(R) Professional Edition 4.0 (0501140) Elix1000 login: root Last login: Thu Jan 1 12:00:52 2004 on console Linux Elix1000 2.6.10_mvl401-davinci_evm #11 Thu May 22 11:29:15 IST 2008 armv5tejl GNU/Linux Welcome to MontaVista(R) Linux(R) Professional Edition 4.0 (0501140). [EMAIL PROTECTED]:~# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00004000 "bootloader" mtd1: 00020000 00004000 "params" mtd2: 00400000 00004000 "kernel" mtd3: 03ba0000 00004000 "filesystem" [EMAIL PROTECTED]:~# //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ///////////////////////////////////// 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. Contact your Administrator for further information. _______________________________________________ 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