Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build initramfs on Pinebook Pro with 5.15.74 kernel #192

Closed
CameronNemo opened this issue Oct 16, 2022 · 5 comments
Closed

Cannot build initramfs on Pinebook Pro with 5.15.74 kernel #192

CameronNemo opened this issue Oct 16, 2022 · 5 comments

Comments

@CameronNemo
Copy link

CameronNemo commented Oct 16, 2022

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?

@anatol
Copy link
Owner

anatol commented Oct 16, 2022

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?

@CameronNemo
Copy link
Author

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

@CameronNemo
Copy link
Author

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.

@anatol
Copy link
Owner

anatol commented Oct 23, 2022

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.

@anatol
Copy link
Owner

anatol commented Oct 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants