[U-Boot-Users] Problems accessing flash on OMAP 1510 Innovator

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".
Any help would be appreciated.
Steve
--------------------------------------------------------------------
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 Out: serial Err: serial Hit any key to stop autoboot: 0 OMAP1510 Innovator # flinfo
Bank # 1: missing or unknown FLASH type OMAP1510 Innovator # setenv bootdelay 10 OMAP1510 Innovator # printenv bootargs=console=ttyS0,115200n8 noinitrd root=/dev/nfs ip=bootp bootcmd=bootp;tftp;bootm baudrate=115200 autoload=n stdin=serial stdout=serial stderr=serial bootdelay=10
Environment size: 170/131068 bytes OMAP1510 Innovator # saveenv Saving Environment to Flash... Error: start and/or end address not on sector boundary OMAP1510 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".
Any help would be appreciated.
Steve
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 Out: serial Err: serial Hit any key to stop autoboot: 0 OMAP1510 Innovator # flinfo
Bank # 1: missing or unknown FLASH type OMAP1510 Innovator # setenv bootdelay 10 OMAP1510 Innovator # printenv bootargs=console=ttyS0,115200n8 noinitrd root=/dev/nfs ip=bootp bootcmd=bootp;tftp;bootm baudrate=115200 autoload=n stdin=serial stdout=serial stderr=serial bootdelay=10
Environment size: 170/131068 bytes OMAP1510 Innovator # saveenv Saving Environment to Flash... Error: start and/or end address not on sector boundary 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:
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 Hit any key to stop autoboot: 3 0 OMAP1510 Innovator # flinfo
Bank # 1: CFI conformant FLASH (16 x 16) Size: 16 MB in 128 Sectors Erase timeout 16384 ms, write timeout 2 ms, buffer write timeout 2048 ms, buffer size 32 Sector Start Addresses: 00000000 (RO) 00020000 (RO) 00040000 00060000 00080000 000A0000 000C0000 000E0000 00100000 00120000 00140000 00160000 00180000 001A0000 001C0000 001E0000 00200000 00220000 00240000 00260000 00280000 002A0000 002C0000 002E0000 00300000 00320000 00340000 00360000 00380000 003A0000 003C0000 003E0000 00400000 00420000 00440000 00460000 00480000 004A0000 004C0000 004E0000 00500000 00520000 00540000 00560000 00580000 005A0000 005C0000 005E0000 00600000 00620000 00640000 00660000 00680000 006A0000 006C0000 006E0000 00700000 00720000 00740000 00760000 00780000 007A0000 007C0000 007E0000 00800000 00820000 00840000 00860000 00880000 008A0000 008C0000 008E0000 00900000 00920000 00940000 00960000 00980000 009A0000 009C0000 009E0000 00A00000 00A20000 00A40000 00A60000 00A80000 00AA0000 00AC0000 00AE0000 00B00000 00B20000 00B40000 00B60000 00B80000 00BA0000 00BC0000 00BE0000 00C00000 00C20000 00C40000 00C60000 00C80000 00CA0000 00CC0000 00CE0000 00D00000 00D20000 00D40000 00D60000 00D80000 00DA0000 00DC0000 00DE0000 00E00000 00E20000 00E40000 00E60000 00E80000 00EA0000 00EC0000 00EE0000 00F00000 00F20000 00F40000 00F60000 00F80000 00FA0000 00FC0000 00FE0000
Bank # 2: CFI conformant FLASH (16 x 16) Size: 16 MB in 128 Sectors Erase timeout 16384 ms, write timeout 2 ms, buffer write timeout 2048 ms, buffer size 32 Sector Start Addresses: 01000000 01020000 01040000 01060000 01080000 010A0000 010C0000 010E0000 01100000 01120000 01140000 01160000 01180000 011A0000 011C0000 011E0000 01200000 01220000 01240000 01260000 01280000 012A0000 012C0000 012E0000 01300000 01320000 01340000 01360000 01380000 013A0000 013C0000 013E0000 01400000 01420000 01440000 01460000 01480000 014A0000 014C0000 014E0000 01500000 01520000 01540000 01560000 01580000 015A0000 015C0000 015E0000 01600000 01620000 01640000 01660000 01680000 016A0000 016C0000 016E0000 01700000 01720000 01740000 01760000 01780000 017A0000 017C0000 017E0000 01800000 01820000 01840000 01860000 01880000 018A0000 018C0000 018E0000 01900000 01920000 01940000 01960000 01980000 019A0000 019C0000 019E0000 01A00000 01A20000 01A40000 01A60000 01A80000 01AA0000 01AC0000 01AE0000 01B00000 01B20000 01B40000 01B60000 01B80000 01BA0000 01BC0000 01BE0000 01C00000 01C20000 01C40000 01C60000 01C80000 01CA0000 01CC0000 01CE0000 01D00000 01D20000 01D40000 01D60000 01D80000 01DA0000 01DC0000 01DE0000 01E00000 01E20000 01E40000 01E60000 01E80000 01EA0000 01EC0000 01EE0000 01F00000 01F20000 01F40000 01F60000 01F80000 01FA0000 01FC0000 01FE0000 OMAP1510 Innovator #
Perhaps you can try this to see what's wrong with your flash?:
Index: u-boot/drivers/cfi_flash.c =================================================================== --- u-boot.orig/drivers/cfi_flash.c +++ u-boot/drivers/cfi_flash.c @@ -42,7 +42,7 @@ */
/* The DEBUG define must be before common to enable debugging */ -/* #define DEBUG */ +#define DEBUG
#include <common.h> #include <asm/processor.h> Index: u-boot/include/configs/omap1510inn.h =================================================================== --- u-boot.orig/include/configs/omap1510inn.h +++ u-boot/include/configs/omap1510inn.h @@ -26,6 +26,8 @@ #ifndef __CONFIG_H #define __CONFIG_H
+#define DEBUG + /* * If we are developing, we might want to start armboot from ram * so we MUST NOT initialize critical regs like mem-timing ...
HTH!
-- Regards, George

----- Original Message ----- From: "George G. Davis" gdavis@mvista.com To: "Stephen Johnson" steve@research.panasonic.com Cc: u-boot-users@lists.sourceforge.net 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
participants (2)
-
George G. Davis
-
Stephen Johnson