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

menuconfig not working #6515

Closed
1 of 2 tasks
MegaArman opened this issue Apr 23, 2024 · 7 comments
Closed
1 of 2 tasks

menuconfig not working #6515

MegaArman opened this issue Apr 23, 2024 · 7 comments

Comments

@MegaArman
Copy link

MegaArman commented Apr 23, 2024

What happened?

Can't build armbian with a custom kernel.

In menuconfig if I go to load a .config file, does it actually read this file when exiting menuconfig and compiling?

For example, I deselected module loading and networking but I still see a lot being compiled like this
image

How to reproduce?

run compile.sh with no options,
when menuconfig comes up:

load -> full path to existing .config

confirm in the menu that it is using your .config

exit from menuconfig (compiling the kernel starts automatically)

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

ubuntu 22 LTS

Are you building on Windows WSL2?

  • Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Copy link

Jira ticket: AR-2123

@MegaArman
Copy link
Author

MegaArman commented Apr 24, 2024

This time I replaced the config/kernel/linux-meson64-current.config (chosen for the board I'm on - Le Potato) with my existing .config file and it actually seems to load it and is compiling as expected.

This looks to be a temporary workaround

EDIT: got error https://paste.armbian.com/okayaxijuw

@MegaArman MegaArman changed the title .config not being read? menuconfig not working Apr 24, 2024
@MegaArman
Copy link
Author

trying to just use menuconfig to deselect some options then exit results in those options being ignored as well

@lanefu
Copy link
Member

lanefu commented May 7, 2024

./compile BOARD=<boardname> BRANCH=current kernel-configure

@rpardini rpardini closed this as completed May 9, 2024
@MegaArman
Copy link
Author

MegaArman commented May 9, 2024

Is this actually fixed or is that work around the only option for the time being? I'm unable to test this week .

Just to be clear, I'm talking about the kernel ncurses menu like this
image

^ when loading a config file there it gets ignored upon exiting and automatically starts compiling. This is particularly problematic because you may not realize a driver you didn't want was built until late in the build process (for example)

@EvilOlaf
Copy link
Member

EvilOlaf commented May 9, 2024

KERNEL_CONFIGURE is deprecated. Maybe it got broken in the meantime.
Also you are not supposed to do edits except from userpatches directory unless you plan to do patching.

The correct/modern/more developer friendly way to do it is

  1. use kernel-config to modify the kernel configuration as needed.
  2. Once done copy the config from output/ directory to userpatches/.
  3. Use kernel build argument to use this config to create a kernel package or do not use an argument at all to build a full image.

Full example for an Orangepi One:

./compile.sh BOARD=orangepione BRANCH=current kernel-config
# Now configure and simply save as `.config
cp output/config/linux-sunxi-current.config userpatches/
./compile.sh BOARD=orangepione BRANCH=current kernel

Since you have a config already you can skip this part and directly copy the file to userpatches.,

@EvilOlaf
Copy link
Member

@MegaArman I made a mistake with the path in userpatches which I corrected above. tl;dr: The config simply needs to be copied to userpatches. No sub-folders.

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

No branches or pull requests

4 participants