jedec_probe still not working

thierry jokyman at sina.com
Fri Jan 3 01:22:17 EST 2003


I have try to use the cfi_probe.But I met the same problem.
So I go back to use jedec_probe.
My board is based on DragonBall ez328,uClinux20020927
I call the jedec_probe to detect my flash.
I set:
	cfi->addr_unlock1 = 0xaaa;
	cfi->addr_unlock2 = 0x554;
It execute:
	/* Reset */
	cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);

	/* Autoselect Mode */
	cfi_send_gen_cmd(0xaa, cfi->addr_unlock1, base, map, cfi, CFI_DEVICETYPE_X16, NULL);
	cfi_send_gen_cmd(0x55, cfi->addr_unlock2, base, map, cfi, CFI_DEVICETYPE_X16, NULL);
	cfi_send_gen_cmd(0x90, cfi->addr_unlock1, base, map, cfi, CFI_DEVICETYPE_X16, NULL);

	if (!cfi->numchips) {
		/* This is the first time we're called. Set up the CFI 
		   stuff accordingly and return */
		
		cfi->mfr = jedec_read_mfr(map, base, osf);
		cfi->id = jedec_read_id(map, base, osf);

		printk("mfr:%lx\n",cfi->mfr);
		printk("id:%lx\n",cfi->id);
When kernel boot up,it print:
mfr:7f
id:fffc
My flash is hy29lv190
manufacturer code is 0xAD
device code is 0x22C4
I can't find out the problem.
Can anyone point it out?
Thanks!








More information about the linux-mtd mailing list