Here is the nand_davinci.c patch we used.

    Amol Lad < [EMAIL PROTECTED]> wrote:   Date: Mon, 19 Mar 2007 00:35:37 
-0700 (PDT)
From: Amol Lad < [EMAIL PROTECTED]>
Subject: Re: Booting and Running Kernel From NAND Flash
To: Will Tucker <[EMAIL PROTECTED] >,
[email protected]

    Can you send the patch you applied to nand_davinci.c ? That will help to 
solve your problem

  ----- Original Message ----
From: Will Tucker < [EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, March 17, 2007 1:19:47 AM
Subject: Booting and Running Kernel From NAND Flash

Hi,
    I'm trying to load and run my kernel from NAND flash but I can't get it 
working.  I've been following SPRAA0, and I put the patch in create to 
partitions in the NAND - mtd0 and mtd1, and I do the ftl_format /dev/mtd1 and 
nandwrite -p /dev/mtd0 uImage and it seems to write the image to NAND ok.  Then 
when I reboot and follow step 8 which says to set bootcmd to 'nboot 0x80200000 
0 104000' and the bootargs and autostart and then reboot again.  When it boots 
up I get the following error: 
   
  Loading from device 0: <NULL> at 0x2000000 (offset 0x104000)
  ** Bad Magic Number 0xffffffff **
  I'm guessing the settings for nboot are wrong, that the wrong address is 
specified.  Has anyone else encountered this problem?  Or is there a different 
way I can load the kernel into NAND without booting the machinge using TFTP and 
NFS and then writing the NAND? 

Will T.
    
---------------------------------
  Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.   
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source 


 

-- 
John Sample
970-471-1363 --- ti-davinci.org/drivers/mtd/nand/nand_davinci.c 2006-10-02 
13:31:15.000000000 +0800
+++ ti-davinci/drivers/mtd/nand/nand_davinci.c 2006-11-29 09:06:54.000000000 
+0800
@@ -139,12 +139,16 @@
* Define partitions for flash device
*/
static struct mtd_partition partition_info[] = {
- { name: "Flash Partition 0",
- offset: MTDPART_OFS_APPEND,
- size: MTDPART_SIZ_FULL},
+ { name: "Flash partition 0",
+ offset: SZ_1M,
+ size: 4 * SZ_1M},
+
+ { name: "Flash partition 1",
+ offset: 5 * SZ_1M,
+ size: 59 * SZ_1M},
};

-#define NUM_PARTITIONS 1
+#define NUM_PARTITIONS 2

#define MASK_CLE 0x10
#define MASK_ALE 0x0A






 
---------------------------------
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
--- ti-davinci.org/drivers/mtd/nand/nand_davinci.c      2006-10-02 
13:31:15.000000000 +0800
+++ ti-davinci/drivers/mtd/nand/nand_davinci.c  2006-11-29 09:06:54.000000000 
+0800
@@ -139,12 +139,16 @@
  * Define partitions for flash device
  */
 static struct mtd_partition partition_info[] = {
-       { name: "Flash Partition 0",
-         offset: MTDPART_OFS_APPEND,
-         size:   MTDPART_SIZ_FULL},
+       { name: "Flash partition 0",
+         offset: SZ_1M,
+         size:   4 * SZ_1M},
+
+       { name: "Flash partition 1",
+         offset: 5 * SZ_1M,
+         size:   59 * SZ_1M},
 };
 
-#define NUM_PARTITIONS           1
+#define NUM_PARTITIONS           2
 
 #define        MASK_CLE        0x10
 #define        MASK_ALE        0x0A
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to