How to expand the VIM3 vendor partition size in aosp 13 (Android 13)?

Which Khadas SBC do you use?


Which system do you use? Android, Ubuntu, OOWOW or others?

Aosp 13 or aosp 14

Which version of system do you use? Khadas official images, self built images, or others?

aosp self building

Please describe your issue below:

Currently, the vendor partiton is 100% full, I want to copy some files into the vendor at runtime to do some development testing. How can I expand the vendor partition size?

Post a console log of your issue below:

/dev/block/dm-1      120M 120M  396K 100% /vendor

There will be a reference to that partition file in the corresponding dts file. Go to the corresponding partition dtsi to increase the size of the required partition.

for example:
My kvim3.dts file

#include "partition_mbox_normal_Q.dtsi"
#include "mesong12b.dtsi"
#include "mesong12b_skt-panel.dtsi"

partition_mbox_normal_Q.dtsi It is the referenced partition file

partitions: partitions{
		parts = <17>;
		part-0 = <&logo>;
		part-1 = <&recovery>;
		part-2 = <&misc>;
		part-3 = <&dtbo>;
		part-4 = <&cri_data>;
		part-5 = <&param>;
		part-6 = <&boot>;
		part-7 = <&rsv>;
		part-8 = <&metadata>;
		part-9 = <&vbmeta>;
		part-10 = <&tee>;
		part-11 = <&vendor>;
		part-12 = <&odm>;
		part-13 = <&system>;
		part-14 = <&product>;
		part-15 = <&cache>;
		part-16 = <&data>;