ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Vitaly Chikunov <vt@altlinux.org>
To: devel-kernel@lists.altlinux.org
Subject: [d-kernel] [PATCH] config: Disable DEBUG_INFO_BTF on aarch64
Date: Sat, 29 Oct 2022 00:35:15 +0300
Message-ID: <20221028213515.1844006-1-vt@altlinux.org> (raw)

We have the same kernel for enterprise systems (like TaiShan) and toy
computers (like Raspberry Pi). Raspberry Pi cannot boot newer kernels
with U-Boot anymore[1] due to vmlinuz (that is uncompressed Image[2])
size approaching 40MB, (which is limited by fdt_addr_r=0x02600000
parameter specified in our U-Boot package).

Obvious target to reduce size is removing .BTF section. As a downside
this will reduce eBPF & tracing abilities on these platforms.

Link: https://bugzilla.altlinux.org/41479
Link: https://www.kernel.org/doc/Documentation/arm64/booting.txt
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
---
 config-aarch64 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config-aarch64 b/config-aarch64
index a23500fdf356..7d70fcff9fa6 100644
--- a/config-aarch64
+++ b/config-aarch64
@@ -1597,3 +1597,4 @@ CONFIG_USB_SERIAL_CP210X=y
 CONFIG_USB_SERIAL_PL2303=y
 CONFIG_USB_SERIAL_FTDI_SIO=y
 CONFIG_USB_SISUSBVGA=y
+# CONFIG_DEBUG_INFO_BTF is not set
-- 
2.33.4



                 reply	other threads:[~2022-10-28 21:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221028213515.1844006-1-vt@altlinux.org \
    --to=vt@altlinux.org \
    --cc=devel-kernel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git