| Message ID | 20260805023956.3379890-1-vincent.mc.li@gmail.com |
|---|---|
| Headers |
Return-Path: <development+bounces-2470-patchwork=ipfire.org@lists.ipfire.org>
Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519)
(Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified))
by web04.haj.ipfire.org (Postfix) with ESMTPS id 4hFF681vY9z3wkS
for <patchwork@web04.haj.ipfire.org>; Wed, 05 Aug 2026 02:41:20 +0000 (UTC)
Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org
[IPv6:2001:678:b28::201])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519)
(Client CN "mail02.haj.ipfire.org", Issuer "YE1" (not verified))
by mail01.ipfire.org (Postfix) with ESMTPS id 4hFF5z6VKHz4NK
for <patchwork@ipfire.org>; Wed, 05 Aug 2026 02:41:11 +0000 (UTC)
Received: from mail02.haj.ipfire.org (localhost [IPv6:::1])
by mail02.haj.ipfire.org (Postfix) with ESMTP id 4hFF5D41YQz36Wm
for <patchwork@ipfire.org>; Wed, 05 Aug 2026 02:40:32 +0000 (UTC)
X-Original-To: development@lists.ipfire.org
Received: from mail01.ipfire.org (mail01.haj.ipfire.org
[IPv6:2001:678:b28::25])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)
server-digest SHA384
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified))
by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4hFF5B05FKz2xJk
for <development@lists.ipfire.org>; Wed, 05 Aug 2026 02:40:30 +0000 (UTC)
Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com
[IPv6:2607:f8b0:4864:20::535])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest
SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "smtp.gmail.com", Issuer "WR4" (verified OK))
by mail01.ipfire.org (Postfix) with ESMTPS id 4hFF501kYqz4x
for <development@lists.ipfire.org>; Wed, 05 Aug 2026 02:40:20 +0000 (UTC)
Authentication-Results: mail01.ipfire.org;
dkim=pass header.d=gmail.com header.s=20251104 header.b=b5k6Ye5V;
spf=pass (mail01.ipfire.org: domain of vincent.mc.li@gmail.com designates
2607:f8b0:4864:20::535 as permitted sender)
smtp.mailfrom=vincent.mc.li@gmail.com;
dmarc=pass (policy=none) header.from=gmail.com
ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none;
t=1785897620;
b=BTmtubcLuEIcFkF9QdVyX0pmtb/TtoUQfB4u1NRAeQ4Qzzhu/goO2Q/UNVYXxyjO4O6p7a
9Qja3AqbZ5JKowFpn2HOmetlutdLCYcbf2/zAma+a9LXsUuf3YRdCLUOYrPWNCSgSY2B+b
sXCU5rw2EdvwIR1ubmFuR5MdVdU2V9AHj82wNZO3Vq6p1E0kQJvPBnkovT0X9862nkGrBF
ub4LPydAro4oQaEPyiHC5ClWk68AHfCP3BXZiJX7h24xT+l4sB47S4Zm6OfE7FlwpVyilQ
WM/sLcSXF3ODLudbx9Uf2/a2YTgNuCxpIDHErpS4IqQfrYenU6SCECxbzjWv6Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=lists.ipfire.org;
s=202003rsa; t=1785897620;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:
content-transfer-encoding:content-transfer-encoding:dkim-signature;
bh=9FMISRkmEcOCme5wHwRyzbJZPOcgF0ulnktM6Z9AGpg=;
b=qeqkCWkQ/Qrubtv4dEulh+uzDKxJ5bZSz2j6l7EyoKkOxpyDKVOUhd93imdsmUSul6i2NZ
eMf/TU8vkRiRH3FiM5b0r/ZW+qiWaHpecvxLFZl71EjnOJT19iMIJ1T++gPO5RVNNyn7wO
JQOY0fErW3a0ShQKsVrfZU4uyrbe+hTO+iXR35KAPPRwqEfLE/WIVVidJmrYNk94hdVvp5
B9k0rtBVq2apz7NqY+0GIRpfwRTfUQ84kGg4dgcgHt0v719g8nWFP78q5NyX1P41j8il6v
EkVWMt5GFdX9ZWEV+UbPFp4slV2hXUuiG+5yC0iemFmf7bTtn3C0YCQbThcW3w==
ARC-Authentication-Results: i=1;
mail01.ipfire.org;
dkim=pass header.d=gmail.com header.s=20251104 header.b=b5k6Ye5V;
spf=pass (mail01.ipfire.org: domain of vincent.mc.li@gmail.com designates
2607:f8b0:4864:20::535 as permitted sender)
smtp.mailfrom=vincent.mc.li@gmail.com;
dmarc=pass (policy=none) header.from=gmail.com
Received: by mail-pg1-x535.google.com with SMTP id
41be03b00d2f7-c9d1fff21edso270971a12.1
for <development@lists.ipfire.org>;
Tue, 04 Aug 2026 19:40:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1785897618; x=1786502418;
darn=lists.ipfire.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=9FMISRkmEcOCme5wHwRyzbJZPOcgF0ulnktM6Z9AGpg=;
b=b5k6Ye5VnYJP78yPBhjo9pxI4ddwY7wMYZGrPh49NjFHlzdVe5UyQVqrc2xqcUcvGM
McpqusCc7XNUiQzMWERbBoGlUpKwh6aY/RMD8W5642ASwZPiMihj71QF+XoKFEosl8Lz
ES5HARO80aUDqdJRXYmAGjsZbcXSA1/gjlC1ridAdheWZe/QbWf80Poo/qykpTMXMISQ
qGDcoZlGU0mCVzCVXW0FYcMqTWim48Pb2blmlXNljBI+T2BMjQn5LEIYYaYXKuRnNjjO
1jznEKN+/PuJehgnKfbx9oS2xGZWgczF9FT3azGIc9Ke96aBrTPBmE0VYIUqfFFXQDvm
rKcA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1785897618; x=1786502418;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=9FMISRkmEcOCme5wHwRyzbJZPOcgF0ulnktM6Z9AGpg=;
b=j4bXSdFEnNKhAVUSb03ENTMMF5p4WnCyJwFam4c2MuHJvz90+Bs1v1z5bWoC5w3YNu
ugRHEWPLyVErCT0zZ99ehdg9UCTWXWdAqOPRebLyAPmEALGGPXK7MCPNlzVC/sGVY1jH
/arkPw7NiF8c4DemWBZB7UsNPVjXxs/tKi63zj1wd6Cc5gFqSNmMD5d0nV3qineD4flI
GL16FWqgiYpBQNSzqGTjH1l6vOwAZKa49b4mvp3XwFYLnf/TTHDhcw8FHPVHbZAN2z7t
Ilcs4VlVq5C8KPeBHZP2mrEd8hlPARmtOh0/rCNQ47wx4Q0VzY0Rv9BzK7Gr+aeIDNrf
n+ag==
X-Forwarded-Encrypted: i=1;
AHgh+Rp4d2Czcm8cC9vt9gY8eBc9XW2eP4FnBWbTnPpkSBEPWpnbB/vnZZDewsmzkR2E68gtfVIxqjD5leMt1Q==@lists.ipfire.org
X-Gm-Message-State: AOJu0YxjOcHIUT+E74bVZPnu5hTMEktoPwFSYK/Bh2ORJhpGlVazok/J
xliUNMzSZIon5D+ScWffc4Q+hdvx12AaBxkZoFOaw7Q7ZnRRZQcKiqdb
X-Gm-Gg: AR+sD131IPwdyqs1b3dUzHuMhvwKAPE9wtf6dC/WLRiRru7et8VlA6kVjRdeqZPGCtO
XA8Af9CGlRw/K1/fnwHpSz740QWtdKM0fsczns7noZ371qxe4iONgTfWD2pzTAaOqhGwryOlrU3
G1eR2WmYW0Xmx/DmYv7XyaoV82pcKa3Au9DPyI1k65xkDdWfIzPE5z56AOlkM9YvWk4kCVgHIz8
8ubtkcIzem0L7YXHGv9puG5KjnI/UOceZolldzCANBtQl0Y/wp3QDISYbTBfnJkwb1teiaw0v8v
U4A7c7v5TbUehf2LB6PPco8j+/uX5LSrGWmk36S06uKvZSUU3kavhz0VfZfT3+A2MaCY5QKR6JX
WWEW83DfvUZ1+aDoeZW19rGRMUEikdLkbOGq/F+f0XGzfOsHviNUu+MS95/3ESynwASSM8BGApN
+Eg6bpIh9d4AaoLmVZJ2eoNvIWn4+2g2QmFrxPsFotM1gCDrBVb6r/jCSxdn90+Qjlf0gs
X-Received: by 2002:a05:6a21:3a47:b0:3b4:669c:ee32 with SMTP id
adf61e73a8af0-3cb85f4e1d1mr3670812637.37.1785897617630;
Tue, 04 Aug 2026 19:40:17 -0700 (PDT)
Received: from sc.10086.cn ([2409:8a62:4216:8470:43c3:3b45:83f6:fb4a])
by smtp.gmail.com with ESMTPSA id
41be03b00d2f7-cbe708be5bdsm476544a12.15.2026.08.04.19.40.15
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 04 Aug 2026 19:40:17 -0700 (PDT)
From: Vincent Li <vincent.mc.li@gmail.com>
To: Michael Tremer <michael.tremer@ipfire.org>,
development@lists.ipfire.org
Cc: Vincent Li <vincent.mc.li@gmail.com>
Subject: [PATCH v1 0/8] Add loongarch64 architecture support to IPFire
Date: Tue, 4 Aug 2026 19:39:48 -0700
Message-Id: <20260805023956.3379890-1-vincent.mc.li@gmail.com>
X-Mailer: git-send-email 2.38.1
Precedence: list
List-Id: <development.lists.ipfire.org>
List-Subscribe: <https://lists.ipfire.org/>,
<mailto:development+subscribe@lists.ipfire.org?subject=subscribe>
List-Unsubscribe: <https://lists.ipfire.org/>,
<mailto:development+unsubscribe@lists.ipfire.org?subject=unsubscribe>
List-Post: <mailto:development@lists.ipfire.org>
List-Help: <mailto:development+help@lists.ipfire.org?subject=help>
Sender: <development@lists.ipfire.org>
Mail-Followup-To: <development@lists.ipfire.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Rspamd-Queue-Id: 4hFF501kYqz4x
X-Rspamd-Action: no action
X-Spamd-Result: default: False [-6.58 / 11.00];
BAYES_HAM(-3.00)[100.00%];
R_DKIM_ALLOW(-1.69)[gmail.com:s=20251104];
DKIM_REPUTATION(-0.96)[-0.95925563116036];
SPF_REPUTATION_HAM(-0.53)[-0.53023859239936];
R_MISSING_CHARSET(0.50)[];
DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4864::/56];
MX_GOOD(-0.10)[gmail-smtp-in.l.google.com];
MIME_GOOD(-0.10)[text/plain];
FREEMAIL_FROM(0.00)[gmail.com];
IP_REPUTATION_HAM(0.00)[asn: 15169(-0.30), country: US(-0.01),
ip: 2607:f8b0:4864:20::(-0.76)];
FROM_EQ_ENVFROM(0.00)[];
RCVD_TLS_LAST(0.00)[];
FREEMAIL_ENVFROM(0.00)[gmail.com];
ARC_NA(0.00)[];
MIME_TRACE(0.00)[0:+];
DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
TO_DN_SOME(0.00)[];
PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org];
RCVD_COUNT_TWO(0.00)[2];
FREEMAIL_CC(0.00)[gmail.com];
ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1];
MID_RHS_MATCH_FROM(0.00)[];
ALIAS_RESOLVED(0.00)[];
TO_MATCH_ENVRCPT_SOME(0.00)[];
RCVD_VIA_SMTP_AUTH(0.00)[];
RCPT_COUNT_THREE(0.00)[3];
ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::535:from];
DKIM_TRACE(0.00)[gmail.com:+];
FROM_HAS_DN(0.00)[]
X-Rspamd-Server: mail01.haj.ipfire.org
|
| Series |
Add loongarch64 architecture support to IPFire
|
|
Message
Vincent Li
5 Aug 2026, 2:39 a.m. UTC
This patch series adds initial support for the LoongArch64 architecture
to the IPFire build system and installer. LoongArch64 is the 64-bit
RISC architecture developed by Loongson Technology, using UEFI as its
standard firmware interface.
The series includes:
1. **Build system detection** (make.sh): Add architecture detection
for loongarch64 in the main build script.
2. **Toolchain fixes** (gcc): Fix dynamic linker path for native
bootstrap to ensure glibc builds correctly.
3. **Package build system** (lfs/Config): Update config.guess/sub
scripts to recognize loongarch64 as a valid architecture.
4. **EFI and GRUB support** (lfs/Config): Define architecture
variables for building EFI firmware and GRUB for loongarch64.
5. **Go language support** (lfs/Config): Set GOARCH=loong64 for
building Go packages.
6. **Installer EFI detection** (installer): Enable EFI boot mode
detection for loongarch64 systems.
7. **Installer bootloader** (installer): Add GRUB installation
support for loongarch64-efi.
8. **Kernel build** (kernel): Add architecture definitions and
special handling for building the Linux kernel on loongarch64.
These changes are the foundation for a complete loongarch64 port
of IPFire and have been tested on a LoongArch64 development system.
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
---
make.sh: Add support for building on loongarch64
gcc: Add dynamic linker path for loongarch64 native toolchain build
lfs/Config: Update config.guess and config.sub for loongarch64 support
lfs/Config: Add EFI and GRUB architecture definitions for loongarch64
lfs/Config: Set GOARCH for loongarch64 builds
installer: Enable EFI support for loongarch64
installer: Add bootloader installation support for loongarch64
kernel: Add build support for loongarch64
.../kernel/kernel.config.loongarch64-ipfire | 7814 +++++
config/rootfiles/common/loongarch64/linux | 23754 ++++++++++++++++
lfs/Config | 14 +-
lfs/gcc | 4 +
lfs/linux | 10 +
make.sh | 7 +-
src/installer/hw.c | 3 +-
src/installer/install-bootloader | 3 +
8 files changed, 31605 insertions(+), 4 deletions(-)
create mode 100644 config/kernel/kernel.config.loongarch64-ipfire
create mode 100644 config/rootfiles/common/loongarch64/linux