Loong Arch Linux 升级公告(持续更新)
yetist
REDEAST
内核版本呢?
REDEAST
yetist 不好意思,刚才升级了系统没重启,重启后可以了。谢谢!
溏心蛋
请问最新的iso装完启动会卡在这里是什么原因呢?
板子是3a5000+7A1000
JackyMuyi
溏心蛋 我这边没有碰到过,不行的话就用手动安装的方式?麻烦点但是按照步骤一步步来是没问题的:
龙芯新固件环境下ArchLinux安装配置指南
凌莞的 Arch Linux 安装笔记
yetist
试试2023.10的iso呢?除了可以手工安装、TUI(archinstall)安装之外,新增了图形界面安装。
seeseesee
能否做个loong64版本的blas-openblas并弄进上游?arch上游目前仅有x86_64版的。缺省的blas性能很低,只有openblas库性能的1/10左右。openblas数学库用的是非常广的。
还有openmotif,非常基础的Linux图形库软件,用的也非常广。龙芯的loongnix系统有这个软件,arch上游目前同样仅有x86_64版的。
seeseesee
前一阵子看了下Loong Arch Linux里的openmotif,发现在这个网址已经有PKGBUILD文件了:
https://github.com/loongarchlinux/extra/tree/main/openmotif
但用pacman安装无openmotif package。试了一下编译,发现会有一个"undefined reference to 'main'"错误过不去。网上搜了一下,按这里的提示:
https://motif.ics.com/forum/compilation-error-no-main-wmluiltokc
https://www.linuxquestions.org/questions/linux-enterprise-47/error-when-compling-motif-4175669180/
在motif-2.3.8/tools/wml/wmluiltok.l文件头加%option main即可解决。我修正了PKGBUILD文件,添加了一个新patch,编译没问题了,不知是否能把这个patch加进去?
新加的wmluiltok.l_no_main.patch 内容:
--- motif-2.3.8/tools/wml/wmluiltok.l.orig 2017-03-28 06:24:31.000000000 +0800
+++ motif-2.3.8/tools/wml/wmluiltok.l 2024-01-30 15:47:33.660572782 +0800
@@ -1,3 +1,5 @@
+%option main
+
%{
/*
* Motif
PKGBUILD文件里的相关部分:
prepare() {
cd motif-$pkgver
patch -p1 -i ../no-demos.patch # Don't build demos
# fix compilation error: "undefined reference to 'main'", see discussions at:
# https://motif.ics.com/forum/compilation-error-no-main-wmluiltokc
# https://www.linuxquestions.org/questions/linux-enterprise-47/error-when-compling-motif-4175669180/
patch -p1 -b -i ../wmluiltok.l_no_main.patch
touch NEWS AUTHORS
autoreconf -if
}
另外,作为可选项,还可以加入另一个patch支持loongarch64架构(但编译时不加似乎也没问题):
config.sub_loong.patch,内容:
--- motif-2.3.8/config.sub.orig 2016-11-10 15:37:09.000000000 +0800
+++ motif-2.3.8/config.sub 2024-01-30 15:52:14.598315725 +0800
@@ -246,7 +246,7 @@ esac
case $basic_machine in
# Recognize the basic CPU types without company name.
# Some are omitted here because they have special meanings below.
- 1750a | 580 \
+ 1750a | 580 | loongarch64 \
| a29k \\
| aarch64 | aarch64_be \\
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \\
@@ -368,7 +368,7 @@ case $basic_machine in
exit 1
;;
# Recognize the basic CPU types with company name.
- 580-* \
+ 580-* | loongarch64-* \
| a29k-\* \\
| aarch64-\* | aarch64_be-\* \\
| alpha-\* | alphaev[4-8]-\* | alphaev56-\* | alphaev6[78]-\* \\
@@ -782,6 +782,9 @@ case $basic_machine in
leon-\*|leon[3-9]-\*)
basic_machine=sparc-\`echo $basic_machine | sed 's/-.\*//'\`
;;
+ loong64)
+ basic_machine=loongarch64-unknown
+ ;;
m68knommu)
basic_machine=m68k-unknown
os=-linux
凌莞
yetist 不如搞个 manjaro
vans_fans
seeseesee
§龙芯是OpenBLAS开源社区成员,向OpenBLAS累计提交4W+行代码,是该社区LA架构的主要维护者。
§OpenBLAS社区从0.3.18版本开始支持LoongArch架构,核心接口均已完成汇编优化,性能提升明显。
§龙芯基本线性代数库很好地支撑了linpack 性能测试以及LAPACK和SCALAPACK等计算库。
seeseesee
seeseesee 今天系统更新,看到已经有了系统级的blas-openblas,不错。安装时有点小问题:
把链接文件/usr/lib/libopenblas.so.0改名后就可以安装。安装后用python测试了一下:“Eigendecomposition of a 2048x2048 matrix in 11.02 s.” 同样测试在loongnix系统里用openblas测试是6.6秒左右。编译源码安装的话,loongnix系统仍没问题,Arch Linux上python多线程测试只能利用一个线程且长时间无反应。
harder
在3A6000+7A2000集显上也遇到这个黑屏问题,照着做成功安装上了!!!
现在发现几个问题:
1、应用程序不显示中文标题
2、smplayer 播放 x264 视频时 mpv 崩溃:
PANIC: unprotected error in call to Lua API (8)
PANIC: unprotected error in call to Lua API (10)
(smplayer选择mplayer播放引擎则可正常播放)
3、计算机空闲进入睡眠机器会进入关机状态,第一次按电源启动起不动,关掉再次启动正常
请求支持aur源中的rustdesk包(开源远程桌面,向日葵的替代)
请求考虑支持Archlinuxcn中的所有由源码构建的包,这些包经典且实用。(是否可和Archlinuxcn的人合作?尽量使cn源中能构建过的支持loong64)
oliverwy
[ 22.805] (--) Log file renamed from "/var/log/Xorg.pid-2687.log" to "/var/log/Xorg.0.log"
[ 22.806]
X.Org X Server 1.21.1.8
X Protocol Version 11, Revision 0
[ 22.806] Current Operating System: Linux archlinux 6.7.0-rc2-2 #1 SMP PREEMPT Mon, 27 Nov 2023 08:42:49 +0000 loongarch64
[ 22.806] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=39bc2f7a-f6e3-4534-a52e-8d116030c49a rw zswap.enabled=0 rootfstype=ext4 loglevel=3 quiet
[ 22.806]
[ 22.806] Current version of pixman: 0.42.2
[ 22.806] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 22.806] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 22.806] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Dec 8 09:40:24 2023
[ 22.806] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 22.806] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 22.807] (==) No Layout section. Using the first Screen section.
[ 22.807] (==) No screen section available. Using defaults.
[ 22.807] (**) |-->Screen "Default Screen Section" (0)
[ 22.807] (**) | |-->Monitor "<default monitor>"
[ 22.807] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 22.807] (**) | |-->Device "Generic Kernel Modesetting Device"
[ 22.807] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 22.807] (==) Automatically adding devices
[ 22.807] (==) Automatically enabling devices
[ 22.807] (==) Automatically adding GPU devices
[ 22.807] (==) Automatically binding GPU devices
[ 22.807] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 22.807] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 22.807] Entry deleted from font path.
[ 22.807] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[ 22.807] Entry deleted from font path.
[ 22.807] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 22.807] Entry deleted from font path.
[ 22.807] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 22.807] Entry deleted from font path.
[ 22.807] (==) FontPath set to:
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 22.807] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 22.807] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 22.807] (II) Module ABI versions:
[ 22.807] X.Org ANSI C Emulation: 0.4
[ 22.807] X.Org Video Driver: 25.2
[ 22.807] X.Org XInput driver : 24.4
[ 22.807] X.Org Server Extension : 10.0
[ 22.808] (++) using VT number 1
[ 22.810] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_37
[ 22.813] (--) PCI: (0@0:6:0) 0014:7a15:0000:0000 rev 1, Mem @ 0xe0039500000/262144, 0xe0030000000/134217728, 0xe0039540000/65536
[ 22.813] (--) PCI:*(0@0:6:1) 0014:7a06:0000:0000 rev 1, Mem @ 0xe0039550000/65536
[ 22.813] (II) LoadModule: "glx"
[ 22.813] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 22.815] (II) Module glx: vendor="X.Org Foundation"
[ 22.815] compiled for 1.21.1.8, module version = 1.0.0
[ 22.815] ABI class: X.Org Server Extension, version 10.0
[ 22.815] (II) LoadModule: "modesetting"
[ 22.816] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 22.816] (II) Module modesetting: vendor="X.Org Foundation"
[ 22.816] compiled for 1.21.1.8, module version = 1.21.1
[ 22.816] Module class: X.Org Video Driver
[ 22.816] ABI class: X.Org Video Driver, version 25.2
[ 22.816] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 22.817] (EE) open /dev/dri/card0: No such file or directory
[ 22.817] (WW) Falling back to old probe method for modesetting
[ 22.817] (EE) open /dev/dri/card0: No such file or directory
[ 22.817] (EE) Screen 0 deleted because of no matching config section.
[ 22.817] (II) UnloadModule: "modesetting"
[ 22.817] (EE) Device(s) detected, but none match those in the config file.
[ 22.817] (EE)
Fatal server error:
[ 22.817] (EE) no screens found(EE)
[ 22.817] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 22.817] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 22.817] (EE)
[ 23.220] (EE) Server terminated with error (1). Closing log file.
航天706的 天熠 tr41a1 装图形界面的时候 xorg 报这个错误。
yetist
oliverwy
7a1000 的话,用10月份及以前的iso。
oliverwy
yetist 收到,谢谢
REDEAST
LuaJIT-2.1-20220415.tar.xz下载不了,麻烦修复一下,谢谢!
[arch@localhost luajit]$ makepkg
==> Making package: luajit 2.1-9 (Sun Dec 10 16:52:50 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading LuaJIT-2.1-20220415.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:46 --:--:-- 0
Steerer
请求考虑支持Archlinux里的bazel包
vcpkg package management program version 2999-12-31-unknownhash
See LICENSE.txt for license information.
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat '/home/kiri/.cache/yay/vcpkg/src/vcpkg-loong64.sh': No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
装不了
seeseesee
vans_fans 说的不是龙芯向OpenBLAS社区贡献的问题,说的是现在的LoongArch架构archlinux没有系统级的openblas的问题啊,而x86架构的archlinux是有的。
CastleKin
尝试使用Live-CD安装了带Gnome+GDM的archlinux,但是重启之后进入桌面一直黑屏,KED也是一样.但是安装mate+lightdm就正常, 给安装的Gnome的archlinux安装mate+lightdm, 可以正常进mate, 但是没法进Gnome, 这个是不是没有独显导致的, 我这边的硬件用的是3A6000+7A2000, 用的集显, 没装独显.
yetist
CastleKin
是这个原因,独显正常
mlinuz
yetist 未来集显有可能获得支持吗?