From: Stephen Johnson Date: Wed, 13 Oct 2004 09:59:29 -0400 Subject: [U-Boot-Users] Problems accessing flash on OMAP 1510 Innovator References: <002101c4b076$c0ee78e0$bb01a996@CLOYDWIN2K> <20041012190918.GF19234@mvista.com> Message-ID: <000c01c4b12c$db7b3a20$bb01a996@CLOYDWIN2K> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de ----- Original Message ----- From: "George G. Davis" To: "Stephen Johnson" Cc: Sent: Tuesday, October 12, 2004 3:09 PM Subject: Re: [U-Boot-Users] Problems accessing flash on OMAP 1510 Innovator > On Tue, Oct 12, 2004 at 12:15:56PM -0400, Stephen Johnson wrote: > > I'm trying to install and run u-boot in an OMAP Innovator 1510 board. I've > > downloaded the CVS version of u-boot, configured it with "make > > omap1510inn_config" and compiled it with no problem. It's installed in the > > flash and runs. The problem is the flash can't be found -- on startup up > > Flash: 0 kB is reported and I can't save anything. Other flash accesses are > > similar. Sample output follows where I've powered on the board, run > > "flinfo", and tried to do a "saveenv". > > > > U-Boot 1.1.2 (Oct 8 2004 - 16:03:40) > > > > U-Boot code: 11080000 -> 110953A8 BSS: -> 110998E8 > > RAM Configuration: > > Bank #0: 10000000 32 MB > > Flash: 0 kB > > *** Warning - bad CRC, using default environment > > > > In: serial > > OMAP1510 Innovator # > > Hm, I just did `cvs up; make omap1510inn_config; make`, installed latest > binary and it works OK for me. Are your DIP switches set correctly (usually > 1,2;4 OFF, 3 ON)? FWIW, here's console log for my board: > DIP switches are set the same -- 1, 2, & 4 ON, 3 is OFF. > U-Boot 1.1.2 (Oct 12 2004 - 14:44:26) > > U-Boot code: 11080000 -> 110970AC BSS: -> 1109B8A4 > RAM Configuration: > Bank #0: 10000000 32 MB > Flash: 32 MB > In: serial > Out: serial > Err: serial > OMAP1510 Innovator # > > Perhaps you can try this to see what's wrong with your flash?: > I set DEBUG as specified and this is the result: U-Boot 1.1.2 (Oct 13 2004 - 09:30:20) U-Boot code: 11080000 -> 11095A28 BSS: -> 11099F68 RAM Configuration: Bank #0: 10000000 32 MB flash_protect ON: from 0x00000000 to 0x00015A27 flash_protect ON: from 0x00020000 to 0x0003FFFF Flash: 0 kB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial ### main_loop entered: bootdelay=3 ### main_loop: bootcmd="bootp;tftp;bootm" Hit any key to stop autoboot: 0 OMAP1510 Innovator # flinfo Bank # 1: missing or unknown FLASH type OMAP1510 Innovator # saveenv Saving Environment to Flash... Protect off 00020000 ... 0003FFFF Error: start and/or end address not on sector boundary OMAP1510 Innovator # I should point out that I've been using the board for about the last year and a half, but with rrload. I decided to switch over to u-boot and ran into these problems. A little investigating revealed that in the function get_flash_size() in the file board/omap1510inn/flash.c, the probe for manufacturer returns 0x12 and that doesn't match INTEL_MANUFACT which is what's on the board. After that things go downhill very rapidly. I think I'll look into what's going on in rrload to see if that will explain things. Thanks for the help so far. Steve