Rajesh,

Did you erase the NAND where the kernel is going to reside before
writing it?  Also, did you remember to round the kernel size up to the
next erase block?

Can you send a log of the commands you used to write the kernel image as
well as the tftp output from transferring the image to write?

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: Wednesday, May 28, 2008 1:11 AM
> To: [email protected]
> Subject: FW: how to boot from jffs2 filesystem in nand
> 
> 
> 
> Hi Frank
> 
> Thank you very much for your help
> 
> Now i have loaded the filesystem into flash and kernel into flash
> 
> observations:
> case1 :
> filesystem is from nand flash and uImage from tftp
> i.e. [  bootargs= ...............root=/dev/mtdblock3............
>         bootcmd=run setboot;tftp 0x86000000 uImage;bootm 0x86000000  ]
> Result:works very fine
> 
> case 2:
> filesystem from NAND flash and kernel from NAND flash
> i.e. [  bootargs= ...............root=/dev/mtdblock3............
>         bootcmd= nboot 0x86000000 0 60000                     ]
> 
> Result:It hangs at initial stage itself, bootlog is given 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
> 
> Loading from device 0: <NULL> at 0x2000000 (offset 0x60000)
>    Image Name:   Linux-2.6.10_mvl401-davinci_evm
>    Image Type:   ARM Linux Kernel Image (uncompressed)
>    Data Size:    1383992 Bytes =  1.3 MB
>    Load Address: 80008000
>    Entry Point:  80008000
> Automatic boot of image at addr 0x86000000 ...
> ## Booting image at 86000000 ...
>    Image Name:   Linux-2.6.10_mvl401-davinci_evm
>    Image Type:   ARM Linux Kernel Image (uncompressed)
>    Data Size:    1383992 Bytes =  1.3 MB
>    Load Address: 80008000
>    Entry Point:  80008000
>    Verifying Checksum ... Bad Data CRC
> DaVinci EVM #
> 
> ///////////////////////////////////
> 
> 
> Is there any mistake in setting the "bootcmd" and "bootargs"
> 
> 
> 
> 
> Please help me to come out of this problem
> 
> Regards
> Rajesh
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Frank Xue [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 26, 2008 2:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: how to boot from jffs2 filesystem in nand
> 
> 
> Hi, Rajesh
> This article explain how to put JFFS2 Image to Flash when kernel is
> running.
> http://wiki.davincidsp.com/index.php?title=Put_JFFS2_Image_to_Flash
> 
> however, I used another method to finish this mission.
> I put JFFS2 image into NAND with u-boot command line.
> >  dev:    size   erasesize  name
> >  mtd0: 00040000 00004000 "bootloader"
> >  mtd1: 00020000 00004000 "params"
> >  mtd2: 00400000 00004000 "kernel"
> >  mtd3: 03ba0000 00004000 "filesystem"
> >
> >
> >   Can you explain me how to load the kernel image and jffs2
> > filesystem into NAND flash.
> >
> > My doubts are
> >
> > 1. How to load the Kernel image into the NAND flash
> >
> at first, you should prepare kernel image.
> then load kernel image into RAM:
> tftp 0x80700000 /images/kernel.img
> > 2. In the "nand write.jffs2 0x80700000 0x00118000 0x00500000"
command
> >     what is 2nd parameter (0x00118000), is that the starting adress
of
> > filesystem
> >     partition in NAND
> >
> nand erase 0x00118000 0x500000
> nand write.jffs2 0x80700000 0x00118000 0x00500000
> YES, 2nd parameter is the starting address of kernel partition in
NAND.
> you may change it.
> > 3 what does "boot kernel" and  "fsload uImage" commands will do?
> >
> >
> Once the kernel image put into kernel partition in NAND,
> you can load kernel from NAND and boot up your board.
> :) fsload is one of commands of u-boot. but "boot kernel" is not.
> 
> 
> Regards
> 
> Frank
> 
> 
> 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
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to