anatol / booster

Fast and secure initramfs generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build initramfs on Pinebook Pro with 5.15.74 kernel

CameronNemo opened this issue · comments

Hello, I am trying to use Booster on an aarch64 system, the rk3399-based Pinebook Pro, which is running a near-mainline kernel (the small number of patches are here).

I am getting this error:

2022/10/16 10:52:22 key arm_cci maps to multiple values (kernel/drivers/bus/arm-cci.ko,kernel/drivers/perf/arm-cci.ko)

I see this in my modules directory:

/usr/lib/modules/5.15.74_1/modules.builtin
141:kernel/drivers/bus/arm-cci.ko
588:kernel/drivers/perf/arm-cci.ko

Any tips on how to get this working? Do you need more information?

Booster generator finds 2 modules with the same name and it gets confused about which one to use.

Do you know how modprobe and other tools pick the right module at your system?

Aren't these builtin modules? So I do not really know, as I cannot try it. Or at least nothing related shows up in lsmod and modprobe seems to do nothing after finding it in modules.builtin.bin

I don't think the bus support can be compiled as module, only the perf support. I don't really know, sorry. This is what is says in drivers/perf/Kconfig:

config ARM_CCI_PMU
	tristate "ARM CCI PMU driver"
	depends on (ARM && CPU_V7) || ARM64
	select ARM_CCI
	help
	 Support for PMU events monitoring on the ARM CCI (Cache Coherent
	 Interconnect) family of products.

	 If compiled as a module, it will be called arm-cci.

The kernel module dependency resolution is one of the weirdest things in linux kernel build system.

What I can do it to try to downgrade it from failure to a warning. booster build will report that there are several modules with the same name and continue image assembly. Hopefully, it will help with the situation.

@CameronNemo I pushed a possible fix to wip branch. Please try it and let me know if it makes any difference to you.