From: Ben Warren Date: Fri, 23 Mar 2007 06:02:30 -0700 (PDT) Subject: [U-Boot-Users] about sector lock in u-boot flash.c In-Reply-To: <4603CBCD.000067.20264@bj126app57.126.com> Message-ID: <534353.59549.qm@web307.biz.mail.mud.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de --- chark_uboot at 126.com wrote: > hi all, > I use a AT49BV1614A (2MB) as my flash memory,after > write the u-boot.bin into it,I can't write/erase the > flash, even chip erase command.this u-boot.bin is > compiled from u-boot-1.1.3 #make > chk4510_config;#make(chk4510 is a board I make some > changes from evb4510), > I find there's a flash_protect program in flash.h: > #if defined(CFG_FLASH_PROTECTION) > extern int flash_real_protect(flash_info_t *info, > long sector, int prot); > but I can't find the flash_real_protect,I want to > figure out how to unprotect my flash > thks for help:) First step - get the latest U-boot. MUCH has changed in the flash code since 1.1.3 regards, Ben