2009/3/10 Pietro m0nt0 Montorfano <[email protected]>:
> Il giorno lun, 09/03/2009 alle 23.48 +0200, Timo Juhani Lindfors ha
> scritto:
>> "Pietro \"m0nt0\" Montorfano" <[email protected]> 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.

_______________________________________________
support mailing list
[email protected]
https://lists.openmoko.org/mailman/listinfo/support

Reply via email to