Cubieboard 2 – Nand flash via FEX

Output of the serial console when flashing the nand of a cubieboard 2 via Phoenixtool / LiveSuit:


.FES:
FES:Fes Ver: 098

FES:=================================================================================================

FES:=                                                                                               =

FES:=                                         EEMMMMMMLL                                            =

FES:=                                     ::MMMHOLIGANEE                                            =

FES:=                                   ::MM.                                                       =

FES:=                                   MMFF                                                        =

FES:=                                 FFMM                                                          =

FES:=                                MMMM                                                           =

FES:=                              ..MMFF                                                           =

FES:=                              EEMM.                                           FFMMMM           =

FES:=          . MMMMMMMM    MMMMMMMMMMMMMMMMMM      FFMMMMMM::      ::MMMM      BBMMMMFF           =

FES:=        ::MM  . MMMM          MMMM            MM.   MMMMMM    EE..EEMM::  EE::                 =

FES:=        MM      MMMM        ::MMLL          EEMM    MMMMFF  .       MMMM::::                   =

FES:=      MMMM    FFMMI         BBMM            MMI     MMMM            MMMMEE                     =

FES:=      MMMM  . MM::          MMMM          MMMM    BBMM              MMMM                       =

FES:=    BBMMFF::EE              MMMM          MMMM  MM::                BBMM..                     =

FES:=    MMMMEE                I MMI         I MMMM::                  ::FFMMFF                     =

FES:=    MMMM          LL      MMMM          EEMMMM        LL          BB  MMMM                     =

FES:=    MMMM      I MM        MMMM          MMMMMM      MM::        MM    MMMM                     =

FES:=    MMMMMMMMMMEE          MMMM          .GUANLI@HUANG.   BB    BB      FFMM.                   =

FES:=      MMMMMM..          I MMI             MMMMMMEE      MMMMMM          MMEE                   =

FES:=                        MMMM                                            MMMM                   =

FES:=                        MMMM                                            ::MM::                 =

FES:=                        MM                                                BBMM        MM       =

FES:=                      EEBB                                                  BBMM..  MMMM       =

FES:=                      MM                                                      ..EEMMFF         =

FES:=          MMMMMMMMMMMM                                                                         =

FES:=          MMMMMMMMI                                                                            =

FES:=                                                                                               =

FES:=================================================================================================

FES:INFO : ......1........

FES:INFO : ......2........

FES:INFO : ......3........

FES:INFO : ......5........

FES:INFO : ......6........

FES:INFO : ......7........

FES:INFO : ......8........

FES:INFO : ......9........

FES:CONFIG_USB_GADGET_DUALSPEED

FES:fes connect to host

FES:USB_MOV_DATA_BY_DMA!

FES:INFO : ......10.......

FES:jump to fes_main

FES:INFO: fes_protocol_process start

FES:[info]: set address 4

FES:write special pipe

FES:INFO: fed reg_addr = 0x4011f714

FES:fed para[0] = 0x40900000

FES:fed para[1] = 0x00000000

FES:fed para[2] = 0x00000000

FES:fed para[3] = 0x00000000

[Fed]:-------------------------------------------------

[Fed]:                Hello, Nand Register

[Fed]:-------------------------------------------------

[Fed]:"private" part NOT configured.

NHW : start nand scan

[NAND] nand driver(b) version: 0x2, 0x12, data: 20130325

NFC Randomizer start.

[SCAN_DBG] Nand flash chip id is:0xec 0xd7 0x94 0x7a 0x54 0x43

[SCAN_DBG] ==============Nand Architecture Parameter==============

[SCAN_DBG]    Nand Chip ID:         0x7a94d7ec 0xffffffff

[SCAN_DBG]    Nand Chip Count:      0x1

[SCAN_DBG]    Nand Chip Connect:    0x1

[SCAN_DBG]    Nand Rb Connect Mode:      0x1

[SCAN_DBG]    Sector Count Of Page: 0x10

[SCAN_DBG]    Page Count Of Block:  0x80

[SCAN_DBG]    Block Count Of Die:   0x1000

[SCAN_DBG]    Plane Count Of Die:   0x2

[SCAN_DBG]    Die Count Of Chip:    0x1

[SCAN_DBG]    Bank Count Of Chip:   0x1

[SCAN_DBG]    Optional Operation:   0x11088

[SCAN_DBG]    Access Frequence:     0x1e

[SCAN_DBG]    ECC Mode:             0x3

[SCAN_DBG]    Read Retry Type:      0x0

[SCAN_DBG]    DDR Type:             0x0

[SCAN_DBG] =======================================================

[SCAN_DBG] ==============Optional Operaion Parameter==============

[SCAN_DBG]    MultiPlaneReadCmd:      0x60, 0x60

[SCAN_DBG]    MultiPlaneWriteCmd:     0x11, 0x81

[SCAN_DBG]    MultiPlaneCopyReadCmd:  0x60, 0x60, 0x35

[SCAN_DBG]    MultiPlaneCopyWriteCmd: 0x85, 0x11, 0x81

[SCAN_DBG]    MultiPlaneStatusCmd:    0x70

[SCAN_DBG]    InterBnk0StatusCmd:     0xf1

[SCAN_DBG]    InterBnk1StatusCmd:     0xf2

[SCAN_DBG]    BadBlockFlagPosition:   0x2

[SCAN_DBG]    MultiPlaneBlockOffset:  0x1

[SCAN_DBG] =======================================================

NHW : nand hw scan ok

check nand version start.

Current nand driver version is 0x000000ff 0x00000000 0x00000002 0x00000012

Succeed in getting flash info.

Media version is valid in block 0, version info is 0x000000ff 0x00000000 0x00000002 0x00000012

nand driver version match ok in block 0.

VersionCheck end.

[Fed]:To erase boot0 blocks.

Ready to erase boot blocks.

has cleared the boot blocks.

[Fed]:L322,To erase nand.

Ready to erase chip.

nfb phy init ok.

Succeed in getting flash info.

page size:0x00002000, oob_size: 0x00000020, block size: 0x00000080, bad block position: 0x00000002.

chip_cnt = 0x00000001, chip_connect = 0x00000001, rb_cnt = 0x00000001,  rb_connect = 0x00000001,  good_block_ratio =0x000003b0

erase chip 0

[Fet]:find a bad block 16

[Fet]:find a bad block 17

[Fet]:find a bad block 4094

[Fet]:find a bad block 4095

has cleared the chip.

the nand is OK.

Ready to scan bad blocks.

nfb phy init ok.

Succeed in getting flash info.

scan CE 0

find defined bad block in chip 0, block 4.

find defined bad block in chip 0, block 5.

find defined bad block in chip 0, block 16.

find defined bad block in chip 0, block 17.

find defined bad block in chip 0, block 4094.

find defined bad block in chip 0, block 4095.

6 bad blocks in CE 0

cal bad block num is 12

cal good block num is 971

good block ratio is 944

[Fed]:get the good blk ratio after hwscan : 944

_RepairLogBlkTbl start

_RepairLogBlkTbl end

get mbr error

[Fed]:erase=1, hasPrivatePart=0.

[Fed]:nand logic size [0x00000000, 0x00760000]Sec.

[Fed]:-------------------------------------------------

[Fed]:               Byebye, Nand Register.

[Fed]:-------------------------------------------------

FES:INFO : run addr = 0x00000000 , type = 1437204482

FES:---------------------------------------------------

FES:fes_crc   = 0x00000000

FES:media_crc = 0x50753e48

FES:---------------------------------------------------

FES:---------------------------------------------------

FES:fes_crc   = 0x00000000

FES:media_crc = 0xc51b63f7

FES:---------------------------------------------------

FES:---------------------------------------------------

FES:fes_crc   = 0x00000000

FES:media_crc = 0x84763f81

FES:---------------------------------------------------

FES:---------------------------------------------------

FES:fes_crc   = 0x00000000

FES:media_crc = 0xd35a64dd

FES:---------------------------------------------------

FES:---------------------------------------------------

FES:fes_crc   = 0x00000000

FES:media_crc = 0x78cfdef0

FES:---------------------------------------------------

[Fed]:...To UN-REG FED_NAND....

BMM_MergeAllLogBlock, ZoneCnt: 2

BMM_MergeAllLogBlock, tmpZoneNum: 0

BMM_MergeAllLogBlock, logpos: 1, logblock: 213

BMM_MergeAllLogBlock, logpos: 2, logblock: a

BMM_MergeAllLogBlock, logpos: 3, logblock: 18

BMM_MergeAllLogBlock, logpos: 4, logblock: 26

BMM_MergeAllLogBlock, logpos: 5, logblock: 0

BMM_MergeAllLogBlock, tmpZoneNum: 1

BMM_MergeAllLogBlock end

[Fed]:LML_EXIT OK

FES:INFO : run addr = 0x401e79a8 , type = 1437204481

[Fet]:-------------------------------------------------

[Fet]:                Hello, Update boot1.

[Fet]:-------------------------------------------------

[Fet]:update_Boot1: addr = 0x40410000, good_block_ratio = 944

[Fet]:Magic file is eGON.BT1

[Fet]:regenerate check sum

get the good blk ratio from hwscan : 960

NB1 : enter phy init

[NAND] nand driver(b) version: 0x2, 0x12, data: 20130325

NFC Randomizer start.

[SCAN_DBG] Nand flash chip id is:0xec 0xd7 0x94 0x7a 0x54 0x43

[SCAN_DBG] ==============Nand Architecture Parameter==============

[SCAN_DBG]    Nand Chip ID:         0x7a94d7ec 0xffffffff

[SCAN_DBG]    Nand Chip Count:      0x1

[SCAN_DBG]    Nand Chip Connect:    0x1

[SCAN_DBG]    Nand Rb Connect Mode:      0x1

[SCAN_DBG]    Sector Count Of Page: 0x10

[SCAN_DBG]    Page Count Of Block:  0x80

[SCAN_DBG]    Block Count Of Die:   0x1000

[SCAN_DBG]    Plane Count Of Die:   0x2

[SCAN_DBG]    Die Count Of Chip:    0x1

[SCAN_DBG]    Bank Count Of Chip:   0x1

[SCAN_DBG]    Optional Operation:   0x11088

[SCAN_DBG]    Access Frequence:     0x1e

[SCAN_DBG]    ECC Mode:             0x3

[SCAN_DBG]    Read Retry Type:      0x0

[SCAN_DBG]    DDR Type:             0x0

[SCAN_DBG] =======================================================

[SCAN_DBG] ==============Optional Operaion Parameter==============

[SCAN_DBG]    MultiPlaneReadCmd:      0x60, 0x60

[SCAN_DBG]    MultiPlaneWriteCmd:     0x11, 0x81

[SCAN_DBG]    MultiPlaneCopyReadCmd:  0x60, 0x60, 0x35

[SCAN_DBG]    MultiPlaneCopyWriteCmd: 0x85, 0x11, 0x81

[SCAN_DBG]    MultiPlaneStatusCmd:    0x70

[SCAN_DBG]    InterBnk0StatusCmd:     0xf1

[SCAN_DBG]    InterBnk1StatusCmd:     0xf2

[SCAN_DBG]    BadBlockFlagPosition:   0x2

[SCAN_DBG]    MultiPlaneBlockOffset:  0x1

[SCAN_DBG] =======================================================

NB1 : nand phy init ok

[Fet]:boot1 last block 0x0x00000006 .

[Fet]:open nand.

[Fet]:Magic file is eGON.BT1

[Fet]:boot1 0x00000002

[Fet]:erasing block 2 succeeded..

[Fet]:Succeed in erasing block 2.

[Fet]:succeed in programming block 2.

[Fet]:boot1 0x00000003

[Fet]:erasing block 3 succeeded..

[Fet]:Succeed in erasing block 3.

[Fet]:succeed in programming block 3.

[Fet]:boot1 0x00000004

[Fet]:erasing block 4 failed.

[Fet]:fail in erasing block 4.

[Fet]:boot1 0x00000005

[Fet]:erasing block 5 failed.

[Fet]:fail in erasing block 5.

[Fet]:boot1 0x00000006

[Fet]:erasing block 6 succeeded..

[Fet]:Succeed in erasing block 6.

[Fet]:succeed in programming block 6.

[Fet]:succeed in burning boot1.

[Fet]:-------------------------------------------------

[Fet]:            Succeed in Updating boot1.

[Fet]:-------------------------------------------------

FES:INFO : run addr = 0x401e6ef8 , type = 1437204481

[Fet]:-------------------------------------------------

[Fet]:                Hello, Update boot0.

[Fet]:-------------------------------------------------

[Fet]:Magic file is eGON.BT0

[Fet]:burn boot0 normal mode!

get the good blk ratio from hwscan : 960

NB1 : enter phy init

[NAND] nand driver(b) version: 0x2, 0x12, data: 20130325

NFC Randomizer start.

[SCAN_DBG] Nand flash chip id is:0xec 0xd7 0x94 0x7a 0x54 0x43

[SCAN_DBG] ==============Nand Architecture Parameter==============

[SCAN_DBG]    Nand Chip ID:         0x7a94d7ec 0xffffffff

[SCAN_DBG]    Nand Chip Count:      0x1

[SCAN_DBG]    Nand Chip Connect:    0x1

[SCAN_DBG]    Nand Rb Connect Mode:      0x1

[SCAN_DBG]    Sector Count Of Page: 0x10

[SCAN_DBG]    Page Count Of Block:  0x80

[SCAN_DBG]    Block Count Of Die:   0x1000

[SCAN_DBG]    Plane Count Of Die:   0x2

[SCAN_DBG]    Die Count Of Chip:    0x1

[SCAN_DBG]    Bank Count Of Chip:   0x1

[SCAN_DBG]    Optional Operation:   0x11088

[SCAN_DBG]    Access Frequence:     0x1e

[SCAN_DBG]    ECC Mode:             0x3

[SCAN_DBG]    Read Retry Type:      0x0

[SCAN_DBG]    DDR Type:             0x0

[SCAN_DBG] =======================================================

[SCAN_DBG] ==============Optional Operaion Parameter==============

[SCAN_DBG]    MultiPlaneReadCmd:      0x60, 0x60

[SCAN_DBG]    MultiPlaneWriteCmd:     0x11, 0x81

[SCAN_DBG]    MultiPlaneCopyReadCmd:  0x60, 0x60, 0x35

[SCAN_DBG]    MultiPlaneCopyWriteCmd: 0x85, 0x11, 0x81

[SCAN_DBG]    MultiPlaneStatusCmd:    0x70

[SCAN_DBG]    InterBnk0StatusCmd:     0xf1

[SCAN_DBG]    InterBnk1StatusCmd:     0xf2

[SCAN_DBG]    BadBlockFlagPosition:   0x2

[SCAN_DBG]    MultiPlaneBlockOffset:  0x1

[SCAN_DBG] =======================================================

NB1 : nand phy init ok

[Fet]:open nand.

[Fet]:Magic file is eGON.BT0

[Fet]:boot0 0x00000000

[Fet]:boot0 0x00000001

[Fet]:-------------------------------------------------

[Fet]:            Succeed in Updating boot0.

[Fet]:-------------------------------------------------

FES:INFO : run addr = 0x401a87cc , type = 1437204481

start watchdog

U-Boot SPL 2013.10-rc2-01229-g951e509 (Sep 06 2013 - 17:15:48)
Board: Cubieboard2
DRAM: 1024 MiB
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
spl: not an uImage at 1600

U-Boot 2013.10-rc2-01229-g951e509 (Sep 06 2013 - 17:15:48) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Board: Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  3 ... 2 ... 1 ... 0
sun7i#

One thought on “Cubieboard 2 – Nand flash via FEX”

Leave a Reply

Your email address will not be published. Required fields are marked *

Protected with IP Blacklist CloudIP Blacklist Cloud