More than 7 partitions on the SD
jo.omsl at googlemail.com
Tue Mar 10 13:28:29 CET 2009
2009/3/10 Pietro m0nt0 Montorfano <monto84 at gmail.com>:
> Il giorno lun, 09/03/2009 alle 23.48 +0200, Timo Juhani Lindfors ha
>> "Pietro \"m0nt0\" Montorfano" <monto84 at gmail.com> writes:
>> > Sooo, how it's that possible?? Why can't we simply patch the driver
>> > which make the mmcblk device to let us create all the devices?
>> drivers/mmc/block.c has the limit:
>> * max 8 partitions per card
>> #define MMC_SHIFT 3
>> #define MMC_NUM_MINORS (256 >> MMC_SHIFT)
> I'm a lazy boy so i really want to have all the distro on tha uSD, also
> some testing version and so on ;D
> I'll try to make some changes to that driver..
If you set MMC_SHIFT to 4, you'll get up to 16 partitions per card,
but otoh you reduce the number of minor devices that this driver can
handle. It's better to simply set MMC_NUM_MINORS to the number of
minors you'd like (64?) instead of the 256 >> MMC_SHIFT.
More information about the support