[U-Boot] minimum bdi config to read flash on 85xx
Monica
monica_s at hcl.com
Mon May 27 15:01:48 CEST 2013
We are using BDI3000 to Burn u-boot.bin to Flash memory. The flash we are
using is Spansion S29GL512S.
As per the flash datasheet we tried programming 4 bytes( using telnet mmb
command) write buffer programming cycle. We succeeded.
But when we tried programming a binary file ( u-boot.bin) ,it was failing.
Even though the log shows Flash programming passed but in the location when
we do a mdh there is no u-boot data.
Please find the log captured below.
IMX6#0>
- TARGET: processing reset request
- TARGET: BDI executes scan chain init string
IMX6#0>
IMX6#0>
- TARGET: Bypass check 0x00000001 => 0x00000004
- TARGET: JTAG exists check passed
- Core#0: ID code is 0x4BA00477
- Core#0: DP-CSW is 0xF0000000
- Core#0: DBG-AP at 0x82150000
- Core#0: DIDR is 0x3513702A
- TARGET: Reset sequence passed
- TARGET: resetting target passed
- TARGET: processing target startup ....
- TARGET: processing target startup passed
IMX6#0>
IMX6#0>
IMX6#0>
*********************Flash Erase successful**************************
IMX6#0>mmh 0x08000aaa 0xaaaa
IMX6#0>mmh 0x08000554 0x5555
IMX6#0>mmh 0x08000aaa 0x8080
IMX6#0>mmh 0x08000aaa 0xaaaa
IMX6#0>mmh 0x08000554 0x5555
IMX6#0>mmh 0x08000aaa 0x1010
IMX6#0>erase 0x08000000 chip
Erasing flash at 0x08000000
Erasing flash passed
*********************Write to buffer Flash Programming
successful**************************
IMX6#0>mmb 0x08000aaa 0xaa
IMX6#0>mmb 0x08000555 0x55
IMX6#0>mmb 0x08000000 0x25
IMX6#0>mmb 0x08000000 3
IMX6#0>mmb 0x08000000 0x12
IMX6#0>mmb 0x08000001 0x34
IMX6#0>mmb 0x08000002 0x56
IMX6#0>mmb 0x08000003 0x78
IMX6#0>mmb 0x08000000 0x29
IMX6#0>mdb 0x08000000
08000000 : 12 34 56 78 ff ff ff ff .4Vx....
08000008 : ff ff ff ff ff ff ff ff ........
08000010 : ff ff ff ff ff ff ff ff ........
08000018 : ff ff ff ff ff ff ff ff ........
08000020 : ff ff ff ff ff ff ff ff ........
08000028 : ff ff ff ff ff ff ff ff ........
08000030 : ff ff ff ff ff ff ff ff ........
08000038 : ff ff ff ff ff ff ff ff ........
08000040 : ff ff ff ff ff ff ff ff ........
08000048 : ff ff ff ff ff ff ff ff ........
08000050 : ff ff ff ff ff ff ff ff ........
08000058 : ff ff ff ff ff ff ff ff ........
08000060 : ff ff ff ff ff ff ff ff ........
08000068 : ff ff ff ff ff ff ff ff ........
08000070 : ff ff ff ff ff ff ff ff ........
08000078 : ff ff ff ff ff ff ff ff ........
IMX6#0>
IMX6#0>mmh 0x08000000 0x00f0
IMX6#0>mmh 0x08000aaa 0x7070
IMX6#0>mmh 0x08000aaa 0x7171
IMX6#0>mmh 0x08000aaa 0xaaaa
IMX6#0>mmh 0x08000554 0x5555
IMX6#0>mmh 0x08000000 0x3030
IMX6#0>mmh 0x08000aaa 0x1010
IMX6#0>erase 0x08000000 chip
Erasing flash at 0x08000000
Erasing flash passed
********************U-boot Programming with Prog command
Failure**************************
IMX6#0>mmh 0x08000aaa 0xaaaa
IMX6#0>mmh 0x08000554 0x5555
IMX6#0>mmh 0x08000000 0x0025
IMX6#0>
IMX6#0>prog 0x08000000 u-boot.bin bin
Programming u-boot.bin , please wait ....
Programming flash passed
IMX6#0>mmh 0x08000000 0x0029
IMX6#0>mdh 0x08000000
08000000 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000010 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000020 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000030 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000040 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000050 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000060 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000070 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000080 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
08000090 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
080000a0 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
080000b0 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
080000c0 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
080000d0 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
080000e0 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
080000f0 : 000a 004a 000a 004a 000a 004a 000a 004a ..J...J...J...J.
IMX6#0>
I was able to read the manufacturer ID also .
The Prog command shows it is successful but nothing is written on the base
address if i give the prog command directly without any write to buffer
programming commands or word programming commands
Kindly help me resolving this issue.
--
View this message in context: http://u-boot.10912.n7.nabble.com/minimum-bdi-config-to-read-flash-on-85xx-tp23684p155716.html
Sent from the U-Boot mailing list archive at Nabble.com.
More information about the U-Boot
mailing list