Then modprobe still tries to use ubuntu's mtd drivers.
Do you have '/lib/modules/2.6.31-21-generic/extra' with drivers inside?
If so, you might remove, or move it to some other place the
'/lib/modules/2.6.31-21-generic/kernel/drivers/mtd'
And then run 'depmod -a' (with sudo of course)
Then look what 'modinfo nand' shows. If it sees it in '/lib/modules/2.6.31-21-generic/extra...' then try to load my driver again, if that fails, reboot your system and try again (this is easiest way to unload already loaded modules)
@jerzy
Then modprobe still tries to use ubuntu's mtd drivers.
Do you have '/lib/modules/ 2.6.31- 21-generic/ extra' with drivers inside? 2.6.31- 21-generic/ kernel/ drivers/ mtd'
If so, you might remove, or move it to some other place the
'/lib/modules/
And then run 'depmod -a' (with sudo of course)
Then look what 'modinfo nand' shows. If it sees it in '/lib/modules/ 2.6.31- 21-generic/ extra.. .' then try to load my driver again, if that fails, reboot your system and try again (this is easiest way to unload already loaded modules)