[mc1322x] ROM vars

Mariano Alvira mar at devl.org
Fri Apr 16 06:22:03 EDT 2010


On Thu, Apr 15, 2010 at 01:57:13PM +0200, Joaquín Cabezas wrote:
> Ok, I have a 2.0 revision. I will try with the new entry point after you  
> send it us. A lot of thanks!

Ok, try this patch --- it uses v2.0 entry points instead.

-Mar.

diff --git a/lib/nvm.c b/lib/nvm.c
index 6a9d142..285a20d 100644
--- a/lib/nvm.c
+++ b/lib/nvm.c
@@ -2,21 +2,20 @@
 
 nvmErr_t (*nvm_detect) 
 (nvmInterface_t nvmInterface,nvmType_t* pNvmType) 
-= (void *) 0x00006cb9;
+= (void *) 0x00007070;
 
 nvmErr_t (*nvm_read) 
 (nvmInterface_t nvmInterface , nvmType_t nvmType , void *pDest, uint32_t address, uint32_t numBytes) 
-= (void *) 0x00006d69;
+= (void *) 0x0000710c;
 
 nvmErr_t (*nvm_write)
 (nvmInterface_t nvmInterface, nvmType_t nvmType ,void *pSrc, uint32_t address, uint32_t numBytes) 
-= (void *) 0x00006ec5;
+= (void *) 0x00007244;
 
 nvmErr_t (*nvm_erase)
 (nvmInterface_t nvmInterface, nvmType_t nvmType ,uint32_t sectorBitfield) 
-= (void*) 0x00006e05;
+= (void*) 0x00007198;
 
 void(*nvm_setsvar)
 (uint32_t zero_for_awesome) 
-= (void *)0x00007085;
-
+= (void *)0x000073c0;
diff --git a/src/start.S b/src/start.S
index f89ae0f..7337b69 100644
--- a/src/start.S
+++ b/src/start.S
@@ -55,7 +55,7 @@
 
 
 .set base, .
-.set _rom_data_init, 0x108d0
+.set _rom_data_init, 0xf50c
 	
 
 	.globl _start



More information about the mc1322x mailing list