[U-Boot] Strata P30 and DM6446 Davinci board can't erase NOR flash.

gslee gslee at hallym.ac.kr
Sat Mar 6 08:37:18 CET 2010


Hi all,

 

I’m working DM6446 board with uboot but it can’t erase NOR flash.

This is my platform.

DM6446( Davinci), NOR flash (P30, PF48F4000P0ZBQ0, I think it is same device to 28F256P30 series). 

Flash 32MB, DDR2 256MB.

 

Used Configuration file is davinci_dvevm.h.

Blow was modified by me. 

 

//==================

 

#define CONFIG_SYS_FLASH_SECT_SZ        0x20000            /* 128kb intel  Flash */

 

//recent uboot version has binary size about 180k bytes. Thus it needs 0x40000.

#define CONFIG_ENV_OFFSET                  (CONFIG_SYS_FLASH_SECT_SZ*2)

 

//Strata has 259 sectors , not 256 sector.!!!!

#define CONFIG_SYS_MAX_FLASH_SECT      (PHYS_FLASH_SIZE/CONFIG_SYS_FLASH_SECT_SZ+256)

//==========

 

Below has captured by my RS-232 monitor and my working screen.

But bootargs didn’t erase. By erase command , it can’t also erase NOR flash .

What is my mistake?

 

//================captured log

 

 

U-Boot 2009.11 (Mar 06 2010 - 16:03:15)

 

Cores: ARM 297 MHz, DSP 594 MHz

DDR:   162 MHz

I2C:   ready

DRAM:  256 MB

Flash: 32 MB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Read from EEPROM @ 0x50 failed

Net:   Ethernet PHY: LXT972 @ 0x01

 

U-Boot > printenv

bootargs=mem=120M console=ttyS0,115200n8 root=/dev/hda1 rw noinitrd ip=dhcp

bootcmd=setenv setboot setenv bootargs \$(bootargs) video=dm64xxfb:output=\$(videostd);run setboot; bootm 0x2050000

baudrate=115200

bootfile="uImage"

stdin=serial

stdout=serial

stderr=serial

videostd=ntsc

ver=U-Boot 2009.11 (Mar 06 2010 - 16:03:15)

 

Environment size: 325/131068 bytes

U-Boot > setenv bootargs

U-Boot > saveenv

Saving Environment to Flash...

Un-Protected 1 sectors

Erasing Flash...

.. done

Erased 1 sectors

Writing to Flash... done

Protected 1 sectors

U-Boot > 

ç================reset by electrically….=================

U-Boot 2009.11 (Mar 06 2010 - 16:03:15)

 

Cores: ARM 297 MHz, DSP 594 MHz

DDR:   162 MHz

I2C:   ready

DRAM:  256 MB

Flash: 32 MB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Read from EEPROM @ 0x50 failed

Net:   Ethernet PHY: LXT972 @ 0x01

 

U-Boot > printenv

bootargs=mem=120M console=ttyS0,115200n8 root=/dev/hda1 rw noinitrd ip=dhcp

bootcmd=setenv setboot setenv bootargs \$(bootargs) video=dm64xxfb:output=\$(videostd);run setboot; bootm 0x2050000

baudrate=115200

bootfile="uImage"

stdin=serial

stdout=serial

stderr=serial

videostd=ntsc

ver=U-Boot 2009.11 (Mar 06 2010 - 16:03:15)

 

Environment size: 325/131068 bytes

U-Boot >



More information about the U-Boot mailing list