[U-Boot-Users] [PATCH 05/08]: mpc7448hpc2 board flash support
Zang Roy-r61911
tie-fei.zang at freescale.com
Wed Aug 2 04:34:54 CEST 2006
> > > > The difference is caused by ENDIAN issue. Anyway, I will
> > > consider it
> > > > carefully.
> > >
> > > Oops? Can you program your flash for exanmple with a BDI200?
> > Hardware issue. I can program it with BDI2000, PowerTAP and UsbTAP
> > under CodeWarrior.
> > Any suggestion?
>
> Please explain. When the BDI can program the flash, the CFI
> driver should be able to do the same. What exactly is the problem?
>
mpc7448 processor is BIG ENDIAN, while the tsi108 bridge connects the
flash chip
by little ENDIA mode. When I set __LITTLE_ENDIA in the cfi_flash
driver, everything seems
OK, but the written bytes are swapped (see the following log).
Now, It seems that if I define CFG_FLASH_USE_BUFFER_WRITE in my config
file, this issue
can be solved. I will do more test on my board.
While, how can I set __LITTLE_ENDIA mode for cfi_driver file in a BIG
ENDIA system?
Thanks.
////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////
Please see the following log with general cfi_driver.
The log shows my problem .
////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////
U-Boot 1.1.4-ge4f3fb8b-dirty (Aug 2 2006 - 10:01:47) Freescale MPC7448
HPC II
CPU: MPC7448 v2.0 @ 1336 MHz
BOARD: MPC7448 HPC II
DRAM: 512 MB
FLASH: ## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB
16 MB
In: serial
Out: serial
Err: serial
BUS: 167 MHz
MEM: 200 MHz
CACHE: L1 Instruction cache - 32KB 8-way ENABLED
L1 Data cache - 32KB 8-way ENABLED
Unified L2 cache - 1MB 8-way DISABLED
Net: TSI108_eth0, TSI108_eth1
Hit any key to stop autoboot: 0
=> fli
Bank # 1: CFI conformant FLASH (32 x 16) Size: 16 MB in 128 Sectors
Erase timeout 16384 ms, write timeout 1 ms, buffer write timeout 5 ms,
buffer s
ize 32
Sector Start Addresses:
FF000000 FF020000 FF040000 FF060000 FF080000
FF0A0000 FF0C0000 FF0E0000 FF100000 FF120000
FF140000 FF160000 FF180000 FF1A0000 FF1C0000
FF1E0000 FF200000 FF220000 FF240000 FF260000
FF280000 FF2A0000 FF2C0000 FF2E0000 FF300000
FF320000 FF340000 FF360000 FF380000 FF3A0000
FF3C0000 FF3E0000 FF400000 FF420000 FF440000
FF460000 FF480000 FF4A0000 FF4C0000 FF4E0000
FF500000 FF520000 FF540000 FF560000 FF580000
FF5A0000 FF5C0000 FF5E0000 FF600000 FF620000
FF640000 FF660000 FF680000 FF6A0000 FF6C0000
FF6E0000 FF700000 FF720000 FF740000 FF760000
FF780000 FF7A0000 FF7C0000 FF7E0000 FF800000
FF820000 FF840000 FF860000 FF880000 FF8A0000
FF8C0000 FF8E0000 FF900000 FF920000 FF940000
FF960000 FF980000 FF9A0000 FF9C0000 FF9E0000
FFA00000 FFA20000 FFA40000 FFA60000 FFA80000
FFAA0000 FFAC0000 FFAE0000 FFB00000 FFB20000
FFB40000 FFB60000 FFB80000 FFBA0000 FFBC0000
FFBE0000 FFC00000 FFC20000 FFC40000 FFC60000
FFC80000 FFCA0000 FFCC0000 FFCE0000 FFD00000
FFD20000 FFD40000 FFD60000 FFD80000 FFDA0000
FFDC0000 FFDE0000 FFE00000 FFE20000 FFE40000
FFE60000 FFE80000 FFEA0000 FFEC0000 FFEE0000
FFF00000 FFF20000 FFF40000 FFF60000 FFF80000
FFFA0000 FFFC0000 FFFE0000
Bank # 2: missing or unknown FLASH type
=> md ff000000
ff000000: 27051956 552d426f 6f742031 2e312e34 '..VU-Boot 1.1.4
ff000010: 2d673230 38653063 38312d64 69727479 -g208e0c81-dirty
ff000020: 20284a75 6c203131 20323030 36202d20 (Jul 11 2006 -
ff000030: 31313a34 343a3333 29204672 65657363 11:44:33) Freesc
ff000040: 616c6520 4d504337 34343820 48504320 ale MPC7448 HPC
ff000050: 49490000 00000000 00000000 00000000 II..............
ff000060: 00000000 00000000 00000000 00000000 ................
ff000070: 00000000 00000000 00000000 00000000 ................
ff000080: 00000000 00000000 00000000 00000000 ................
ff000090: 00000000 00000000 00000000 00000000 ................
ff0000a0: 00000000 00000000 00000000 00000000 ................
ff0000b0: 00000000 00000000 00000000 00000000 ................
ff0000c0: 00000000 00000000 00000000 00000000 ................
ff0000d0: 00000000 00000000 00000000 00000000 ................
ff0000e0: 00000000 00000000 00000000 00000000 ................
ff0000f0: 00000000 00000000 00000000 00000000 ................
=> erase fff80000 fff9ffff
. done
Erased 1 sectors
=> cp.b ff000000 fff80000 20000
Copy to Flash... done
=> md fff80000
fff80000: 56190527 6f422d55 3120746f 342e312e V..'oB-U1 to4.1.
fff80010: 3032672d 63306538 642d3138 79747269 02g-c0e8d-18ytri
fff80020: 754a2820 3131206c 30303220 202d2036 uJ( 11 l002 - 6
fff80030: 343a3131 33333a34 72462029 63736565 4:1133:4rF )csee
fff80040: 20656c61 3743504d 20383434 20435048 ela7CPM 844 CPH
fff80050: 00004949 00000000 00000000 00000000 ..II............
fff80060: 00000000 00000000 00000000 00000000 ................
fff80070: 00000000 00000000 00000000 00000000 ................
fff80080: 00000000 00000000 00000000 00000000 ................
fff80090: 00000000 00000000 00000000 00000000 ................
fff800a0: 00000000 00000000 00000000 00000000 ................
fff800b0: 00000000 00000000 00000000 00000000 ................
fff800c0: 00000000 00000000 00000000 00000000 ................
fff800d0: 00000000 00000000 00000000 00000000 ................
fff800e0: 00000000 00000000 00000000 00000000 ................
fff800f0: 00000000 00000000 00000000 00000000 ................
=>
More information about the U-Boot
mailing list