Skip to content

linux-uefi-arm64-cloud.config: enable ACPI so things boot #8377

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lanefu
Copy link
Member

@lanefu lanefu commented Jul 14, 2025

Description

We Need ACPI enabled for uefi-arm64-cloud images to boot successfully. Changes look drastic because I used ./compile.sh kernel-config and it sanitized things.

Resolves: not booting and 100% cpu and blank screen.

Pairs will with #8376

Tech debt:

@lanefu lanefu requested a review from rpardini as a code owner July 14, 2025 02:06
Copy link
Contributor

coderabbitai bot commented Jul 14, 2025

Walkthrough

The kernel configuration file for linux-uefi-arm64-cloud was extensively revised. Numerous features were disabled, including SMP, hypervisor guest support, paravirtualization, NUMA, and cloud-specific virtualization drivers for AWS and Azure. EFI support options were removed. The updated configuration enables inter-process communication, BPF, debugging, expanded control groups, and namespace support. Virtualization drivers were consolidated, and networking features such as netfilter, nftables, IPVS, VLAN, and WireGuard were enabled. Filesystem and security options were broadened, with SELinux, AppArmor, and encrypted keys now included. Sound, USB, input, and hardware random number generator options were retained or enhanced.

Possibly related PRs

Suggested labels

Needs review, 05, size/small, Hardware

Suggested reviewers

  • rpardini
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added 08 Milestone: Third quarter release size/large PR with 250 lines or more Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... labels Jul 14, 2025
@coderabbitai coderabbitai bot added 05 Milestone: Second quarter release size/small PR with less then 50 lines labels Jul 14, 2025
@lanefu lanefu requested a review from igorpecovnik July 14, 2025 02:07
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
config/kernel/linux-uefi-arm64-cloud.config (1)

255-256: DWARF5 + BTF debug info balloons image size

CONFIG_DEBUG_INFO_DWARF5=y & CONFIG_DEBUG_INFO_BTF=y roughly double build time and can add ≈ 200 MB to vmlinux/modules.*.
For distro kernels that never ship the unstripped images, consider:

-CONFIG_DEBUG_INFO_DWARF5=y
-CONFIG_DEBUG_INFO_BTF=y
+# CONFIG_DEBUG_INFO_DWARF5 is not set
+# CONFIG_DEBUG_INFO_BTF is not set

Unless you explicitly need CO-RE/BPF or full DWARF5 in cloud builds.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 370bedb and 5b7a5e6.

📒 Files selected for processing (1)
  • config/kernel/linux-uefi-arm64-cloud.config (4 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: EvilOlaf
PR: armbian/build#8328
File: lib/functions/compilation/patch/drivers_network.sh:542-545
Timestamp: 2025-06-24T10:08:40.313Z
Learning: In the Armbian build system, when a PR removes build support for a specific kernel version, version check issues for that removed version become practically irrelevant even if they appear incorrect in isolation. Context about which kernel versions are being deprecated/removed is important for understanding the impact of version-related code changes.
Learnt from: libiunc
PR: armbian/build#8033
File: config/kernel/linux-starfive2-vendor.config:43-43
Timestamp: 2025-03-31T12:57:13.880Z
Learning: For StarFive2 platform kernel configurations, maintain alignment with vendor-provided configurations rather than modifying security settings like SECCOMP. This ensures hardware compatibility as intended by the manufacturer.
Learnt from: pyavitz
PR: armbian/build#8361
File: config/kernel/linux-sunxi64-edge.config:594-597
Timestamp: 2025-07-06T16:27:45.349Z
Learning: In Armbian sunxi64-edge kernel configurations, PCI/PCIe support may be enabled for future-proofing purposes to support upcoming Allwinner SoCs like the T536 that include PCIe Gen2 interfaces, even if current primary targets like H616 lack PCIe controllers. This forward-looking approach prepares the configuration for next-generation hardware in the same SoC family.
Learnt from: EvilOlaf
PR: armbian/build#0
File: :0-0
Timestamp: 2025-06-16T03:24:00.458Z
Learning: In Armbian board configuration files (.csc), the standard pattern is to have only one line as a comment describing the board hardware specifications. This single-line description typically includes the SoC model, core count, RAM options, and key features like connectivity options, storage interfaces, and special features.
Learnt from: EvilOlaf
PR: armbian/build#8330
File: config/sources/families/sun55iw3.conf:32-36
Timestamp: 2025-06-25T03:42:09.086Z
Learning: In Armbian build system configuration files like config/sources/families/*.conf, KERNELSOURCE is explicitly declared when using unofficial or 3rd party kernel repositories (like the "dev" branch using https://github.com/apritzel/linux), but can be omitted when using the standard mainline kernel (like the "edge" branch) since it will fall back to the default mainline source.
Learnt from: Grippy98
PR: armbian/build#8152
File: lib/functions/configuration/interactive.sh:209-266
Timestamp: 2025-05-05T12:35:07.143Z
Learning: For the interactive kernel selection in Armbian, KERNEL_MAJOR_MINOR and KERNEL_DESCRIPTION are parsed from family.conf but deliberately not set as environment variables to avoid potential interference with other parts of the build system.
Learnt from: EvilOlaf
PR: armbian/build#8330
File: config/sources/families/sun55iw3.conf:32-36
Timestamp: 2025-06-25T03:40:52.109Z
Learning: In Armbian build system configuration files like config/sources/families/*.conf, when KERNELSOURCE is not explicitly declared in a case branch, the system falls back to a default KERNELSOURCE value, so missing KERNELSOURCE declarations are not critical issues.
config/kernel/linux-uefi-arm64-cloud.config (7)
Learnt from: libiunc
PR: armbian/build#8033
File: config/kernel/linux-starfive2-vendor.config:43-43
Timestamp: 2025-03-31T12:57:13.880Z
Learning: For StarFive2 platform kernel configurations, maintain alignment with vendor-provided configurations rather than modifying security settings like SECCOMP. This ensures hardware compatibility as intended by the manufacturer.
Learnt from: pyavitz
PR: armbian/build#8361
File: config/kernel/linux-sunxi64-edge.config:594-597
Timestamp: 2025-07-06T16:27:45.349Z
Learning: In Armbian sunxi64-edge kernel configurations, PCI/PCIe support may be enabled for future-proofing purposes to support upcoming Allwinner SoCs like the T536 that include PCIe Gen2 interfaces, even if current primary targets like H616 lack PCIe controllers. This forward-looking approach prepares the configuration for next-generation hardware in the same SoC family.
Learnt from: EvilOlaf
PR: armbian/build#0
File: :0-0
Timestamp: 2025-06-16T03:24:00.458Z
Learning: In Armbian board configuration files (.csc), the standard pattern is to have only one line as a comment describing the board hardware specifications. This single-line description typically includes the SoC model, core count, RAM options, and key features like connectivity options, storage interfaces, and special features.
Learnt from: EvilOlaf
PR: armbian/build#8330
File: config/sources/families/sun55iw3.conf:32-36
Timestamp: 2025-06-25T03:40:52.109Z
Learning: In Armbian build system configuration files like config/sources/families/*.conf, when KERNELSOURCE is not explicitly declared in a case branch, the system falls back to a default KERNELSOURCE value, so missing KERNELSOURCE declarations are not critical issues.
Learnt from: EvilOlaf
PR: armbian/build#8328
File: lib/functions/compilation/patch/drivers_network.sh:542-545
Timestamp: 2025-06-24T10:08:40.313Z
Learning: In the Armbian build system, when a PR removes build support for a specific kernel version, version check issues for that removed version become practically irrelevant even if they appear incorrect in isolation. Context about which kernel versions are being deprecated/removed is important for understanding the impact of version-related code changes.
Learnt from: EvilOlaf
PR: armbian/build#8330
File: config/sources/families/sun55iw3.conf:32-36
Timestamp: 2025-06-25T03:42:09.086Z
Learning: In Armbian build system configuration files like config/sources/families/*.conf, KERNELSOURCE is explicitly declared when using unofficial or 3rd party kernel repositories (like the "dev" branch using https://github.com/apritzel/linux), but can be omitted when using the standard mainline kernel (like the "edge" branch) since it will fall back to the default mainline source.
Learnt from: Grippy98
PR: armbian/build#8152
File: lib/functions/configuration/interactive.sh:209-266
Timestamp: 2025-05-05T12:35:07.143Z
Learning: For the interactive kernel selection in Armbian, KERNEL_MAJOR_MINOR and KERNEL_DESCRIPTION are parsed from family.conf but deliberately not set as environment variables to avoid potential interference with other parts of the build system.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Shell script analysis
🔇 Additional comments (2)
config/kernel/linux-uefi-arm64-cloud.config (2)

14-16: IKCONFIG exposed ‒ good call

Keeping CONFIG_IKCONFIG=y and CONFIG_IKCONFIG_PROC=y is handy for later auditing which options shipped in the running kernel. 👍


41-43: ACPI enablement un-blocks UEFI boot path

CONFIG_ACPI=y is the critical bit that was missing for cloud images on arm64-UEFI. This should resolve the early-boot hang you described.

Comment on lines +165 to +170
CONFIG_NETCONSOLE=y
CONFIG_VETH=m
CONFIG_VIRTIO_NET=y
CONFIG_NETKIT=y
CONFIG_ENA_ETHERNET=y
CONFIG_E1000E=y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

CONFIG_NETKIT is not a valid Kconfig symbol

Upstream (v6.10-rc / v6.9) contains no NETKIT. The option will be ignored, but it triggers a warning and pollutes the sanitized config.

-CONFIG_NETKIT=y
+# CONFIG_NETKIT is not set   # removed – unknown symbol
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
CONFIG_NETCONSOLE=y
CONFIG_VETH=m
CONFIG_VIRTIO_NET=y
CONFIG_NETKIT=y
CONFIG_ENA_ETHERNET=y
CONFIG_E1000E=y
CONFIG_NETCONSOLE=y
CONFIG_VETH=m
CONFIG_VIRTIO_NET=y
# CONFIG_NETKIT is not set # removed – unknown symbol
CONFIG_ENA_ETHERNET=y
CONFIG_E1000E=y
🤖 Prompt for AI Agents
In config/kernel/linux-uefi-arm64-cloud.config around lines 165 to 170, the
CONFIG_NETKIT option is invalid and not recognized by the kernel configuration
system, causing warnings and config pollution. Remove the line setting
CONFIG_NETKIT=y to fix the issue and ensure the config only contains valid
Kconfig symbols.

Comment on lines 65 to 69
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
CONFIG_INET_ESP=m
# CONFIG_INET_DIAG is not set
CONFIG_TCP_CONG_ADVANCED=y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Re-enable INET_DIAG to avoid breaking iproute2/ss

Disabling INET_DIAG will cripple userspace tools (ss, ss -s, ip -s link, Docker’s network stats, etc.) that rely on the netlink socket-diagnostic family.

-# CONFIG_INET_DIAG is not set
+CONFIG_INET_DIAG=y

🏁 Script executed:

#!/bin/bash
# Search for occurrences of CONFIG_INET_DIAG in the repository
grep -R "CONFIG_INET_DIAG" -n .

Length of output: 7633


🏁 Script executed:

#!/bin/bash
# List all cloud config files and their CONFIG_INET_DIAG settings
for f in $(find config/kernel -type f -name "*cloud.config"); do
  echo "File: $f"
  grep -n "CONFIG_INET_DIAG" "$f" || echo "  (no CONFIG_INET_DIAG found)"
  echo
done

Length of output: 614


Enable INET_DIAG in cloud kernel configs to restore netlink diagnostics

Disabling INET_DIAG in the UEFI cloud variants will break userspace tools (ss, ip -s link, Docker network stats, etc.) that rely on the INET diagnostic family. Please re-enable it in both cloud configs:

• config/kernel/linux-uefi-arm64-cloud.config (line 68)
• config/kernel/linux-uefi-x86-cloud.config (line 142)

Suggested change:

-# CONFIG_INET_DIAG is not set
+CONFIG_INET_DIAG=m

Optionally, you may also enable cleanup support:

+# CONFIG_INET_DIAG_DESTROY was not set
+CONFIG_INET_DIAG_DESTROY=y
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_SYN_COOKIES=y
CONFIG_INET_ESP=m
# CONFIG_INET_DIAG is not set
CONFIG_TCP_CONG_ADVANCED=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
CONFIG_INET_ESP=m
CONFIG_INET_DIAG=m
# CONFIG_INET_DIAG_DESTROY was not set
CONFIG_INET_DIAG_DESTROY=y
CONFIG_TCP_CONG_ADVANCED=y
🤖 Prompt for AI Agents
In config/kernel/linux-uefi-arm64-cloud.config around lines 65 to 69, the
INET_DIAG option is disabled, which breaks userspace tools relying on netlink
diagnostics. Re-enable CONFIG_INET_DIAG by removing the comment prefix on line
68 to set it as enabled. Also, apply the same change to
config/kernel/linux-uefi-x86-cloud.config around line 142. Optionally, consider
enabling cleanup support as suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
05 Milestone: Second quarter release 08 Milestone: Third quarter release Hardware Hardware related like kernel, U-Boot, ... Needs review Seeking for review size/large PR with 250 lines or more size/small PR with less then 50 lines
Development

Successfully merging this pull request may close these issues.

1 participant