From: Rudraksha Gupta <guptarud@gmail.com>
To: Christian Schrefl <chrisi.schrefl@gmail.com>,
Nathan Chancellor <nathan@kernel.org>
Cc: stable@vger.kernel.org, regressions@lists.linux.dev,
rust-for-linux@vger.kernel.org, "Miguel Ojeda" <ojeda@kernel.org>,
llvm@lists.linux.dev,
"Linux ARM" <linux-arm-kernel@lists.infradead.org>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Alex Gaynor" <alex.gaynor@gmail.com>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Danilo Krummrich" <dakr@kernel.org>,
"Trevor Gross" <tmgross@umich.edu>,
"Benno Lossin" <lossin@kernel.org>
Subject: Re: ARMv7 Linux + Rust doesn't boot when compiling with only LLVM=1
Date: Sun, 21 Dec 2025 16:00:30 -0800 [thread overview]
Message-ID: <aa453636-dcbc-4ac1-8733-d9d992de82ce@gmail.com> (raw)
In-Reply-To: <0169d4f7-1a31-4ec6-a456-a6dfe2d99886@gmail.com>
Hi all,
So it seems that the boot.img size was getting too large for lk2nd (the
bootloader) to handle and was giving these errors as described. Seems
like lk2nd can't handle ~21 MB boot.img.
After removing networking from the Linux kernel (as it was the simplest
way to massively reduce the Linux kernel size) as well as building the
rust modules into the kernel itself, it seems to boot fine now:
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.18.0 (root@9e6cbc09906e) (Alpine clang
version 20.1.8, LLD 20.1.8) #4 SMP PREEMPT Sun Dec 21 23:44:57 UTC 2025
[ 0.000000] CPU: ARMv7 Processor [511f04d4] revision 4 (ARMv7),
cr=10c5787d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction
cache
[ 0.000000] OF: fdt: Machine model: Samsung Galaxy Express SGH-I437
[ ... ]
[ 1.487035] rust_minimal: Rust minimal sample (init)
[ 1.487297] rust_minimal: Am I built-in? true
[ 1.492632] rust_print: Rust printing macros sample (init)
[ 1.496873] rust_print: Emergency message (level 0) without args
[ 1.502244] rust_print: Alert message (level 1) without args
[ 1.508439] rust_print: Critical message (level 2) without args
[ 1.514025] rust_print: Error message (level 3) without args
[ 1.519702] rust_print: Warning message (level 4) without args
[ 1.525592] rust_print: Notice message (level 5) without args
[ 1.531239] rust_print: Info message (level 6) without args
[ 1.537037] rust_print: A line that is continued without args
[ 1.542440] rust_print: Emergency message (level 0) with args
[ 1.548348] rust_print: Alert message (level 1) with args
[ 1.554069] rust_print: Critical message (level 2) with args
[ 1.559470] rust_print: Error message (level 3) with args
[ 1.565177] rust_print: Warning message (level 4) with args
[ 1.570458] rust_print: Notice message (level 5) with args
[ 1.575829] rust_print: Info message (level 6) with args
[ 1.581444] rust_print: A line that is continued with args
[ 1.586893] rust_print: 1
[ 1.586925] rust_print: "hello, world"
[ 1.592188] rust_print: [../samples/rust/rust_print_main.rs:35:5] c =
"hello, world"
[ 1.598511] rust_print: Arc<dyn Display> says 42
[ 1.598542] rust_print: Arc<dyn Display> says hello, world
[ 1.606445] rust_print: "hello, world"
[ ... ]
Welcome to postmarketOS
Kernel 6.18.0 on an armv7l (/dev/ttyMSM0)
samsung-expressatt login: user
Password:
login: can't set groups: Function not implemented
Sorry for wasting everyone's time. I appreciate the helpful responses :)
Thanks,
Rudraksha
prev parent reply other threads:[~2025-12-22 0:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-13 23:54 ARMv7 Linux + Rust doesn't boot when compiling with only LLVM=1 Rudraksha Gupta
2025-12-14 6:06 ` Miguel Ojeda
2025-12-14 7:34 ` Rudraksha Gupta
2025-12-15 11:19 ` Gary Guo
2025-12-17 10:01 ` Rudraksha Gupta
2025-12-15 12:17 ` Christian Schrefl
2025-12-17 10:10 ` Rudraksha Gupta
2025-12-16 14:41 ` Christian Schrefl
2025-12-17 10:21 ` Rudraksha Gupta
2025-12-19 21:11 ` Nathan Chancellor
2025-12-20 1:19 ` Christian Schrefl
2025-12-22 0:00 ` Rudraksha Gupta [this message]
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=aa453636-dcbc-4ac1-8733-d9d992de82ce@gmail.com \
--to=guptarud@gmail.com \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=chrisi.schrefl@gmail.com \
--cc=dakr@kernel.org \
--cc=gary@garyguo.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=lossin@kernel.org \
--cc=nathan@kernel.org \
--cc=ojeda@kernel.org \
--cc=regressions@lists.linux.dev \
--cc=rust-for-linux@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tmgross@umich.edu \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox