Hi, all

TI support give me the right answer. I attach the patch.

With that patch you can following the tutorial. But NOTE the uImage which
you write to nand flash, must use the one without NAND support! otherwise
you can not boot from HDD.

But with EVM booting from nand flash you will get a problem to set S3-4 on.
So when you boot from nand flash, you  will can not run any codec on it.


On 11/28/06, MAO Dan <[EMAIL PROTECTED]> wrote:

Hi, all

I think the tutorial outlined in spraaa0 is not correct. It lost some
step, I change some step and boot from nand flash is ok. The 1 and 2 steps
is same as spraaa0.

You must change step 3 as following:

Patch the attachment to your kernel.  Then compile the kernel with Nandsupport 
same as spraaa0.
Don't forget to compile a kernel without NAND support.

step 4 is no change.

step 5 you must use /dev/mtd1 instead of /dev/mtd0. NOTE: The uImage must
use the one without NAND support! otherwise you can not boot from HDD.

[EMAIL PROTECTED]:~# ftl_format /dev/mtd1
[EMAIL PROTECTED]:~# nandwrite -p /dev/mtd1 uImage

Continue with the rest of spraaa0, you will boot from nand flash
successful I think.  Good luck!



On 11/18/06, cote, louis-martin < [EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am trying to write my linux kernel into NAND flash using the procedure
>
> outlined in spraaa0.
> Everytime I try, I have to go back to the JTAG station and start over.
> Something must be wrong in the procedure.
>
> Here is where I am :
> 1) I have installed UBL in NAND (block 1) using JTAG
> 2) I have installed U-Boot in NAND (blocks 6-12) using JTAG
> 3) I have compiled a new Linux kernel with NAND support and FTL enabled
> 4) I am booting this kernel from TFTP and I use a rootfs through NFS
> 5) I am trying to write the Linux kernel into NAND flash and boot from
> it instead of TFTP
>
> Step 5 is where I fail !
>
> I am following the procedure described in spraaa0 (booting EVM from NAND
> flash), but I am suspecting it to be erroneous.
>
> Here is my console output corresponding to steps 4 and 5 on page 12
> (spraaa0):
>
> [EMAIL PROTECTED]:~# ls /dev/mtd0
> /dev/mtd0
> [EMAIL PROTECTED]:~# ftl_format /dev/mtd0
> Partition size = 64 mb, erase unit size = 16 kb, 1 transfer units
> Reserved 5%, formatted size = 61747712 bytes
> Erasing all blocks...
> +++++++*+++nand_erase: attempt to erase a bad block at page 0x00005ce0
>
> block erase failed: Input/output error
> format failed.
>
> Needless to say, after this, my NAND is scraped and I get the BOOTME
> BOOTME BOOTME BOOTME messages on startup.
>
> There are some things that do not make sense to me:
>
> 1) Formatting /dev/mtd0, since this is where UBL and U-Boot are!
> 2) Writing the kernel to 0x4000 (16384) like spraaa0 suggests, since
> this is only the 2nd NAND block
>
> For the sake of experimentation, I tried writing the linux kernel to
> 0x100000 (1MB or block #64) using nandwrite without prior formatting. No
> go.
>
> Did some of you get this working ?
> If so, what am I missing ???
>
> Thanks for your help,
>
> Louis-Martin
>
>
>
> 
__________________________________________________________________________________________
> This electronic message may contain proprietary and confidential
> information of Verint Systems Inc., its affiliates and/or subsidiaries.
> The information is intended to be for the use of the individual(s) or
> entity(ies) named above.  If you are not the intended recipient (or
> authorized to receive this e-mail for the intended recipient), you may not
> use, copy, disclose or distribute to anyone this message or any information
> contained in this message.  If you have received this electronic message in
> error, please notify us by replying to this e-mail. (1)
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>



Attachment: TI_nand_support.patch
Description: Binary data

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to