[#3836] It failed to write to NAND flash in u-boot in 2008Rr branch

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

[#3836] It failed to write to NAND flash in u-boot in 2008Rr branch

Submitted By: Vivi Li

Open Date

2008-01-16 21:33:00     Close Date

2008-01-17 00:15:28

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

N/A     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Rejected

Is the bug repeatable?:

N/A     

Summary: It failed to write to NAND flash in u-boot in 2008Rr branch

Details:

 

In 2008R1 branch, when test NAND flash support in u-boot, it failed to write to NAND flash. Attached is the u-boot.bin with NAND flash supported.

 

Below is the log:

--

U-Boot 1.1.6-svn1102 (ADI-2008R1) (Jan 17 2008 - 10:41:10)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

NAND:  128 MiB

Net:   Blackfin EMAC

MAC:   30:00:30:00:30:00

I2C:   ready

Hit any key to stop autoboot:  0

bfin>

bfin> tftp 0x1000000 uImage

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

Loading: T #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         #########################

done

Bytes transferred = 2454059 (25722b hex)

bfin>

bfin> nand erase clean

NAND erase: device 0 whole chip

Erasing at 0x7fe0000 -- 100% complete. Cleanmarker written at 0x7fe0000.

OK

bfin>

bfin> nand write 0x1000000 0x0 $(filesize)

NAND write: device 0 offset 0x0, size 0x25722b

nand_write_ecc: Attempt to write not page aligned data

0 bytes written: ERROR

bfin>

--

 

Follow-ups

 

--- Mike Frysinger                                           2008-01-16 23:46:15

both the start address and the length need to be page aligned

 

$(filesize) = 0x25722b is not page aligned

 

--- Vivi Li                                                  2008-01-17 02:16:36

Yes, it passed after I aligned the filesize. So close it.

Is it outdated in wiki of using_nand_flash_with_u-boot_and_linux_kernel?

 

--- Mike Frysinger                                           2008-01-17 02:24:25

there's an open tracker item about making this more intuitive ... what you tried

to do is pretty common actually and not unreasonable

 

--- Vivi Li                                                  2008-01-17 02:36:10

Do you mean the bug "[#2618]unable to write to NAND: Attempt to write not

page aligned data"?

I just find it in our tracker...

 

--- Mike Frysinger                                           2008-01-17 02:54:57

that's the one

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

u-boot_nand.bin    application/octet-stream    177792    Vivi Li

Attachments

Outcomes