2008-07-22 02:39:01     A problem of difference between u-boot 1.1.3 and 1.1.6 -2008R1

Document created by Aaronwu Employee on Sep 18, 2013
Version 1Show Document
  • View in full screen mode

2008-07-22 02:39:01     A problem of difference between u-boot 1.1.3 and 1.1.6 -2008R1

david zheng (CHINA)

Message: 59174   

 

.Hi, I am porting u-boot 1.1.6-2008R1 to my board,

 

I found some difference between u-boot 1.1.3 and 1.1.6-2008R1,  for example  in /board /bf537-stamp 1.1.6-2008R1 has no flash.c and flash-defines.h, but 1.1.3 has the files. 

 

I am confused by 1.1.6-2008R1 being lack of the files,   as you can see the functions such as flash_init(void) flash_print_info(flash_info_t * info) in flash.c  are still used in board_init_r function,

 

My question is

 

Where is the file flash.c and flash-defines.h in  /board /bf537-stamp of 1.1.6-2008R1?

QuoteReplyEditDelete

 

 

2008-07-22 02:49:44     Re: A problem of difference between u-boot 1.1.3 and 1.1.6 -2008R1

Mike Frysinger (UNITED STATES)

Message: 59175   

 

use the common CFI flash driver

QuoteReplyEditDelete

 

 

2008-07-22 10:22:28     Re: A problem of difference between u-boot 1.1.3 and 1.1.6 -2008R1

david zheng (CHINA)

Message: 59225   

 

Hi, Mike  Do you mean \u-boot-1.1.6-2008R1\common\flash.c? But there is no such as flash_reset function in it?

QuoteReplyEditDelete

 

 

2008-07-22 21:59:23     Re: A problem of difference between u-boot 1.1.3 and 1.1.6 -2008R1

Mike Frysinger (UNITED STATES)

Message: 59249   

 

drivers live in drivers/, not in common/

 

QuoteReplyEditDelete

 

 

2008-07-22 22:13:56     Re: A problem of difference between u-boot 1.1.3 and 1.1.6 -2008R1

david zheng (CHINA)

Message: 59255   

 

Hi, Mike , I found the file in \driver,  but I don't want to use CFI_FLASH.c,

 

I want to use the flash.c in \board\bf537-pnav, so I copied flash.c to \board\bf537-stamp,

 

  but a new question comes out,  how to prevent using CFI_FLASH.c but using the flash.c I copied ?

QuoteReplyEditDelete

 

 

2008-07-22 22:30:54     Re: A problem of difference between u-boot 1.1.3 and 1.1.6 -2008R1

Mike Frysinger (UNITED STATES)

Message: 59256   

 

the pnav driver is simply a CFI flash driver.  it makes no sense that that driver would be ok but the common one would not.

Attachments

    Outcomes