[U-Boot-Users] Intel Strata Flash Embedded Memory (P33) on a MPC8xx board with u-boot 1.2.0

SETTE AGOSTINO - technolabs Agostino.Sette at technolabs.it
Wed Jun 20 10:07:36 CEST 2007


Hi All,

Finally I have a U-Boot 1.2.0 for Intel StrataFlash 28F128P33B and I made some modification to the source files, for example I added the Device IDs for all P33 into the file include/flash.h but I am not sure it is enough but anyway here are the differences

diff include/flash.h ../u-boot-1.2.0/include/flash.h

295,300d294
< #define INTEL_ID_28F64P33T  0x881D881D        /*  64M =  32K x 255 + 32k x 4 */
< #define INTEL_ID_28F64P33B  0x88208820        /*  64M =  32K x 255 + 32k x 4 */
< #define INTEL_ID_28F128P33T 0x881E881E        /* 128M =  64K x 255 + 32k x 4 */
< #define INTEL_ID_28F128P33B 0x88218821        /* 128M =  64K x 255 + 32k x 4 */
< #define INTEL_ID_28F256P33T 0x881F881F        /* 256M = 128K x 255 + 32k x 4 */
< #define INTEL_ID_28F256P33B 0x88228822        /* 256M = 128K x 255 + 32k x 4 */


Furthermore I removed the following lines from the file common/cmd_bootm.c

#ifdef CONFIG_OF_FLAT_TREE
        "\tWhen booting a Linux kernel which requires a flat device-tree\n"
        "\ta third argument is required which is the address of the of the\n"
        "\tdevice-tree blob. To boot that kernel without an initrd image,\n"
        "\tuse a '-' for the second argument. If you do not pass a third\n"
        "\ta bd_info struct will be passed instead\n"
#endif

I have not defined the CONFIG_FLAT_OF_TREE but I have the following errors at compile time.

ppc_8xx-gcc -g  -Os   -fPIC -ffixed-r14 -meabi -fno-strict-aliasing -D__KERNEL__ -DTEXT_BASE=0x40000000  -I/u-boot-1.2.0/include -fno-builtin -ffreestanding -nostdinc -isystem /eldk_1.0/usr/lib/gcc-lib/ppc-linux/2.95.3/include -pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_8xx -ffixed-r2 -ffixed-r29 -mstring -mcpu=860 -msoft-float -Wall -Wstrict-prototypes -c -o cmd_bootm.o cmd_bootm.c
cmd_bootm.c:477: warning: preprocessing directive not recognized within macro arg
cmd_bootm.c:477: warning: preprocessing directive not recognized within macro arg
cmd_bootm.c:469: undefined or invalid # directive
cmd_bootm.c:475: undefined or invalid # directive
cmd_bootm.c:519: warning: `noinline' attribute directive ignored
make[1]: *** [cmd_bootm.o] Error 1
make[1]: Leaving directory `/u-boot-1.2.0/common'
make: *** [common/libcommon.a] Error 2

Could it depend from the very old eldk?

Thanks

Ciao
Agostino


-----Original Message-----
From: SETTE AGOSTINO - technolabs 
Sent: mercoledì 13 giugno 2007 8.40
To: 'Tolunay Orkun'
Cc: u-boot-users at lists.sourceforge.net
Subject: RE: [U-Boot-Users] Intel Strata Flash Embedded Memory (P33) on a MPC8xx board with u-boot 1.2.0

Hello Tolunay, 

First of all thanks for your answer. I must confess you that I had that in mind, but I would like to have another opinion on it.
Anyway, I am using word mode if you mean the CS to access the FLASH and BDI2000 config files BUSWIDTH 16. What I want to do now is to compare the
.bin file and what is writter on the FLASH with BDI2000.
 

-----Original Message-----
From: Tolunay Orkun [mailto:listmember at orkun.us] 
Sent: mercoledì 13 giugno 2007 0.09
To: SETTE AGOSTINO - technolabs
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Intel Strata Flash Embedded Memory (P33) on a MPC8xx board with u-boot 1.2.0

SETTE AGOSTINO - technolabs wrote:
> Hello all,
>
> I'm working with u-boot 1.2.0 on a board with MPC8xx processor and
> Intel Strata Flash Embedded Memory (I28F128P33B) mounted.
> Up to now I am trying to read the Device Identifier Information with the
> Abatron BDI2000 but I am a little bit confused.
> In fact I have the following output on the display
>
> NEW_CCM_LC>mdh 0x40000000
> 40000000 : 0089 8821 0001 0001 0089 bfcf 0001 0001  ...!............
> 40000010 : 0089 8821 0001 0001 0089 bfcf 0001 0001  ...!............
> 40000020 : 0051 0052 0059 0001 0000 000a 0001 0000  .Q.R.Y..........
> 40000030 : 0000 0000 0000 0023 0036 0085 0095 0008  .......#.6......
> 40000040 : 0009 000a 0000 0001 0001 0002 0000 0018  ................
> 40000050 : 0001 0000 0006 0000 0002 0003 0000 0080  ................
> 40000060 : 0000 007e 0000 0000 0002 0000 0000 0000  ...~............
>
> On the Intel Strata Flash Embedded Memory (P33) is written that at
> offset 0x10 I should find thw CFI Query identification string but,
> As you can see, I have them at offset 0x20.
>   
You are using word mode. Offsets differ between word and byte modes. 
Read the data sheet more carefully..

> Anyway, after the unlock of the flash and the erasing I tried to load a
> u-boot 1.2.0 generated for the board and was loaded correctly
> (I read back the u-boot label at the beginning of the flash).
>   

If after verifying the data using BDI command it checks OK you programed 
your flash OK.

> The problem is that it doesn't start.
> Does anyone know if there is a u-boot code available to manage this kind
> of flash?
>   

Programming the flash does not mean that you have a fully functional 
hardware. It also does not mean that U-Boot is correctly configured and 
implemented for your board. Anything can go wrong and your code will not 
boot.

Tolunay




More information about the U-Boot mailing list