From 977e6d54f79c2312adb56342769abc8e69ed3377 Mon Sep 17 00:00:00 2001 From: larryw3i Date: Mon, 11 Aug 2025 05:36:21 +0800 Subject: [PATCH 1/4] Update install_loonggpu.sh --- install_loonggpu.sh | 55 ++++++++++++++++++++------------------------- 1 file changed, 24 insertions(+), 31 deletions(-) diff --git a/install_loonggpu.sh b/install_loonggpu.sh index 3585470..fa1f62c 100644 --- a/install_loonggpu.sh +++ b/install_loonggpu.sh @@ -1,35 +1,28 @@ #!/bin/bash -pwd_cp=$(pwd) -d_dir=${HOME}/Downloads +loongnix_url="https://pkg.loongnix.cn/loongnix/25" +packages_url="${loongnix_url}/dists/loongnix/main/binary-loong64/Packages.gz" +packages_file="Packages" -mkdir -v ${d_dir} -cd ${d_dir} +if [[ ! -f ${packages_file} ]]; then + wget -O ${packages_file}.gz ${packages_url} + gzip -d ${packages_file}.gz +fi +packages=($( + cat ${packages_file} | + grep Filename\: | + grep 'loonggpu\|loong\-gpu\|loonggl\|ldrm\|firmware\-loongson' | + cut -f2 -d " " +)) -_URL="https://git.whlug.cn/manxing/L2GI/releases/download" -VER="1.0.1" -URL=${_URL}/v${VER} -_VER="alpha" - -loonggpu_pkgs=( \ - firmware-loongson-graphics_${VER}-${_VER}-lnd25.5_loong64.deb \ - libldrm_${VER}-${_VER}-lnd25.5_loong64.deb \ - libloong-gpucomp_${VER}-${_VER}-lnd25.5_loong64.deb \ - loonggl_${VER}-${_VER}-lnd25.5_loong64.deb \ - loonggpu-kernel-dkms_${VER}-${_VER}-lnd25.5_loong64.deb \ - loonggpu-settings_${VER}-${_VER}-lnd25.5_loong64.deb \ - xserver-xorg-video-loonggpu_${VER}-${_VER}-lnd25.5_loong64.deb \ -) - -for p in ${loonggpu_pkgs[@]}; -do - wget -q --show-progress ${URL}/${p} -done; - -sudo apt-get install --yes linux-headers-loong64 -sudo dpkg --install ${loonggpu_pkgs[*]} - -cd ${pwd_cp} -echo "Installation completed!" -echo "The downloaded packages were saved to ${d_dir} ." -# The end. +names="" +for p in ${packages[*]}; do + _name="$(echo ${p} | rev | cut -f1 -d "/" | rev)" + echo "Downloading ${_name} ..." + wget -O ${_name} "${loongnix_url}/${p}" + name="${name} ${_name}" +done +echo "Installing ${name} ..." +sudo dpkg -i ${name} +echo "Done!" +# The end. \ No newline at end of file -- 2.49.0 From 168328d88a26ce692566e37e031dcdd276829a3b Mon Sep 17 00:00:00 2001 From: larryw3i Date: Mon, 11 Aug 2025 05:40:46 +0800 Subject: [PATCH 2/4] Update install_loonggpu.sh --- install_loonggpu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_loonggpu.sh b/install_loonggpu.sh index fa1f62c..b6e2aa9 100644 --- a/install_loonggpu.sh +++ b/install_loonggpu.sh @@ -20,7 +20,7 @@ for p in ${packages[*]}; do _name="$(echo ${p} | rev | cut -f1 -d "/" | rev)" echo "Downloading ${_name} ..." wget -O ${_name} "${loongnix_url}/${p}" - name="${name} ${_name}" + name="${_name} ${name}" done echo "Installing ${name} ..." sudo dpkg -i ${name} -- 2.49.0 From 81315d1192a1546d936e9aefd5b242ccafcc67b5 Mon Sep 17 00:00:00 2001 From: larryw3i Date: Mon, 11 Aug 2025 06:18:55 +0800 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4dfbcdf..08e0662 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 使用说明 -> 目前安装脚本仅在Debian系统中验证可用! +> 目前安装脚本仅在Debian系统中验证可用! -请在命令行中执行如下命令以下载并执行`自动安装脚本`: +请在命令行中执行如下命令以下载并执行`自动安装脚本`: `wget -q --show-progress https://git.whlug.cn/manxing/L2GI/raw/branch/master/install_loonggpu.sh && bash install_loonggpu.sh` -- 2.49.0 From 42b9c4d561f0e5883aa76088320b55f1c32ebce0 Mon Sep 17 00:00:00 2001 From: larryw3i Date: Mon, 11 Aug 2025 14:44:02 +0800 Subject: [PATCH 4/4] Update install_loonggpu.sh --- install_loonggpu.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install_loonggpu.sh b/install_loonggpu.sh index b6e2aa9..64699e2 100644 --- a/install_loonggpu.sh +++ b/install_loonggpu.sh @@ -20,9 +20,10 @@ for p in ${packages[*]}; do _name="$(echo ${p} | rev | cut -f1 -d "/" | rev)" echo "Downloading ${_name} ..." wget -O ${_name} "${loongnix_url}/${p}" - name="${_name} ${name}" + names="${_name} ${names}" done -echo "Installing ${name} ..." -sudo dpkg -i ${name} + +echo "Installing ${names} ..." +sudo dpkg -i ${names} echo "Done!" # The end. \ No newline at end of file -- 2.49.0