flash unlock on VPB
stiger
bhe at jadechip.com
Fri Feb 4 21:20:14 EST 2005
hello,
i'm using VPB + kernel 2.6.9
but i found the flash cannot write, it should be unlocked first.
if not use root filesystem in flash, I can use flash_unlock to unlock the
flash.
but if burn root filesystem into flash, i have to change the kernel code.
i add these code at driver/mtd/mtdpart.c->add_mtd_partitions()
if((slave->mtd.flags & MTD_WRITEABLE) && slave->mtd.unlock ){
slave->mtd.unlock(&(slave->mtd), 0, slave->mtd.size );
}
now, it works.
but i think it's a stupid way to do this.
is there any other way to do this ?
More information about the linux-mtd
mailing list