This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Strange error Can't program region at 0x50040000 Error trying to program (Err=92)


Hi ,
 
I have meet a very strange problem on my Intel ixp425 board.
 This error appeared for only  is Intel J3C and not for J3A Flash. 
one strange thing is I could able to program 1 or 2 blocks and not more
than that.
 
 After do "fis init ",it show like
 RedBoot> fis list
 Name                 FLASH addr   Mem addr       Length           Entry
point
 RedBoot            0x50000000    0x50000000   0x00040000  0x00000000
 RedBoot config  0x50FC0000   0x50FC0000  0x00001000  0x00000000
 FIS directory     0x50FE0000    0x50FE0000   0x00020000  0x00000000

 Then I can't use "fis create/write" to write flash.

RedBoot> load -r -v -b 0x01008000 zImage

Using default protocol (TFTP)

 Raw file loaded   0x01008000-0x010bbad3, assumed entry at 0x01008000

 RedBoot> fis create kernel -b 0x01008000 -l 0x100000 -f 0x50040000

 Erase from 0x50040000-0x50140000: ........
 ...Program from 0x01008000-0x01108000 at 0x50040000: Err = 92

 Can't program region at 0x50040000: Error trying to program
 
 
I have also done the code walk through of the Redboot source code 
 where in the fis_create() function  flash_program() function is being
called which takes 3 parameters addr , data and lenght, inside the
flash_program() function flash_program_buff() which is a function
pointer is assigned the address i.e 
_flash_program_buf = (code_fun *)flash_info.work_space

flash_prgram_buf () function writes 2bytes at a time and waits
in-between the write operation. and returns the status(stat)
I hope in this function only timeout is getting happened?
Depending upon this status(stat) and Error no of   Err=92 (hexadecimal)
is being printed.
 
I request somebody help me in this regard.
 
Thanx..
-Madhusudhan

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]