unifreq / linux-6.1.y

clone from https://github.com/chewitt/linux branch amlogic-6.1.y, And will add some patches that I have collected, which can be used for the aarch64 openwrt firmware, or for general occasions such as armbian.
Other
41 stars 65 forks source link

block/partitions/amlogic: Add support #12

Closed 7Ji closed 1 year ago

7Ji commented 1 year ago

This adds support of Amlogic's proprietary partitions mainly seen on eMMC of devices using their SoCs to the block subsystem.

The support is based on reverse-engineering so it could have major diffe- rences on technical details, the most notable one is that Amlogic added their own support to this format to the MMC driver instead of the block subsystem.

There are probably multiple iterations of such implementaions by Amlogic but this support is based on the one with magic MPT and version 01.00.00

It is added as the last parsed partition type after all other existing ones like msdos, gpt, etc. So any existing msdos or gpt table on a block device will prevent the Amlogic one from being parsed.

The support could be enabled with CONFIG_AMLOGIC_PARTITION=y

Two kernel command line options could be used to determine the behaviours:

unifreq commented 1 year ago

This looks like an interesting patch, thanks for your submission!

unifreq commented 1 year ago

This looks like an interesting patch, thanks for your submission!