I'm porting a linksys device that only has eMMC available and I'm stuck finding a proper way to expose the partitions to OpenWRT.
Main reason is to be able to load CAL data from ART -- and make it transparent with other MTD dependent tools such as mtd resetbc or the sysupgrade process.
Trying to leverage block2mtd built-in at the kernel level and pass block2mtd and mtdparts does not seem to work -- variables are do passed but the kernel does not contain block2mtd.
Next option was to add it to DEVICE_PACKAGES and thus make it available as a module, but the block2mtd package does not use AUTOLOAD, and changing it will not be device-dependent and potentially break other systems.
Last option that I'm trying is to use the preinit phase, since ATH10k will need CAL data to properly init a wireless driver.
But it does not matter to which step in the preinit process I try to add a hook it is either not invoked or complains about "/dev/mmcblk0" not existing -- maybe /dev is still not populated.
Any idea on how to leverage eMMC only or make it compatible with MTD?