Rajesh, You can look at the following Wiki page for how to create and write a JFFS2 image to flash.
http://wiki.davincidsp.com/index.php?title=HOWTO_Create_Filesystems_on_D aVinci Sincerely, Chase Maupin Software Applications Catalog DSP Products e-mail: [EMAIL PROTECTED] phone: (281) 274-3285 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of rajesh > Sent: Thursday, June 05, 2008 1:05 AM > To: [email protected] > Subject: Mounting jffs2 filesystem on NOR flash in MVL401 linux 2.6.10 > kernel > > HI > I am trying to flash jffs2 FS and uImage into NOR flash and > boot the board from the NOR flash in MVL401 2.6.10 kernel > > I am successfully flashed the jffs2 FS and uImage into NOR flash > when i tried to boot the from NOR flash it is giving kernel panic > > The environment variables are set as > > > DaVinci EVM # printenv > bootdelay=3 > baudrate=115200 > bootaddr=0x86000000 > ethaddr=00:0e:99:02:51:76 > setboot=setenv bootargs $(bootargs) video=dm64xxfb:output=pal > rootpath=/home/workdir/filesys > bootfile=uImage_norpart > filesize=15774b8 > fileaddr=86000000 > ipaddr=10.50.40.114 > serverip=10.50.40.201 > autostart=yes > bootcmd=run setboot;bootm 0x2040000 (0x2040000 is the kernel offset) > bootargs=console=ttyS0,115200n8 noinitrd rw root=/dev/mtdblock3 rw > (mtd3 is the FS partition) > noinitrd noatime rootfstype=jffs2 ip=10.50.40.114:10.50.40.201: > 10.50.40.1:255.255.248.0:BOARD::off mem=120M > autostart=yes > stdout=serial > stderr=serial > videostd=ntsc > > Environment size: 649/131068 bytes > > > > The bootlog is shown below > ********************************************** > > U-boot 1.1.3 (Oct 15 2007 - 20:45:54) > > U-Boot code: 81080000 -> 8109760C BSS: -> 8109FFFC > RAM Configuration: > Bank #0: 80000000 256 MB > MY AMD Flash: 32 MB > In: serial > Out: serial > Err: serial > ARM Clock :- 297MHz > DDR Clock :- 162MHz > Hit any key to stop autoboot: 0 > ## Booting image at 02040000 ... > Image Name: Linux-2.6.10_mvl401 > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 1557416 Bytes = 1.5 MB > Load Address: 80008000 > Entry Point: 80008000 > Verifying Checksum ... OK > OK > > Starting kernel ... > > Linux version 2.6.10_mvl401 ([EMAIL PROTECTED]) (gcc version > 3.4.3 (MontaVista 3.4.3-25.0.30.0501131 2005-07-23)) #8CPU: 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 > DM6443 > Built 1 zonelists > Kernel command line: console=ttyS0,115200n8 noinitrd rw > root=/dev/mtdblock3 rw noinitrd noatime rootfstype=jffs2 ip=10.50.40lPID > 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: 118272KB available (2685K code, 539K data, 180K 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 > DaVinci: 71 gpio irqs > Registering platform device 'serial8250.0'. Parent at platform > Registering platform device 'musb_hdrc'. Parent at platform > Registering platform device 'davinciflash.0'. Parent at platform > Registering platform device 'mmc.0'. Parent at platform > DaVinci I2C DEBUG: 13:15:32 Jun 4 2008 > Registering platform device 'i2c'. Parent at platform > ch0 default output "COMPOSITE", mode "NTSC" > MUX: initialized LOEEN > MUX: initialized LFLDEN > VPBE Encoder Initialized > LogicPD encoder initialized > SCSI subsystem initialized > usbcore: registered new driver usbfs > usbcore: registered new driver hub > musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [host] [debug=0] > musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn) > musb_hdrc: MHDRC RTL version 1.300 > musb_hdrc: USB Host mode controller at c8002000 using DMA, 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 > MUX: initialized MCBSP0 > JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. > yaffs Jun 4 2008 13:15:05 Installing. > Registering platform device 'davincifb.0'. Parent at platform > davincifb davincifb.0: dm_osd0_fb: [EMAIL PROTECTED],0 with framebuffer size > 675KB > davincifb davincifb.0: dm_vid0_fb: [EMAIL PROTECTED],0 with framebuffer size 1020KB > davincifb davincifb.0: dm_osd1_fb: [EMAIL PROTECTED],0 with framebuffer size > 675KB > davincifb davincifb.0: dm_vid1_fb: [EMAIL PROTECTED],0 with framebuffer size 1020KB > usb 1-1: new high speed USB device using musb_hdrc and address 2 > hub 1-1:1.0: USB hub found > hub 1-1:1.0: 4 ports detected > watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec > Registering platform device 'davinci_resizer.2'. Parent at platform > DaVinci I2C WARNING: i2c: NACK detected > Registering platform device 'davinci_previewer.2'. Parent at platform > 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 > io scheduler noop registered > io scheduler anticipatory registered > RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize > loop: loaded (max 8 devices) > Registering platform device 'ti_davinci_emac'. Parent at platform > TI DaVinci EMAC: MAC address is deadbeaf > TI DaVinci EMAC Linux version updated 5.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 I2C WARNING: i2c: NACK detected > Registering platform device 'DavinciDisplay.1'. Parent at platform > Trying to register davinci display video device. > layer=c71c7800,layer->video_dev=c71c7964 > Trying to register davinci display video device. > layer=c71c7600,layer->video_dev=c71c7764 > davinci_init:DaVinci V4L2 Display Driver V1.0 loaded > > Davici AEW Driver cannot be loaded > VIDEO PORT is not enabledData Flow path from CCDC is disabled > > Davinci AF driver cannot be loaded > VIDEO PORT is not enabled > CCDC needs to be configured<6>Uniform Multi-Platform E-IDE driver > Revision: 7.00alpha2 > ide: Assuming 50MHz system bus speed for PIO modes; override with > idebus=xx > elevator: using anticipatory as default io scheduler > davinciflash.0: Found 1 x16 devices at 0x0 in 16-bit bank > NOR chip too large to fit in mapping. Attempting to cope... > Amd/Fujitsu Extended Query Table at 0x0040 > davinciflash.0: CFI does not contain boot bank location. Assuming top. > number of CFI chips: 1 > cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. > Reducing visibility of %KiB chip to %KiB > Creating 4 MTD partitions on "davinciflash.0": > 0x00000000-0x00020000 : "bootloader" > 0x00020000-0x00040000 : "params" > 0x00040000-0x00440000 : "kernel" > 0x00440000-0x01000000 : "filesystem" > Initializing USB Mass Storage driver... > usbcore: registered new driver usb-storage > USB Mass Storage support registered. > usbcore: registered new driver usbhid > drivers/usb/input/hid-core.c: v2.0:USB HID core driver > mice: PS/2 mouse device common for all mice > mmc mmc.0: Supporting 4-bit mode > mmc mmc.0: Using DMA mode > 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 10 > IPv6 over IPv4 tunneling driver > NET: Registered protocol family 17 > DaVinci I2C WARNING: i2c: NACK detected > IP-Config: Complete: > device=eth0, addr=10.50.40.114, 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= > VFS: Mounted root (jffs2 filesystem). > Freeing init memory: 180K > /bin/sh: Can't open Kernel panic - not syncing: Attempted to kill init! > noatime > ************************************************************************ * > > > Can any one please tell me why this is happening? > and how to resolve this problem > > > Thanks and regards > Rajesh G _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
