From: Stuart M. <stu...@st...> - 2008-02-26 19:18:41
|
Hi Sudhakar KRISHNAN SUDHAKAR-NRD743 wrote: > This is the first time I am trying to write in this board. > > But unprotect and write is possible in uboot prompt. Do you mean this is the first time you have tried to use Flash when running the kernel, but it works OK from U-Boot? So is it possible somebody has added code to U-Boot to enable VPP, but that same modification hasn't been made to the kernel? > In the same board flash info is working. Do you mean the U-Boot flinfo command? It might be worth building the kernel with MTD debug to set level 3, see if that tell us anything useful. Are you booting the kernel from a micro connect or from U-Boot? Can you try both, and see if it makes a difference. Is this your own board, or a reference board? Which Flash device are you using, and which kernel? Stuart > > Thanks > -----Original Message----- > From: Stuart MENEFY [mailto:stu...@st...] > Sent: Tuesday, February 26, 2008 8:02 PM > To: KRISHNAN SUDHAKAR-NRD743 > Cc: lin...@li... > Subject: Re: Un protecting flash error > > Hi Sudhakar > > KRISHNAN SUDHAKAR-NRD743 wrote: >> I am facing few flash file accessing problems ST Linux based systems. >> I have modified the code in stboards.c file for creating partitions > ... >> Partition looks like the following >> >> /tmp # cat /proc/mtd >> dev: size erasesize name >> mtd0: 00500000 00020000 "VIP800 Boot" >> mtd1: 00100000 00020000 "FFS0" >> mtd2: 01a00000 00020000 "FFS1" >> >> if I do a flash info its working fine >> >> / # flash_info /dev/mtd2 >> Device /dev/mtd2 has 0 erase regions >> >> if i try to unlock the partion its not happeniing >> >> / # flash_unlock /dev/mtd2 >> Could not unlock MTD device: /dev/mtd2 / # >> >> It will be very helpful if some one give some solutions > > The implication is that changing the partition table has broken this, is > this correct or has it never worked? > > If its never worked I'd be suspicious that your board has a write > protect signal, VPP enable or something similar which you need to > enable. > > Stuart > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > linuxsh-dev mailing list > lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxsh-dev |