On Thu, 2004-03-18 at 12:13, YhLu wrote:
Stuck after 3.
It seems it doesn't allow write mmio.
int probe_49fl004 (struct flashchip * flash) { volatile char * bios = flash->virt_addr; unsigned char id1, id2; printf("3\n"); *(volatile char *) (bios + 0x5555) = 0xAA; myusec_delay(10); printf("4\n"); *(volatile char *) (bios + 0x2AAA) = 0x55; myusec_delay(10); printf("5\n"); *(volatile char *) (bios + 0x5555) = 0x90;
There is some arithmeatic error in old flash_rom, please cvs update.
Ollie