Hi all,

AFAIK this isn't a good idea.
What I see with 2.6.10 mv kernels is, that they use a different NAND ECC
layout than u-boot
and also than "official" linux kernels.
If you hack your u-boot this way you will get problems in the future if
you want to update
either u-boot or kernel!

I think the cleanest way would be to fix the (IMHO) broken NAND layer in
2.6.10 in that way
that it produces common NAND ECC layout?

Best regards,
Dieter
 

-----Original Message-----
From: Brian Rhodes [mailto:[email protected]] 
Sent: Tuesday, July 21, 2009 5:47 PM
To: Vinod Nanjaiah
Cc: [email protected]
Subject: Re: Flashing kernel from linux - need help

Vinod Nanjaiah wrote:
>
> Any idea if this is still an unresolved bug in the montavista kernel?
>
>  
>
> How can I change the OOB code in the linux kernel to match with that 
> of the uboot?
>
> Can someone please give me some pointers on where/what code needs to 
> be changed.
>
>  
>

You need to add setup code for the NAND chip in the board specific code
in uboot.  Create a board_nand_init function which should be explained
somewhere in uboot documentation, or you can look at some of the other
boards which implement a specific NAND driver.  Any functions which you
need to be specific to davinci need to be added in your code.  You can
use the kernel driver as an example.

To get started you might want to just setup the nand_chip struct to
disable ECC, which will then allow you to at least boot, or modify
nand_read_ecc in nand_base.c (uboot) to not check ECC.



_______________________________________________
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