Part Number: AM625
hi
make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- defconfig ti_arm64_prune.config ti_rt.configto build the kernel from my SDK 8.6. The resulting build still contains many modules.This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM625
hi
make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- defconfig ti_arm64_prune.config ti_rt.configto build the kernel from my SDK 8.6. The resulting build still contains many modules.Hi Hao,
TI doesn't publish a "tiny_defconfig" for K3/AM62 the way upstream Linux has make tinyconfig.
The only officially maintained trimming fragments are ti_arm64_prune.config (drops non-AM62/non-target K3 SoC bits) and ti_early_display.config/ti_rt.config (boot-time and RT tweaks).
None of them aim for "zero modules, A53+M4 only." ti_arm64_prune.config already trims a lot, but it's nowhere close to a minimal config; it still leaves most driver subsystems (USB, sound, various SoC IP not on your board, etc.) enabled as modules.
Regards,
Vinu
Hi Vinu
menuconfig, the options become very granular — disabled modules are small and scattered across many menus, making it hard to prune systematically.pvrsrvkm.ko(PowerVR driver) is still generated — I found it is built as an out-of-tree module from the SDK itself, not from the kernel tree.Hi Hao,
For SDK 8.x, this probably isn't feasible - since it is a very old version, which is not actively maintained, so a new minimal defconfig target is unlikely to be added there.
For the latest SDK, I'll ask the dev team about the feasibility of considering this as part of any of the future releases.
Regards,
Vinu
For SDK 8.x, this probably isn't feasible - since it is a very old version, which is not actively maintained, so a new minimal defconfig target is unlikely to be added there.
Hi Hao,
I've created a requirement ticket.
https://jira.itg.ti.com/browse/SITREQ-6943
The ticket is yet not published externally. This is only for internal tracking.
I'll share the external link, once it's available.
Regards,
Vinu
Hi Hao,
Would it be possible for TI to provide a user-friendly minimal/tiny defconfig (no modules, core AM62 A53 + M-core only) in future SDK releases, similar to what exists in newer SDK versions, to make this workflow easier?"
As you have already observed that trimming kernel config is not trivial, expanding a barebone/tiny kernel config to enable a certain application is not trivial either. Therefor, it doesn't make sense to provide a "tiny" kernel config in the SDK.
If you really want a "tiny" kernel config, please check kernel make targets of allnoconfig and/or tinyconfig.
kernel doc:
Documentation/admin-guide/README.rst