I should check things more before I ask question :P I had everything I
needed with the patch I posted earlier, I just forgot to add the
Amd/Fujitsu Query table in my kernel config. I'm not that experienced
with MTD, so the kernel configuration has been a bit frustration (what
to include or not to include).
Creating 3 MTD partitions on "ENLV640B":
0x000000000000-0x000000200000 : "kernel"
mtd: Giving out device 0 to kernel
0x000000200000-0x0000007f0000 : "rootfs"
mtd: Giving out device 1 to rootfs
0x0000007f0000-0x000000800000 : "biffboot"
mtd: Giving out device 2 to biffboot
Thanks for the link to the openwrt stuff, but last time I looked at the
patches I gave up. Their kernel are too far from the vanilla kernel to
have any use for me.
Btw, my last patch had an error (I didn't test MTD), bifferboard-flash.c
needs to be adjusted to reflect changes in the kernel:
--- drivers/mtd/maps/bifferboard-flash.c.orig 2012-11-11
01:05:33.589576232 +0100
+++ drivers/mtd/maps/bifferboard-flash.c 2012-11-11
01:05:55.086739121 +0100
@@ -209,7 +209,7 @@
}
bb_mtd->owner = THIS_MODULE;
- ret = add_mtd_partitions(bb_mtd, bb_parts, part_len);
+ ret = mtd_device_register(bb_mtd, bb_parts, part_len);
if (ret)
{
pr_err(DRV "add_mtd_partitions\n");
@@ -229,7 +229,7 @@
static void __exit exit_bb_map(void)
{
- del_mtd_partitions(bb_mtd);
+ mtd_device_unregister(bb_mtd);
map_destroy(bb_mtd);
iounmap(bb_map.virt);
}
MTD now works 100% :)
Regards
Ole Andre Rodlie