Friday, May 20, 2016

mediatek - Where does the partition information in /proc/dumchar_info come from, on MTK devices?


If I want to resize partitions or restore a backup later, how do I make sure that /proc/dumchar_info reflects the changes?


As far as I can tell, dumchar_info is not related to the MBR and EBRs, since it has more info.



Answer




/proc/dumchar_info is provided by the dumchar driver, which reads the partitioning info from a header file generated during the build process and compiled in when the kernel is built. This header file is also used by other components, like the preloader, possibly bootloader, and both regular and recovery kernels. This means unless you can rebuild said components with a new header file, the partitioning is quite literally hard-coded.


A scatter file is related, in that it's generated from the same source. You can use the information from /proc/dumchar_info (together with some assumptions) to generate a scatter file.


For more information on partitioning on MediaTek devices that don't use GPT, see here.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...